/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px 20px;
}

.details > img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: 18px;
}


/* =========================================================
   PRODUCT DETAILS LAYOUT
   ========================================================= */

.product-details-page {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 88px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(340px, .92fr);

    align-items: start;

    gap: clamp(36px, 6vw, 86px);
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.product-gallery-main {
    width: 100%;
    aspect-ratio: auto;

    height: min(78vh, 780px);
    max-height: calc(100svh - 100px);

    overflow: hidden;

    background: #f1e7e3;
}

.product-gallery-main img,
.product-gallery-main video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.product-gallery-main img {
    cursor: zoom-in;
}

.product-gallery-main video {
    background: #f1e7e3;
}

.product-gallery-main:has(> video) {
    background: #f1e7e3;
}

.product-gallery-main > :fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: none;

    background: #000;

    object-fit: contain;
}

.product-gallery-placeholder {
    height: 100%;

    display: grid;
    place-items: center;

    color: #68142e;

    font:
        24px Georgia,
        "Times New Roman",
        serif;

    letter-spacing: 3px;
}


/* =========================================================
   GALLERY THUMBNAILS
   ========================================================= */

.product-gallery-thumbnails {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(74px, 92px));

    gap: 10px;

    margin-top: 12px;
}

.product-gallery-thumbnail {
    position: relative;

    aspect-ratio: .82;

    padding: 0;

    overflow: hidden;

    border: 1px solid transparent;

    background: #f1e7e3;

    cursor: pointer;
}

.product-gallery-thumbnail.active {
    border-color: #68142e;
}

.product-gallery-thumbnail img,
.product-gallery-thumbnail video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.gallery-video-badge {
    position: absolute;

    right: 5px;
    bottom: 5px;

    padding: 3px 5px;

    background: rgba(48, 35, 33, .82);

    color: #fff;

    font-size: 8px;

    letter-spacing: .08em;
}


/* =========================================================
   IMAGE ZOOM
   ========================================================= */

.product-image-zoom {
    width: 100vw;
    height: 100vh;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 0;

    background: rgb(36 27 27 / 94%);
}

.product-image-zoom::backdrop {
    background: rgb(36 27 27 / 94%);
}

