/* ========================================
   NOIR ESSENCE™ — Product Detail Page CSS
   Premium 3D Perfume Detail Styling
   ======================================== */

/* ─── PRODUCT HERO ─── */
.product-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: transparent !important;
    /* Enhanced for Video BGs */
}

/* Global Video Background Styling */
.site-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.site-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.site-video-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Base Transparency for Video Content */
html,
body {
    background: transparent !important;
}

.pd-tabs-section,
.pd-rel-section,
.pd-related-section,
.footer {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

.navbar {
    background: transparent !important;
    transition: all 0.5s var(--ease-luxury);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.product-hero-bg,
.ph-video-container {
    display: none;
}

.ph-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 1s ease;
}

.ph-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 50%, var(--bg-primary) 100%);
    z-index: 1;
}

.ph-shape {
    display: none;
}

.ph-shape-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -150px;
    animation: phPulse 10s ease-in-out infinite;
}

.ph-shape-2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    left: -100px;
    animation: phPulse 12s ease-in-out 3s infinite;
}

@keyframes phPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.product-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ─── 3D PRODUCT VISUAL ─── */
.pd-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pd-3d-scene {
    position: relative;
    width: 400px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.pd-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    animation: pdFloat 6s ease-in-out infinite;
}

@keyframes pdFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-14px) rotateY(2deg);
    }

    50% {
        transform: translateY(-6px) rotateY(0deg);
    }

    75% {
        transform: translateY(-16px) rotateY(-2deg);
    }
}

/* Large Perfume Bottle - PREMIUM SHAPES */
.pd-perfume {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    filter: drop-shadow(0 15px 40px rgba(166, 139, 90, 0.05));
    /* Softened shadow */
}

/* Base Body Style - ULTRA PREMIUM GLASS */
.pd-body {
    width: 180px;
    height: 270px;
    background: var(--bottle-bg, linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2)));
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(30px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 0 10px rgba(255, 255, 255, 0.1),
        /* Thick glass edge */
        inset 0 0 60px rgba(255, 255, 255, 0.2),
        inset -20px 0 50px rgba(166, 139, 90, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.05);
    transition: all 0.6s var(--ease-luxury);
}

/* Glass Specular Highlights - PHOTOREALISM */
.pd-body::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 25%;
    height: 90%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    border-radius: 4px;
    z-index: 6;
    pointer-events: none;
    filter: blur(1.5px);
}

/* Glass Refraction Effect */
.pd-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.12) 48%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.12) 52%,
            transparent 65%);
    z-index: 5;
    pointer-events: none;
    animation: glassShine 8s infinite linear;
}

@keyframes glassShine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* SHAPE: Classic (Rectangular - REFERENCE: VELVET OUD) */
.pd-perfume.shape-classic .pd-body {
    width: 180px;
    height: 270px;
    border-radius: 12px 12px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 0 0 12px rgba(255, 255, 255, 0.03),
        /* Thick glass edge */
        inset -15px 0 40px rgba(166, 139, 90, 0.1);
}

.pd-perfume.shape-classic .pd-cap {
    width: 60px;
    height: 65px;
    border-radius: 4px 4px 2px 2px;
}

/* SHAPE: Slender (Tall & Elegant - REFERENCE: MIDNIGHT ROSÉ) */
.pd-perfume.shape-slender .pd-body {
    width: 140px;
    height: 330px;
    border-radius: 70px 70px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 0 0 10px rgba(255, 255, 255, 0.03),
        inset -10px 0 30px rgba(166, 139, 90, 0.1);
}

.pd-perfume.shape-slender .pd-cap {
    width: 48px;
    height: 80px;
    border-radius: 25px 25px 4px 4px;
    background: var(--cap-gradient, linear-gradient(180deg, #7a7a7a 0%, #9a9a9a 100%));
}

.pd-perfume.shape-slender .pd-neck {
    width: 34px;
    height: 40px;
}

/* SHAPE: Square (Heavy & Modern - REFERENCE: ROYAL SANTAL) */
.pd-perfume.shape-square .pd-body {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 0 0 15px rgba(255, 255, 255, 0.04),
        /* Heavier crystal walls */
        inset -20px 0 40px rgba(166, 139, 90, 0.1),
        inset 20px 0 40px rgba(255, 255, 255, 0.08);
}

.pd-perfume.shape-square .pd-cap {
    width: 100px;
    height: 55px;
    border-radius: 4px;
    background: linear-gradient(180deg,
            #fffdfa 0%,
            #e6dfd5 20%,
            #d2c8b8 50%,
            #b8ac99 80%,
            #9a9a9a 100%);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 10px 20px rgba(166, 139, 90, 0.1);
}

.pd-perfume.shape-square .pd-cap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 10%,
            transparent 20%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 80%);
}

.pd-perfume.shape-square .pd-neck {
    width: 60px;
    height: 40px;
    background: linear-gradient(90deg, #9a9a9a, #d2c8b8, #fffdfa, #d2c8b8, #9a9a9a);
    border: 1px solid rgba(210, 200, 184, 0.2);
    position: relative;
}

.pd-perfume.shape-square .pd-neck::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0, 0, 0, 0.2) 4px, rgba(0, 0, 0, 0.2) 5px);
}

