/* ============================================
   MYLENS — SHOP & SINGLE PRODUCT STYLES
   ============================================ */

/* ============================================
   SHOP PAGE — Trust Bar
   ============================================ */
.ml-shop-trust {
    background: var(--ml-white);
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 16px 0;
}

.ml-shop-trust__items {
    display: flex;
    justify-content: center;
    gap: var(--ml-space-2xl);
    flex-wrap: wrap;
}

.ml-shop-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 500;
    color: var(--ml-text-light);
}

/* ============================================
   SHOP PAGE — Filter Pills
   ============================================ */
.ml-shop-filters {
    padding: 20px 0;
    background: var(--ml-surface);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ml-shop-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ml-filter-pill {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--ml-radius-full);
    border: 1.5px solid rgba(0,0,0,0.1);
    background: transparent;
    color: var(--ml-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ml-filter-pill:hover {
    border-color: var(--ml-accent);
    color: var(--ml-accent);
}

.ml-filter-pill--active {
    background: var(--ml-primary);
    border-color: var(--ml-primary);
    color: var(--ml-white);
}

.ml-filter-pill--active:hover {
    color: var(--ml-white);
}

.ml-filter-pill__count {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
    padding: 2px 7px;
    border-radius: var(--ml-radius-full);
}

.ml-filter-pill--active .ml-filter-pill__count {
    background: rgba(255,255,255,0.2);
}

/* ============================================
   SHOP — Parent category dropdowns (child categories)
   Hover bridge fixes “menu disappears while moving to items”: the gap
   below the trigger was not part of any hit-target, so :hover dropped.
   ============================================ */
.ml-filter-dropdown {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

/* Invisible connector — same width as panel — fills the space between
   trigger and panel so the pointer never leaves the dropdown ancestor. */
.ml-filter-dropdown::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    top: 100%;
    width: min(288px, calc(100vw - 32px));
    height: 14px;
    z-index: 198;
}

button.ml-filter-pill.ml-filter-dropdown__toggle {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    text-align: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ml-filter-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ml-filter-dropdown__label {
    flex: 1 1 auto;
}

.ml-filter-dropdown__caret {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.22s ease;
}

.ml-filter-dropdown:hover .ml-filter-dropdown__caret,
.ml-filter-dropdown:focus-within .ml-filter-dropdown__caret,
.ml-filter-dropdown.is-open .ml-filter-dropdown__caret {
    transform: rotate(180deg);
}

.ml-filter-dropdown__panel {
    position: absolute;
    left: 50%;
    /* Sit flush under ::before bridge (bridge height = 14px) — no hover gap */
    top: calc(100% + 14px);
    transform: translateX(-50%) translateY(3px);
    min-width: min(288px, calc(100vw - 32px));
    max-height: min(60vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    margin: 0;
    background: var(--ml-white);
    border: 1px solid rgba(15, 15, 30, 0.08);
    border-radius: var(--ml-radius-xl);
    box-shadow: 0 18px 44px rgba(15, 15, 30, 0.14);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    -webkit-overflow-scrolling: touch;
}

.ml-filter-dropdown:hover .ml-filter-dropdown__panel,
.ml-filter-dropdown:focus-within .ml-filter-dropdown__panel,
.ml-filter-dropdown.is-open .ml-filter-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ml-filter-dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--ml-radius-lg);
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-text-light);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.ml-filter-dropdown__link:hover {
    background: rgba(201, 169, 110, 0.12);
    color: var(--ml-primary);
}

.ml-filter-dropdown__link.is-current {
    background: rgba(27, 27, 47, 0.06);
    color: var(--ml-primary);
}

.ml-filter-dropdown__link .ml-filter-pill__count {
    flex-shrink: 0;
}

.ml-filter-dropdown__link--all {
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .ml-filter-dropdown::before {
        left: 0;
        transform: none;
        width: min(288px, calc(100vw - 32px));
    }

    .ml-filter-dropdown__panel {
        left: 0;
        right: auto;
        top: calc(100% + 14px);
        transform: translateX(0) translateY(3px);
    }

    .ml-filter-dropdown:hover .ml-filter-dropdown__panel,
    .ml-filter-dropdown:focus-within .ml-filter-dropdown__panel,
    .ml-filter-dropdown.is-open .ml-filter-dropdown__panel {
        transform: translateX(0) translateY(0);
    }
}

/* ============================================
   SHOP PAGE — Toolbar
   ============================================ */
.ml-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ml-space-xl);
    flex-wrap: wrap;
    gap: var(--ml-space-md);
}

.ml-shop-count {
    font-family: var(--ml-font-accent);
    font-size: 14px;
    color: var(--ml-text-light);
}

.ml-shop-count strong {
    color: var(--ml-text);
}

.ml-shop-count__term {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    margin-left: 4px;
    font-weight: 700;
    color: var(--ml-primary);
    background: rgba(201, 169, 110, 0.14);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 999px;
}

/* Shop / category / tag / brand archives only use `.ml-shop-page` (see
   woocommerce/archive-product.php). Product cards carry `.ml-fade-up`, which
   starts at opacity:0 until JS adds `.ml-visible`. On taxonomy archives that
   reads as “products missing” (slow JS, strict IO thresholds, or users who do
   not scroll). Show cards immediately here — homepage carousels keep the
   animation because they are not wrapped in `.ml-shop-page`. */
.ml-shop-page .ml-product-grid > .ml-product-card.ml-fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BRAND TAXONOMY ARCHIVE (/brand/{slug}/)
   Distinct hero accent + products band (CSS only)
   ============================================ */
.ml-brand-page .ml-page-hero {
    padding-bottom: 72px;
}

/* Decorative ring — stays inside hero bounds (parent has overflow:hidden). */
.ml-brand-page .ml-page-hero::after {
    content: "";
    position: absolute;
    right: min(6vw, 72px);
    top: 52%;
    transform: translateY(-50%);
    width: min(200px, 22vw);
    height: min(200px, 22vw);
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 0 36px rgba(201, 169, 110, 0.05);
    pointer-events: none;
    z-index: 1;
}

.ml-brand-page .ml-shop-products {
    position: relative;
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(201, 169, 110, 0.07) 0%, transparent 58%),
        linear-gradient(180deg, #faf8f4 0%, #f5f2eb 100%);
}

.ml-brand-page .ml-shop-products::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 169, 110, 0.065) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}