.product-image-zoom-toolbar {
    position: absolute;

    z-index: 1;

    top: 18px;
    right: 22px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.product-image-zoom-toolbar button {
    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 22px;

    background: rgb(255 255 255 / 94%);

    color: #451020;

    font: inherit;
    font-size: 16px;

    cursor: pointer;
}

.product-image-zoom-toolbar button:hover {
    background: #f4e4e8;
}

.product-image-zoom-toolbar .product-image-zoom-close {
    margin-left: 8px;
    font-size: 25px;
}

.product-image-zoom-stage {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    overflow: auto;

    padding: 72px 24px 24px;

    box-sizing: border-box;
}

.product-image-zoom-stage img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transform-origin: center;

    transition:
        transform .16s ease;

    cursor: zoom-in;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.product-details-info {
    padding-top: 12px;
}

.product-details-category {
    margin: 0 0 12px;

    color: #80645f;

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.product-details-info h1 {
    margin: 0 0 18px;

    color: #302522;

    font:
        400 clamp(34px, 4vw, 52px)
        Georgia,
        "Times New Roman",
        serif;

    line-height: 1.08;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-details-pricing {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.product-details-price {
    color: #64152a;

    font-size: 22px;

    font-weight: 700;
}

.product-details-regular-price {
    color: #8f8582;

    font-size: 16px;

    text-decoration: line-through;
}

.product-details-sale-badge {
    padding: 5px 8px;

    background: #f8e6e8;

    color: #8f2638;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   TAX / SHIPPING
   ========================================================= */

.product-tax-note {
    margin: 9px 0 18px;

    color: #80645f;

    font-size: 12px;
}

.product-tax-note a {
    color: #68142e;

    text-decoration: underline;

    text-underline-offset: 3px;
}

.product-shipping-promos {
    margin: 18px 0 22px;

    padding: 14px 16px;

    background: #f8eae7;
}

.product-shipping-promos p {
    margin: 5px 0;

    color: #55494d;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   SIZE SELECTOR
   ========================================================= */

.product-size-fieldset {
    margin: 4px 0 16px;

    padding: 0;

    border: 0;
}

.product-size-fieldset legend {
    margin: 0 0 14px;

    padding: 0;

    color: #302522;

    font-size: 13px;

    font-weight: 700;
}

.product-size-fieldset legend span {
    margin-left: 8px;

    color: #80645f;

    font-weight: 400;
}


/* Size grid */

.product-size-options {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(82px, 1fr));

    gap: 10px;

    max-width: 430px;
}


/* Individual size */

.product-size-option {
    position: relative;

    width: 100%;
    min-width: 0;

    min-height: 58px;

    padding: 6px 5px;

    border: 1px solid #d8ccc8;

    border-radius: 2px;

    background: #fff;

    color: #302522;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


/* Size name */

.product-size-label {
    display: block;

    color: #302522;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .3px;
}


/* Price */

.product-size-price {
    display: block;

    color: #68142e;

    font-size: 11px;

    line-height: 1.2;

    font-weight: 600;

    white-space: nowrap;
}


/* Available */

.product-size-option.available {
    cursor: pointer;
}

.product-size-option.available:hover {
    border-color: #68142e;

    transform: translateY(-1px);
}


/* Selected */

.product-size-option.available.selected {
    border-color: #68142e;

    background: #fcf4f2;

    box-shadow:
        inset 0 0 0 1px #68142e;
}

.product-size-option.selected .product-size-label {
    color: #68142e;
}


/* Out of stock */

.product-size-option.unavailable {
    border-color: #e4ddda;

    background: #f6f3f1;

    color: #aaa09c;

    cursor: not-allowed;

    opacity: .78;
}


/* Out-of-stock size */

.product-size-option.unavailable
.product-size-label {
    color: #938985;

    text-decoration: none;
}


/* Out-of-stock text */

.product-size-option.unavailable
.product-size-stock {
    color: #a4263e;

    font-size: 10px;

    line-height: 1.2;

    font-weight: 500;

    white-space: nowrap;
}


/*
   IMPORTANT:
   Hide the old red ×.
   We no longer need it because
   "Out of stock" is enough.
*/

.product-size-option.unavailable
> span[aria-hidden="true"] {
    display: none;
}


/* Size error */

.product-size-error {
    display: block;

    min-height: 18px;

    margin-top: 7px;

    color: #8f2638;

    font-size: 12px;
}


/* =========================================================
   COLOR
   ========================================================= */

.product-details-colors {
    margin: 8px 0;

    color: #685b57;

    font-size: 13px;
}


/* =========================================================
   STOCK
   ========================================================= */

.product-details-stock {
    margin: 0 0 18px;

    color: #356b3c;

    font-size: 13px;

    font-weight: 700;
}

.product-details-out-of-stock {
    display: inline-block;

    margin: 8px 0;

    padding: 12px 16px;

    background: #f8e6e8;

    color: #8f2638;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.product-details-description {
    margin: 24px 0;

    color: #685b57;

    line-height: 1.8;

    white-space: pre-line;
}


/* =========================================================
   PRODUCT FORM
   ========================================================= */

.product-details-form {
    display: grid;

    gap: 12px;
}

.product-details-form label {
    margin: 8px 0 -4px;
}

.product-details-form select,
.product-details-form input {
    max-width: 280px;

    min-height: 44px;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.product-quantity-control {
    width: 106px;
    height: 40px;

    display: grid;

    grid-template-columns:
        30px minmax(0, 1fr) 30px;

    border: 1px solid #d8ccc8;
    box-sizing: border-box;
}

.product-quantity-control button {
    min-width: 0;
    min-height: 0;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;

    color: #302522;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}

.product-quantity-control input {
    width: 100%;
    height: 38px;
    min-height: 0;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    line-height: 38px;

    appearance: textfield;

    -moz-appearance: textfield;
}

.product-quantity-control input::-webkit-inner-spin-button,
.product-quantity-control input::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.product-quantity-error {
    min-height: 1em;
}


/* =========================================================
   PURCHASE BUTTONS
   ========================================================= */

.product-purchase-buttons {
    display: grid;

    gap: 10px;

    margin-top: 12px;
}

.product-purchase-buttons .button {
    width: 100%;

    min-height: 50px;

    margin: 0;

    border-radius: 0;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}

.product-purchase-buttons
.product-add-button {
    background: #fff;

    border: 1px solid #68142e;

    color: #68142e;
}

.product-purchase-buttons
.product-buy-button {
    background: #68142e;

    color: #fff;
}

.product-details-form .button {
    width: min(100%, 360px);

    margin-top: 12px;

    border-radius: 0;

    background: #68142e;

    padding: 16px 22px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}

.product-details-form
.product-purchase-buttons
.product-add-button {
    background: #fff;

    border: 1px solid #68142e;

    color: #68142e;
}

.product-details-form
.product-purchase-buttons
.product-buy-button {
    background: #68142e;

    border: 1px solid #68142e;

    color: #fff;
}


/* =========================================================
   CHECKOUT ASSURANCES
   ========================================================= */

.product-checkout-assurances {
    display: flex;

    flex-wrap: wrap;

    gap: 8px 18px;

    margin-top: 11px;
}

.product-checkout-assurances p {
    margin: 0;

    color: #506c4e;

    font-size: 11px;
}


/* =========================================================
   TOAST / ERRORS
   ========================================================= */

.product-purchase-warning,
.product-size-error,
.product-quantity-error {
    color: #a1263b;

    font-size: 13px;
}

.product-purchase-warning {
    position: fixed;

    z-index: 9999;

    top: 20px;
    right: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    width: min(420px, calc(100vw - 40px));

    margin: 0;

    padding: 14px 16px;

    border-radius: 8px;

    border: 1px solid #edc1c8;

    background: #fff4f5;

    box-shadow:
        0 8px 28px
        rgb(39 18 23 / 16%);

    opacity: 0;

    pointer-events: none;

    transform: translateY(-12px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.product-purchase-warning.is-visible {
    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);
}

.product-toast-close {
    flex: 0 0 auto;

    border: 0;

    background: transparent;

    color: #68142e;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   BESTSELLERS
   ========================================================= */

.product-bestsellers {
    padding: 54px 24px 72px;

    background: #f8eae7;
}

.product-bestsellers-inner {
    width: min(1600px, 100%);

    margin: 0 auto;
}

.product-bestsellers-inner > h2 {
    margin: 0 0 26px;

    color: #302522;

    font:
        400 clamp(32px, 4vw, 46px)
        Georgia,
        "Times New Roman",
        serif;
}

.product-bestsellers-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 18px;
}

.product-bestseller-card {
    position: relative;
    min-width: 0;
}

.product-bestseller-link {
    display: block;
    color: #302522;

    text-decoration: none;
}

.product-related-wishlist-form {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
}

.product-related-wishlist {
    width: 38px;
    height: 38px;
    border: 1px solid #eaded9;
    border-radius: 50%;
    background: rgba(255, 253, 250, .94);
    color: #68142e;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.product-related-wishlist.is-saved {
    background: #68142e;
    color: #fff;
}

.product-bestseller-image-wrap {
    position: relative;

    aspect-ratio: .78;

    overflow: hidden;

    background: #e8ddd8;
}

.product-bestseller-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease;
}

.product-bestseller-card:hover img {
    transform: scale(1.04);
}

.product-bestseller-image-fallback {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            145deg,
            #f3e8e3,
            #e5d4ce
        );

    color: #68142e;

    font:
        18px Georgia,
        "Times New Roman",
        serif;

    letter-spacing: 2px;
}

.product-bestseller-category {
    display: block;

    margin-top: 12px;

    color: #80645f;

    font-size: 10px;

    letter-spacing: 1px;
}

.product-bestseller-card h3 {
    margin: 5px 0;

    font:
        400 17px/1.3
        Georgia,
        "Times New Roman",
        serif;
}

.product-bestseller-price {
    color: #68142e;

    font-size: 13px;

    font-weight: 700;
}

.product-bestseller-discount {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 6px 8px;

    background: #fffdf2;

    color: #8d4c3e;

    font-size: 10px;

    font-weight: 700;
}

.product-bestseller-pricing {
    display: flex;

    align-items: baseline;

    gap: 8px;
}

.product-bestseller-original-price {
    color: #8a7a75;

    font-size: 11px;

    text-decoration: line-through;
}


/* =========================================================
   CUSTOMER REVIEWS
   ========================================================= */

.product-reviews {
    width: min(1200px, calc(100% - 48px));

    margin: 0 auto 64px;

    padding: 38px 0 48px;

    border-top: 1px solid #e7deda;
}

.product-reviews-inner {
    max-width: 900px;

    margin: 0 auto;
}

.product-reviews h2 {
    margin: 0;

    color: #302321;

    font-family: Georgia, serif;

    font-size: 30px;

    font-weight: 400;
}

.product-reviews-empty {
    display: grid;

    justify-items: center;

    gap: 14px;

    padding: 34px 16px 18px;

    text-align: center;
}

.product-reviews-empty p {
    margin: 0;

    color: #514440;
}

.product-review-button {
    min-height: 42px;

    padding: 0 22px;

    border: 0;

    border-radius: 7px;

    background: #118b7c;

    color: #fff;

    font-weight: 700;

    cursor: pointer;
}

.product-review-form {
    display: grid;

    gap: 10px;

    max-width: 620px;

    margin: 12px auto 0;

    padding: 24px;

    border: 1px solid #e7deda;

    background: #fff;
}

.product-review-form[hidden] {
    display: none;
}

.product-review-form h3 {
    margin: 0 0 8px;

    font-family: Georgia, serif;

    font-weight: 400;
}

.product-review-form label {
    margin-top: 8px;

    font-size: 13px;

    font-weight: 700;
}

.product-review-form input,
.product-review-form select,
.product-review-form textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d9ceca;

    border-radius: 4px;

    background: #fff;

    color: #302321;

    font: inherit;
}

.product-review-note {
    margin: 4px 0 0;

    color: #786d69;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .product-bestsellers-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

.product-bestseller-image-fallback[hidden] {
    display: none;
}

@media (min-width: 1051px) {
    .product-bestsellers-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}


@media (max-width: 900px) {

    .product-size-options {
        grid-template-columns:
            repeat(4, minmax(76px, 1fr));

        max-width: 350px;
    }

}


@media (max-width: 760px) {

    .product-details-page {
        width: calc(100% - 36px);

        padding: 34px 0 58px;

        grid-template-columns: 1fr;

        gap: 32px;
    }

    .product-details-info {
        padding-top: 0;
    }

}


@media (max-width: 560px) {

    .product-size-options {
        grid-template-columns:
            repeat(3, minmax(82px, 1fr));

        max-width: 100%;

        gap: 8px;
    }

    .product-size-option {
        min-height: 54px;
        padding: 5px 4px;
    }

    .product-bestsellers {
        padding: 40px 18px 52px;
    }

    .product-bestsellers-grid {
        grid-auto-columns: minmax(155px, 46%);
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .product-bestseller-card { scroll-snap-align: start; }

    .product-bestseller-card h3 {
        font-size: 15px;
    }

}

.product-stock-panel {
    margin: 8px 0 14px;
    padding: 8px 10px;
    border-color: #eee7e3;
    background: #fdfbf9;
}

.product-stock-meter { height: 3px; margin: 6px 0 4px; }

@media (max-width: 760px) {
    .product-mobile-sticky-bar {
        bottom: calc(64px + env(safe-area-inset-bottom));
        padding-bottom: 9px;
    }
}

/* =========================================================
   DESKTOP PRODUCT DETAIL — REFERENCE / PREMIUM LAYOUT
   Gallery thumbnails LEFT + main image + product info RIGHT
   ========================================================= */

@media (min-width: 901px) {

    .product-details-page {
        width: min(1280px, calc(100% - 72px));
        padding: 34px 0 80px;
        grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
        gap: 54px;
        align-items: start;
    }

    .product-gallery {
        min-width: 0;
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .product-gallery-main {
        order: 2;
        width: 100%;
        height: min(680px, calc(100vh - 150px));
        min-height: 520px;
        max-height: 680px;
        background: #f5efec;
    }

    .product-gallery-main img,
    .product-gallery-main video {
        object-fit: contain;
    }

    .product-gallery-thumbnails {
        order: 1;
        width: 78px;
        max-height: min(680px, calc(100vh - 150px));
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin: 0;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: #cdbfba transparent;
    }

    .product-gallery-thumbnail {
        width: 76px;
        height: 92px;
        min-height: 92px;
        aspect-ratio: auto;
        flex: 0 0 auto;
        border: 1px solid #e0d5d1;
        background: #f5efec;
    }

    .product-gallery-thumbnail.active {
        border: 2px solid #68142e;
    }

    .product-details-info {
        padding-top: 4px;
    }

    .product-details-category {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .product-details-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .product-details-info h1 {
        margin: 0 0 12px;
        font-size: clamp(34px, 3.4vw, 48px);
        line-height: 1.02;
    }

    .product-details-actions {
        flex: 0 0 auto;
        padding-top: 2px;
    }

    .product-details-pricing {
        gap: 9px;
        margin-top: 2px;
    }

    .product-details-price {
        font-size: 20px;
    }

    .product-details-regular-price {
        font-size: 13px;
    }

    .product-details-sale-badge {
        padding: 4px 7px;
        font-size: 9px;
    }

    .product-tax-note {
        margin: 7px 0 14px;
        font-size: 10px;
    }

    .product-shipping-promos {
        margin: 14px 0 28px;
        padding: 11px 13px;
    }

    .product-shipping-promos p {
        margin: 3px 0;
        font-size: 10px;
    }

    .product-details-description {
        margin: 20px 0 14px;
        color: #685b57;
        font-size: 12px;
        line-height: 1.65;
    }

    .product-details-stock {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .product-size-fieldset {
        margin: 0 0 16px;
    }

    .product-size-fieldset legend {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .product-size-options {
        grid-template-columns: repeat(4, minmax(62px, 1fr));
        gap: 7px;
        max-width: 100%;
    }

    .product-size-option {
        min-height: 54px;
        padding: 5px 4px;
    }

    .product-size-label {
        font-size: 11px;
    }

    .product-size-price,
    .product-size-option.unavailable .product-size-stock {
        font-size: 9px;
    }

    .product-details-colors {
        margin: 8px 0 18px;
        font-size: 11px;
    }

    .product-details-form {
        gap: 9px;
    }

    .product-details-form label {
        margin: 4px 0 -1px;
        font-size: 11px;
    }

    .product-quantity-control {
        width: 100px;
        min-height: 40px;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
    }

    .product-quantity-control input {
        min-height: 38px;
        font-size: 12px;
    }

    .product-quantity-control button {
        font-size: 17px;
    }

    .product-purchase-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 14px;
    }

    .product-purchase-buttons .button,
    .product-details-form .button {
        width: 100%;
        min-height: 48px;
        margin-top: 0;
        padding: 13px 14px;
        font-size: 10px;
    }

    .product-checkout-assurances {
        justify-content: flex-start;
        gap: 7px 16px;
        margin-top: 9px;
    }

    .product-checkout-assurances p {
        font-size: 9px;
    }
}

/* Keep the thumbnail strip horizontal on smaller screens. */
@media (max-width: 900px) {
    .product-gallery {
        display: block;
    }

    .product-gallery-main {
        height: min(72vh, 650px);
        min-height: 0;
    }

    .product-gallery-thumbnails {
        display: flex;
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin-top: 10px;
        gap: 8px;
    }

    .product-gallery-thumbnail {
        width: 72px;
        min-width: 72px;
        height: 88px;
    }
}


/* =========================================================
   PRODUCT DETAIL UX POLISH
   ========================================================= */

.product-gallery-main {
    position: relative;
}

.product-gallery-arrow,
.product-gallery-expand {
    position: absolute;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(48, 37, 34, .12);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #302522;
    box-shadow: 0 6px 18px rgba(48,37,34,.12);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease;
}

.product-gallery-arrow:hover,
.product-gallery-expand:hover {
    transform: scale(1.06);
    background: #fff;
}

.product-gallery-arrow-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.product-gallery-arrow-prev:hover {
    transform: translateY(-50%) scale(1.06);
}

.product-gallery-arrow-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.product-gallery-arrow-next:hover {
    transform: translateY(-50%) scale(1.06);
}

.product-gallery-expand {
    right: 16px;
    bottom: 16px;
    font-size: 20px;
}

.product-gallery-counter {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 7px 11px;
    border-radius: 20px;
    background: rgba(48,37,34,.72);
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
}

.product-size-fieldset legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.product-size-guide-link {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #68142e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.product-size-guide {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.product-size-guide::backdrop {
    background: rgba(35,25,25,.55);
    backdrop-filter: blur(3px);
}

.product-size-guide-card {
    padding: 26px;
    background: #fff;
    color: #302522;
    box-shadow: 0 22px 70px rgba(30,20,20,.22);
}

.product-size-guide-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.product-size-guide-header p {
    margin: 0 0 5px;
    color: #8b6870;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.product-size-guide-header h2 {
    margin: 0;
    font: 400 30px/1.1 Georgia, "Times New Roman", serif;
}

.product-size-guide-header button {
    width: 36px;
    height: 36px;
    border: 1px solid #e5d8d4;
    border-radius: 50%;
    background: #fff;
    color: #68142e;
    font-size: 22px;
    cursor: pointer;
}

.product-size-guide-intro,
.product-size-guide-note {
    color: #685b57;
    font-size: 13px;
    line-height: 1.6;
}

.product-size-guide-table {
    margin: 20px 0;
    border: 1px solid #e7deda;
}

.product-size-guide-table > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid #eee6e2;
    font-size: 13px;
}

.product-size-guide-table > div:last-child {
    border-bottom: 0;
}

.product-size-guide-table > div:first-child {
    background: #f8eae7;
}

.product-size-guide-table > div:not(:first-child) span:first-child {
    font-weight: 700;
    color: #68142e;
}

.product-mobile-sticky-bar {
    display: none;
}

@media (max-width: 760px) {
    .product-details-page {
        padding-bottom: 104px;
    }

    .product-gallery-main {
        touch-action: pan-y;
    }

    .product-gallery-arrow,
    .product-gallery-expand {
        width: 38px;
        height: 38px;
    }

    .product-gallery-arrow-prev {
        left: 10px;
    }

    .product-gallery-arrow-next {
        right: 10px;
    }

    .product-gallery-counter {
        bottom: 10px;
        font-size: 10px;
    }

    .product-gallery-expand {
        right: 10px;
        bottom: 10px;
    }

    .product-size-guide-link {
        font-size: 11px;
    }

    .product-mobile-sticky-bar {
        position: fixed;
        z-index: 1001;
        right: 0;
        bottom: 64px;
        left: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 68px;
        padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
        border-top: 1px solid #eaded9;
        background: rgba(255,255,255,.97);
        box-shadow: 0 -8px 24px rgba(48,37,34,.12);
        backdrop-filter: blur(10px);
    }

    .product-mobile-sticky-price {
        min-width: 88px;
        color: #68142e;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.15;
    }

    .product-mobile-sticky-price small {
        display: block;
        margin-top: 3px;
        color: #80645f;
        font-size: 10px;
        font-weight: 600;
    }

    .product-mobile-sticky-button {
        flex: 1;
        min-height: 48px;
        border: 1px solid #68142e;
        background: #68142e;
        color: #fff;
        font: inherit;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .8px;
        cursor: pointer;
    }
}

@media (min-width: 761px) {
    .product-gallery-arrow,
    .product-gallery-expand {
        opacity: 0;
    }

    .product-gallery-main:hover .product-gallery-arrow,
    .product-gallery-main:hover .product-gallery-expand {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery-arrow,
    .product-gallery-expand {
        transition: none;
    }
}


/* =========================================================
   CHANGE 2 — SIZE / COLOR / STOCK UX
   ========================================================= */

.product-color-fieldset {
    margin: 16px 0 20px;
    padding: 0;
    border: 0;
}

.product-color-fieldset legend {
    margin: 0 0 10px;
    padding: 0;
    color: #302522;
    font-size: 12px;
    font-weight: 700;
}

.product-color-fieldset legend span {
    margin-left: 7px;
    color: #80645f;
    font-weight: 400;
}

.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-color-option {
    min-width: 66px;
    padding: 7px 9px;
    border: 1px solid #e0d5d1;
    border-radius: 999px;
    background: #fff;
    color: #4f4240;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-color-option:hover {
    border-color: #a9848b;
    transform: translateY(-1px);
}

.product-color-option.selected {
    border-color: #68142e;
    box-shadow: inset 0 0 0 1px #68142e;
    color: #68142e;
    font-weight: 700;
}

.product-color-swatch {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 1px solid rgba(48,37,34,.2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
}

.product-color-name {
    white-space: nowrap;
}

.product-stock-panel {
    margin: 0 0 16px;
    padding: 12px 13px;
    border: 1px solid #e6ddd9;
    background: #fcfaf8;
}

.product-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #356b3c;
    font-size: 12px;
    font-weight: 700;
}

.product-stock-row #productStockCount {
    color: #80645f;
    font-size: 10px;
    font-weight: 600;
}

.product-details-stock.is-out {
    color: #a1263b;
}

.product-stock-meter {
    height: 5px;
    margin: 8px 0 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #eadfdb;
}

.product-stock-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #68142e;
    transition: width .25s ease;
}

.product-stock-panel small {
    display: block;
    color: #80645f;
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .product-color-fieldset {
        margin-top: 12px;
    }

    .product-color-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .product-color-options::-webkit-scrollbar {
        display: none;
    }

    .product-color-option {
        min-width: max-content;
        min-height: 42px;
    }

    .product-stock-panel {
        margin-bottom: 13px;
        padding: 11px 12px;
    }

    .product-stock-row {
        font-size: 11px;
    }
}


/* =========================================================
   PRODUCT DETAIL — PREMIUM REVIEW / RECOMMENDATION POLISH
   Uses the existing Ubhaya Fashions typography and palette.
   ========================================================= */

.product-reviews {
    width: min(1280px, calc(100% - 72px));
    margin: 0 auto 72px;
    padding: 54px 0 0;
    border-top: 1px solid #e7deda;
}

.product-reviews-inner {
    max-width: 1280px;
}

.product-reviews-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}

.product-reviews-eyebrow {
    margin: 0 0 7px;
    color: #8b6870;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.product-reviews h2 {
    color: #302522;
    font: 400 clamp(30px, 3vw, 42px)/1.08 Georgia, "Times New Roman", serif;
}

.product-reviews-score {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 118px;
}

.product-reviews-score strong {
    color: #302522;
    font: 400 34px/1 Georgia, "Times New Roman", serif;
}

.product-reviews-score small {
    color: #80645f;
    font-size: 10px;
}

.product-review-stars,
.product-review-card-stars {
    color: #68142e;
    letter-spacing: 2px;
}

.product-review-button,
.product-review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid #68142e;
    border-radius: 0;
    background: #68142e;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.product-review-button:hover,
.product-review-submit:hover {
    background: #531024;
    transform: translateY(-1px);
}

.product-review-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #e7deda;
    background: #fcfaf8;
    color: #514440;
    font-size: 12px;
}

.product-review-notice.success span {
    color: #356b3c;
}

.product-review-notice.error span {
    color: #a1263b;
}

.product-reviews-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.product-review-summary {
    padding: 24px;
    border: 1px solid #e7deda;
    background: #fcfaf8;
}

.product-review-average {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7deda;
}

.product-review-average strong {
    color: #302522;
    font: 400 48px/1 Georgia, "Times New Roman", serif;
}

.product-review-average small {
    color: #80645f;
    font-size: 10px;
}

.product-review-breakdown {
    display: grid;
    gap: 9px;
    padding-top: 20px;
}

.product-review-breakdown-row {
    display: grid;
    grid-template-columns: 28px 1fr 32px;
    align-items: center;
    gap: 7px;
    color: #685b57;
    font-size: 10px;
}

.product-review-breakdown-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfdb;
}

.product-review-breakdown-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #68142e;
}

.product-review-breakdown-row small {
    text-align: right;
    color: #80645f;
    font-size: 9px;
}

.product-review-list {
    border-top: 1px solid #e7deda;
}

.product-review-card {
    padding: 22px 0;
    border-bottom: 1px solid #e7deda;
}

.product-review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.product-review-card h3 {
    margin: 7px 0 0;
    color: #302522;
    font: 400 19px/1.25 Georgia, "Times New Roman", serif;
}

.product-review-verified {
    flex: 0 0 auto;
    padding: 5px 8px;
    background: #f3e9df;
    color: #356b3c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
}

.product-review-comment {
    max-width: 720px;
    margin: 10px 0;
    color: #5f514d;
    font-size: 13px;
    line-height: 1.7;
}

.product-review-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #80645f;
    font-size: 10px;
}

.product-review-meta strong {
    color: #514440;
}

.product-review-images,
.product-review-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.product-review-images img,
.product-review-image-preview img {
    display: block;
    width: 92px;
    height: 110px;
    object-fit: cover;
    border: 1px solid #e7deda;
}

.product-review-upload-hint {
    margin: 6px 0 0;
    color: #80645f;
    font-size: 11px;
}

.product-reviews-empty {
    min-height: 210px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
    padding: 30px;
    border: 1px solid #e7deda;
    background: #fcfaf8;
    text-align: center;
}

.product-reviews-empty-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 3px;
    border: 1px solid #d8c8c3;
    border-radius: 50%;
    color: #68142e;
    font-size: 16px;
}

.product-reviews-empty h3 {
    margin: 0;
    color: #302522;
    font: 400 24px/1.2 Georgia, "Times New Roman", serif;
}

.product-reviews-empty p {
    max-width: 500px;
    margin: 0 0 7px;
    color: #80645f;
    font-size: 12px;
    line-height: 1.6;
}

.product-review-form {
    max-width: none;
    margin: 24px 0 0;
    padding: 28px;
    border: 1px solid #e7deda;
    background: #fcfaf8;
}

.product-review-form-header h3 {
    margin: 0;
    color: #302522;
    font: 400 26px/1.2 Georgia, "Times New Roman", serif;
}

.product-review-form-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
}

.product-review-form label {
    display: block;
    margin: 14px 0 7px;
    color: #302522;
    font-size: 11px;
    font-weight: 800;
}

.product-review-form label span {
    color: #80645f;
    font-weight: 400;
}

.product-review-form input,
.product-review-form select,
.product-review-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d9ceca;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #302522;
    font: inherit;
    font-size: 12px;
}

.product-review-form textarea {
    min-height: 120px;
    resize: vertical;
}

.product-review-form input:focus,
.product-review-form select:focus,
.product-review-form textarea:focus {
    border-color: #68142e;
    box-shadow: 0 0 0 2px rgba(104,20,46,.08);
}

.product-review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
}

