/* ===== Product detail — Aldos luxury branding ===== */
body.is-product-detail {
    background: var(--home-paper, #f4f1ec);
    color: var(--home-ink, #1a1816);
    font-family: var(--home-sans, 'DM Sans', 'Inter', system-ui, sans-serif);
}

body.is-product-detail .breadcrumb-bar {
    background: var(--home-paper, #f4f1ec);
}

body.is-product-detail .breadcrumb-bar a {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .breadcrumb-bar a:hover {
    color: var(--home-accent, #5c3d4a);
}

body.is-product-detail .breadcrumb-bar span {
    color: var(--home-ink, #1a1816);
}

/* ----- Gallery ----- */
body.is-product-detail .pd-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    min-height: 0;
    overflow: visible;
}

body.is-product-detail .pd-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.is-product-detail .pd-gallery-main {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f5;
    overflow: hidden;
}

body.is-product-detail .pd-gallery-stack {
    position: relative;
    width: 100%;
    min-height: 360px;
}

body.is-product-detail .pd-gallery-layer,
body.is-product-detail .pd-gallery-solo {
    width: 100%;
    max-height: min(72vh, 560px);
    object-fit: contain;
    padding: 8px 0;
    display: block;
    margin: 0 auto;
}

body.is-product-detail .pd-gallery-stack .pd-gallery-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1),
        transform 0.9s cubic-bezier(0.33, 0, 0.2, 1);
    will-change: opacity, transform;
}

body.is-product-detail .pd-gallery-stack .pd-gallery-layer.is-visible {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

body.is-product-detail .pd-gallery-stack .pd-gallery-layer.is-leaving {
    opacity: 0;
    transform: scale(1.02);
    z-index: 1;
}

body.is-product-detail .pd-hero .pd-placeholder {
    color: var(--home-line, #e8e4de);
    font-size: 80px;
}

body.is-product-detail .pd-back-btn {
    background: rgba(250, 248, 245, 0.92);
    color: var(--home-ink, #1a1816);
    box-shadow: 0 2px 12px rgba(26, 24, 22, 0.08);
}

body.is-product-detail .pd-back-btn:hover {
    background: var(--home-surface, #fff);
}

body.is-product-detail .pd-discount-badge {
    background: var(--home-sale, #8b3a42);
    color: #fff;
    font-family: var(--home-sans);
    letter-spacing: 0.04em;
}

body.is-product-detail .pd-gallery-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px 16px;
    background: var(--home-paper, #f4f1ec);
}

body.is-product-detail .pd-gallery-thumb {
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    opacity: 0.5;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

body.is-product-detail .pd-gallery-thumbs img {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0;
    object-fit: cover;
    display: block;
}

body.is-product-detail .pd-gallery-thumb:hover {
    opacity: 0.75;
}

body.is-product-detail .pd-gallery-thumb.is-active {
    opacity: 1;
    transform: scale(1.02);
}

/* ----- Info card ----- */
body.is-product-detail .pd-info-card {
    background: var(--home-surface, #fff);
    margin-top: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 -4px 20px rgba(26, 24, 22, 0.06);
}

@media (max-width: 767px) {
    body.is-product-detail .pd-main {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    body.is-product-detail .pd-hero {
        flex-shrink: 0;
    }

    body.is-product-detail .pd-gallery {
        flex-shrink: 0;
    }

    body.is-product-detail .pd-gallery-thumbs {
        flex-shrink: 0;
        padding-bottom: 14px;
        position: relative;
        z-index: 2;
    }

    body.is-product-detail .pd-info-card {
        margin-top: 0;
        border-radius: 16px 16px 0 0;
    }
}

body.is-product-detail .pd-category {
    background: rgba(92, 61, 74, 0.08);
    color: var(--home-accent, #5c3d4a);
    font-family: var(--home-serif);
    font-style: italic;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
}

body.is-product-detail .pd-title {
    font-family: var(--home-serif);
    font-weight: 600;
    color: var(--home-ink, #1a1816);
    letter-spacing: -0.02em;
}

body.is-product-detail .pd-rate {
    font-family: var(--home-sans);
    font-weight: 700;
    color: var(--home-ink, #1a1816);
}

body.is-product-detail .pd-cost {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .pd-mrp-plain {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .pd-discount {
    background: rgba(139, 58, 66, 0.1);
    color: var(--home-sale, #8b3a42);
}

body.is-product-detail .pd-variant-label {
    font-family: var(--home-sans);
    color: var(--home-stone, #9a948c);
    letter-spacing: 0.08em;
}

body.is-product-detail .pd-variant-chip {
    border-color: var(--home-line, #e8e4de);
    background: var(--home-surface, #fff);
    color: var(--home-ink, #1a1816);
    font-family: var(--home-sans);
    border-radius: 999px;
}

body.is-product-detail .pd-variant-chip .pd-variant-price {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .pd-variant-chip:hover {
    border-color: var(--brand, #901e50);
}

body.is-product-detail .pd-variant-chip.is-active {
    border-color: var(--brand, #901e50);
    background: var(--brand, #901e50);
    color: #fff;
}

body.is-product-detail .pd-variant-chip.is-active .pd-variant-price {
    color: rgba(255, 255, 255, 0.75);
}

body.is-product-detail #pd-size-chips.pd-variant-chips,
body.is-product-detail .pd-color-chips {
    gap: 6px;
}

body.is-product-detail .pd-variant-chip.pd-size-chip,
body.is-product-detail #pd-size-chips .pd-variant-chip {
    padding: 5px 10px;
    min-width: 44px;
    font-size: 12px;
    gap: 1px;
}

body.is-product-detail #pd-size-chips .pd-variant-chip .pd-variant-price {
    font-size: 10px;
}

body.is-product-detail .pd-color-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body.is-product-detail .pd-color-chip {
    background: transparent !important;
    border: 2px solid transparent !important;
    padding: 2px !important;
    border-radius: 50% !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
    box-shadow: none !important;
}

body.is-product-detail .pd-color-chip .pd-swatch {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(26, 24, 22, 0.15);
    margin: 0;
}

body.is-product-detail .pd-color-chip.is-active {
    border-color: var(--brand, #901e50) !important;
    background: transparent !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand, #901e50) !important;
}

body.is-product-detail .pd-variant-chip.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

body.is-product-detail .pd-stock-msg {
    font-size: 13px;
    margin: 8px 0 0;
    font-weight: 600;
}

body.is-product-detail #pd-sku-picker .pd-color-chips + .pd-variant-label {
    margin-top: 6px;
}

body.is-product-detail .pd-swatch {
    border-color: rgba(26, 24, 22, 0.15);
}

body.is-product-detail .pd-chip {
    background: var(--home-paper, #f4f1ec);
    color: var(--home-ink-soft, #4a4642);
    border: 1px solid var(--home-line, #e8e4de);
}

body.is-product-detail .pd-chip i {
    color: var(--home-gold, #c4a574);
}

body.is-product-detail .pd-specs {
    font-size: 13px;
    color: var(--home-stone, #9a948c);
    margin-bottom: 12px;
}

body.is-product-detail .pd-desc-card {
    background: #faf8f5;
    border-color: var(--home-line, #e8e4de);
}

body.is-product-detail .pd-desc-card h3 {
    font-family: var(--home-serif);
    font-weight: 600;
    color: var(--home-ink, #1a1816);
}

body.is-product-detail .pd-desc-card h3 i {
    color: var(--home-gold, #c4a574);
}

body.is-product-detail .pd-desc-card p {
    color: var(--home-ink-soft, #4a4642);
}

/* ----- Trust row ----- */
body.is-product-detail .pd-trust-icon {
    background: rgba(196, 165, 116, 0.12);
    color: var(--home-accent, #5c3d4a);
}

body.is-product-detail .pd-trust-item span {
    color: var(--home-stone, #9a948c);
    font-family: var(--home-sans);
}

body.is-product-detail .pd-trust-row {
    border-color: var(--home-line, #e8e4de);
}

/* ----- Cart actions ----- */
body.is-product-detail .pd-sticky-bar {
    background: var(--home-surface, #fff);
    border-top-color: var(--home-line, #e8e4de);
    box-shadow: 0 -4px 24px rgba(26, 24, 22, 0.08);
}

body.is-product-detail .pd-sticky-amount {
    color: var(--home-ink, #1a1816);
    font-family: var(--home-sans);
}

body.is-product-detail .pd-sticky-mrp {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .pd-sticky-mrp--plain {
    color: var(--home-stone, #9a948c);
}

body.is-product-detail .pd-sticky-cart-btn,
body.is-product-detail .pd-desktop-cart-btn,
body.is-product-detail .pd-add-to-cart {
    background-color: var(--brand, #901e50);
    border: none;
    color: #fff;
    font-family: var(--home-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(144, 30, 80, 0.2);
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.is-product-detail .pd-sticky-cart-btn:hover,
body.is-product-detail .pd-desktop-cart-btn:hover,
body.is-product-detail .pd-add-to-cart:hover,
body.is-product-detail .pd-sticky-cart-btn:focus,
body.is-product-detail .pd-desktop-cart-btn:focus,
body.is-product-detail .pd-add-to-cart:focus,
body.is-product-detail .pd-sticky-cart-btn:active,
body.is-product-detail .pd-desktop-cart-btn:active,
body.is-product-detail .pd-add-to-cart:active {
    background-color: var(--brand-dark, #6d133c);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(144, 30, 80, 0.3);
    outline: none;
}

body.is-product-detail .pd-sticky-cart-btn:disabled,
body.is-product-detail .pd-desktop-cart-btn:disabled {
    background: var(--home-stone, #9a948c);
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.is-product-detail .qty-selector {
    border-color: var(--home-line, #e8e4de);
}

body.is-product-detail .qty-btn {
    background: var(--home-paper, #f4f1ec);
    color: var(--home-ink, #1a1816);
}

body.is-product-detail .qty-btn:hover {
    background: var(--home-line, #e8e4de);
}

body.is-product-detail .qty-selector input,
body.is-product-detail .qty-selector span {
    background: var(--home-surface, #fff);
    color: var(--home-ink, #1a1816);
}

body.is-product-detail .pd-desktop-actions {
    border-color: var(--home-line, #e8e4de);
}

body.is-product-detail .pd-desktop-qty label {
    color: var(--home-stone, #9a948c);
}

/* ----- Related ----- */
body.is-product-detail .pd-related-title {
    font-family: var(--home-serif);
    font-weight: 600;
    color: var(--home-ink, #1a1816);
}

body.is-product-detail .pd-related {
    border-top-color: var(--home-line, #e8e4de);
}

body.is-product-detail .pd-related__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.is-product-detail .pd-related__row {
    display: flex;
    gap: 6px;
    min-width: max-content;
    padding-bottom: 4px;
    align-items: stretch;
}

body.is-product-detail .pd-stock-msg.in {
    color: var(--home-accent, #5c3d4a);
}

body.is-product-detail .pd-stock-msg.out {
    color: var(--home-sale, #8b3a42);
}

/* ----- Desktop layout refinements ----- */
@media (min-width: 768px) {
    body.is-product-detail .pd-main {
        padding: 24px 0 32px;
    }

    body.is-product-detail .pd-hero {
        border: 1px solid var(--home-line, #e8e4de);
        border-radius: 12px;
        overflow: hidden;
        background: #faf8f5;
    }

    body.is-product-detail .pd-gallery-main {
        min-height: 480px;
        border-radius: 0;
    }

    body.is-product-detail .pd-gallery-stack {
        min-height: 480px;
    }

    body.is-product-detail .pd-gallery-layer,
    body.is-product-detail .pd-gallery-solo {
        max-height: min(78vh, 640px);
        padding: 12px 0;
    }

    body.is-product-detail .pd-gallery-thumbs {
        padding: 14px 20px 18px;
    }

    body.is-product-detail .pd-gallery-thumb {
        width: 64px;
        height: 64px;
    }

    body.is-product-detail .pd-info-card {
        background: transparent;
        box-shadow: none;
    }

    body.is-product-detail .pd-trust-row {
        background: #faf8f5;
    }

    body.is-product-detail .pd-desktop-cart-btn {
        box-shadow: 0 4px 20px rgba(144, 30, 80, 0.25);
    }
}

/* ----- Dark mode ----- */