.ml-brand-page .ml-shop-products .ml-container {
    position: relative;
    z-index: 1;
}

.ml-brand-page .ml-shop-toolbar {
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 15, 30, 0.07);
    border-radius: var(--ml-radius-xl);
    box-shadow: 0 10px 32px rgba(15, 15, 30, 0.06);
}

.ml-brand-page .ml-shop-count__term {
    margin-left: 8px;
    padding: 6px 14px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.ml-brand-page .ml-product-grid {
    gap: var(--ml-space-2xl);
}

@media (max-width: 768px) {
    .ml-brand-page .ml-page-hero::after {
        display: none;
    }

    .ml-brand-page .ml-shop-toolbar {
        padding: 14px 16px;
    }
}

/* Override WooCommerce orderby select */
.ml-shop-sort .woocommerce-ordering {
    margin: 0;
}

.ml-shop-sort .woocommerce-ordering select {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--ml-radius-full);
    background: var(--ml-white);
    color: var(--ml-text);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.ml-shop-sort .woocommerce-ordering select:focus {
    border-color: var(--ml-accent);
    outline: none;
}

/* ============================================
   SHOP PAGE — Pagination (premium pill nav)
   ============================================ */
.ml-shop-pagination {
    margin-top: var(--ml-space-3xl);
    text-align: center;
    position: relative;
}

/* Eyebrow label above the pagination strip — its own gold underline gives
   the section a clean "chapter heading" feel without an extra ::after rule. */
.ml-shop-pagination::before {
    content: "Browse Collection";
    display: inline-block;
    font-family: var(--ml-font-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--ml-accent);
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.35);
}

.ml-shop-pagination .woocommerce-pagination {
    margin: 0 !important;
    border: none !important;
    text-align: center !important;
}

.ml-shop-pagination ul.page-numbers,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    list-style: none !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 15, 30, 0.06);
    border-radius: 999px;
    box-shadow:
        0 8px 24px rgba(15, 15, 30, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    overflow: visible;
}

.ml-shop-pagination ul.page-numbers li,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
    background: transparent !important;
}

/* All page items (numbers, links, current, dots, prev/next) — base shape. */
.ml-shop-pagination ul.page-numbers li a,
.ml-shop-pagination ul.page-numbers li span,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    border: 1.5px solid transparent !important;
    background: transparent !important;
    color: var(--ml-text) !important;
    font-family: var(--ml-font-accent) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}

/* Hover state on numbered links — soft lift + accent ring. */
.ml-shop-pagination ul.page-numbers li a:hover,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a:hover {
    background: rgba(201, 169, 110, 0.08) !important;
    border-color: rgba(201, 169, 110, 0.35) !important;
    color: var(--ml-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(201, 169, 110, 0.18) !important;
}

/* Current page — bold gold-gradient pill. We deliberately avoid `transform:
   scale(...)` here because the parent capsule is clipped to a tight
   border-radius and the scaled element + halo would visually bleed past
   the container's edges. Strong color + shadow alone make it pop. */
.ml-shop-pagination ul.page-numbers li span.current,
.ml-shop-pagination ul.page-numbers li .current,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li span.current {
    background: linear-gradient(135deg,
        var(--ml-accent) 0%,
        #E8D5A8 50%,
        var(--ml-accent) 100%) !important;
    background-size: 200% auto !important;
    color: var(--ml-primary) !important;
    border-color: transparent !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.40) !important;
    animation: paginationCurrentShimmer 4s ease-in-out infinite !important;
}

@keyframes paginationCurrentShimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

/* Dots ("...") — minimalist, no background. */
.ml-shop-pagination ul.page-numbers li span.dots,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li span.dots {
    color: rgba(15, 15, 30, 0.35) !important;
    background: transparent !important;
    border-color: transparent !important;
    min-width: 30px !important;
    padding: 0 6px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    cursor: default !important;
}

/* Prev / Next — solid navy pills with white arrow.
   Hovering them swaps to the gold gradient. */
.ml-shop-pagination ul.page-numbers li a.prev,
.ml-shop-pagination ul.page-numbers li a.next,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a.prev,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a.next {
    background: var(--ml-primary) !important;
    color: var(--ml-white) !important;
    border-color: var(--ml-primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    min-width: 44px !important;
    padding: 0 18px !important;
}

.ml-shop-pagination ul.page-numbers li a.prev:hover,
.ml-shop-pagination ul.page-numbers li a.next:hover,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a.prev:hover,
.ml-shop-pagination .woocommerce-pagination ul.page-numbers li a.next:hover {
    background: linear-gradient(135deg,
        var(--ml-accent) 0%,
        var(--ml-accent-hover) 100%) !important;
    border-color: transparent !important;
    color: var(--ml-primary) !important;
    transform: translateY(-2px) translateX(2px) !important;
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.4) !important;
}

.ml-shop-pagination ul.page-numbers li a.prev:hover {
    transform: translateY(-2px) translateX(-2px) !important;
}

/* Override stray Divi/WC default underlines on focus-visible. */
.ml-shop-pagination ul.page-numbers li a:focus-visible {
    outline: 2px solid var(--ml-accent) !important;
    outline-offset: 3px !important;
}

/* Mobile — keep the bar compact and let it horizontally scroll if needed. */
@media (max-width: 540px) {
    .ml-shop-pagination ul.page-numbers,
    .ml-shop-pagination .woocommerce-pagination ul.page-numbers {
        gap: 4px !important;
        padding: 6px !important;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .ml-shop-pagination ul.page-numbers li a,
    .ml-shop-pagination ul.page-numbers li span,
    .ml-shop-pagination .woocommerce-pagination ul.page-numbers li a,
    .ml-shop-pagination .woocommerce-pagination ul.page-numbers li span {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}

/* Empty state */
.ml-shop-empty {
    text-align: center;
    padding: var(--ml-space-4xl) 0;
}

.ml-shop-empty p {
    font-size: var(--ml-text-lg);
    color: var(--ml-text-light);
    margin-bottom: var(--ml-space-xl);
}

/* ============================================
   SINGLE PRODUCT — Breadcrumb bar
   ============================================ */
.ml-product-breadcrumb-bar {
    padding: 16px 0;
    background: var(--ml-surface);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.ml-breadcrumb--dark {
    color: var(--ml-text-muted);
}

.ml-breadcrumb--dark a {
    color: var(--ml-accent);
}

/* ============================================
   SINGLE PRODUCT — Layout
   ============================================ */
.ml-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ml-space-4xl);
    align-items: start;
}

/* Gallery */
.ml-product-gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    position: sticky;
    top: 100px;
}

