/* ═══════════════════════════════════════════════════════════
   LEXAZI — Product Detail Page (PDP) Styles
   Mediterranean Resort Fashion — Premium E-Commerce
   v2.0.0 | BEM Architecture
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.pdp {
    padding: 0 0 var(--space-lg);
    background: var(--color-ivory);
    overflow-x: clip;
    box-sizing: border-box;
}

/* Remove padding on product pages to eliminate header/footer whitespace */
.single-product {
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Mobile Sticky ATC — hidden by default, shown only on mobile ── */
.pdp__sticky-atc {
    display: none;
}
@media (max-width: 767px) {
    .pdp__sticky-atc {
        display: flex;
    }
    .pdp__sticky-atc__info {
        overflow: hidden;
    }
    .pdp__sticky-atc__name {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.pdp__breadcrumbs-wrap {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(212, 184, 150, 0.2);
    margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
    .pdp__breadcrumbs-wrap {
        padding: 6px 0;
        margin-bottom: var(--space-sm);
    }
}

.pdp__breadcrumbs-wrap .breadcrumbs {
    font-size: 13px;
    color: var(--color-gray);
    letter-spacing: 0.2px;
}
.pdp__breadcrumbs-wrap .breadcrumbs a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.pdp__breadcrumbs-wrap .breadcrumbs a:hover {
    color: var(--color-terracotta);
}
.pdp__breadcrumbs-wrap .breadcrumbs__sep {
    margin: 0 6px;
    opacity: 0.5;
}
.pdp__breadcrumbs-wrap .breadcrumbs__current {
    color: var(--color-navy);
    font-weight: 500;
}

.pdp__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
    min-width: 0;
}

@media (min-width: 768px) {
    .pdp__layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (min-width: 1200px) {
    .pdp__layout {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        max-width: 1320px;
        margin: 0 auto;
    }
}

/* ── Gallery ─────────────────────────────────────────────── */
.pdp__gallery {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pdp__gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }
}

/* Desktop: vertical thumbnails on the left, main image on the right */
@media (min-width: 1024px) {
    .pdp__gallery {
        grid-template-columns: 72px 1fr;
        grid-template-rows: 1fr;
        gap: 14px;
        overflow: visible;
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

.pdp__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}
.pdp__badge--sale {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.pdp__gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    background: #F0EBE4;
    cursor: zoom-in;
}

@media (min-width: 1024px) {
    .pdp__gallery-main {
        grid-column: 2;
        grid-row: 1;
        max-height: 680px;
        aspect-ratio: auto;
    }
}

.pdp__gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pdp__gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FAF5EF 0%, #E8DDD0 100%);
    color: var(--color-sand);
}

/* Thumbnails */
.pdp__gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.pdp__gallery-thumbs::-webkit-scrollbar { display: none; }

/* Desktop: vertical thumbnail strip */
@media (min-width: 1024px) {
    .pdp__gallery-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 680px;
        margin-top: 0;
        padding-bottom: 0;
        padding-right: 4px;
        gap: 10px;
    }
}

.pdp__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.25s, opacity 0.25s;
    opacity: 0.6;
    background: none;
    padding: 0;
}
@media (min-width: 1024px) {
    .pdp__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}
.pdp__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdp__thumb:hover {
    opacity: 0.9;
    border-color: var(--color-sand);
}
.pdp__thumb--active {
    border-color: var(--color-navy);
    opacity: 1;
}

/* Mobile dots */
.pdp__gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.pdp__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-sand);
    transition: background 0.25s, transform 0.25s;
}
.pdp__dot--active {
    background: var(--color-navy);
    transform: scale(1.25);
}

@media (min-width: 768px) {
    .pdp__gallery-dots { display: none; }
}

/* ── Product Info ────────────────────────────────────────── */
.pdp__info {
    padding-top: 0;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pdp__info {
        padding-top: 8px;
    }
}

/* Desktop: info column scrolls naturally — gallery is the sticky element */
@media (min-width: 1024px) {
    .pdp__info {
        padding-top: 0;
    }
}

.pdp__category {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gray);
    margin-bottom: 10px;
}
.pdp__category a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.pdp__category a:hover {
    color: var(--color-terracotta);
}

.pdp__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-navy);
    margin: 0 0 16px;
    letter-spacing: -0.2px;
}

.pdp__price {
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.pdp__price del {
    color: var(--color-gray);
    font-size: 17px;
    font-weight: 400;
}
.pdp__price ins {
    text-decoration: none;
    color: var(--color-terracotta);
    font-weight: 600;
}
.pdp__price .woocommerce-Price-amount {
    font-family: var(--font-accent);
}

.pdp__short-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pdp__short-desc p {
    margin: 0 0 8px;
}

.pdp__divider {
    border: none;
    border-top: 1px solid rgba(212, 184, 150, 0.3);
    margin: 20px 0;
}

/* ── Options: Color & Size ───────────────────────────────── */
.pdp__option {
    margin-bottom: 24px;
}

.pdp__option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.pdp__option-value {
    text-transform: capitalize;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--color-charcoal);
}