.product-review-form-footer p {
    margin: 0;
    color: #80645f;
    font-size: 10px;
    line-height: 1.5;
}

.product-bestsellers {
    padding-top: 64px;
    padding-bottom: 76px;
    background: #f8eae7;
}

.product-bestsellers-inner {
    width: min(1280px, 100%);
}

.product-bestsellers-inner > h2 {
    font-size: clamp(30px, 3vw, 42px);
}

.product-bestseller-card {
    transition: transform .2s ease;
}

.product-bestseller-card:hover {
    transform: translateY(-3px);
}

.product-bestseller-image-wrap {
    border: 1px solid rgba(104,20,46,.08);
}

@media (max-width: 900px) {
    .product-reviews {
        width: calc(100% - 36px);
        margin-bottom: 48px;
    }

    .product-reviews-heading {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .product-reviews-score {
        justify-self: end;
    }

    .product-review-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .product-reviews-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-review-summary {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: center;
    }

    .product-review-average {
        padding: 0;
        border-bottom: 0;
        border-right: 1px solid #e7deda;
    }
}

@media (max-width: 560px) {
    .product-reviews {
        width: calc(100% - 28px);
        padding-top: 40px;
    }

    .product-reviews-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-reviews-score {
        justify-self: start;
        justify-items: start;
    }

    .product-review-summary {
        grid-template-columns: 1fr;
    }

    .product-review-average {
        padding-bottom: 18px;
        border-right: 0;
        border-bottom: 1px solid #e7deda;
    }

    .product-review-card-top {
        display: block;
    }

    .product-review-verified {
        display: inline-block;
        margin-top: 10px;
    }

    .product-review-form {
        padding: 20px 16px;
    }

    .product-review-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-review-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .product-review-submit {
        width: 100%;
    }

    .product-reviews-empty {
        min-height: 190px;
        padding: 24px 16px;
    }

    .product-bestsellers {
        padding-top: 46px;
        padding-bottom: 60px;
    }
}


.product-inline-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 12px;
    color: #80645f;
    font-size: 11px;
    text-decoration: none;
}

