/* =========================================================
   Product Detail
   ========================================================= */

.product-detail {
    padding: 38px 0 120px;
    background: #ffffff;
    color: #292825;
}

.product-detail__shell {
    width: min(100%, 1080px);
}


/* =========================================================
   Hero Title
   ========================================================= */

.product-detail__hero-header {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.product-detail__hero-title {
    margin: 0;
    color: #1f211f;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.05em;
}


/* =========================================================
   Gallery
   ========================================================= */

.product-gallery {
    position: relative;
    width: min(100%, 860px);
    margin-inline: auto;
}

.product-gallery__track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    border-radius: 18px;
    background: #f5f5f2;

    -webkit-overflow-scrolling: touch;
}

.product-gallery__track::-webkit-scrollbar {
    display: none;
}

.product-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 3;

    display: grid;
    place-items: center;

    margin: 0;
    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.product-gallery__slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.product-image-placeholder {
    color: #aaa69e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.product-gallery__counter {
    position: absolute;
    right: 14px;
    bottom: 14px;

    min-width: 48px;
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(30, 31, 29, 0.72);
    backdrop-filter: blur(6px);

    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
}

.product-gallery__counter[hidden] {
    display: none;
}


/* =========================================================
   Purchase Information
   ========================================================= */

.product-purchase {
    width: min(100%, 760px);
    margin: 34px auto 0;
}

.product-purchase__heading {
    margin-bottom: 10px;
}

.product-purchase__title {
    margin: 0;

    color: #252623;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.product-purchase__brand {
    margin: 9px 0 0;

    color: #85817a;

    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   Price
   ========================================================= */

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0;

    color: #252623;
}

.product-price__prefix {
    color: #77736d;
    font-size: 0.8125rem;
}

.product-price__current {
    display: inline-flex;
    align-items: baseline;

    color: #20211f;

    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: visible;
}

