/* ==========================================================
   Source: resources/views/shop/product.blade.php
   BERR. PRODUCT PAGE — Warm Editorial Luxury
   Extracted from inline <style> block.
   ========================================================== */

/* ── Base & Atmosphere ──────────────────────────────────── */
.product-page {
    padding: 100px 0 80px;
    background: #faf8f5;
    position: relative;
}

.product-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* OVERDRIVE: View Transitions & Scroll Animations */
::view-transition-old(main-product-image),
::view-transition-new(main-product-image) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); /* Spring-like easing */
}

.main-image-inner img {
    view-transition-name: main-product-image;
}

@supports (animation-timeline: scroll()) {
    .product-description-section, .reviews-section, .related-section {
        animation: revealOnScroll linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 30%;
    }
    @keyframes revealOnScroll {
        from { opacity: 0; transform: translateY(60px); filter: blur(8px); }
        to { opacity: 1; transform: translateY(0); filter: blur(0); }
    }
}

/* OVERDRIVE: Spring button physics */
.btn-add-cart {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s !important;
}
.btn-add-cart:active {
    transform: scale(0.96) !important;
}
.btn-add-cart.adding {
    background: var(--berr-gold) !important;
    color: #fff !important;
    pointer-events: none;
    transform: scale(1.02);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s !important;
}
.btn-add-cart.adding::before {
    display: none;
}

.product-page>.container {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Prevent sticky gallery from creating a stacking context above overlays */
.product-gallery {
    z-index: 0;
}

/* ── Entrance Animations ───────────────────────────────── */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-gallery {
    animation: revealUp .7s cubic-bezier(.23, 1, .32, 1) both;
}

.product-details {
    animation: revealUp .7s cubic-bezier(.23, 1, .32, 1) .12s both;
}

.reviews-section {
    animation: revealUp .6s cubic-bezier(.23, 1, .32, 1) .25s both;
}

.related-section {
    animation: revealUp .6s cubic-bezier(.23, 1, .32, 1) .35s both;
}

/* ── Product Layout ────────────────────────────────────── */
.product-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: start;
}

/* ══════════════════════════════════════════════════════════
                GALLERY — Vertical Thumb Rail + Main Image
            ══════════════════════════════════════════════════════════ */
.product-gallery {
    position: sticky;
    top: 90px;
}

.gallery-container {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
}

/* Thumbnail Rail */
.thumb-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-height: 75vh;
    align-self: start;
}

.thumb-nav {
    width: 100%;
    height: 26px;
    border: none;
    background: linear-gradient(to bottom, rgba(250, 248, 245, 0.95), rgba(250, 248, 245, 0));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7d6b;
    font-size: 0.65rem;
    transition: all 0.3s;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.thumb-nav-down {
    background: linear-gradient(to top, rgba(250, 248, 245, 0.95), rgba(250, 248, 245, 0));
}

.thumb-rail.can-scroll-up .thumb-nav-up,
.thumb-rail.can-scroll-down .thumb-nav-down {
    opacity: 1;
    pointer-events: auto;
}

.thumb-nav:hover {
    color: var(--berr-gold);
}

.thumb-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    scrollbar-width: none;
    flex: 1;
    scroll-behavior: smooth;
}

.thumb-track::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    width: 64px;
    height: 72px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    opacity: 0.45;
    background: #f0ece6;
}

.thumb-item:hover {
    opacity: 0.75;
}