.ml-product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ml-product-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--ml-surface);
    transition: border-color 0.2s;
}

.ml-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ml-product-gallery__thumb--active,
.ml-product-gallery__thumb:hover {
    border-color: var(--ml-accent);
}

.ml-product-gallery__main {
    position: relative;
    background: var(--ml-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.ml-product-gallery__main img {
    width: 100%;
    height: auto;
    display: block;
}

.ml-product-gallery__main .ml-product-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

/* Product Info */
.ml-product-info__title {
    font-family: var(--ml-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ml-primary);
    margin-bottom: var(--ml-space-md);
    letter-spacing: -0.5px;
}

.ml-product-info__price {
    font-family: var(--ml-font-accent);
    font-size: var(--ml-text-2xl);
    font-weight: 700;
    color: var(--ml-accent);
    margin-bottom: var(--ml-space-lg);
}

.ml-product-info__price del {
    color: var(--ml-text-muted);
    font-weight: 400;
    font-size: var(--ml-text-lg);
    margin-right: 8px;
}

.ml-product-info__price ins {
    text-decoration: none;
    color: var(--ml-sale);
}

.ml-product-info__brand {
    font-family: var(--ml-font-accent);
    font-size: 14px;
    color: var(--ml-text-light);
    margin-bottom: var(--ml-space-xl);
}

.ml-product-info__brand a {
    color: var(--ml-accent);
    font-weight: 600;
}

/* Attribute chips (simple products) */
.ml-product-attr {
    margin-bottom: var(--ml-space-lg);
}

.ml-product-attr__label {
    display: block;
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ml-text);
    margin-bottom: 8px;
}

.ml-product-attr__values {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ml-product-attr__chip {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--ml-radius-full);
    color: var(--ml-text);
    cursor: default;
    transition: all 0.2s;
}

/* ============================================
   VARIATION FORM — Chip-based UI
   ============================================ */
.ml-product-page .ml-product-variations {
    margin-bottom: var(--ml-space-lg);
}

/* =============================================================
   Variations form layout
   =============================================================
   We KEEP the variations_form in the DOM exactly where WooCommerce
   puts it (so the <button type="submit"> remains a child of the
   form and Add to Cart submits correctly). We hide ONLY the
   <table class="variations"> (the native dropdowns) and let
   .single_variation_wrap (qty + Add to Cart) render in place.
*/
.ml-product-page .ml-hidden-variation-form {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    position: relative !important;
}
.ml-product-page .ml-hidden-variation-form .variations_form,
.ml-product-page form.variations_form {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
}

/* Hide only the native dropdown table + reset link — chips drive these. */
body .ml-product-page .ml-hidden-variation-form table.variations,
body .ml-product-page .ml-hidden-variation-form .reset_variations,
body .ml-product-page .ml-hidden-variation-form .reset_variations_alert,
body .ml-product-page form.variations_form > table.variations,
body.woocommerce .ml-product-page table.variations,
#page-container .ml-product-page table.variations {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Cart row: visible, nicely spaced, sits below the chips. */
.ml-product-page .single_variation_wrap {
    display: flex !important;
    height: auto !important;
    overflow: visible !important;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--ml-space-md);
    position: static !important;
}
.ml-product-page .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}
/* The "please choose options" / price / availability message slot. */
.ml-product-page .woocommerce-variation.single_variation {
    width: 100%;
    margin: 0;
}
.ml-product-page .woocommerce-variation.single_variation:empty {
    display: none;
}
.ml-product-page .woocommerce-variation-description {
    display: none; /* Already shown elsewhere on the page. */
}

/* Chip buttons for attributes */
.ml-product-attr__chip {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--ml-radius-full);
    color: var(--ml-text);
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--ml-white);
    line-height: 1;
}

.ml-product-attr__chip:hover {
    border-color: var(--ml-accent);
    color: var(--ml-accent);
}

.ml-product-attr__chip--active {
    background: var(--ml-primary) !important;
    border-color: var(--ml-primary) !important;
    color: var(--ml-white) !important;
}

.ml-product-attr__chip--static {
    cursor: default;
}

/* Keep old variation table styles for fallback */
.ml-product-page .variations_form table.variations {
    width: 100%; border: none; border-collapse: separate;
    border-spacing: 0 12px; margin-bottom: var(--ml-space-lg);
}
.ml-product-page .variations_form table.variations tbody,
.ml-product-page .variations_form table.variations tr { border: none; background: none; }
.ml-product-page .variations_form table.variations td,
.ml-product-page .variations_form table.variations th { border: none; padding: 0; vertical-align: middle; background: none; }
.ml-product-page .variations_form table.variations td.label { padding-right: 16px; }
.ml-product-page .variations_form table.variations td.label label {
    font-family: var(--ml-font-accent); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--ml-text); margin: 0;
}
.ml-product-page .variations_form select {
    width: 100%; max-width: 240px; padding: 12px 40px 12px 16px;
    border: 1.5px solid rgba(0,0,0,0.12); border-radius: 12px;
    font-family: var(--ml-font-accent); font-size: 14px; font-weight: 500;
    color: var(--ml-text); background-color: var(--ml-white); cursor: pointer;
    -webkit-appearance: none; appearance: none; outline: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.ml-product-page .variations_form .reset_variations {
    font-family: var(--ml-font-accent); font-size: 12px; color: var(--ml-text-muted);
    text-decoration: none; margin-left: 8px;
}
.ml-product-page .variations_form table.variations td.value { display: flex; align-items: center; gap: 8px; }

/* ============================================
   PRODUCT ACTIONS — Add to cart area
   ============================================ */
.ml-product-page .ml-product-actions {
    margin-bottom: var(--ml-space-lg);
}

.ml-product-page form.cart,
.ml-product-page .variations_form .single_variation_wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--ml-space-md);
}

/* Quantity input */
.ml-product-page .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ml-white);
}

