/* =====================================================
   product-v2.css — Dyson-Inspired Product Page Layout
   Following Sodhak's homepage design tokens
   ===================================================== */

body.smooth-scroll {
    overflow-x: hidden;
}

/* ─── 1. STICKY CONVERSION BAR ─────────────────────── */
.sticky-conversion-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: oklch(100% 0 0 / 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5vw;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-conversion-bar.visible {
    transform: translateY(0);
}

.sticky-product-info {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.sticky-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin: 0;
}

.sticky-product-price {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ─── 2. HERO SECTION ───────────────────────────────── */
.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    background-color: oklch(98% 0 0);
}

@media (min-width: 1024px) {
    .product-hero {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    padding: calc(80px + clamp(4rem, 8vw, 8rem)) clamp(4rem, 8vw, 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: oklch(98% 0 0);
    /* Match Apple light grey */
    position: relative;
}

.product-gallery img {
    width: 100%;
    max-width: 600px;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px oklch(0% 0 0 / 0.12));
    /* Massive soft apple shadow */
}

.product-details-panel {
    padding: calc(80px + var(--spacing-8)) clamp(2rem, 5vw, 5rem) 4rem clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: oklch(100% 0 0);
    /* contrast panel */
}

.product-details-panel .breadcrumb {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-details-panel .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.product-details-panel .breadcrumb a:hover {
    color: var(--color-text);
}

/* Pill label above product name (optional) */
.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: oklch(96% 0 0);
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-hover);
    margin-bottom: 1rem;
    border: 1px solid oklch(88% 0 0);
}

.product-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: oklch(15% 0 0);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-2);
}

.product-price {
    font-size: 1.5rem;
    color: oklch(35% 0 0);
    margin-bottom: var(--spacing-6);
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: oklch(40% 0 0);
    margin-bottom: var(--spacing-8);
    max-width: 500px;
}

.key-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.spec-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-box-icon {
    font-size: 1.25rem;
    color: oklch(25% 0 0);
    margin-bottom: 0.5rem;
    display: block;
}

.spec-box-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: oklch(50% 0 0);
}

.spec-box-value {
    font-size: 1rem;
    font-weight: 600;
    color: oklch(15% 0 0);
}

/* Add to Bag action row */
.purchase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid oklch(88% 0 0);
}

/* ─── 3. FEATURE DEEP-DIVE ROWS ─────────────────────── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 75vh;
}

@media (min-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dark text panel (default) */
.feature-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 8vw, 6rem);
    background-color: oklch(6% 0 0);
    color: oklch(97% 0 0);
}

/* Light text panel */
.feature-text-panel.light {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Dark image panel (default) */
.feature-image-panel {
    position: relative;
    background-color: oklch(11% 0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

/* Light image panel */
.feature-image-panel.light {
    background-color: oklch(96% 0 0);
}

.feature-image-panel img {
    width: 100%;
    max-width: 800px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Feature text elements */
.feature-subtitle {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    font-weight: 600;
    opacity: 0.65;
}

.feature-title {
    font-size: clamp(1.875rem, 3.5vw, 3.25rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.78;
    max-width: 540px;
}

/* Force global text rules to inherit from panel for dynamic contrast */
.feature-text-panel .feature-title,
.feature-text-panel .feature-description {
    color: inherit;
}

/* ─── 4. SPECS & IN THE BOX SECTION ─────────────────── */
.specs-section {
    padding: 7rem 5vw;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* In the Box */
.in-the-box {
    text-align: center;
    padding-top: 2rem;
    margin-bottom: 6rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6rem;
}

.in-the-box h2 {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.in-the-box .section-sub {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.box-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.box-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.box-item p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    line-height: 1.4;
}

/* Specifications */
.tech-specs {
    padding-top: 1rem;
}

.tech-specs>h2 {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    border-top: 1.5px solid var(--color-text);
    padding-top: 2.5rem;
}

.spec-category {
    margin-bottom: 2rem;
}

.spec-category h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.875rem 0;
    border-bottom: 1px solid oklch(93% 0 0);
    font-size: 0.9375rem;
    gap: 1.5rem;
}

.spec-list li span:first-child {
    color: var(--color-text-muted);
    font-weight: 400;
    flex-shrink: 0;
}

.spec-list li span:last-child {
    color: var(--color-text);
    font-weight: 500;
    text-align: right;
}