.thumb-item.active {
    border-color: var(--berr-gold);
    opacity: 1;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single-image: hide rail */
.gallery-container.single-image {
    grid-template-columns: 1fr;
}

.gallery-container.single-image .thumb-rail {
    display: none;
}

/* Main Image Area */
.main-image-wrap {
    position: relative;
    background: transparent;
}

.main-image-inner {
    width: 100%;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.main-image-inner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 75vh;
    object-fit: contain;
    transition: opacity .3s ease;
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.main-image-inner img.fading {
    opacity: 0;
}

.main-image-inner.is-zooming img {
    transform: scale(2.2);
    cursor: crosshair;
    transition: transform .15s ease-out;
}

.main-image-inner.is-zooming {
    cursor: crosshair;
}

/* Smooth exit from zoom */
.main-image-inner:not(.is-zooming) img {
    transition: opacity .3s ease, transform .25s ease-out;
}

/* Navigation Arrows */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 0.85rem;
    transition: all .3s cubic-bezier(.23, 1, .32, 1);
    opacity: 0;
    z-index: 3;
}

.main-image-wrap:hover .img-nav {
    opacity: 1;
}

.img-nav:hover {
    background: #1a1a1a;
    color: #fff;
}

.img-nav-prev {
    left: 12px;
}

.img-nav-next {
    right: 12px;
}

.img-nav:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Mobile: always show nav arrows + lightbox hint */
@media (hover: none) and (pointer: coarse) {
    .main-image-wrap .img-nav {
        opacity: 0.7;
    }

    .main-image-wrap .img-nav:active {
        opacity: 1;
        background: #1a1a1a;
        color: #fff;
    }

    .lightbox-hint {
        opacity: 0.7;
    }
}

/* Image Counter */
.img-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--berr-font-body);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    z-index: 3;
    pointer-events: none;
}

/* Lightbox hint */
.lightbox-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7d6b;
    font-size: 0.85rem;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s, background .3s;
    border: none;
}

.main-image-wrap:hover .lightbox-hint {
    opacity: 1;
}

.lightbox-hint:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Swipe Dot Indicators (mobile only) */
.swipe-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
}

.swipe-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d0ccc6;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s ease;
}

.swipe-dot.active {
    background: var(--berr-gold);
    transform: scale(1.3);
}

@media (max-width: 992px) {
    .swipe-dots {
        display: flex;
    }
}

/* No-image placeholder */
.gallery-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ece6;
    color: #d0ccc6;
}

.gallery-placeholder i {
    font-size: 4rem;
}

/* ── Product Details ───────────────────────────────────── */
.product-details {
    padding: 8px 0 0;
}

.product-breadcrumb {
    font-family: var(--berr-font-body);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #a39a8e;
    margin-bottom: 28px;
    font-weight: 500;
}

.product-breadcrumb a {
    color: #a39a8e;
    text-decoration: none;
    transition: color .3s;
}

.product-breadcrumb a:hover {
    color: var(--berr-gold);
}

.product-breadcrumb span {
    color: #1a1a1a;
}

.product-name {
    font-family: var(--berr-font-display);
    font-size: 2.6rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 22px;
    line-height: 1.12;
    letter-spacing: -.5px;
}

/* Price */
.product-price-display {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8e3dc;
}

.price-current {
    font-family: var(--berr-font-body);
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: .5px;
}

.price-original {
    font-family: var(--berr-font-body);
    font-size: 1.1rem;
    color: #b8b0a5;
    text-decoration: line-through;
}

.price-badge {
    font-family: var(--berr-font-body);
    background: none;
    color: var(--berr-gold);
    padding: 0;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.product-short-desc {
    font-family: 'Jost', sans-serif;
    font-size: .95rem;
    color: #6b6358;
    line-height: 1.85;
    margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════
               VARIANTS — Enhanced Selection
               ══════════════════════════════════════════════════════════ */
.variant-section {
    margin-bottom: 24px;
}

.variant-label {
    font-family: var(--berr-font-body);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.variant-label .selected-value {
    font-weight: 400;
    color: #8a7d6b;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Visual Swatches (color, pattern) */
.variant-swatch {
    width: 56px;
    height: 56px;
    border: 2px solid #e8e3dc;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.variant-swatch:hover {
    border-color: #8a7d6b;
}

.variant-swatch.selected {
    border-color: var(--berr-gold);
    box-shadow: 0 0 0 1px var(--berr-gold);
}

.variant-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-swatch .color-circle {
    width: 100%;
    height: 100%;
}

.variant-swatch .swatch-label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--berr-font-body);
    font-size: 9px;
    white-space: nowrap;
    opacity: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity .3s;
}

.variant-swatch:hover .swatch-label {
    opacity: 1;
}

/* Size / Text Buttons */
.size-btn {
    min-width: 52px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #e0dcd6;
    background: transparent;
    font-family: var(--berr-font-body);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
}

.size-btn:hover {
    border-color: #8a7d6b;
}

.size-btn.selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

/* Unavailable */
.variant-swatch.unavailable,
.size-btn.unavailable,
.variant-btn.unavailable {
    opacity: .2;
    pointer-events: none;
    position: relative;
}

.size-btn.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-15deg);
}