/* SHAPE: Round/Jewel (Ethereal - REFERENCE: LUNA NOIRE) */
.pd-perfume.shape-round .pd-body {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: radial-gradient(circle at 35% 35%,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.25) 40%,
            rgba(255, 255, 255, 0.1) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 0 60px rgba(255, 255, 255, 0.15),
        inset -15px 0 40px rgba(166, 139, 90, 0.05),
        0 40px 80px rgba(166, 139, 90, 0.1);
}

.pd-perfume.shape-round .pd-cap {
    width: 50px;
    height: 60px;
    border-radius: 50% 50% 5px 5px;
}

.pd-cap {
    width: 60px;
    height: 65px;
    background: var(--cap-gradient,
            repeating-linear-gradient(90deg,
                #b8ac99 0px,
                #d2c8b8 2px,
                #e6dfd5 4px,
                #d2c8b8 6px,
                #b8ac99 8px));
    border: 1px solid rgba(210, 200, 184, 0.1);
    border-radius: 5px 5px 2px 2px;
    position: relative;
    z-index: 3;
    box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.6),
        inset -1px -1px 3px rgba(166, 139, 90, 0.05),
        0 4px 15px rgba(166, 139, 90, 0.08);
    /* Softened shadow */
    transition: all 0.4s var(--ease-luxury);
}

.pd-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 4;
    transform: skewX(-15deg);
    pointer-events: none;
}

.pd-cap::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 2px;
}

.pd-cap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 10px;
    background: linear-gradient(180deg, #c9a96e, #a88a50);
    border-radius: 2px;
}

.pd-neck {
    width: 40px;
    height: 45px;
    background: linear-gradient(180deg, #c9a96e 0%, #8a7040 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-top: none;
    position: relative;
    z-index: 2;
    box-shadow:
        inset 2px 0 5px rgba(255, 255, 255, 0.3),
        inset -2px 0 5px rgba(0, 0, 0, 0.3);
}

/* Ornate Engraving on Neck */
.pd-neck::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 4px),
        repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 4px);
    opacity: 0.6;
}

.pd-liquid {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 75%;
    border-radius: 0 0 10px 10px;
    animation: pdLiquid 4s ease-in-out infinite;
}

@keyframes pdLiquid {

    0%,
    100% {
        height: 75%;
    }

    50% {
        height: 73%;
    }
}

.pd-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: pdSurface 3s ease-in-out infinite;
}

@keyframes pdSurface {

    0%,
    100% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

.pd-label-area {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 65%;
    padding: 18px 5px 12px;
    background: rgba(20, 20, 20, 0.7);
    border: 0.5px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pd-label-area::before {
    content: '♛';
    /* Royal Queen/Crown Symbol */
    display: block;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.2));
}

.pd-label-brand {
    font-family: var(--font-display);
    font-size: 0.45rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.8;
}

.pd-label-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.2));
}

.pd-label-line {
    width: 50px;
    height: 1px;
    margin: 10px auto;
}

.pd-label-type {
    font-family: var(--font-accent);
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pd-label-vol {
    font-family: var(--font-accent);
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-top: 6px;
}

.pd-shine {
    position: absolute;
    top: 0;
    left: 15%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.06) 50%, transparent 90%);
    z-index: 3;
}

.pd-shine-2 {
    position: absolute;
    top: 0;
    right: 20%;
    width: 1px;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.08), transparent);
    z-index: 3;
}

.pd-shadow {
    width: 130px;
    height: 22px;
    background: radial-gradient(ellipse, var(--product-glow) 0%, transparent 70%);
    margin: 16px auto 0;
    animation: pdShadowPulse 6s ease-in-out infinite;
}

@keyframes pdShadowPulse {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.7;
    }

    50% {
        transform: scaleX(0.85);
        opacity: 0.4;
    }
}

/* ─── PRODUCT MOTION REMOVED ─── */
.pd-floats,
.pd-orbit,
.pd-glow {
    display: none;
}