.product-inline-rating span:first-child {
    color: #68142e;
    letter-spacing: 1px;
}

.product-inline-rating strong {
    color: #302522;
    font-size: 12px;
}

.product-inline-rating:hover {
    color: #68142e;
}


/* =========================================================
   PRODUCT DETAIL — SIZE / QUANTITY COMPACT CONTROLS
   Keeps the existing typography and Ubhaya Fashions palette.
   ========================================================= */

@media (min-width: 761px) {
    .product-size-options {
        grid-template-columns: repeat(4, 96px);
        width: max-content;
        max-width: 100%;
        gap: 8px;
    }

    .product-size-option {
        min-height: 54px;
        padding: 5px 4px;
    }

    .product-size-label {
        font-size: 12px;
    }

    .product-size-price,
    .product-size-option.unavailable .product-size-stock {
        font-size: 9px;
    }

    .product-quantity-control {
        width: 100px;
        min-height: 40px;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
    }

    .product-quantity-control input {
        min-height: 38px;
        font-size: 12px;
    }

    .product-quantity-control button {
        font-size: 17px;
    }
}

.product-review-eligibility-notice {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #e7deda;
    background: #fcfaf8;
    color: #80645f;
    font-size: 11px;
    line-height: 1.45;
}

/* Customer reviews: ratings, customer photos, and review cards */
.product-reviews-layout {
    display: block;
}