.ml-product-page .quantity input[type="number"] {
    width: 52px; text-align: center; border: none;
    font-family: var(--ml-font-accent); font-size: 14px; font-weight: 600;
    padding: 12px 0; color: var(--ml-text); background: transparent;
    -moz-appearance: textfield; appearance: textfield; outline: none;
}
.ml-product-page .quantity input::-webkit-inner-spin-button,
.ml-product-page .quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Add to Cart button */
.ml-product-page .single_add_to_cart_button,
.ml-product-page button.single_add_to_cart_button {
    display: inline-flex !important; align-items: center; justify-content: center;
    font-family: var(--ml-font-accent) !important; font-weight: 700 !important;
    font-size: 12px !important; text-transform: uppercase; letter-spacing: 1.5px;
    padding: 14px 36px !important; background: var(--ml-primary) !important;
    color: var(--ml-white) !important; border: none !important;
    border-radius: var(--ml-radius-full) !important; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    line-height: 1.2 !important; height: auto !important; box-shadow: none !important;
}
.ml-product-page .single_add_to_cart_button:hover {
    background: var(--ml-primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27,27,47,0.2) !important;
}

/* TRY-ON button (3rd-party VTO plugins inject this; we normalize the look) */
.ml-product-page .tryon-button,
.ml-product-page a[class*="tryon"],
.ml-product-page button[class*="tryon"],
.ml-product-page .fittingbox-btn,
.ml-product-page .vto-button,
.ml-product-page [class*="virtual-try-on"],
.ml-product-page [id*="tryon"],
.ml-product-page [data-tryon] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--ml-font-accent) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    padding: 10px 18px !important;
    background: var(--ml-white) !important;
    color: var(--ml-primary) !important;
    border: 1.5px solid rgba(27,27,47,0.18) !important;
    border-radius: var(--ml-radius-full) !important;
    cursor: pointer !important;
    transition: border-color .2s ease, color .2s ease, transform .15s ease !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 40px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: auto !important;
}
.ml-product-page .tryon-button:hover,
.ml-product-page a[class*="tryon"]:hover,
.ml-product-page button[class*="tryon"]:hover,
.ml-product-page .fittingbox-btn:hover,
.ml-product-page .vto-button:hover,
.ml-product-page [class*="virtual-try-on"]:hover {
    background: var(--ml-white) !important;
    color: var(--ml-accent) !important;
    border-color: var(--ml-accent) !important;
    transform: translateY(-1px);
}
.ml-product-page .tryon-button:before,
.ml-product-page a[class*="tryon"]:before,
.ml-product-page button[class*="tryon"]:before {
    content: '';
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
    flex-shrink: 0;
}

/* SELECT PRESCRIPTION button */
.ml-product-page .select-prescription-btn,
.ml-product-page a[class*="prescription"],
.ml-product-page button[class*="prescription"],
.ml-product-page .rx-button,
.ml-product-page .wcrx-select-prescription,
.ml-product-page [class*="wcrx"] {
    display: inline-flex !important; align-items: center; justify-content: center;
    font-family: var(--ml-font-accent) !important; font-weight: 700 !important;
    font-size: 12px !important; text-transform: uppercase; letter-spacing: 1.5px;
    padding: 14px 28px !important; background: var(--ml-primary) !important;
    color: var(--ml-white) !important; border: 1.5px solid var(--ml-primary) !important;
    border-radius: var(--ml-radius-full) !important; cursor: pointer;
    transition: all 0.3s ease !important; line-height: 1.2 !important;
    height: auto !important; text-decoration: none !important;
}
.ml-product-page .select-prescription-btn:hover,
.ml-product-page a[class*="prescription"]:hover,
.ml-product-page .rx-button:hover {
    background: var(--ml-primary-light) !important; color: var(--ml-white) !important;
}

/* Variation price display */
.ml-product-page .woocommerce-variation-price { margin-bottom: var(--ml-space-sm); }
.ml-product-page .woocommerce-variation-price .price {
    font-family: var(--ml-font-accent); font-size: var(--ml-text-xl);
    font-weight: 700; color: var(--ml-accent);
}
.ml-product-page .woocommerce-variation-availability { margin-bottom: var(--ml-space-sm); }
.ml-product-page .woocommerce-variation-availability .stock {
    font-family: var(--ml-font-accent); font-size: 13px;
}

/* Trust badges */
.ml-product-trust {
    display: flex; flex-wrap: wrap; gap: var(--ml-space-lg);
    padding: var(--ml-space-lg) 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: var(--ml-space-lg);
}
.ml-product-trust__item {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--ml-font-accent); font-size: 12px;
    font-weight: 500; color: var(--ml-text-light);
}

/* ============================================
   FEATURE CARDS (below trust badges)
   ============================================ */
body .ml-product-page .ml-product-features,
#page-container .ml-product-features {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: var(--ml-space-xl);
    width: 100%;
}
body .ml-product-page .ml-product-feature-card,
#page-container .ml-product-feature-card {
    background: var(--ml-surface) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 14px !important;
    padding: 22px 16px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px;
    min-height: 100px;
}
.ml-product-feature-card svg {
    margin-bottom: 4px;
    flex-shrink: 0;
}
.ml-product-feature-card strong {
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ml-text);
    display: block;
}
.ml-product-feature-card span {
    font-size: 11px;
    color: var(--ml-text-light);
    line-height: 1.4;
    display: block;
}

/* Short description */
.ml-product-short-desc {
    font-size: 14px; color: var(--ml-text-light); line-height: 1.8;
}

/* ============================================
   PRODUCT TABS — Fixed spacing
   ============================================ */