/* Legacy variant button */
.variant-btn {
    padding: 10px 22px;
    border: 1px solid #e0dcd6;
    background: transparent;
    font-family: var(--berr-font-body);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .3s;
}

.variant-btn:hover,
.variant-btn.selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

/* Variant info strip */
.variant-info-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #f5f1eb;
    margin-bottom: 24px;
    font-family: var(--berr-font-body);
    font-size: .78rem;
    letter-spacing: 1px;
    color: #8a7d6b;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
}

.variant-info-strip.visible {
    opacity: 1;
    max-height: 60px;
    padding: 10px 14px;
}

.variant-info-strip i {
    color: var(--berr-gold);
}

/* ── Quantity ──────────────────────────────────────────── */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.quantity-label {
    font-family: var(--berr-font-body);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0dcd6;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .2s;
    color: #1a1a1a;
}

.qty-btn:hover {
    background: #f0ece6;
}

.qty-input {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid #e0dcd6;
    border-right: 1px solid #e0dcd6;
    text-align: center;
    font-family: var(--berr-font-body);
    font-size: .95rem;
    font-weight: 600;
    background: transparent;
}

.qty-input:focus {
    outline: none;
}

/* ── Action Buttons ────────────────────────────────────── */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.btn-add-cart {
    flex: 1;
    padding: 18px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-family: var(--berr-font-body);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all .45s cubic-bezier(.23, 1, .32, 1);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--berr-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .55s cubic-bezier(.23, 1, .32, 1);
    z-index: 0;
}

.btn-add-cart:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-add-cart i,
.btn-add-cart span {
    position: relative;
    z-index: 1;
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    border: 1px solid #e0dcd6;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.btn-wishlist:hover {
    border-color: #e53935;
    color: #e53935;
}

.btn-wishlist.active {
    border-color: #e53935;
    background: #fef5f5;
}

.btn-wishlist.active i {
    color: #e53935;
}

/* ── Features ──────────────────────────────────────────── */
.product-features {
    display: flex;
    gap: 0;
    padding: 0;
    border-top: 1px solid #e8e3dc;
    border-bottom: 1px solid #e8e3dc;
    margin-bottom: 36px;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 12px;
    font-family: var(--berr-font-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a7d6b;
    text-decoration: none;
    transition: color .3s;
    text-align: center;
    border-right: 1px solid #e8e3dc;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    color: var(--berr-gold);
}

.feature-item i {
    font-size: 1.35rem;
    color: var(--berr-gold);
}

/* ── Description (full-width prose section below layout) ── */
.product-description-section {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid #e8e3dc;
}

.desc-section-label {
    font-family: var(--berr-font-body);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #a39a8e;
    margin-bottom: 8px;
    display: block;
}

.desc-section-heading {
    font-family: var(--berr-font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 40px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* Two-column on wide screens: thin gold rule | prose */
.desc-layout {
    display: grid;
    grid-template-columns: 1px 1fr;
    gap: 0 52px;
    max-width: 900px;
}

.desc-rule {
    background: var(--berr-gold);
    align-self: stretch;
    opacity: 0.5;
}

/* Prose content */
.product-prose {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #6b6358;
}

.product-prose p {
    margin: 0 0 18px;
    color: #6b6358 !important;
}

.product-prose p:last-child {
    margin-bottom: 0;
}

/* Custom bullet list — gold dash marker */
.product-prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.product-prose ul li {
    position: relative;
    padding-left: 22px;
    margin: 10px 0;
    color: #6b6358 !important;
}

.product-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 1px;
    background: var(--berr-gold);
}

/* Ordered list — gold counter */
.product-prose ol {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: prose-ol;
}

.product-prose ol li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    color: #6b6358 !important;
    counter-increment: prose-ol;
}

.product-prose ol li::before {
    content: counter(prose-ol);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--berr-gold);
    line-height: 1.85;
    width: 20px;
}