.product-price__currency {
    margin-right: 3px;
    padding: 0 1px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.product-price__compare {
    color: #98948d;

    font-size: 1rem;
    font-weight: 500;

    text-decoration-thickness: 1px;
    text-decoration-color: #8f8b84;
}


/* =========================================================
   Variants
   ========================================================= */

.variant-selector {
    margin-top: 22px;
}

.variant-selector__strip {
    display: flex;
    gap: 8px;

    overflow-x: auto;

    padding: 2px 2px 5px;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.variant-selector__strip::-webkit-scrollbar {
    display: none;
}

.variant-selector__button {
    flex: 0 0 78px;
    width: 78px;

    padding: 0;

    overflow: hidden;

    border: 1px solid #dfdcd6;
    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 3px 10px rgba(32, 45, 39, 0.07);
}

.variant-selector__button:hover {
    border-color: #dfdcd6;
}

.variant-selector__button[aria-pressed="true"] {
    border-color: #52634e;
    box-shadow: 0 0 0 1px #52634e;
}

.variant-selector__media {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1;

    overflow: hidden;

    background: #f7f5f0;
}

.variant-selector__media img {
    width: 100%;
    height: 100%;

    display: block;

    padding: 4px;
    object-fit: contain;
}

.variant-selector__placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: #aaa69f;

    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.variant-selector__value {
    display: block;
    width: 100%;
    padding: 7px 5px 8px;

    overflow: hidden;

    background: #ffffff;

    color: #282925;

    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    text-overflow: ellipsis;
    white-space: nowrap;

    pointer-events: none;
}

.variant-selector__status {
    margin: 7px 2px 0;
    color: #726d65;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
}


/* =========================================================
   Pre-order
   ========================================================= */

.product-preorder {
    display: inline-flex;

    margin: 17px 0 0;
    padding: 6px 10px;

    border: 1px solid #ddd2ad;
    border-radius: 999px;

    background: #fbf7e8;

    color: #76652c;

    font-size: 0.6875rem;
    font-weight: 600;
}

.product-preorder[hidden] {
    display: none;
}


/* =========================================================
   Quantity
   ========================================================= */

.product-cart-form {
    margin: 0;
}

.product-quantity-row {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 20px;
}

.product-quantity-row__label {
    color: #65625c;

    font-size: 0.75rem;
    font-weight: 600;
}

.product-quantity {
    display: grid;
    grid-template-columns: 34px 42px 34px;

    height: 38px;

    overflow: hidden;

    border: 1px solid #dad7d1;
    border-radius: 8px;

    background: #ffffff;
}

.product-quantity__button {
    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    background: #ffffff;
    color: #353632;

    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
    overflow: visible;
}

.product-quantity__button:hover {
    background: #f4f4f1;
}

.product-quantity__input {
    width: 42px;

    padding: 0;

    border: 0;
    border-inline: 1px solid #e6e3dd;

    outline: none;

    background: #ffffff;

    color: #282925;

    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;

    appearance: textfield;
    -moz-appearance: textfield;
}

.product-quantity__input::-webkit-inner-spin-button,
.product-quantity__input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}


/* =========================================================
   Purchase Actions
   ========================================================= */

.product-actions {
    display: grid;
    grid-template-columns: minmax(82px, 0.65fr) 1fr 1fr;
    gap: 9px;

    margin-top: 22px;
}

.product-actions__wish,
.product-actions__buy,
.product-actions__cart {
    min-width: 0;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 13px;

    border-radius: 9px;

    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.25;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        opacity 150ms ease;
}


/* Wish */

.product-actions__wish {
    border: 1px solid #d9d6d0;

    background: #ffffff;
    color: #595650;
}

.product-actions__wish svg {
    width: 18px;
    height: 18px;
}

.product-actions__wish:hover {
    border-color: #bbb7b0;
    background: #f7f6f3;
}

.product-actions__wish--active {
    color: #8a5650;
}


/* Buy Now */

.product-actions__buy {
    border: 1px solid #b8d8e7;

    background: #e4f3fa;
    color: #25546b;
}

.product-actions__buy:hover:not(:disabled) {
    border-color: #9dcbdc;
    background: #d7edf7;
}


/* Cart */

.product-actions__cart {
    border: 1px solid #55725b;

    background: #55725b;
    color: #ffffff;
}

.product-actions__cart:hover:not(:disabled) {
    border-color: #48634e;
    background: #48634e;
}

.product-actions__buy:disabled,
.product-actions__cart:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}


/* =========================================================
   Cart Feedback
   ========================================================= */

.product-cart-feedback {
    min-height: 1.3em;

    margin: 11px 0 0;

    color: #6f6b65;

    font-size: 0.75rem;
    line-height: 1.5;
}

.product-cart-feedback a {
    color: #50614b;
    font-weight: 600;
}

@media (max-width: 720px) {
    .product-cart-feedback:not(:empty) {
        position: fixed;
        right: 12px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 1100;
        min-height: 0;
        margin: 0;
        padding: 11px 14px;
        border: 1px solid #d8c9b2;
        border-radius: 10px;
        background: rgba(255, 253, 249, 0.98);
        color: #4d402e;
        box-shadow: 0 10px 30px rgba(40, 32, 22, 0.16);
        backdrop-filter: blur(10px);
    }
}


/* =========================================================
   Shared Content Section
   ========================================================= */

.product-section {
    width: min(100%, 920px);

    margin: 80px auto 0;
    padding-top: 38px;

    border-top: 1px solid #e9e6e0;
}

.product-section__header {
    margin-bottom: 26px;
}