/* Color Swatches */
.pdp__swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp__swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    border: 2px solid var(--swatch-border, var(--swatch-color));
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.2s;
    position: relative;
    padding: 0;
}
.pdp__swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--color-ivory), 0 0 0 5px var(--swatch-border);
}
.pdp__swatch--active {
    box-shadow: 0 0 0 3px var(--color-ivory), 0 0 0 5px var(--color-navy);
}

/* Size Buttons */
.pdp__sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pdp__size {
    min-width: 52px;
    height: 44px;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    border: 1.5px solid var(--color-sand);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp__size:hover {
    border-color: var(--color-navy);
}
.pdp__size--active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.pdp__size-guide {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-terracotta);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 0.2s;
}
.pdp__size-guide:hover {
    opacity: 0.7;
}
.pdp__size-guide svg {
    stroke: var(--color-terracotta);
}

/* ── Add to Cart ─────────────────────────────────────────── */
.pdp__add-to-cart {
    margin-bottom: 20px;
}
.pdp__add-to-cart form.cart {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.pdp__add-to-cart .quantity {
    flex-shrink: 0;
}
.pdp__add-to-cart .quantity .qty {
    width: 64px;
    height: 52px;
    text-align: center;
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 500;
    border: 1.5px solid var(--color-sand);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-navy);
    -moz-appearance: textfield;
    appearance: textfield;
}
.pdp__add-to-cart .quantity .qty::-webkit-inner-spin-button,
.pdp__add-to-cart .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.pdp__add-to-cart .quantity .qty:focus {
    outline: none;
    border-color: var(--color-navy);
}

.pdp__add-to-cart .single_add_to_cart_button {
    flex: 1;
    height: 52px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
}
.pdp__add-to-cart .single_add_to_cart_button:hover {
    background: #0D1B2A;
}
.pdp__add-to-cart .single_add_to_cart_button:active {
    transform: scale(0.98);
}

/* Out of stock */
.pdp__add-to-cart .stock.out-of-stock {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    border: 1.5px dashed var(--color-sand);
    border-radius: 4px;
    background: rgba(212, 184, 150, 0.08);
}

/* ── Trust Badges ────────────────────────────────────────── */
.pdp__trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(212, 184, 150, 0.2);
    border-bottom: 1px solid rgba(212, 184, 150, 0.2);
}
.pdp__trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-charcoal);
    letter-spacing: 0.2px;
}
.pdp__trust-item svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .pdp__trust {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* ── Accordions ──────────────────────────────────────────── */
.pdp__accordions {
    margin-top: 8px;
}

.pdp__accordion {
    border-bottom: 1px solid rgba(212, 184, 150, 0.25);
}
.pdp__accordion:first-child {
    border-top: 1px solid rgba(212, 184, 150, 0.25);
}

.pdp__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}
.pdp__accordion-header::-webkit-details-marker { display: none; }
.pdp__accordion-header::marker { display: none; content: ''; }
.pdp__accordion-header:hover {
    color: var(--color-terracotta);
}

.pdp__accordion-header svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    stroke: var(--color-gray);
}
details[open] > .pdp__accordion-header svg {
    transform: rotate(180deg);
}

.pdp__accordion-body {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-charcoal);
    animation: pdpSlideDown 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pdp__accordion-body p {
    margin: 0 0 10px;
}
.pdp__accordion-body p:last-child {
    margin-bottom: 0;
}
.pdp__accordion-body a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: opacity 0.2s;
}
.pdp__accordion-body a:hover {
    opacity: 0.7;
}
.pdp__accordion-body strong {
    color: var(--color-navy);
    font-weight: 600;
}

/* ── Internal Product Links ("You May Also Love") ────────── */
.pdp__accordion-body h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: 0.02em;
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 184, 150, 0.2);
}
.pdp__accordion-body h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pdp__accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdp__accordion-body ul li {
    margin: 0;
    padding: 0;
}

.pdp__accordion-body ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(212, 184, 150, 0.08);
    border: 1px solid rgba(212, 184, 150, 0.15);
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: var(--color-charcoal);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.pdp__accordion-body ul li a::after {
    content: '→';
    margin-left: auto;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--color-sand);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdp__accordion-body ul li a:hover {
    background: rgba(212, 184, 150, 0.15);
    border-left-color: var(--color-terracotta);
    border-color: rgba(212, 184, 150, 0.3);
    color: var(--color-navy);
    transform: translateX(4px);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}