.product-prose span,
.product-prose td,
.product-prose div:not([class]) {
    color: #6b6358 !important;
}

.product-prose h2,
.product-prose h3 {
    font-family: var(--berr-font-display);
    font-weight: 400;
    color: #1a1a1a !important;
    margin: 28px 0 10px;
    line-height: 1.3;
}

.product-prose h2 {
    font-size: 1.3rem;
}

.product-prose h3 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Blockquote — top+bottom border, no side stripe */
.product-prose blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #faf8f5;
    border-top: 1px solid #e8e3dc;
    border-bottom: 1px solid #e8e3dc;
    color: #8a7d6b !important;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
}

.product-prose blockquote p {
    margin: 0;
    color: #8a7d6b !important;
}

.product-prose strong {
    color: #1a1a1a !important;
    font-weight: 600;
}

.product-prose em {
    font-style: italic;
}

.product-prose a {
    color: var(--berr-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Code inline */
.product-prose code {
    background: #f0ece6;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.88rem;
    color: #5a4f44;
}

/* Read-more collapse */
.prose-collapse {
    position: relative;
}

.prose-collapse.collapsed {
    max-height: 320px;
    overflow: hidden;
}

.prose-collapse.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #faf8f5);
    pointer-events: none;
}

.prose-read-more {
    display: none;
    margin-top: 20px;
    background: none;
    border: none;
    font-family: var(--berr-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
    gap: 8px;
    align-items: center;
    transition: color 0.2s ease;
}

.prose-read-more:hover {
    color: var(--berr-gold);
}

.prose-read-more i {
    transition: transform 0.3s ease;
    line-height: 1;
}

.prose-read-more.expanded i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .desc-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .desc-rule {
        display: none;
    }

    .product-description-section {
        margin-top: 40px;
        padding-top: 36px;
    }

    .desc-section-heading {
        margin-bottom: 24px;
    }
}

/* ── Reviews ───────────────────────────────────────────── */
.reviews-section {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid #e8e3dc;
}

.review-title {
    font-family: var(--berr-font-body);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #1a1a1a;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.review-stats-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.average-rating {
    font-family: var(--berr-font-body);
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stars-display {
    color: #d4a853;
    font-size: 1rem;
}

.review-count-display {
    font-family: var(--berr-font-body);
    color: #a39a8e;
    font-size: .85rem;
    letter-spacing: .5px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid #e8e3dc;
}

.review-item:first-child {
    padding-top: 0;
}

.review-avatar {
    width: 46px;
    height: 46px;
    background: #f0ece6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--berr-font-body);
    font-weight: 700;
    color: #8a7d6b;
    font-size: 1.1rem;
    flex-shrink: 0;
    border-radius: 50%;
}

.review-content {
    flex: 1;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reviewer-name {
    font-family: var(--berr-font-body);
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 10px;
    font-size: .9rem;
    letter-spacing: .5px;
}

.review-date {
    font-family: var(--berr-font-body);
    color: #b8b0a5;
    font-size: .78rem;
    letter-spacing: .5px;
}

.review-rating {
    color: #d4a853;
    font-size: .85rem;
    margin-bottom: 10px;
}

.review-body-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-size: .95rem;
}

.review-text {
    font-family: 'Jost', sans-serif;
    color: #6b6358;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: .9rem;
}

.review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.helpful-text {
    font-family: var(--berr-font-body);
    font-size: .72rem;
    color: #a39a8e;
    margin-right: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.helpful-btn,
.not-helpful-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #e0dcd6;
    background: transparent;
    cursor: pointer;
    font-family: var(--berr-font-body);
    font-size: .75rem;
    color: #8a7d6b;
    transition: all .3s;
    letter-spacing: .5px;
}

.helpful-btn:hover,
.not-helpful-btn:hover {
    border-color: var(--berr-gold);
    color: var(--berr-gold);
}

.helpful-btn.voted,
.not-helpful-btn.voted {
    border-color: var(--berr-gold);
    background: rgba(var(--berr-gold-rgb), .06);
    color: var(--berr-gold);
}

.helpful-count,
.not-helpful-count {
    font-size: .72rem;
    opacity: .7;
}

/* Review Form */
.review-form-container {
    background: #f5f1eb;
    padding: 32px;
    margin-bottom: 32px;
    display: none;
}

.review-form-container.active {
    display: block;
}

.review-form-container h3 {
    font-family: var(--berr-font-body);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--berr-font-body);
    font-weight: 600;
    font-size: .78rem;
    color: #1a1a1a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0dcd6;
    background: #fff;
    font-family: 'Jost', sans-serif;
    font-size: .9rem;
    color: #1a1a1a;
    transition: border-color .3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--berr-gold);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.4rem;
    color: #e0dcd6;
    transition: color .2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
    color: #d4a853;
}