.product-section__header--action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.product-section__eyebrow {
    margin: 0 0 6px;

    color: #86827b;

    font-size: 0.6875rem;
    font-weight: 650;
    line-height: 1.4;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-section__header h2 {
    margin: 0;

    color: #282925;

    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}


/* =========================================================
   Description
   ========================================================= */

.product-description__body {
    max-width: 760px;

    color: #625f59;

    font-size: 0.9375rem;
    line-height: 1.85;
}


/* =========================================================
   Ratings & Reviews
   ========================================================= */

.product-reviews__content {
    min-height: 80px;
}

.product-review-summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 38px;
}

.product-review-summary__score strong {
    display: block;

    color: #252623;

    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.product-review-summary__stars {
    margin-top: 8px;

    color: #bb8a37;

    font-size: 1rem;
    letter-spacing: 0.08em;
}

.product-review-summary__count {
    margin-top: 6px;

    color: #8b8780;

    font-size: 0.75rem;
}

.product-review-list {
    display: grid;
    gap: 0;

    margin-top: 30px;
}

.product-review {
    padding: 24px 0;

    border-top: 1px solid #eeebe6;
}


/* =========================================================
   Product Facts
   ========================================================= */

.product-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.product-fact {
    min-width: 0;

    padding: 17px;

    border: 1px solid #ebe8e2;
    border-radius: 10px;

    background: #faf9f7;
}

.product-fact__label {
    display: block;

    color: #8d8982;

    font-size: 0.625rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-fact__value {
    display: block;

    margin-top: 6px;

    color: #383934;

    font-size: 0.8125rem;
    font-weight: 600;
}


/* =========================================================
   Questions
   ========================================================= */

.product-questions__list {
    border-top: 1px solid #ebe8e3;
}

.product-question {
    padding: 20px 0;

    border-bottom: 1px solid #ebe8e3;
}

.product-question__question {
    margin: 0;

    color: #343530;

    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.product-question__answer {
    margin: 8px 0 0;

    color: #6e6a64;

    font-size: 0.8125rem;
    line-height: 1.65;
}


/* =========================================================
   Specifications
   ========================================================= */

.product-specifications__groups {
    display: grid;
    gap: 36px;
}

.product-specification-group h3 {
    margin: 0 0 13px;

    color: #3c3d38;

    font-size: 0.875rem;
    font-weight: 600;
}

.product-specification-group dl {
    margin: 0;

    border-top: 1px solid #ebe8e3;
}

.product-specification-group dl > div {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;

    padding: 14px 0;

    border-bottom: 1px solid #ebe8e3;
}

.product-specification-group dt {
    color: #85817a;

    font-size: 0.8125rem;
}

.product-specification-group dd {
    margin: 0;

    color: #393a35;

    font-size: 0.8125rem;
    font-weight: 500;
}


/* =========================================================
   Suggestions
   ========================================================= */

.product-suggestions {
    width: 100%;
}

.product-suggestions__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* =========================================================
   Focus
   ========================================================= */

.product-detail button:focus-visible,
.product-detail a:focus-visible,
.product-detail input:focus-visible {
    outline: 3px solid rgba(77, 100, 75, 0.18);
    outline-offset: 3px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
    .product-facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-suggestions__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 720px) {
    .product-detail {
        padding: 22px 0 116px;
    }

    .product-detail__hero-header {
        margin-bottom: 20px;
        text-align: left;
    }

    .product-detail__hero-title {
        font-size: 2rem;
    }

    .product-gallery {
        width: calc(100% + 28px);
        margin-inline: -14px;
    }

    .product-gallery__track {
        border-radius: 0;
    }

    .product-gallery__counter {
        right: 12px;
        bottom: 12px;
    }

    .product-purchase {
        margin-top: 27px;
    }

    .product-purchase__title {
        font-size: 1.3rem;
    }

    .product-price__current {
        font-size: 1.55rem;
    }

    .variant-selector__button {
        flex-basis: 60px;
        width: 60px;
    }

    .product-section {
        margin-top: 60px;
        padding-top: 30px;
    }

    .product-section__header--action {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .product-facts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-review-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-specification-group dl > div {
        grid-template-columns: 1fr 1.25fr;
        gap: 18px;
    }


    /* Purchase actions */

    .product-actions {
        position: static;

        grid-template-columns:
            minmax(72px, 0.65fr)
            1fr
            1.15fr;

        gap: 7px;

        margin-top: 16px;
        padding: 0;
        border-top: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .product-actions__wish,
    .product-actions__buy,
    .product-actions__cart {
        min-height: 48px;
        padding-inline: 8px;

        font-size: 0.75rem;
    }

    .product-actions__wish svg {
        width: 17px;
        height: 17px;
    }


    /* Suggestions horizontal on mobile */

    .product-suggestions__track {
        display: flex;

        gap: 11px;

        overflow-x: auto;

        padding-bottom: 5px;

        scroll-snap-type: x proximity;
        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .product-suggestions__track::-webkit-scrollbar {
        display: none;
    }

    .product-suggestions__track > * {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }
}

/* Main image with overlay thumbnail rail */
.product-detail .product-gallery__track,
.product-detail .product-gallery__track:has(> .product-gallery__slide:only-child) {
    position: relative;
    display: block;
    width: 100%;
}

.product-detail .product-gallery__slide,
.product-detail .product-gallery__slide:first-child,
.product-detail .product-gallery__slide:only-child {
    grid-column: auto;
    grid-row: auto;
}

.product-detail .product-gallery__slide:first-child,
.product-detail .product-gallery__slide:only-child {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.product-detail .product-gallery__slide:not(:first-child) {
    position: absolute;
    left: 10px;
    z-index: 3;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(91, 72, 47, 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 3px 12px rgba(54, 43, 29, 0.12);
}

.product-detail .product-gallery__slide:nth-child(2) { top: 10px; }
.product-detail .product-gallery__slide:nth-child(3) { top: 82px; }
.product-detail .product-gallery__slide:nth-child(4) { top: 154px; }
.product-detail .product-gallery__slide:nth-child(5) { top: 226px; }
.product-detail .product-gallery__slide:nth-child(6) { top: 298px; }
.product-detail .product-gallery__slide:nth-child(7) { top: 370px; }
.product-detail .product-gallery__slide:nth-child(8) { top: 442px; }

.product-detail .product-gallery__slide:first-child img,
.product-detail .product-gallery__slide:only-child img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain !important;
}

.product-detail .product-question-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px;
}

.product-detail .product-question-form label {
    grid-column: 1 / -1;
}

.product-detail .product-question-form textarea {
    min-height: 42px;
    max-height: 42px;
    padding: 10px;
    resize: none;
}

.product-detail .product-question-form button {
    min-height: 42px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .product-detail .product-gallery__slide:not(:first-child) {
        left: 6px;
        width: 42px;
        height: 42px;
        border-radius: 6px;
    }

    .product-detail .product-gallery__slide:nth-child(2) { top: 6px; }
    .product-detail .product-gallery__slide:nth-child(3) { top: 54px; }
    .product-detail .product-gallery__slide:nth-child(4) { top: 102px; }
    .product-detail .product-gallery__slide:nth-child(5) { top: 150px; }
    .product-detail .product-gallery__slide:nth-child(6) { top: 198px; }
    .product-detail .product-gallery__slide:nth-child(7) { top: 246px; }
    .product-detail .product-gallery__slide:nth-child(8) { top: 294px; }

    .product-detail .product-question-form {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 8px;
    }

    .product-detail .product-question-form button {
        padding-inline: 10px;
        font-size: 0.7rem;
    }
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 420px) {
    .product-detail__hero-title {
        font-size: 1.75rem;
    }

    .product-facts__grid {
        gap: 8px;
    }

    .product-fact {
        padding: 14px;
    }

    .product-specification-group dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .product-actions {
        grid-template-columns:
            68px
            minmax(0, 0.95fr)
            minmax(0, 1.15fr);
    }

    .product-actions__wish {
        flex-direction: column;
        gap: 2px;

        font-size: 0.625rem;
    }

    .product-actions__buy,
    .product-actions__cart {
        font-size: 0.6875rem;
    }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .variant-selector__button,
    .product-actions__wish,
    .product-actions__buy,
    .product-actions__cart,
    .product-quantity__button {
        transition: none;
    }
}

/* Product detail presentation */
.product-detail {
    background: #f5f1e9;
}

.product-detail .product-detail__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    align-items: start;
    gap: 26px;
    width: min(calc(100% - 32px), 1180px);
}

.product-detail__hero-header {
    display: none;
}

.product-detail .product-gallery {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-detail .product-gallery__track {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-auto-rows: 78px;
    gap: 10px;
    overflow: visible;
    border-radius: 12px;
    background: transparent;
    scroll-snap-type: none;
}

.product-detail .product-gallery__track:has(> .product-gallery__slide:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.product-detail .product-gallery__slide {
    grid-column: 1;
    width: 78px;
    height: 78px;
    aspect-ratio: 1;
    border: 0;
    border-radius: 9px;
    background: transparent;
    scroll-snap-align: none;
}

.product-detail .product-gallery__slide:first-child {
    grid-column: 2;
    grid-row: 1 / span 6;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 12px;
}

.product-detail .product-gallery__slide:only-child {
    grid-column: 1 / -1;
}

.product-detail .product-gallery__slide img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain !important;
    object-position: center;
}

.product-detail .product-gallery__slide:first-child img {
    padding: 14px;
}

.product-detail .product-gallery__counter {
    display: none;
}

.product-detail .product-purchase {
    position: sticky;
    top: 88px;
    width: 100%;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(74, 62, 45, 0.1);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 18px 50px rgba(70, 58, 39, 0.08);
}

.product-detail .product-purchase__title {
    color: #30291f;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
}

.product-detail .product-price__current {
    color: #80663f;
}

.product-detail .product-quantity,
.product-detail .product-quantity__button,
.product-detail .product-quantity__input {
    border-color: #ded2be;
    background: #f8f2e8;
}

.product-detail .product-actions__buy {
    border-color: #d3bea0;
    background: #eee1ce;
    color: #58462e;
}

.product-detail .product-actions__buy:hover:not(:disabled) {
    border-color: #bda47e;
    background: #e5d3b8;
}

.product-detail .product-actions__cart {
    border-color: #a88656;
    background: #a88656;
    color: #fff;
}

.product-detail .product-actions__cart:hover:not(:disabled) {
    border-color: #8f7045;
    background: #8f7045;
}

.product-detail .product-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 34px;
    padding: 32px;
    border: 1px solid rgba(74, 62, 45, 0.09);
    border-radius: 18px;
    background: #fffdf9;
}

.product-detail .product-tabs {
    padding-top: 0;
    overflow: hidden;
}

.product-tabs__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 -32px;
    border-bottom: 1px solid #e5dac8;
    background: #f5ede0;
}

.product-tabs__button {
    min-width: 0;
    padding: 17px 12px;
    border: 0;
    border-right: 1px solid #e5dac8;
    background: transparent;
    color: #76664f;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.product-tabs__button:last-child {
    border-right: 0;
}

.product-tabs__button[aria-selected="true"] {
    background: #fffdf9;
    color: #4f3f29;
    box-shadow: inset 0 -3px 0 #a88656;
}

.product-tabs__panel {
    padding-top: 28px;
}

.product-tabs__panel[hidden] {
    display: none;
}

.product-tabs__empty {
    margin: 0;
    color: #7c7367;
    font-size: 0.9rem;
}

.product-specifications .product-specification-group dl > div {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    padding: 14px 10px;
    border-bottom: 1px solid #e4d8c5;
}

.product-specifications .product-specification-group dl > div:nth-child(even) {
    background: #faf5ec;
}

.product-specifications .product-specification-group dt {
    color: #756750;
    font-weight: 600;
}

.product-specifications .product-specification-group dd {
    color: #332b20;
}

.product-questions__status {
    color: #897a65;
    font-size: 0.78rem;
}

.product-question-form {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid #e4d8c5;
    border-radius: 12px;
    background: #faf5ec;
}

.product-question-form label {
    color: #4f402c;
    font-size: 0.85rem;
    font-weight: 650;
}

.product-question-form textarea {
    width: 100%;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d8c9b2;
    border-radius: 8px;
    background: #fff;
    color: #30291f;
    min-height: 64px;
    max-height: 120px;
}

.product-question-form button {
    justify-self: start;
    padding: 8px 14px;
    border: 1px solid #a88656;
    border-radius: 8px;
    background: #a88656;
    color: #fff;
    font-weight: 650;
}

.product-question {
    padding: 18px 0;
    border-top: 1px solid #e5dac8;
}

.product-question h3 {
    margin: 0;
    color: #3d3325;
    font-size: 0.95rem;
}

.product-question p {
    margin: 8px 0 0;
    color: #6f6455;
    line-height: 1.65;
}

.product-question .product-question__pending {
    color: #9a7a48;
    font-style: italic;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-badge,
.product-price__discount {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #8b6b3f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-price__discount[hidden] { display: none; }

.product-price__discount {
    background: #f0e5d2;
    color: #72552f;
    text-transform: none;
}

.product-social-proof {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: #786e61;
    font-size: 0.78rem;
}

.product-social-proof > span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 7px 2px 0;
    border-radius: 50%;
    background: #b8aa96;
}

.product-social-proof__rating {
    color: #a06d22;
    font-weight: 700;
}

@media (max-width: 900px) {
    .product-detail .product-detail__shell {
        grid-template-columns: 1fr;
    }

    .product-detail .product-purchase {
        position: static;
    }
}

@media (max-width: 720px) {
    .product-detail {
        padding-top: 12px;
    }

    .product-detail .product-detail__shell {
        width: min(calc(100% - 20px), 560px);
        gap: 10px;
    }

    .product-detail .product-gallery {
        width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 0;
    }

    .product-detail .product-gallery__track {
        grid-template-columns: 54px minmax(0, 1fr);
        grid-auto-rows: 54px;
        gap: 7px;
    }

    .product-detail .product-gallery__slide {
        width: 54px;
        height: 54px;
        border-radius: 7px;
    }

    .product-detail .product-gallery__slide:first-child {
        grid-row: 1 / span 3;
        border-radius: 10px;
    }

    .product-detail .product-gallery__slide:first-child img {
        padding: 8px;
    }

    .product-detail .product-purchase {
        padding: 22px 18px 24px;
        border-radius: 22px;
    }

    .product-detail .product-section {
        margin-top: 10px;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .product-tabs__list {
        margin: 0 -18px;
        overflow-x: auto;
    }

    .product-tabs__button {
        min-width: 112px;
        padding: 14px 8px;
        font-size: 0.72rem;
    }

    .product-tabs__panel {
        padding-top: 22px;
    }

    .product-specifications .product-specification-group dl > div {
        grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
        padding-inline: 6px;
    }

    .product-detail .product-suggestions__track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .product-detail .product-suggestions__track > * {
        min-width: 0;
        width: 100%;
        flex: none;
    }

    .product-detail .product-question-form {
        padding: 11px;
    }
}

@media (max-width: 420px) {
    .product-badges {
        margin-bottom: 8px;
    }
}

/* Final gallery and compact question layout overrides */
.product-detail .product-gallery__track,
.product-detail .product-gallery__track:has(> .product-gallery__slide:only-child) {
    position: relative;
    display: block;
    width: 100%;
}

.product-detail .product-gallery__slide:first-child,
.product-detail .product-gallery__slide:only-child {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    grid-column: auto;
    grid-row: auto;
}

.product-detail .product-gallery__slide:not(:first-child) {
    position: absolute;
    left: 10px;
    z-index: 3;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(91, 72, 47, 0.22);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 3px 12px rgba(54, 43, 29, 0.12);
}

.product-detail .product-gallery__slide:nth-child(2) { top: 10px; }
.product-detail .product-gallery__slide:nth-child(3) { top: 82px; }
.product-detail .product-gallery__slide:nth-child(4) { top: 154px; }
.product-detail .product-gallery__slide:nth-child(5) { top: 226px; }
.product-detail .product-gallery__slide:nth-child(6) { top: 298px; }
.product-detail .product-gallery__slide:nth-child(7) { top: 370px; }
.product-detail .product-gallery__slide:nth-child(8) { top: 442px; }

.product-detail .product-gallery__slide:first-child img,
.product-detail .product-gallery__slide:only-child img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain !important;
}

.product-detail .product-question-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px;
}

.product-detail .product-question-form label { grid-column: 1 / -1; }
.product-detail .product-question-form textarea { min-height: 42px; max-height: 42px; padding: 10px; resize: none; }
.product-detail .product-question-form button { min-height: 42px; white-space: nowrap; }

@media (max-width: 720px) {
    .product-detail .product-gallery__slide:first-child,
    .product-detail .product-gallery__slide:only-child {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-detail .product-gallery__slide:not(:first-child) { left: 6px; width: 42px; height: 42px; }
    .product-detail .product-gallery__slide:nth-child(2) { top: 6px; }
    .product-detail .product-gallery__slide:nth-child(3) { top: 54px; }
    .product-detail .product-gallery__slide:nth-child(4) { top: 102px; }
    .product-detail .product-gallery__slide:nth-child(5) { top: 150px; }
    .product-detail .product-gallery__slide:nth-child(6) { top: 198px; }
    .product-detail .product-gallery__slide:nth-child(7) { top: 246px; }
    .product-detail .product-gallery__slide:nth-child(8) { top: 294px; }
    .product-detail .product-question-form { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; }
    .product-detail .product-question-form button { padding-inline: 10px; font-size: 0.7rem; }
}

/* Keep every product and variant thumbnail available while selecting variants. */
.product-detail .product-gallery__track { display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; align-items: start; }
.product-detail .product-gallery__track > .product-gallery__slide:first-child { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; }
.product-detail .product-gallery__thumbnails { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 8px; max-height: min(70vw, 520px); overflow-y: auto; }
.product-gallery__thumbnail { flex: 0 0 auto; width: 70px; height: 70px; padding: 3px; border: 1px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; }
.product-gallery__thumbnail[aria-pressed="true"] { border-color: #a88656; }
.product-gallery__thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.variant-selector__button { position: relative; }
.variant-selector__quantity { position: absolute; z-index: 2; top: 0; right: 0; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50%; background: #264b40; color: white; font-size: 11px; line-height: 19px; text-align: center; }
@media (max-width: 720px) {
    .product-detail .product-gallery__track { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 8px; }
    .product-detail .product-gallery__track > .product-gallery__slide:first-child { grid-column: 1; grid-row: 1; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-inline: auto; }
    .product-detail .product-gallery__track > .product-gallery__slide:first-child img { display: block; width: 100%; max-width: 100%; height: 100%; max-height: none; padding: 0; object-fit: contain !important; }
    .product-detail .product-gallery__track .product-gallery__thumbnails { grid-column: 1; grid-row: 2; display: flex; width: 100%; min-width: 0; flex-direction: row; flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
    .product-gallery__thumbnail { width: 54px; height: 54px; }
}
.product-review__photo{display:inline-flex;margin:4px 0 8px;max-width:100%}.product-review__photo img{width:80px;height:80px;object-fit:contain;border:1px solid #e9e3df;border-radius:8px;background:#fff}