.pdp__accordion-body ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-terracotta);
}

/* ── FAQ Heading inside accordion ────────────────────────── */
.pdp__accordion-body h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    color: var(--color-navy);
    margin: 32px 0 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 184, 150, 0.25);
    letter-spacing: 0.01em;
}

/* FAQ Q&A pairs inside accordion */
.pdp__accordion-body h2 ~ h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 18px 0 6px;
    padding-top: 0;
    border-top: none;
}

.pdp__accordion-body h2 ~ h3 + p {
    margin-bottom: 16px;
}

.pdp__care-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.pdp__care-list li {
    padding: 4px 0 4px 22px;
    position: relative;
}
.pdp__care-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-terracotta);
    font-size: 9px;
    top: 7px;
}

.pdp__sku {
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 0.5px;
}

/* ── FAQ Section ─────────────────────────────────────────── */
.pdp__faq {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212, 184, 150, 0.3);
}

.pdp__section-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 500;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.2px;
}

.pdp__faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Related Products ────────────────────────────────────── */
.pdp__related {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212, 184, 150, 0.3);
}

/* Override WooCommerce related products heading */
.pdp__related .related.products > h2,
.pdp__related section.related > h2 {
    display: none; /* We use our own .pdp__section-title */
}

/* Reset WooCommerce section wrapper to prevent double-grid */
.pdp__related section.related.products {
    display: block;
    width: 100%;
}

.pdp__related ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .pdp__related ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.pdp__related ul.products li.product {
    margin: 0;
    padding: 0;
}
.pdp__related ul.products li.product a {
    text-decoration: none;
    color: inherit;
}
.pdp__related ul.products li.product img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.pdp__related ul.products li.product:hover img {
    transform: scale(1.03);
}
.pdp__related ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    margin: 10px 0 4px;
    line-height: 1.35;
}
.pdp__related ul.products li.product .price {
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-charcoal);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes pdpSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hide default WooCommerce elements we've replaced ──── */
.pdp .woocommerce-product-gallery,
.pdp .product_meta,
.pdp .woocommerce-tabs,
.pdp .woocommerce-product-rating,
.pdp .woocommerce-Reviews {
    display: none !important;
}

/* Legacy single-product classes removed — all PDP uses .pdp__ prefix */

/* ── WC messages & notices ───────────────────────────────── */
.pdp .woocommerce-message,
.pdp .woocommerce-info,
.pdp .woocommerce-error {
    padding: 14px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}
.pdp .woocommerce-message {
    background: #EDF7ED;
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}
.pdp .woocommerce-error {
    background: #FDECEA;
    border-left: 4px solid #F44336;
    color: #C62828;
}
.pdp .woocommerce-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

/* ── Responsive Fine-tuning ──────────────────────────────── */
@media (max-width: 767px) {
    /* --- Layout & Container --- */
    .pdp {
        padding: 0 0 80px; /* room for sticky ATC bar */
    }
    .pdp .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* --- Breadcrumbs: truncate long product names --- */
    .pdp__breadcrumbs-wrap {
        padding: 4px 0;
        margin-bottom: 8px;
    }
    .pdp__breadcrumbs-wrap .breadcrumbs {
        font-size: 12px;
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .pdp__breadcrumbs-wrap .breadcrumbs__current {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
        display: inline-block;
        vertical-align: bottom;
    }

    /* --- Gallery: full-bleed image --- */
    .pdp__gallery-main {
        border-radius: 0;
        margin: 0 calc(var(--space-md) * -1);
        width: calc(100% + var(--space-md) * 2);
        aspect-ratio: 3 / 4;
    }

    /* --- Thumbnails: bigger, scrollable strip --- */
    .pdp__gallery-thumbs {
        gap: 8px;
        margin-top: 10px;
        padding: 0 2px;
    }
    .pdp__thumb {
        width: 56px;
        height: 70px;
        border-radius: 4px;
    }

    /* --- Product Info Section --- */
    .pdp__info {
        padding: 0;
    }
    .pdp__category {
        font-size: 11px;
        letter-spacing: 1.5px;
        margin-bottom: 6px;
    }
    .pdp__title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .pdp__price {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .pdp__short-desc {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 12px;
    }
    .pdp__divider {
        margin: 16px 0;
    }

    /* --- Add to Cart --- */
    .pdp__add-to-cart .quantity .qty {
        width: 56px;
        height: 48px;
        font-size: 15px;
    }
    .pdp__add-to-cart .single_add_to_cart_button {
        height: 48px;
        font-size: 13px;
        letter-spacing: 2px;
    }

    /* --- Trust Badges: stack vertically --- */
    .pdp__trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        padding: 12px 0;
        margin-bottom: 16px;
    }
    .pdp__trust-item {
        font-size: 12px;
    }

    /* --- Accordions --- */
    .pdp__accordion-header {
        padding: 14px 0;
        font-size: 13px;
    }
    .pdp__accordion-body {
        font-size: 13px;
        line-height: 1.7;
        padding-bottom: 16px;
    }

    /* --- FAQ Section --- */
    .pdp__faq {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
    }
    .pdp__section-title {
        font-size: 20px;
        margin-bottom: var(--space-md);
    }

    .pdp__related ul.products {
        gap: 12px;
    }
    .pdp__related ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px;
        margin: 6px 0 2px;
    }
    .pdp__related ul.products li.product .price {
        font-size: 14px;
    }
}

