/* =========================================================
   SHOPTIME - PRODUCT LANDING PAGE
========================================================= */

.product-page {
    background: #f8fafc;
    color: #0f172a;
}


/* =========================================================
   HEADER
========================================================= */

.product-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.product-header-inner {
    max-width: 1180px;
    margin: auto;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-logo {
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    color: #1e40af;
}

.header-order-btn {
    background: linear-gradient(
        135deg,
        #1e40af 0%,
        #059669 100%
    );

    color: #ffffff;
    text-decoration: none;

    padding: 11px 18px;
    border-radius: 9px;

    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.header-order-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(30, 64, 175, .18);
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.product-container {
    max-width: 1180px;
    margin: auto;

    padding:
        25px 20px 60px;
}


/* =========================================================
   HERO
========================================================= */

.product-hero {
    background: #ffffff;

    border-radius: 18px;
    padding: 25px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    gap: 40px;

    box-shadow:
        0 8px 30px rgba(
            15,
            23,
            42,
            .06
        );
}


/* =========================================================
   GALLERY
========================================================= */

.product-gallery {
    min-width: 0;
}

.main-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: contain;

    background: #f8fafc;

    border-radius: 15px;

    display: block;
}

.product-thumbnails {
    display: flex;

    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;

    padding-bottom: 5px;

    scrollbar-width: thin;
}

.product-thumbnail {
    width: 75px;
    height: 75px;

    flex: 0 0 75px;

    border: 2px solid transparent;
    border-radius: 9px;

    padding: 3px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.product-thumbnail:hover {
    transform: translateY(-2px);
}

.product-thumbnail.active {
    border-color: #1e40af;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 6px;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

.product-category {
    display: inline-flex;

    align-items: center;

    color: #059669;

    background: #eff6ff;

    border-radius: 20px;

    padding: 6px 12px;

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 12px;
}

.product-title {
    font-size: 38px;

    line-height: 1.2;

    margin:
        0 0 15px;

    font-weight: 800;

    color: #0f172a;
}

.product-short-description {
    color: #64748b;

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* =========================================================
   PRICE
========================================================= */

.product-price-box {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin:
        10px 0 20px;
}

.product-price {
    font-size: 34px;

    font-weight: 900;

    color: #059669;
}

.product-old-price {
    font-size: 20px;

    color: #94a3b8;

    text-decoration: line-through;
}

.product-discount {
    background: #fee2e2;

    color: #dc2626;

    padding:
        5px 10px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   STOCK
========================================================= */

.stock-message {
    font-size: 14px;

    margin-bottom: 15px;

    font-weight: 700;
}

.stock-available {
    color: #059669;
}

.stock-unavailable {
    color: #dc2626;
}


/* =========================================================
   PRIMARY CTA
========================================================= */

.primary-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 56px;

    border: 0;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #1e40af 0%,
        #059669 100%
    );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.primary-cta:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(
            30,
            64,
            175,
            .20
        );
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.landing-section {
    margin-top: 25px;

    background: #ffffff;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(
            15,
            23,
            42,
            .05
        );
}

.landing-section-title {
    font-size: 28px;

    margin:
        0 0 25px;

    font-weight: 800;

    color: #0f172a;
}


/* =========================================================
   FEATURES
========================================================= */

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.feature-card {
    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 13px;

    padding: 22px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(
            15,
            23,
            42,
            .07
        );
}

.feature-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ecfdf5;

    color: #059669;

    font-size: 20px;

    margin-bottom: 12px;
}

.feature-title {
    margin:
        0 0 8px;

    font-size: 18px;

    font-weight: 800;
}

.feature-description {
    color: #64748b;

    line-height: 1.6;

    margin: 0;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {
    line-height: 1.9;

    color: #475569;

    font-size: 16px;
}


/* =========================================================
   VARIANTS
========================================================= */

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

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;

    font-weight: 800;

    margin-bottom: 10px;
}

.variant-options {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.variant-option {
    position: relative;
}

.variant-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.variant-option label {
    display: block;

    padding:
        11px 18px;

    border:
        2px solid #e2e8f0;

    border-radius: 9px;

    cursor: pointer;

    background: #ffffff;

    transition:
        all .2s ease;
}

.variant-option label:hover {
    border-color: #94a3b8;
}

.variant-option input:checked + label {
    border-color: #1e40af;

    background: #eff6ff;

    color: #1e40af;

    font-weight: 700;
}

.variant-option input:disabled + label {
    opacity: .45;

    cursor: not-allowed;

    text-decoration: line-through;
}


/* =========================================================
   TRUST
========================================================= */

.trust-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.trust-item {
    text-align: center;

    padding: 20px;

    background: #f8fafc;

    border-radius: 12px;

    border:
        1px solid #f1f5f9;
}

.trust-icon {
    font-size: 30px;

    margin-bottom: 8px;
}

.trust-title {
    font-weight: 800;

    margin-bottom: 5px;
}

.trust-text {
    color: #64748b;

    font-size: 14px;
}


/* =========================================================
   ORDER SECTION
========================================================= */

.order-section {
    scroll-margin-top: 100px;
}

.order-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 30px;
}


/* =========================================================
   ORDER FORM
========================================================= */

.order-form-group {
    margin-bottom: 17px;
}

.order-form-group label {
    display: block;

    font-weight: 700;

    margin-bottom: 7px;
}

.order-input {
    width: 100%;

    box-sizing: border-box;

    min-height: 48px;

    border:
        1px solid #cbd5e1;

    border-radius: 9px;

    padding:
        11px 13px;

    font-size: 15px;

    background: #ffffff;

    color: #0f172a;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.order-input:focus {
    outline: none;

    border-color: #1e40af;

    box-shadow:
        0 0 0 3px rgba(
            30,
            64,
            175,
            .10
        );
}

textarea.order-input {
    min-height: 100px;

    resize: vertical;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.order-summary {
    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 13px;

    padding: 22px;

    height: fit-content;

    position: sticky;

    top: 90px;
}

.summary-title {
    margin:
        0 0 20px;

    font-size: 20px;

    font-weight: 800;
}

.summary-row {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;

    padding: 9px 0;

    color: #475569;
}

.summary-row strong {
    color: #0f172a;

    text-align: right;
}

.summary-total {
    border-top:
        2px solid #e2e8f0;

    margin-top: 10px;

    padding-top: 15px;

    font-size: 22px;

    font-weight: 900;

    color: #0f172a;
}


/* =========================================================
   FAQ
========================================================= */

.faq-item {
    border-bottom:
        1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    width: 100%;

    background: transparent;

    border: 0;

    padding: 20px 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    text-align: left;

    color: #0f172a;

    font-size: 17px;

    font-weight: 800;

    cursor: pointer;
}

.faq-question:hover {
    color: #1e40af;
}

.faq-answer {
    display: none;

    padding:
        0 0 20px;

    color: #64748b;

    line-height: 1.8;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-plus {
    flex: 0 0 auto;

    font-size: 24px;

    color: #1e40af;
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta-content {
    text-align: center;

    max-width: 700px;

    margin: auto;
}

.final-cta-content p {
    color: #64748b;

    margin-bottom: 25px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.product-footer {
    background: #0f172a;

    color: #cbd5e1;

    padding:
        30px 20px;

    text-align: center;

    margin-top: 30px;

    font-size: 14px;
}


/* =========================================================
   MOBILE CTA
========================================================= */

.mobile-order-bar {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .product-hero {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

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

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

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        padding-bottom: 70px;
    }


    .product-header {
        position: sticky;

        top: 0;
    }


    .product-header-inner {
        padding:
            11px 12px;
    }


    .product-logo {
        font-size: 21px;
    }


    .header-order-btn {
        padding:
            9px 13px;

        font-size: 13px;
    }


    .product-container {
        padding:
            10px 10px 30px;
    }


    .product-hero {
        padding: 12px;

        border-radius: 13px;

        gap: 20px;
    }


    .main-product-image {
        border-radius: 11px;
    }


    .product-title {
        font-size: 29px;

        line-height: 1.25;
    }


    .product-short-description {
        font-size: 15px;

        line-height: 1.6;
    }


    .product-price {
        font-size: 29px;
    }


    .product-old-price {
        font-size: 17px;
    }


    .primary-cta {
        min-height: 54px;

        font-size: 16px;
    }


    .landing-section {
        margin-top: 15px;

        padding:
            20px 16px;

        border-radius: 13px;
    }


    .landing-section-title {
        font-size: 23px;

        margin-bottom: 20px;
    }


    .features-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .feature-card {
        padding: 17px;
    }


    .trust-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .trust-item {
        display: grid;

        grid-template-columns: 45px 1fr;

        grid-template-rows: auto auto;

        column-gap: 12px;

        text-align: left;

        align-items: center;

        padding: 14px;
    }


    .trust-icon {
        grid-row: 1 / 3;

        margin: 0;

        text-align: center;
    }


    .trust-title {
        margin: 0;
    }


    .trust-text {
        font-size: 13px;
    }


    .order-layout {
        gap: 18px;
    }


    .order-summary {
        padding: 17px;
    }


    .summary-title {
        font-size: 18px;
    }


    .summary-total {
        font-size: 20px;
    }


    .faq-question {
        padding: 17px 0;

        font-size: 15px;
    }


    .faq-answer {
        font-size: 14px;
    }


    .product-thumbnails {
        gap: 7px;
    }


    .product-thumbnail {
        width: 65px;
        height: 65px;

        flex-basis: 65px;
    }


    .product-footer {
        margin-top: 15px;

        padding:
            25px 15px;

        font-size: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .product-title {
        font-size: 26px;
    }

    .product-price {
        font-size: 26px;
    }

    .landing-section-title {
        font-size: 21px;
    }

    .product-container {
        padding-left: 7px;
        padding-right: 7px;
    }

}

/* =========================================================
   HERO CONVERSION
========================================================= */

.hero-price-note {
    color: #64748b;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 15px;
}

.hero-cta-wrapper {
    width: 100%;
}

.hero-order-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;

    margin-top: 12px;

    color: #64748b;

    font-size: 12px;
    font-weight: 600;
}

.hero-order-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* =========================================================
   HERO MOBILE
========================================================= */

@media (max-width: 600px) {

    .hero-price-note {
        margin-top: -10px;
        margin-bottom: 13px;
    }

    .hero-order-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

}

/* =========================================================
   QUANTITY SELECTOR
========================================================= */

.quantity-selector {
    display: flex;
    align-items: stretch;

    width: 180px;

    height: 48px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    overflow: hidden;

    background: #ffffff;
}

.quantity-btn {
    width: 50px;

    border: 0;

    background: #f8fafc;

    color: #1e40af;

    font-size: 23px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.quantity-btn:hover {
    background: #eff6ff;

    color: #059669;
}

.quantity-btn:active {
    transform: scale(.96);
}

.quantity-input {
    flex: 1;

    width: 80px;

    min-width: 0;

    border: 0;

    border-left: 1px solid #e2e8f0;

    border-right: 1px solid #e2e8f0;

    text-align: center;

    font-size: 17px;

    font-weight: 800;

    color: #0f172a;

    background: #ffffff;

    outline: none;
}


/* Supprimer les flèches natives du input number */

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}

.quantity-help {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 600px) {

    .quantity-selector {
        width: 160px;
    }

    .quantity-btn {
        width: 48px;
    }

}

/* =========================================================
   MOBILE FIXED ORDER BAR
========================================================= */

.mobile-order-bar {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .mobile-order-bar {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 9999;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 12px;

        padding:
            10px 12px;

        background: #ffffff;

        border-top:
            1px solid #e2e8f0;

        box-shadow:
            0 -5px 20px rgba(
                15,
                23,
                42,
                .12
            );

    }


    .mobile-order-price {

        display: flex;

        flex-direction: column;

        min-width: 0;

    }


    .mobile-order-label {

        color: #64748b;

        font-size: 11px;

        line-height: 1.2;

    }


    .mobile-order-price strong {

        color: #059669;

        font-size: 18px;

        font-weight: 900;

        white-space: nowrap;

    }


    .mobile-order-button {

        flex: 1;

        max-width: 190px;

        min-height: 46px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding:
            0 18px;

        border-radius: 9px;

        background: linear-gradient(
            135deg,
            #1e40af 0%,
            #059669 100%
        );

        color: #ffffff;

        text-decoration: none;

        font-size: 15px;

        font-weight: 800;

        white-space: nowrap;

        transition:
            transform .2s ease,
            box-shadow .2s ease;

    }


    .mobile-order-button:hover {

        color: #ffffff;

        transform: translateY(-1px);

        box-shadow:
            0 5px 15px rgba(
                30,
                64,
                175,
                .20
            );

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .mobile-order-bar {

        padding:
            8px 9px;

    }


    .mobile-order-price strong {

        font-size: 16px;

    }


    .mobile-order-button {

        max-width: 160px;

        min-height: 44px;

        font-size: 14px;

    }

}
/* =========================
   ORDER TRUST
========================= */

.order-trust-box {
    margin-top: 24px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}   

.order-trust-item > span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.order-trust-item strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
}

.order-trust-item small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.order-submit-note {
    margin: 12px 0 16px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* Recherche dans le header SHOPTIME */

.header-search {
    display: flex;
    align-items: center;
    flex: 0 1 260px;
    min-width: 180px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
}

.header-search button {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 0;
    background: linear-gradient(135deg, #1e40af, #059669);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.header-search:focus-within {
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgb(30 64 175 / 10%);
}

@media (max-width: 900px) {
    .product-header-inner {
        flex-wrap: wrap;
    }

    .header-search {
        order: 4;
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* =========================================================
   AMAZON-INSPIRED PRODUCT LAYOUT — VARIANTS NEAR THE IMAGE
   Desktop: image on the left, product details and options on the right.
   Mobile: gallery, one-line horizontal variant bar, title/details, order CTA.
========================================================= */
.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas:
        "gallery info"
        "gallery variants"
        "gallery purchase";
    align-items: start;
    column-gap: 34px;
    row-gap: 0;
}

.product-gallery {
    grid-area: gallery;
    min-width: 0;
    align-self: start;
}

.product-info-main {
    grid-area: info;
    min-width: 0;
    justify-content: flex-start;
    padding-bottom: 14px;
}

.variant-selector-panel {
    grid-area: variants;
    min-width: 0;
    margin: 0 0 18px;
    padding: 17px;
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.variant-selector-heading {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeded;
}

.variant-selector-title {
    margin: 0;
    color: #0f1111;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 750;
}

.variant-selector-help {
    margin: 5px 0 0;
    color: #565959;
    font-size: 13px;
    line-height: 1.5;
}

.variant-selector-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variant-selector-panel .variant-group {
    margin: 0;
}

.variant-selector-panel .variant-label {
    display: block;
    margin-bottom: 9px;
    color: #0f1111;
    font-size: 14px;
    font-weight: 750;
}

.variant-selector-panel .variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 9px;
}

.variant-selector-panel .variant-option {
    min-width: 0;
}

.variant-selector-panel .variant-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.variant-selector-panel .variant-option label {
    position: relative;
    display: flex;
    min-height: 47px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    background: #fff;
    color: #0f1111;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.variant-selector-panel .variant-option label:hover {
    border-color: #888c8c;
    background: #f7fafa;
}

.variant-selector-panel .variant-option input:checked + label {
    border: 2px solid #007185;
    padding: 8px 9px;
    background: #f0fafa;
    color: #0f1111;
    box-shadow: 0 0 0 1px rgb(0 113 133 / 8%);
    font-weight: 700;
}

.variant-selector-panel .variant-option input:checked + label::after {
    content: "✓ Sélectionné";
    color: #007185;
    font-size: 10px;
    font-weight: 700;
}

.variant-selector-panel .variant-option input:focus-visible + label {
    outline: 3px solid rgb(0 113 133 / 25%);
    outline-offset: 2px;
}

.variant-selector-panel .variant-option input:disabled + label {
    color: #8a8a8a;
    border-color: #e5e7eb;
    background: #f7f7f7;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: .75;
}

.variant-option-price {
    color: #565959;
    font-size: 12px;
    font-weight: 600;
}

.variant-out-of-stock {
    color: #b12704;
    font-size: 11px;
    text-decoration: none;
}

.product-purchase-info {
    grid-area: purchase;
    min-width: 0;
    justify-content: flex-start;
    padding-top: 2px;
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "gallery"
            "info"
            "variants"
            "purchase";
        row-gap: 0;
    }

    .product-gallery,
    .product-info-main,
    .variant-selector-panel,
    .product-purchase-info {
        grid-column: 1;
        width: 100%;
    }

    .product-info-main {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .variant-selector-panel {
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .product-hero {
        padding: 12px;
        gap: 0;
        grid-template-areas:
            "gallery"
            "variants"
            "info"
            "purchase";
    }

    /* Mobile: compact single-row variant bar directly below the gallery */
    .variant-selector-panel {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-width: 0;
        margin: 10px 0 8px;
        padding: 9px 10px;
        border-radius: 9px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .variant-selector-heading {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0 10px 0 0;
        border: 0;
        border-right: 1px solid #d5d9d9;
    }

    .variant-selector-title {
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.25;
    }

    .variant-selector-help,
    .variant-selector-icon {
        display: none;
    }

    .variant-selector-groups {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 12px;
        min-width: max-content;
    }

    .variant-selector-panel .variant-group {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
        margin: 0;
    }

    .variant-selector-panel .variant-label {
        flex: 0 0 auto;
        margin: 0;
        font-size: 11px;
        white-space: nowrap;
    }

    .variant-selector-panel .variant-options {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 6px;
        width: max-content;
    }

    .variant-selector-panel .variant-option {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    .variant-selector-panel .variant-option label {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        min-height: 36px;
        padding: 7px 10px;
        border-radius: 7px;
        white-space: nowrap;
        font-size: 12px;
    }

    .variant-selector-panel .variant-option input:checked + label {
        padding: 6px 9px;
    }

    .variant-selector-panel .variant-option input:checked + label::after {
        content: "✓";
        font-size: 11px;
    }

    .variant-option-price {
        font-size: 11px;
    }

    .main-product-image {
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .product-info-main {
        padding-top: 14px;
        padding-bottom: 12px;
    }

}


/* =========================================================
   STEP 3 — PRODUCT VIDEOS + FULL IMAGE GALLERY
   Displayed after the order section, before product features.
========================================================= */
.media-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.media-section-heading .landing-section-title {
    margin-bottom: 8px;
}

.media-section-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #059669;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

.media-section-description {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.media-gallery-count {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    font-weight: 800;
}

.product-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.product-video-card {
    min-width: 0;
    overflow: hidden;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgb(15 23 42 / 9%);
}

.product-video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    background: #0f172a;
}

.product-video-frame iframe,
.product-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #0f172a;
}

.product-video-title {
    margin: 12px 5px 4px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
}

.product-video-external {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 750;
}

.product-video-play {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding-left: 4px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    font-size: 23px;
}

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

.product-image-grid-item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 3px 12px rgb(15 23 42 / 4%);
    -webkit-tap-highlight-color: transparent;
}

.product-image-grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
    transition: transform .25s ease;
}

.product-image-grid-item:hover img,
.product-image-grid-item:focus-visible img {
    transform: scale(1.045);
}

.product-image-grid-item:focus-visible {
    outline: 3px solid #1e40af;
    outline-offset: 3px;
}

.product-image-zoom {
    position: absolute;
    right: 9px;
    bottom: 9px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 50%;
    background: rgb(15 23 42 / 72%);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .2s ease, transform .2s ease;
}

.product-image-grid-item:hover .product-image-zoom,
.product-image-grid-item:focus-visible .product-image-zoom {
    opacity: 1;
    transform: translateY(0);
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    box-sizing: border-box;
    background: rgb(2 6 23 / 94%);
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox > img {
    display: block;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 112px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 20px 80px rgb(0 0 0 / 35%);
}

.product-lightbox-close,
.product-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    background: rgb(255 255 255 / 12%);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.product-lightbox-close:hover,
.product-lightbox-nav:hover {
    background: rgb(255 255 255 / 25%);
}

.product-lightbox-close {
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
}

.product-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.product-lightbox-prev { left: 18px; }
.product-lightbox-next { right: 18px; }

.product-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

body.lightbox-open {
    overflow: hidden;
}

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

@media (max-width: 600px) {
    .media-section-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }

    .media-section-heading .landing-section-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .media-section-description {
        font-size: 13px;
    }

    .media-gallery-count {
        margin-top: 20px;
        padding: 6px 9px;
        font-size: 11px;
    }

    .product-videos-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .product-video-card {
        padding: 8px;
        border-radius: 13px;
    }

    .product-video-title {
        margin-top: 10px;
        font-size: 14px;
    }

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

    .product-image-grid-item {
        border-radius: 11px;
    }

    .product-image-grid-item img {
        padding: 5px;
    }

    .product-image-zoom {
        width: 27px;
        height: 27px;
        right: 6px;
        bottom: 6px;
        opacity: 1;
        transform: none;
        font-size: 19px;
    }

    .product-lightbox {
        padding: 64px 12px 56px;
    }

    .product-lightbox > img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
    }

    .product-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .product-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 29px;
        background: rgb(15 23 42 / 58%);
    }

    .product-lightbox-prev { left: 8px; }
    .product-lightbox-next { right: 8px; }
}


/* =========================================================
   PRODUCT HEADER UX — MOBILE NAVIGATION
   Scoped to the product landing page only.
   Keep the logo + order CTA on the first row, search on the
   second row, and a single horizontally-scrollable category
   strip on the third row.
========================================================= */

@media (max-width: 760px) {
    .product-header {
        position: relative;
        top: auto;
    }

    .product-header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 12px;
        padding: 10px 12px 9px;
    }

    .product-logo {
        order: 1;
        flex: 0 0 auto;
        font-size: 21px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .header-order-btn {
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 13px;
        border-radius: 9px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .header-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        border-radius: 10px;
    }

    .header-search input {
        min-width: 0;
        padding: 10px 12px;
        font-size: 14px;
    }

    .header-search button {
        min-width: 44px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-navigation {
        order: 4;
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 1px 0 3px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-navigation::-webkit-scrollbar {
        display: none;
    }

    .site-navigation__link {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 7px 11px;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #f8fafc;
        color: #334155;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-navigation__link:hover,
    .site-navigation__link:focus-visible {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1e40af;
    }
}

@media (max-width: 380px) {
    .product-header-inner {
        gap: 9px 8px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .product-logo {
        font-size: 19px;
    }

    .header-order-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .site-navigation {
        gap: 6px;
    }

    .site-navigation__link {
        padding: 7px 9px;
        font-size: 11px;
    }
}