/* ── Related Products ──────────────────────────────────── */
.related-section {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #e8e3dc;
}

.section-title {
    font-family: var(--berr-font-body);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 48px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--berr-gold);
    margin: 14px auto 0;
}

.related-section .products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-section .product-card {
    max-width: 100%;
}

.related-section .product-image-wrapper {
    aspect-ratio: 3 / 4;
}

.related-section .product-title {
    font-size: 14px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .product-layout {
        gap: 48px;
    }

    .product-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .product-details {
        padding: 0;
    }

    .product-name {
        font-size: 2rem;
    }

    /* Gallery: thumbs go horizontal below */
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .thumb-rail {
        flex-direction: row;
        max-height: none;
        order: 2;
        gap: 0;
    }

    .thumb-track {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .thumb-item {
        width: 64px;
        height: 64px;
    }

    .thumb-nav {
        display: none;
    }

    .related-section .products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 90px 0 60px;
    }

    .product-name {
        font-size: 1.7rem;
    }

    .price-current {
        font-size: 1.6rem;
    }

    .product-features {
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 1 1 calc(50% - 1px);
        border-bottom: 1px solid #e8e3dc;
    }

    .feature-item:nth-child(2) {
        border-right: none;
    }

    .feature-item:last-child {
        border-right: none;
        border-bottom: none;
    }

    .related-section .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .thumb-item {
        width: 56px;
        height: 56px;
    }

    .img-nav {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .product-page {
        padding: 80px 0 50px;
    }

    .product-layout {
        gap: 24px;
    }

    .product-name {
        font-size: 1.4rem;
        letter-spacing: 0;
        margin-bottom: 16px;
    }

    .product-breadcrumb {
        font-size: .65rem;
        margin-bottom: 18px;
        letter-spacing: 2px;
    }

    .product-price-display {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .product-short-desc {
        font-size: .88rem;
        margin-bottom: 24px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-wishlist {
        width: 100%;
        height: 48px;
    }

    .btn-add-cart {
        padding: 16px 24px;
    }

    .variant-swatch {
        width: 48px;
        height: 48px;
    }

    .variant-section {
        margin-bottom: 20px;
    }

    .quantity-section {
        margin-bottom: 24px;
    }

    .review-item {
        gap: 14px;
    }

    .review-avatar {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }

    .review-meta {
        flex-direction: column;
        gap: 4px;
    }

    .reviews-section {
        margin-top: 50px;
        padding-top: 36px;
    }

    .main-image-inner img {
        max-height: 55vh;
    }

    .thumb-item {
        width: 48px;
        height: 48px;
    }

    .img-nav {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .description-section {
        padding-top: 28px;
    }
}
</content>
</invoke>