/* ─── PRODUCT INFO ─── */
.pd-info {
    padding-right: 20px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pd-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.pd-breadcrumb a:hover {
    color: var(--gold);
}

.pd-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

.pd-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pd-badge {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
}

.pd-badge-best {
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold);
}

.pd-badge-new {
    background: rgba(212, 120, 156, 0.12);
    border: 1px solid rgba(212, 120, 156, 0.3);
    color: var(--rose);
}

.pd-badge-ltd {
    background: rgba(160, 100, 70, 0.12);
    border: 1px solid rgba(160, 100, 70, 0.3);
    color: #c4875a;
}

.pd-category {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.pd-name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.pd-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.pd-rating-text {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pd-short-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 520px;
}

/* Price */
.pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.pd-price-new {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.pd-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pd-price-save {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold);
}

/* Variants */
.pd-variants {
    margin-bottom: 20px;
}

.pd-variant-label {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pd-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-variant-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.pd-variant-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold);
}

.pd-variant-btn.active {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold);
}

/* Quantity + Actions */
.pd-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.pd-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
}

.pd-qty-btn {
    width: 44px;
    height: 48px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.pd-qty-btn:hover {
    background: rgba(201, 169, 110, 0.08);
}

.pd-qty-input {
    width: 50px;
    height: 48px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-add-cart {
    flex: 1;
    padding: 16px 32px;
    background: var(--gold);
    background: linear-gradient(135deg, #d2c8b8 0%, #e6dfd5 50%, #d2c8b8 100%);
    color: #000;
    /* Dark text for contrast on gold/champagne */
    border: none;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    transition: all 0.4s var(--ease-luxury);
    box-shadow: 0 10px 25px rgba(210, 200, 184, 0.25);
    position: relative;
    overflow: hidden;
}

.pd-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.pd-add-cart:hover::before {
    left: 100%;
}

.pd-add-cart:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(210, 200, 184, 0.4);
    filter: brightness(1.1);
}

.pd-add-cart:active {
    transform: translateY(-1px) scale(1);
}

.pd-wishlist {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    /* Rounded buttons */
}

.pd-wishlist:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.pd-wishlist.active {
    background: rgba(212, 120, 156, 0.1);
    border-color: var(--rose);
    color: var(--rose);
}

/* Trust Features */
.pd-trust {
    display: flex;
    gap: 24px;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-trust-icon {
    font-size: 1.3rem;
}

.pd-trust-text {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ─── TABS SECTION ─── */
.pd-tabs-section {
    padding: 80px 0 100px;
    position: relative;
    z-index: 2;
}

.pd-tabs-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.pd-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 48px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pd-tabs-nav::-webkit-scrollbar {
    display: none;
}

.pd-tab-btn {
    padding: 16px 28px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s;
}

.pd-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.pd-tab-btn:hover {
    color: #ffffff !important;
}

.pd-tab-btn.active {
    color: #ffffff !important;
}

.pd-tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab Panels */
.pd-tab-panel {
    display: none;
    animation: fadePanel 0.5s ease;
}

.pd-tab-panel.active {
    display: block;
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Background Panel Styling */
.pd-tab-panel.has-video-bg {
    position: relative;
    padding: 80px 60px;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    /* Base fallback */
}

.panel-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 1s ease;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.pd-tab-panel.has-video-bg .pd-ingredients,
.pd-tab-panel.has-video-bg .pd-notes,
.pd-tab-panel.has-video-bg .pd-story {
    position: relative;
    z-index: 2;
}

/* White text for video background panels */
.pd-tab-panel.has-video-bg h3,
.pd-tab-panel.has-video-bg .pd-ingredient-name,
.pd-tab-panel.has-video-bg .pd-stat-label,
.pd-tab-panel.has-video-bg .pd-note-tier-label {
    color: #fff !important;
}

.pd-tab-panel.has-video-bg .pd-ingredient-desc,
.pd-tab-panel.has-video-bg .pd-note-chip,
.pd-tab-panel.has-video-bg .pd-story-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.pd-tab-panel.has-video-bg .pd-ingredient-card,
.pd-tab-panel.has-video-bg .pd-stat-card,
.pd-tab-panel.has-video-bg .pd-note-chip {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── STORY TAB ─── */
.pd-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pd-story-content {
    background: rgba(10, 15, 25, 0.4);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-story-content h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pd-story-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.15rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pd-story-highlights {
    list-style: none;
    margin-top: 24px;
}

.pd-story-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Improved visibility */
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pd-story-highlights .check {
    color: var(--product-color, #ffffff) !important;
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Story stats */
.pd-story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pd-stat-card {
    background: rgba(10, 15, 25, 0.6) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.pd-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-4px);
    background: rgba(15, 20, 35, 0.8) !important;
}

.pd-stat-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--product-color, #ffffff) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pd-stat-label {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 8px;
}

/* ─── INGREDIENTS TAB ─── */
.pd-ingredients h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.pd-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pd-ingredient-card {
    background: rgba(10, 15, 25, 0.6) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.pd-ingredient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.pd-ingredient-card:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-4px);
    background: rgba(15, 20, 35, 0.8) !important;
}

.pd-ingredient-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.pd-ingredient-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pd-ingredient-origin {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 12px;
}

.pd-ingredient-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7;
}

/* ─── NOTES PYRAMID ─── */
.pd-notes {
    background: rgba(10, 15, 25, 0.4);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-notes h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pd-notes-pyramid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.pd-note-tier {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: start;
}

.pd-note-tier:last-child {
    border-bottom: none;
}

.pd-note-tier-head {
    text-align: right;
}

.pd-note-tier-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.pd-note-tier-time {
    font-family: var(--font-accent);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pd-note-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-note-chip {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.pd-note-chip:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ─── REVIEWS TAB ─── */
.pd-reviews h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.pd-reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(10, 10, 10, 0.6) !important;
    border: 1px solid rgba(210, 200, 184, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pd-review-avg {
    text-align: center;
}

.pd-review-avg-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.pd-review-avg-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 3px;
    margin: 8px 0;
}

.pd-review-avg-count {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pd-review-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.pd-review-bar-row {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    gap: 12px;
    align-items: center;
}

.pd-review-bar-label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pd-review-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.pd-review-bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    transition: width 1s ease;
}

.pd-review-bar-count {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Review Cards */
.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-review-card {
    background: rgba(10, 10, 10, 0.6) !important;
    border: 1px solid rgba(210, 200, 184, 0.1);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-luxury);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pd-review-card:hover {
    border-color: var(--border-gold);
}

.pd-review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.pd-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid;
}

.pd-reviewer-details strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pd-reviewer-details span {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0.8;
}

.pd-review-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.pd-review-text {
    color: #ffffff;
    line-height: 1.8;
    font-style: italic;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pd-verified {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--gold);
    margin-top: 12px;
    display: inline-block;
}

/* ─── RELATED SECTION ─── */
.pd-related-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 2;
}

.pd-related-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .product-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .pd-info {
        padding-right: 0;
    }

    .pd-visual {
        order: -1;
    }

    .pd-short-desc {
        margin: 0 auto 24px;
    }

    .pd-badges {
        justify-content: center;
    }

    .pd-price-block {
        justify-content: center;
    }

    .pd-variant-options {
        justify-content: center;
    }

    .pd-actions {
        justify-content: center;
    }

    .pd-trust {
        justify-content: center;
    }

    .pd-story {
        grid-template-columns: 1fr;
    }

    .pd-ingredients-grid {
        grid-template-columns: 1fr;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 100px 0 60px;
    }

    .product-hero-container {
        padding: 0 20px;
    }

    .pd-3d-scene {
        width: 300px;
        height: 400px;
    }

    .pd-perfume {
        transform: scale(0.85);
    }

    .pd-orbit-1 {
        width: 260px;
        height: 260px;
    }

    .pd-orbit-2 {
        width: 340px;
        height: 340px;
    }

    .pd-tabs-container {
        padding: 0 20px;
    }

    .pd-tabs-nav {
        gap: 0;
    }

    .pd-tab-btn {
        padding: 12px 16px;
        font-size: 0.65rem;
    }

    .pd-story-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pd-note-tier {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pd-note-tier-head {
        text-align: left;
    }

    .pd-reviews-summary {
        grid-template-columns: 1fr;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 20px;
    }

    .pd-actions {
        flex-wrap: wrap;
    }

    .pd-add-cart {
        min-width: 200px;
    }
}

/* ─── CHECKOUT & PAYMENT OVERLAY ─── */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease-luxury);
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-card {
    background: #111;
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-luxury);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.checkout-overlay.active .checkout-card {
    transform: translateY(0);
}

.checkout-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.checkout-desc {
    font-family: var(--font-accent);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: 12px;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-btn:hover {
    background: rgba(210, 200, 184, 0.1);
    border-color: var(--gold);
}

.payment-btn.primary {
    background: var(--gold);
    color: #000;
    font-weight: 700;
}

.processing-view {
    display: none;
}

.processing-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(210, 200, 184, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    margin: 30px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.success-view {
    display: none;
}

.close-checkout {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-checkout:hover {
    opacity: 1;
}