/* --- Pipeline Content Mobile Fixes --- */
@media (max-width: 767px) {
    /* Quick Answer block */
    .lexazi-quick-answer {
        padding: 16px 18px;
        margin: 20px 0;
        font-size: 14px;
    }
    .lexazi-quick-answer h2 {
        font-size: 15px;
    }

    /* Hero description */
    .product-hero-description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    /* Specs table: remove nowrap, stack-friendly */
    .woocommerce-product-details__short-description table td:first-child,
    .product-hero-description + table td:first-child,
    .entry-content table td:first-child {
        white-space: normal;
        width: 30%;
    }
    .woocommerce-product-details__short-description table td,
    .product-hero-description + table td,
    .entry-content table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Content headings */
    .entry-content h2,
    .woocommerce-Tabs-panel h2 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    .entry-content h3,
    .woocommerce-Tabs-panel h3 {
        font-size: 14px;
        margin: 14px 0 6px;
    }

    /* Related links block */
    .lexazi-related-links {
        padding: 12px 16px;
        font-size: 13px;
        margin-top: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .pdp__gallery-main {
        aspect-ratio: 4 / 5;
    }
}

/* ═══════════════════════════════════════════════════════════
   Pipeline Content Blocks — v3.3 (May 7, 2026)
   Styles for content injected by the Lexazi Product Pipeline
   ═══════════════════════════════════════════════════════════ */

/* ── GEO Quick Answer (AI Engine Citation Block) ─────────── */
.lexazi-quick-answer {
    background: linear-gradient(135deg, #f0f7f7 0%, #e8f3f1 100%);
    border-left: 4px solid var(--color-terracotta, #C2703E);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-navy, #1B2838);
    position: relative;
}
.lexazi-quick-answer h2 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--color-terracotta, #C2703E);
    letter-spacing: 0.3px;
}
.lexazi-quick-answer p {
    margin: 0;
    color: var(--color-charcoal, #3D3D3D);
}

/* ── Hero Description Wrapper ────────────────────────────── */
.product-hero-description {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-charcoal, #3D3D3D);
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.product-hero-description a {
    color: var(--color-terracotta, #C2703E);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.product-hero-description a:hover {
    border-bottom-color: var(--color-terracotta, #C2703E);
}

/* ── Product Specs Table ─────────────────────────────────── */
.woocommerce-product-details__short-description table,
.product-hero-description + table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    table-layout: fixed;
}
.woocommerce-product-details__short-description table td,
.product-hero-description + table td,
.entry-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(212, 184, 150, 0.2);
    color: var(--color-charcoal, #3D3D3D);
}
.woocommerce-product-details__short-description table td:first-child,
.product-hero-description + table td:first-child,
.entry-content table td:first-child {
    font-weight: 500;
    color: var(--color-navy, #1B2838);
    white-space: nowrap;
    width: 35%;
}

/* ── Style Tip Block ─────────────────────────────────────── */
.entry-content h2 + p,
.woocommerce-Tabs-panel h2 + p {
    font-size: 15px;
    line-height: 1.75;
}

/* ── FAQ in Description ──────────────────────────────────── */
.entry-content h2,
.woocommerce-Tabs-panel h2 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: var(--color-navy, #1B2838);
    margin: 28px 0 14px;
    letter-spacing: -0.2px;
}
.entry-content h3,
.woocommerce-Tabs-panel h3 {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy, #1B2838);
    margin: 18px 0 8px;
}

/* ── Related Links (Pipeline Internal Linking v2) ────────── */
.lexazi-related-links {
    margin: 24px 0 0;
    padding: 14px 20px;
    background: rgba(212, 184, 150, 0.08);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-charcoal, #3D3D3D);
}
.lexazi-related-links strong {
    color: var(--color-navy, #1B2838);
    font-weight: 600;
    margin-right: 6px;
}
.lexazi-related-links a {
    color: var(--color-terracotta, #C2703E);
    text-decoration: none;
    transition: opacity 0.2s;
}
.lexazi-related-links a:hover {
    opacity: 0.7;
}