.product-review-summary {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.3fr);
    align-items: center;
    gap: 26px;
    padding: 24px 28px;
}

.product-review-summary > .product-reviews-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
}

.product-review-average {
    border: 0;
    border-right: 1px solid #e7deda;
    padding: 0 25px 0 0;
}

.product-review-breakdown {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
}

.product-review-breakdown-row {
    grid-template-columns: auto 1fr auto;
    gap: 7px;
}

.product-customer-photos {
    margin: 30px 0 12px;
}

.product-review-section-heading h3 {
    margin: 0;
    color: #302522;
    font: 400 25px/1.2 Georgia, "Times New Roman", serif;
}

.product-customer-photo-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 2px 10px;
    scrollbar-width: thin;
}

.product-customer-photo,
.product-review-images button {
    position: relative;
    flex: 0 0 auto;
    width: 112px;
    height: 132px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7deda;
    background: #f8f4f1;
    cursor: zoom-in;
}

.product-customer-photo img,
.product-review-images button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.product-customer-photo:hover img,
.product-review-images button:hover img {
    transform: scale(1.04);
}

.product-customer-photo-more span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(54, 25, 35, .56);
    color: white;
    font: 400 28px/1 Georgia, "Times New Roman", serif;
}

.product-review-images button {
    width: 82px;
    height: 96px;
}