.ml-product-tabs-section {
    padding: var(--ml-space-3xl) 0;
    background: var(--ml-surface-alt);
}
.ml-product-tabs-section .woocommerce-tabs {
    max-width: 900px; margin: 0 auto;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs {
    display: flex; gap: 0; list-style: none; padding: 0;
    margin: 0 0 var(--ml-space-xl); border-bottom: 2px solid rgba(0,0,0,0.06);
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li {
    margin: 0; padding: 0; border: none; background: none;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li::before,
.ml-product-tabs-section .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li a {
    display: block; padding: 14px 24px;
    font-family: var(--ml-font-accent); font-size: 14px; font-weight: 600;
    color: var(--ml-text-light); text-decoration: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li.active a {
    color: var(--ml-primary); border-bottom-color: var(--ml-accent);
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li a:hover {
    color: var(--ml-accent);
}
.ml-product-tabs-section .woocommerce-tabs .panel { padding: 0; }
.ml-product-tabs-section .woocommerce-tabs .panel h2 {
    font-size: var(--ml-text-xl); margin-bottom: var(--ml-space-md);
}
.ml-product-tabs-section .woocommerce-tabs .panel p {
    color: var(--ml-text-light); line-height: 1.8;
}

/* Hide stray Divi toggles, accordions, and WC zoom trigger */
.ml-product-page .et_pb_module,
.ml-product-page .et_pb_toggle,
.ml-product-page .et_pb_accordion {
    max-width: 100% !important;
}
.ml-product-page .et_pb_toggle,
.ml-product-page .et_pb_accordion,
.ml-product-page .woocommerce-product-gallery__trigger,
.ml-product-page .zoomImg,
.ml-product-page .flex-control-nav,
.ml-product-page .woocommerce-product-gallery .flex-viewport ~ ol {
    display: none !important;
}

/* Hide any floating WC zoom icon on gallery */
.ml-product-gallery .woocommerce-product-gallery__trigger,
.ml-product-page .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* ============================================
   RESPONSIVE (legacy — kept for shop archive)
   ============================================ */
@media (max-width: 1024px) {
    .ml-shop-trust__items { gap: var(--ml-space-md); }
}
@media (max-width: 768px) {
    .ml-shop-trust__items { gap: var(--ml-space-md); }
    .ml-shop-trust__item { font-size: 11px; }
    .ml-shop-filter-pills { gap: 6px; }
    .ml-filter-pill { font-size: 11px; padding: 8px 14px; }
}

/* ============================================================
   ============================================================
   SINGLE PRODUCT — REDESIGN (v2.1)
   ============================================================
   Everything below this banner supersedes the older
   .ml-product-* blocks above for the new template structure.
   ============================================================ */

/* ----- Hero section spacing ----- */
.ml-product-hero {
    padding-top: var(--ml-space-2xl);
    padding-bottom: var(--ml-space-3xl);
    background: var(--ml-surface);
}

.ml-product-page .ml-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

/* ----- Breadcrumb refinements ----- */
.ml-product-breadcrumb-bar .ml-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-text-muted);
}
.ml-breadcrumb__sep {
    color: var(--ml-text-muted);
    user-select: none;
}
.ml-product-breadcrumb-bar .ml-breadcrumb a {
    color: var(--ml-text-light);
    transition: color var(--ml-transition-fast);
}
.ml-product-breadcrumb-bar .ml-breadcrumb a:hover {
    color: var(--ml-accent);
}
.ml-product-breadcrumb-bar .ml-breadcrumb [aria-current="page"] {
    color: var(--ml-text);
    font-weight: 500;
}

/* ============================================
   GALLERY — Modern, accessible, swipeable
   ============================================ */
.ml-product-page .ml-product-gallery {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    position: sticky;
    top: 96px;
}

.ml-product-page .ml-product-gallery__thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.ml-product-page .ml-product-gallery__thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--ml-white);
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}
.ml-product-page .ml-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ml-product-page .ml-product-gallery__thumb:hover { transform: translateY(-2px); }
.ml-product-page .ml-product-gallery__thumb.is-active {
    border-color: var(--ml-accent);
}

.ml-product-page .ml-product-gallery__main {
    position: relative !important;
    background: var(--ml-white);
    border-radius: 24px;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.05);
    aspect-ratio: 1 / 1 !important;
    /* Fallback for older browsers / Divi overrides */
    min-height: 320px;
    width: 100%;
}

.ml-product-page .ml-product-gallery__viewport {
    position: relative;
    display: block !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* Bulletproof slide visibility — only the active slide is shown.
   Using display:none/block avoids subtle issues with opacity+absolute
   and overrides any conflicting Divi WC styles. */
.ml-product-page .ml-product-gallery__slide {
    display: none !important;
    width: 100%;
    height: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
    background: var(--ml-white);
}
.ml-product-page .ml-product-gallery__slide.is-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.ml-product-page .ml-product-gallery__slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    padding: 6%;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
@media (hover: hover) {
    .ml-product-page .ml-product-gallery__slide.is-zooming img {
        transform: scale(1.6);
        cursor: zoom-out;
    }
    .ml-product-page .ml-product-gallery__slide:hover img {
        cursor: zoom-in;
    }
}

.ml-product-page .ml-product-gallery__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ml-badge {
    font-family: var(--ml-font-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--ml-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    color: var(--ml-white);
    backdrop-filter: blur(6px);
}
.ml-badge--sale { background: var(--ml-sale); }
.ml-badge--new  { background: var(--ml-primary); }
.ml-badge--low  { background: var(--ml-warning); color: var(--ml-text); }

.ml-product-page .ml-product-gallery__zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--ml-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ml-shadow-md);
    transition: all var(--ml-transition-fast);
}
.ml-product-page .ml-product-gallery__zoom-btn:hover {
    background: var(--ml-accent);
    color: var(--ml-white);
    transform: scale(1.05);
}

.ml-product-page .ml-product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--ml-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ml-shadow-md);
    opacity: 0;
    transition: opacity var(--ml-transition-fast), background var(--ml-transition-fast);
}
.ml-product-page .ml-product-gallery__main:hover .ml-product-gallery__nav { opacity: 1; }
.ml-product-page .ml-product-gallery__nav:hover { background: var(--ml-accent); color: var(--ml-white); }
.ml-product-page .ml-product-gallery__nav--prev { left: 12px; }
.ml-product-page .ml-product-gallery__nav--next { right: 12px; }

.ml-product-page .ml-product-gallery__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 6px;
    z-index: 3;
}
.ml-product-gallery__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    transition: all 0.2s;
}
.ml-product-gallery__dot.is-active {
    background: var(--ml-accent);
    width: 18px;
    border-radius: 3px;
}

/* ============================================
   SUMMARY — Right column
   ============================================ */
.ml-product-summary { display: flex; flex-direction: column; gap: var(--ml-space-lg); }

.ml-product-summary__header { display: flex; flex-direction: column; gap: 8px; }

.ml-product-summary__brand {
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ml-accent);
    text-decoration: none;
    align-self: flex-start;
}
.ml-product-summary__brand:hover { color: var(--ml-accent-hover); }