.product-review-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.product-review-vote {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #e4d8d5;
    background: #fff;
    color: #685b57;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.product-review-vote:hover,
.product-review-vote.is-selected {
    border-color: #68142e;
    background: #f8eef1;
    color: #68142e;
}

.product-review-vote:disabled {
    opacity: .6;
    cursor: wait;
}

.product-review-view-all {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 22px 0 0;
    border: 1px solid #68142e;
    background: transparent;
    color: #68142e;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-review-view-all:hover {
    background: #68142e;
    color: #fff;
}

.product-review-lightbox {
    position: fixed;
    max-width: min(92vw, 900px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
}

.product-review-lightbox::backdrop {
    background: rgba(28, 18, 21, .66);
    backdrop-filter: blur(3px);
}

.product-review-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
}

.product-review-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #68142e;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .product-review-summary {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .product-review-summary > .product-reviews-eyebrow {
        grid-column: auto;
    }

    .product-review-average {
        border-right: 0;
        border-bottom: 1px solid #e7deda;
        padding: 0 0 18px;
    }

    .product-review-breakdown {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .product-customer-photo {
        width: 94px;
        height: 112px;
    }

    .product-review-vote {
        min-height: 44px;
    }
}

/* Compact Product Details review presentation */
.product-reviews {
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: min(1180px, 100%);
    margin: 0 auto 56px;
    padding-top: 38px;
    min-width: 0;
}

.product-reviews-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.product-reviews-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    margin-bottom: 22px;
}

.product-reviews-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
}

.product-review-heading-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.product-reviews-score {
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid #e7deda;
}

.product-reviews-score strong {
    font: 400 28px/1 Georgia, "Times New Roman", serif;
}

.product-reviews-score .product-review-stars {
    font-size: 12px;
    letter-spacing: 1px;
}

.product-reviews-score small {
    grid-column: 1 / -1;
    font-size: 10px;
}

.product-review-heading-meta .product-review-eligibility-notice {
    max-width: 220px;
    min-height: 0;
    padding: 7px 10px;
    border-color: transparent;
    background: #fcfaf8;
    font-size: 10px;
}

.product-review-heading-meta .product-review-button {
    min-height: 40px;
    padding: 0 17px;
    white-space: nowrap;
}

.product-reviews-layout {
    display: block;
}

.product-review-summary {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 150px minmax(0, 420px);
    align-items: center;
    gap: 16px 24px;
    width: min(100%, 690px);
    padding: 18px 22px;
    border-color: #eadfdb;
    background: #fcfaf8;
}

.product-review-summary > .product-reviews-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
}

.product-review-average {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0 20px 0 0;
    border: 0;
    border-right: 1px solid #e7deda;
}

.product-review-average strong {
    font-size: 42px;
}

.product-review-average small {
    max-width: 120px;
    text-align: center;
    line-height: 1.4;
}

.product-review-breakdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: min(420px, 100%);
    padding: 0;
}

.product-review-breakdown-row {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    gap: 8px;
    font-size: 10px;
}

.product-review-breakdown-track {
    height: 6px;
}

.product-customer-photos {
    margin: 24px 0 8px;
}

.product-review-section-heading h3,
.product-review-list-heading h3 {
    margin: 0;
    color: #302522;
    font: 400 22px/1.2 Georgia, "Times New Roman", serif;
}

.product-review-section-heading .product-reviews-eyebrow,
.product-review-list-heading .product-reviews-eyebrow {
    margin-bottom: 5px;
}

.product-customer-photo-strip {
    max-width: 100%;
    gap: 9px;
    padding: 12px 1px 8px;
}

.product-customer-photo {
    width: 112px;
    height: 132px;
}

.product-review-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7deda;
}

.product-review-list-heading > span {
    color: #80645f;
    font-size: 10px;
}

.product-review-list {
    width: 100%;
    border-top: 0;
}

.product-review-card {
    padding: 17px 0;
}

.product-review-card-top > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 11px;
}

.product-review-card h3 {
    margin: 0;
    font-size: 17px;
}

.product-review-card-stars {
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.product-review-comment {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.6;
}

.product-review-meta {
    font-size: 10px;
}

.product-review-votes {
    justify-content: flex-end;
    gap: 7px;
    margin-top: 9px;
}

.product-review-vote {
    min-height: 32px;
    gap: 5px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
    font-size: 10px;
}

.product-review-view-all {
    width: fit-content;
    min-height: 42px;
    margin: 18px auto 0;
    padding: 0 22px;
}

@media (max-width: 760px) {
    .product-reviews {
        width: calc(100% - 32px);
        padding-top: 30px;
    }

    .product-reviews-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        align-items: start;
    }

    .product-review-heading-meta {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-reviews-score {
        justify-self: start;
        padding-right: 12px;
    }

    .product-review-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        width: 100%;
        padding: 17px;
    }

    .product-review-summary > .product-reviews-eyebrow {
        grid-column: auto;
    }

    .product-review-average {
        justify-items: start;
        padding: 0 0 13px;
        border-right: 0;
        border-bottom: 1px solid #e7deda;
    }

    .product-review-average small {
        max-width: none;
        text-align: left;
    }

    .product-review-breakdown {
        width: min(420px, 100%);
    }

    .product-review-list-heading {
        align-items: center;
    }

    .product-review-vote {
        min-height: 40px;
    }
}