.ml-product-summary__title {
    font-family: var(--ml-font-heading);
    font-weight: 700;
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    color: var(--ml-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.ml-product-summary__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-text-light);
}
.ml-product-summary__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ml-text);
    text-decoration: none;
}
.ml-product-summary__rating:hover { color: var(--ml-accent); }
.ml-product-summary__rating-text { font-size: 13px; }
.ml-product-summary__sku { color: var(--ml-text-muted); }

/* CSS-only stars using a percentage variable */
.ml-stars {
    --ml-stars: 0%;
    position: relative;
    display: inline-block;
    line-height: 1;
    font-size: 16px;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.18);
}
.ml-stars__base { color: inherit; }
.ml-stars__fill {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: var(--ml-stars);
    color: var(--ml-accent);
    white-space: nowrap;
}

/* Price */
.ml-product-summary__price {
    font-family: var(--ml-font-accent);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    color: var(--ml-primary);
    line-height: 1;
}
.ml-product-summary__price .woocommerce-Price-amount { color: var(--ml-primary); }
.ml-product-summary__price del {
    color: var(--ml-text-muted);
    font-size: 0.7em;
    font-weight: 500;
    margin-right: 8px;
}
.ml-product-summary__price ins {
    text-decoration: none;
    background: none;
    color: var(--ml-sale);
}

.ml-product-summary__short {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ml-text-light);
    border-left: 2px solid var(--ml-accent);
    padding-left: var(--ml-space-md);
}
.ml-product-summary__short p { margin-bottom: 0; }

/* Variation chips — refined */
.ml-product-page .ml-product-variations {
    display: flex;
    flex-direction: column;
    gap: var(--ml-space-md);
    margin: 0;
}
.ml-product-attr { margin: 0; }
.ml-product-attr__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.ml-product-attr__label {
    font-family: var(--ml-font-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ml-text);
}
.ml-product-attr__selected {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-text-light);
    font-weight: 500;
}
.ml-product-attr__values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* =========================================================================
   Variation chips — ALWAYS interactive.
   Single-option chips render as a "selected" pill so the user clearly sees
   which variant they're getting. Heavy specificity + !important to beat
   Divi's button base styles, plugin resets, and any inherited form styles.
   ========================================================================= */