@media (max-width: 420px) {
    .product-reviews-heading h2 {
        font-size: 29px;
    }

    .product-review-heading-meta .product-review-eligibility-notice {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .product-review-card-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .product-review-votes {
        justify-content: flex-start;
    }
}

/* Keep review metadata attached to the content it describes. */
.product-reviews-heading,
.product-review-list-heading {
    width: 100%;
}

.product-review-list-heading {
    box-sizing: border-box;
}

.product-review-card-top {
    justify-content: flex-start;
    align-items: center;
}

.product-review-card-top > div {
    min-width: 0;
}

.product-review-verified {
    margin-left: 4px;
}

.product-review-votes {
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .product-reviews-heading,
    .product-review-list-heading {
        width: 100%;
    }

    .product-review-card-top {
        align-items: flex-start;
    }

    .product-review-verified {
        margin-left: 0;
    }
}

.product-review-eligibility-notice[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .product-review-eligibility-notice {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Product Details reviews span the full two-column product grid. */
.product-reviews { grid-column: 1 / -1; width: min(1180px, 100%); min-width: 0; }
.product-reviews-inner, .product-review-list, .product-review-list-heading { width: 100%; max-width: 100%; min-width: 0; }
.product-reviews-heading { width: 100%; max-width: 100%; }
.product-customer-photo-strip { width: 100%; max-width: 100%; }
.product-reviews .product-customer-photo { width: 112px; height: 132px; }
.product-reviews .review-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 0; margin-top: 8px; }
.product-reviews .review-meta-row .product-review-meta { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.product-reviews .review-meta-row .product-review-meta strong { overflow-wrap: anywhere; }
.product-reviews .review-meta-row .product-review-votes { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 4px; margin: 0 0 0 auto; }
.product-reviews .product-review-vote { box-sizing: border-box; display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; gap: 5px; padding: 0 5px; border: 0; border-radius: 3px; background: transparent; color: #80645f; font-size: 11px; line-height: 1; }
.product-reviews .product-review-vote svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-reviews .product-review-vote span { color: inherit; font-variant-numeric: tabular-nums; }
.product-reviews .product-review-vote:hover, .product-reviews .product-review-vote.is-selected { border-color: transparent; background: rgba(104, 20, 46, .06); color: #68142e; }
.product-reviews .product-review-vote:focus-visible { outline: 2px solid #68142e; outline-offset: 2px; }
@media (max-width: 760px) {
    .product-reviews { width: 100%; }
    .product-reviews .product-review-list-heading { flex-wrap: wrap; align-items: flex-start; }
    .product-reviews .review-meta-row { flex-wrap: wrap; gap: 4px 10px; }
    .product-reviews .review-meta-row .product-review-meta { flex: 1 1 auto; }
    .product-reviews .review-meta-row .product-review-votes { margin-left: auto; }
    .product-reviews .product-customer-photo { width: 94px; height: 112px; }
}

/* Recently viewed is a compact browsing-history strip, separate from recommendations. */
.recently-viewed-section {
    display: block;
    padding: 42px 24px 48px;
    border-top: 1px solid #eaded9;
    background: #fffdfb;
}

.recently-viewed-section[hidden] {
    display: none;
}

.recently-viewed-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.recently-viewed-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.recently-viewed-eyebrow {
    margin: 0 0 7px;
    color: #8a6861;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.recently-viewed-title {
    margin: 0;
    color: #302522;
    font: 400 clamp(27px, 3vw, 36px)/1.15 Georgia, "Times New Roman", serif;
}

.recently-viewed-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.recently-viewed-scroll {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #d9c4bd;
    border-radius: 50%;
    background: #fff;
    color: #68142e;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.recently-viewed-scroll:hover:not(:disabled) {
    background: #68142e;
    color: #fff;
}

.recently-viewed-scroll:disabled {
    opacity: .38;
    cursor: default;
}

.recently-viewed-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recently-viewed-list::-webkit-scrollbar {
    display: none;
}

.recently-viewed-empty {
    flex: 1 0 100%;
    margin: 0;
    padding: 22px 18px;
    border: 1px dashed #ddcbc5;
    border-radius: 6px;
    background: #fff;
    color: #806d68;
    font-size: 13px;
    text-align: center;
}

.recently-viewed-list:focus-visible {
    outline: 2px solid #68142e;
    outline-offset: 3px;
}

.recently-viewed-card {
    flex: 0 0 calc((100% - 72px) / 5);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee3df;
    border-radius: 7px;
    background: #fff;
    scroll-snap-align: start;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.recently-viewed-card:hover {
    transform: translateY(-2px);
    border-color: #d9c0b9;
    box-shadow: 0 8px 22px rgba(58, 34, 30, .08);
}

.recently-viewed-link {
    display: block;
    color: #302522;
    text-decoration: none;
}

.recently-viewed-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: .84;
    background: #f3ece8;
}

.recently-viewed-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.recently-viewed-card:hover .recently-viewed-image img {
    transform: scale(1.035);
}

.recently-viewed-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #846d67;
    background: linear-gradient(145deg, #f6efeb, #ece1dc);
    font: 500 11px/1 Georgia, "Times New Roman", serif;
    letter-spacing: 2px;
}

.recently-viewed-fallback[hidden] {
    display: none;
}

.recently-viewed-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    border-radius: 2px;
    background: #fffdf7;
    color: #7c2635;
    font-size: 9px;
    font-weight: 700;
}

.recently-viewed-category,
.recently-viewed-name,
.recently-viewed-pricing,
.recently-viewed-sizes {
    margin-right: 12px;
    margin-left: 12px;
}

.recently-viewed-category {
    display: block;
    margin-top: 11px;
    color: #88756f;
    font-size: 10px;
    letter-spacing: .6px;
}

.recently-viewed-name {
    min-height: 38px;
    margin-top: 4px;
    margin-bottom: 8px;
    color: #302522;
    font: 400 14px/1.35 Georgia, "Times New Roman", serif;
}

.recently-viewed-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 7px;
    border: 1px solid rgba(48, 37, 34, .08);
    border-radius: 3px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1px 5px rgba(48, 37, 34, .12);
    color: #302522;
    font: 11px/1 Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}

.recently-viewed-rating[hidden] {
    display: none;
}

.recently-viewed-rating-star {
    color: #68142e;
    font-size: 12px;
}

.recently-viewed-rating-count {
    color: #7c6b66;
    font-weight: 400;
}

.recently-viewed-pricing {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 13px;
}

.recently-viewed-sizes {
    display: flex;
    min-height: 23px;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 8px;
    color: #75645f;
    font-size: 10px;
}

.recently-viewed-sizes[hidden] { display: none; }
.recently-viewed-sizes-label { margin-right: 2px; }
.recently-viewed-size { padding: 3px 5px; border: 1px solid #eaded9; border-radius: 3px; background: #fffdfb; color: #57474a; line-height: 1; }

.recently-viewed-price {
    color: #68142e;
    font-size: 12px;
    font-weight: 700;
}

.recently-viewed-original-price {
    color: #92847e;
    font-size: 10px;
    text-decoration: line-through;
}

@media (max-width: 1050px) {
    .recently-viewed-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

/* Frame the product page sections with the same soft curves used on the home page. */
.product-details-page {
    gap: clamp(20px, 3vw, 42px);
}

.product-details-page > .product-gallery,
.product-details-page > .product-details-info {
    border: 1px solid #f0e0dc;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgb(88 48 54 / 5%);
}

.product-details-page > .product-gallery {
    padding: 12px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 0%, rgb(222 160 167 / 16%), transparent 42%),
        linear-gradient(135deg, #fcf5f2, #f8f2e8);
}

.product-details-page > .product-gallery .product-gallery-main {
    border-radius: 12px;
}

.product-details-page > .product-details-info {
    padding: clamp(20px, 2.7vw, 34px);
    background:
        radial-gradient(ellipse at 100% 0%, rgb(222 160 167 / 13%), transparent 42%),
        linear-gradient(140deg, #fffdfb, #fbf4f0);
}

.product-reviews,
.product-bestsellers,
.recently-viewed-section {
    width: min(1280px, calc(100% - 72px));
    margin: 32px auto 0;
    border: 1px solid #f0e0dc;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgb(88 48 54 / 5%);
    background:
        radial-gradient(ellipse at 0% 0%, rgb(222 160 167 / 13%), transparent 42%),
        radial-gradient(ellipse at 100% 100%, rgb(217 190 130 / 11%), transparent 42%),
        linear-gradient(135deg, #fffdfb, #f8f2e8);
}

.product-reviews {
    box-sizing: border-box;
    padding: clamp(26px, 3.2vw, 44px);
    border-top: 1px solid #f0e0dc;
}

/* Keep the empty reviews state compact so it doesn't leave a large blank block. */
.product-reviews:has(.product-reviews-empty) {
    padding-bottom: 26px;
}

.product-reviews .product-reviews-empty {
    min-height: 150px;
    padding: 22px 16px;
}

.product-bestsellers {
    padding: clamp(30px, 4vw, 54px) clamp(18px, 3vw, 38px);
}

.recently-viewed-section {
    box-sizing: border-box;
    padding: clamp(26px, 3.2vw, 42px) clamp(18px, 3vw, 32px);
}

@media (max-width: 760px) {
    .product-details-page > .product-gallery,
    .product-details-page > .product-details-info {
        border-radius: 14px;
    }

    .product-details-page > .product-gallery {
        padding: 8px;
    }

    .product-details-page > .product-details-info {
        padding: 22px 18px;
    }

    .product-reviews,
    .product-bestsellers,
    .recently-viewed-section {
        width: calc(100% - 24px);
        margin-top: 22px;
        border-radius: 14px;
    }

    .product-reviews {
        padding: 24px 16px;
    }

    .product-reviews:has(.product-reviews-empty) {
        padding-bottom: 18px;
    }

    .product-reviews .product-reviews-empty {
        min-height: 130px;
        padding: 18px 14px;
    }

    .product-bestsellers,
    .recently-viewed-section {
        padding: 26px 14px;
    }
}

@media (max-width: 760px) {
    .recently-viewed-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 560px) {
    .recently-viewed-section {
        padding: 34px 16px 40px;
    }

    .recently-viewed-heading {
        gap: 12px;
    }

    .recently-viewed-card {
        flex-basis: 78%;
    }

    .recently-viewed-list {
        gap: 12px;
    }
}

/* Recommendations stay in one horizontal row with explicit carousel controls. */
.product-bestsellers .product-bestsellers-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.product-bestsellers-copy .catalog-eyebrow {
    margin: 0 0 8px;
}

.product-bestsellers-copy h2 {
    margin: 0;
}

.product-bestsellers-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.product-bestsellers-view-all {
    margin-right: 7px;
    color: #68142e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.product-bestsellers-view-all:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-bestsellers-scroll {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d9c4bd;
    border-radius: 50%;
    background: #fffaf8;
    color: #68142e;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.product-bestsellers-scroll:hover:not(:disabled) {
    background: #68142e;
    color: #fff;
}

.product-bestsellers-scroll:disabled {
    opacity: .38;
    cursor: default;
}

.product-bestsellers-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-bestsellers-grid::-webkit-scrollbar {
    display: none;
}

.product-bestsellers-grid .product-bestseller-card {
    flex: 0 0 calc((100% - 72px) / 5);
    scroll-snap-align: start;
}

.product-bestsellers-grid:focus-visible {
    outline: 2px solid #68142e;
    outline-offset: 3px;
}

@media (max-width: 1050px) {
    .product-bestsellers-grid .product-bestseller-card {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 760px) {
    .product-bestsellers .product-bestsellers-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .product-bestsellers-grid .product-bestseller-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 560px) {
    .product-bestsellers .product-bestsellers-heading {
        align-items: flex-end;
    }

    .product-bestsellers-controls {
        gap: 6px;
    }

    .product-bestsellers-view-all {
        margin-right: 2px;
        font-size: 11px;
    }

    .product-bestsellers-scroll {
        width: 34px;
        height: 34px;
    }

    .product-bestsellers-grid .product-bestseller-card {
        flex-basis: 78%;
    }
}

/* Keep the quantity stepper compact and vertically centered. */
.product-details-form .product-quantity-control {
    display: flex;
    width: 106px !important;
    min-width: 106px;
    max-width: 106px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
}

.product-details-form .product-quantity-control button {
    display: flex;
    flex: 0 0 30px;
    width: 30px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.product-details-form .product-quantity-control input {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: normal;
    text-align: center;
}

@media (max-width: 760px) {
    .product-details-form .product-quantity-control {
        width: 100px !important;
        min-width: 100px;
        max-width: 100px;
    }

    .product-details-form .product-quantity-control button {
        flex-basis: 28px;
        width: 28px;
    }

    .product-details-form .product-quantity-control input {
        flex-basis: 42px;
        width: 42px;
    }
}

/* Give each related product the same distinct card treatment as Recently Viewed. */
.product-bestsellers-grid .product-bestseller-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee2dd;
    border-top: 3px solid var(--related-card-accent, #9c3656);
    border-radius: 10px;
    background: #fffdfb;
    box-shadow: 0 6px 18px rgb(52 35 38 / 7%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-bestsellers-grid .product-bestseller-card:nth-child(4n + 2) { --related-card-accent: #ae7c31; }
.product-bestsellers-grid .product-bestseller-card:nth-child(4n + 3) { --related-card-accent: #557a69; }
.product-bestsellers-grid .product-bestseller-card:nth-child(4n + 4) { --related-card-accent: #79618f; }

.product-bestsellers-grid .product-bestseller-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgb(52 35 38 / 12%);
}

.product-bestsellers-grid .product-bestseller-card > .product-bestseller-link:nth-of-type(2) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 13px 14px;
}

.product-bestsellers-grid .product-bestseller-category {
    margin-top: 11px;
}

.product-bestsellers-grid .product-bestseller-card h3 {
    min-height: 40px;
    margin: 5px 0 8px;
}

.product-bestsellers-grid .product-bestseller-card .recently-viewed-sizes {
    margin-right: 0;
    margin-left: 0;
}

.product-bestsellers-grid .product-bestseller-pricing {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 10px;
}

.product-bestsellers-grid {
    padding: 6px 2px 14px;
}

/* Keep product details within the phone viewport while preserving the
   gallery's own swipeable thumbnail strip. */
@media (max-width: 760px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .product-details-page {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 22px 14px 110px;
        box-sizing: border-box;
    }

    .product-gallery,
    .product-gallery-main,
    .product-details-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-gallery-main {
        height: min(80svh, 680px);
        max-height: 80svh;
    }

    .product-gallery-thumbnails {
        box-sizing: border-box;
        max-width: 100%;
        padding-bottom: 2px;
        overscroll-behavior-x: contain;
    }

    .product-gallery-thumbnail {
        flex: 0 0 72px;
    }

    .product-reviews,
    .recently-viewed-section,
    .product-bestsellers {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }
}