body.mylens-product .ml-product-page .ml-product-variations,
body .ml-product-page .ml-product-variations {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}
body.mylens-product .ml-product-page .ml-product-attr,
body .ml-product-page .ml-product-attr {
    pointer-events: auto !important;
}
body.mylens-product .ml-product-page .ml-product-attr__values,
body .ml-product-page .ml-product-attr__values {
    pointer-events: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
body.mylens-product .ml-product-page button.ml-product-attr__chip,
body.mylens-product .ml-product-page .ml-product-attr__chip,
body .ml-product-page button.ml-product-attr__chip,
body .ml-product-page .ml-product-attr__chip {
    font-family: var(--ml-font-accent) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 11px 20px !important;
    margin: 0 !important;
    border: 1.5px solid rgba(0,0,0,0.14) !important;
    border-radius: var(--ml-radius-full) !important;
    color: var(--ml-text) !important;
    cursor: pointer !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease !important;
    background: var(--ml-white) !important;
    background-image: none !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    box-shadow: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip::before,
body .ml-product-page .ml-product-attr__chip::before {
    display: none !important;
    content: none !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip:hover,
body .ml-product-page .ml-product-attr__chip:hover {
    border-color: var(--ml-primary) !important;
    color: var(--ml-primary) !important;
    background: var(--ml-white) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(27,27,47,0.10) !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip:active,
body .ml-product-page .ml-product-attr__chip:active {
    transform: translateY(0) !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip:focus,
body.mylens-product .ml-product-page .ml-product-attr__chip:focus-visible,
body .ml-product-page .ml-product-attr__chip:focus,
body .ml-product-page .ml-product-attr__chip:focus-visible {
    outline: 2px solid var(--ml-accent) !important;
    outline-offset: 2px !important;
}
/* Selected (current variant) — used for both multi-option AND single-option groups. */
body.mylens-product .ml-product-page .ml-product-attr__chip.is-active,
body .ml-product-page .ml-product-attr__chip.is-active {
    background: var(--ml-primary) !important;
    border-color: var(--ml-primary) !important;
    color: var(--ml-white) !important;
    box-shadow: 0 4px 14px rgba(27,27,47,0.18) !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip.is-active:hover,
body .ml-product-page .ml-product-attr__chip.is-active:hover {
    background: var(--ml-primary) !important;
    border-color: var(--ml-primary) !important;
    color: var(--ml-white) !important;
    transform: translateY(-1px) !important;
}

/* Single-option group: still clickable, just show a subtle "only choice"
   hint via the selected indicator in the head, never by disabling the chip. */
body .ml-product-page .ml-product-attr--single .ml-product-attr__selected {
    color: var(--ml-text-muted);
    font-style: normal;
}

/* Disabled chip — no remaining variation matches this value given the
   user's current selection. Visually muted, struck-through, not clickable. */
body.mylens-product .ml-product-page .ml-product-attr__chip.is-disabled,
body .ml-product-page .ml-product-attr__chip.is-disabled,
body.mylens-product .ml-product-page .ml-product-attr__chip[disabled],
body .ml-product-page .ml-product-attr__chip[disabled] {
    cursor: not-allowed !important;
    opacity: .42 !important;
    text-decoration: line-through !important;
    color: var(--ml-text-muted) !important;
    background: var(--ml-surface, #f5f4ef) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: none !important;
    transform: none !important;
}
body.mylens-product .ml-product-page .ml-product-attr__chip.is-disabled:hover,
body .ml-product-page .ml-product-attr__chip.is-disabled:hover,
body.mylens-product .ml-product-page .ml-product-attr__chip[disabled]:hover,
body .ml-product-page .ml-product-attr__chip[disabled]:hover {
    transform: none !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: var(--ml-text-muted) !important;
    background: var(--ml-surface, #f5f4ef) !important;
    box-shadow: none !important;
}

/* Static info chip — used on simple products as <span>, no interaction. */
body .ml-product-page span.ml-product-attr__chip.is-static {
    cursor: default !important;
    background: var(--ml-surface, #f5f4ef) !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: var(--ml-text) !important;
    box-shadow: none !important;
}
body .ml-product-page span.ml-product-attr__chip.is-static:hover {
    transform: none !important;
    border-color: rgba(0,0,0,0.10) !important;
    color: var(--ml-text) !important;
    background: var(--ml-surface, #f5f4ef) !important;
    box-shadow: none !important;
}

/* Hide the native WC <select> form but keep the cart button row */
.ml-product-page .ml-hidden-variation-form {
    /* Position the hidden form's contents off-screen but functional */
    position: relative;
    margin: 0;
}
.ml-product-page .ml-hidden-variation-form table.variations,
.ml-product-page .ml-hidden-variation-form .reset_variations,
.ml-product-page .ml-hidden-variation-form .reset_variations_alert {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.ml-product-page .ml-hidden-variation-form .single_variation_wrap {
    display: flex !important;
    flex-direction: column;
    gap: var(--ml-space-md);
}
.ml-product-page .ml-hidden-variation-form .woocommerce-variation {
    margin: 0;
}
.ml-product-page .ml-hidden-variation-form .woocommerce-variation:empty { display: none; }
.ml-product-page .ml-hidden-variation-form .woocommerce-variation-price .price {
    font-family: var(--ml-font-accent);
    font-weight: 700;
    color: var(--ml-primary);
}
.ml-product-page .ml-hidden-variation-form .woocommerce-variation-availability .stock {
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-success);
}

/* Add-to-cart row */
.ml-product-page form.cart,
.ml-product-page .variations_button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ml-product-page .quantity {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--ml-radius-full);
    overflow: hidden;
    background: var(--ml-white);
    height: 52px;
}
.ml-product-page .quantity .ml-qty-btn {
    width: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--ml-text);
    transition: background 0.2s;
}
.ml-product-page .quantity .ml-qty-btn:hover { background: var(--ml-surface); color: var(--ml-accent); }
.ml-product-page .quantity input[type="number"] {
    width: 48px;
    border: none;
    text-align: center;
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 600;
    color: var(--ml-text);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    padding: 0;
}
.ml-product-page .quantity input::-webkit-inner-spin-button,
.ml-product-page .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Add-to-Cart button (always re-using WC's <button>) */
.ml-product-page .single_add_to_cart_button {
    flex: 1 1 220px;
    height: 52px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ml-font-accent) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 0 28px !important;
    background: var(--ml-primary) !important;
    color: var(--ml-white) !important;
    border: none !important;
    border-radius: var(--ml-radius-full) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    line-height: 1 !important;
    box-shadow: 0 6px 18px rgba(27,27,47,0.18) !important;
}
.ml-product-page .single_add_to_cart_button:hover:not([disabled]):not(.disabled) {
    background: var(--ml-accent) !important;
    color: var(--ml-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(201,169,110,0.35) !important;
}
.ml-product-page .single_add_to_cart_button.disabled,
.ml-product-page .single_add_to_cart_button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--ml-text-muted) !important;
    box-shadow: none !important;
}

/* Prescription CTA — make it visually equal to add-to-cart */
.ml-product-page .perdysy-rx-open-wizard,
.ml-product-page .select-prescription-btn,
.ml-product-page .wcrx-select-prescription,
.ml-product-page [class*="wcrx"] {
    height: 52px;
    flex: 1 1 220px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--ml-font-accent) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 0 24px !important;
    background: transparent !important;
    color: var(--ml-primary) !important;
    border: 1.5px solid var(--ml-primary) !important;
    border-radius: var(--ml-radius-full) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
.ml-product-page .perdysy-rx-open-wizard:hover,
.ml-product-page .select-prescription-btn:hover,
.ml-product-page .wcrx-select-prescription:hover {
    background: var(--ml-primary) !important;
    color: var(--ml-white) !important;
}

/* Secondary actions row (wishlist / try-on / share) */
.ml-product-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.ml-product-wishlist-btn,
.ml-product-tryon-btn,
.ml-product-share-btn,
.ml-product-page .ml-product-wishlist .yith-wcwl-add-button > a,
.ml-product-page .ml-product-wishlist .ti-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--ml-radius-full);
    background: var(--ml-white);
    color: var(--ml-text-light);
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.ml-product-wishlist-btn:hover,
.ml-product-tryon-btn:hover,
.ml-product-share-btn:hover {
    border-color: var(--ml-accent);
    color: var(--ml-accent);
}
.ml-product-tryon-btn {
    color: var(--ml-accent);
    border-color: var(--ml-accent);
}
.ml-product-tryon-btn:hover {
    background: var(--ml-accent);
    color: var(--ml-white);
}

/* Estimated delivery — high specificity + !important to defeat Divi WC resets */
body .ml-product-page .ml-product-delivery {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(27,27,47,0.04));
    border: 1px solid rgba(201,169,110,0.18);
    border-radius: var(--ml-radius-lg);
    color: var(--ml-text);
    font-family: var(--ml-font-accent);
    font-size: 14px;
    line-height: 1.4;
}
body .ml-product-page .ml-product-delivery > svg {
    color: var(--ml-accent);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: block;
}
body .ml-product-page .ml-product-delivery > div {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}
body .ml-product-page .ml-product-delivery strong {
    display: block;
    font-weight: 700;
    color: var(--ml-primary);
    line-height: 1.2;
    margin-bottom: 2px;
}
body .ml-product-page .ml-product-delivery span {
    display: block;
    font-size: 13px;
    color: var(--ml-text-light);
    line-height: 1.4;
}

/* Payment icons — defensive sizing (some themes stretch attribute-less SVGs) */
body .ml-product-page .ml-product-payments {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
body .ml-product-page .ml-product-payments__label {
    font-family: var(--ml-font-accent);
    font-size: 12px;
    color: var(--ml-text-muted);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
body .ml-product-page .ml-product-payments__icons {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    max-width: 100%;
}
body .ml-product-page .ml-product-payments__icons svg {
    width: 38px !important;
    height: 24px !important;
    max-width: 38px;
    max-height: 24px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Summary footer */
.ml-product-summary__footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: var(--ml-space-md);
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-text-muted);
}
.ml-product-summary__footer a { color: var(--ml-text-light); }
.ml-product-summary__footer a:hover { color: var(--ml-accent); }

/* ============================================
   TRUST STRIP & FEATURES
   ============================================ */
.ml-product-trust-section {
    padding: var(--ml-space-2xl) 0 var(--ml-space-3xl);
    background: var(--ml-surface);
}

.ml-product-trust-strip {
    list-style: none;
    margin: 0 0 var(--ml-space-2xl);
    padding: var(--ml-space-lg) var(--ml-space-xl);
    background: var(--ml-white);
    border-radius: var(--ml-radius-xl);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--ml-shadow-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ml-space-lg);
}
.ml-product-trust-strip li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ml-product-trust-strip svg { color: var(--ml-accent); flex-shrink: 0; }
.ml-product-trust-strip strong {
    display: block;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 700;
    color: var(--ml-primary);
    letter-spacing: 0.2px;
}
.ml-product-trust-strip span {
    font-family: var(--ml-font-accent);
    font-size: 12px;
    color: var(--ml-text-light);
}

.ml-product-page .ml-product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ml-space-lg);
}
.ml-product-page .ml-product-feature-card {
    background: var(--ml-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--ml-radius-xl);
    padding: var(--ml-space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ml-product-page .ml-product-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-lg);
}
.ml-product-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,169,110,0.16), rgba(201,169,110,0.04));
    color: var(--ml-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.ml-product-page .ml-product-feature-card strong {
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ml-primary);
    display: block;
}
.ml-product-page .ml-product-feature-card span {
    font-size: 13px;
    color: var(--ml-text-light);
    line-height: 1.55;
    display: block;
}

/* ============================================
   TABS — Refined
   ============================================ */
.ml-product-tabs-section {
    padding: var(--ml-space-3xl) 0;
    background: var(--ml-surface-alt);
}
.ml-product-tabs-section .woocommerce-tabs {
    max-width: 920px;
    margin: 0 auto;
    background: var(--ml-white);
    border-radius: var(--ml-radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0 var(--ml-space-xl);
    margin: 0;
    background: var(--ml-surface);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    overflow-x: auto;
    scrollbar-width: none;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.ml-product-tabs-section .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    flex-shrink: 0;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li::before,
.ml-product-tabs-section .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ml-product-tabs-section .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 18px 22px;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ml-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li.active a {
    color: var(--ml-primary);
    border-bottom-color: var(--ml-accent);
    background: var(--ml-white);
}
.ml-product-tabs-section .woocommerce-tabs ul.tabs li a:hover { color: var(--ml-accent); }
.ml-product-tabs-section .woocommerce-tabs .panel {
    padding: var(--ml-space-2xl) var(--ml-space-2xl) var(--ml-space-2xl);
    margin: 0;
}
.ml-product-tabs-section .woocommerce-tabs .panel h2 {
    font-size: var(--ml-text-xl);
    margin-bottom: var(--ml-space-md);
}
.ml-product-tabs-section .woocommerce-tabs .panel p {
    color: var(--ml-text);
    line-height: 1.8;
}
.ml-product-tabs-section .woocommerce-tabs .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}
.ml-product-tabs-section .woocommerce-tabs .shop_attributes th,
.ml-product-tabs-section .woocommerce-tabs .shop_attributes td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-family: var(--ml-font-accent);
    font-size: 14px;
    text-align: left;
}
.ml-product-tabs-section .woocommerce-tabs .shop_attributes th {
    width: 200px;
    font-weight: 700;
    color: var(--ml-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Hide stray Divi toggles inside the product page */
.ml-product-page .et_pb_toggle,
.ml-product-page .et_pb_accordion,
.ml-product-page .woocommerce-product-gallery__trigger,
.ml-product-page .flex-control-nav,
.ml-product-page .zoomImg {
    display: none !important;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.ml-product-related {
    padding-top: var(--ml-space-3xl);
    padding-bottom: var(--ml-space-3xl);
    background: var(--ml-surface);
}

/* ============================================
   STICKY ADD-TO-CART BAR (mobile)
   ============================================ */
.ml-product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--ml-white);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 10px 0;
}
.ml-product-sticky-bar.is-visible { transform: translateY(0); }
.ml-product-sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ml-product-sticky-bar__media img {
    width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block;
    background: var(--ml-surface);
}
.ml-product-sticky-bar__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ml-product-sticky-bar__title {
    font-family: var(--ml-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ml-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ml-product-sticky-bar__price {
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 700;
    color: var(--ml-primary);
}
.ml-product-sticky-bar__price del { color: var(--ml-text-muted); font-weight: 400; font-size: 12px; margin-right: 6px; }
.ml-product-sticky-bar__price ins { text-decoration: none; color: var(--ml-sale); }
.ml-product-sticky-bar__cta {
    flex-shrink: 0;
    height: 44px;
    padding: 0 22px;
    background: var(--ml-primary);
    color: var(--ml-white);
    font-family: var(--ml-font-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--ml-radius-full);
    cursor: pointer;
    transition: background 0.2s;
}
.ml-product-sticky-bar__cta:hover { background: var(--ml-accent); color: var(--ml-primary); }

/* Reserve space below content so sticky bar doesn't cover footer */
@media (max-width: 768px) {
    body.mylens-product { padding-bottom: 78px; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .ml-product-page .ml-product-layout {
        grid-template-columns: 1fr;
        gap: var(--ml-space-2xl);
    }
    .ml-product-page .ml-product-gallery {
        position: static;
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .ml-product-trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ml-product-hero { padding-top: var(--ml-space-lg); padding-bottom: var(--ml-space-2xl); }
    .ml-product-page .ml-product-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ml-product-page .ml-product-gallery__thumbs {
        flex-direction: row;
        order: 2;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }
    .ml-product-page .ml-product-gallery__thumb { width: 64px; height: 64px; flex-shrink: 0; }
    .ml-product-page .ml-product-gallery__nav { display: none; }
    .ml-product-page .ml-product-gallery__dots { display: flex; }
    .ml-product-page .ml-product-features { grid-template-columns: 1fr; }
    .ml-product-trust-strip { grid-template-columns: repeat(2, 1fr); padding: var(--ml-space-md); }
    .ml-product-page .single_add_to_cart_button { flex: 1 1 100%; }
    .ml-product-page .perdysy-rx-open-wizard { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .ml-product-trust-strip { grid-template-columns: 1fr; }
    .ml-product-trust-strip li:not(:last-child) {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: var(--ml-space-md);
    }
    .ml-product-summary__meta-row { font-size: 12px; }
    .ml-product-secondary-actions .ml-product-wishlist-btn span,
    .ml-product-secondary-actions .ml-product-share-btn span,
    .ml-product-secondary-actions .ml-product-tryon-btn span { display: none; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .ml-product-page * {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

