/**
 * Single Product enhancements — gallery carousel + variation swatches + meta cleanup.
 * Adapted to the Oriental Zen design system (sharp corners, editorial spacing).
 * Loaded only on WooCommerce single-product pages.
 */

/* ================================================================
   1. GALLERY — main image + horizontal thumbnail strip + arrows
   ================================================================ */

.woocommerce-product-gallery{
    opacity:1!important;
    position:relative;
    margin-bottom:1.5rem;
}

.woocommerce-product-gallery__wrapper{
    display:flex;
    flex-direction:column;
    gap:12px;
    position:relative;
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* --- Main image stage --- */
.oz-gallery__main{
    position:relative;
    width:100%;
    max-width:100%;
    margin:0;
    border:1px solid var(--line);
    overflow:hidden;
    line-height:0;
    background:var(--bg-2);
    box-sizing:border-box;
}

.oz-gallery__track{
    position:relative;
    width:100%;
    height:100%;
    transform:translateX(0);
    will-change:transform;
}

.oz-gallery__slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    line-height:0;
}

.oz-gallery__slide--current{
    position:relative;
    transform:translateX(0);
}

.oz-gallery__slide--next{
    top:0;
    left:0;
    transform:translateX(100%);
}

.oz-gallery__main-link{
    display:block;
    line-height:0;
    cursor:zoom-in;
}

.oz-gallery__main-img{
    width:100%;
    max-width:100%;
    height:auto;
    object-fit:contain;
    display:block;
    margin:0;
    padding:0;
}

/* --- Arrow navigation --- */
.oz-gallery__main .oz-gallery__arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px !important;
    height:48px !important;
    border:none !important;
    border-radius:50% !important;
    background:rgba(0,0,0,.35) !important;
    color:#fff !important;
    cursor:pointer;
    transition:background .3s ease,transform .3s cubic-bezier(.34,1.56,.64,1),opacity .3s ease,box-shadow .3s ease;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    opacity:.85;
    box-shadow:0 2px 12px rgba(0,0,0,.15);
    padding:0 !important;
}

.oz-gallery__main .oz-gallery__arrow svg{
    display:block;
    flex:0 0 auto;
}

.oz-gallery__main .oz-gallery__arrow:hover{
    background:rgba(0,0,0,.65) !important;
    opacity:1;
    transform:translateY(-50%) scale(1.12) !important;
    box-shadow:0 4px 20px rgba(0,0,0,.25);
}

.oz-gallery__main .oz-gallery__arrow:active{
    transform:translateY(-50%) scale(.92) !important;
}

.oz-gallery__main .oz-gallery__arrow--prev{
    left:16px !important;
}

.oz-gallery__main .oz-gallery__arrow--next{
    right:16px !important;
}

.oz-gallery__arrow[disabled]{
    opacity:.2;
    cursor:default;
    pointer-events:none;
}

/* --- Horizontal thumbnail strip --- */
.oz-gallery__thumbs{
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    overflow-x:auto;
    padding:2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}

.oz-gallery__thumbs::-webkit-scrollbar{
    height:4px;
}

.oz-gallery__thumbs::-webkit-scrollbar-thumb{
    background:var(--line);
    border-radius:2px;
}

.oz-gallery__thumb{
    flex:0 0 auto;
    width:76px;
    height:76px;
    padding:0;
    border:2px solid var(--line);
    overflow:hidden;
    cursor:pointer;
    background:none;
    transition:border-color .2s ease,transform .2s ease;
    line-height:0;
}

.oz-gallery__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.55;
    transition:opacity .2s ease;
}

.oz-gallery__thumb:hover{
    border-color:var(--ink);
    transform:translateY(-2px);
}

.oz-gallery__thumb:hover img{
    opacity:.85;
}

.oz-gallery__thumb.is-active{
    border-color:var(--ink);
    box-shadow:0 0 0 1px var(--ink);
}

.oz-gallery__thumb.is-active img{
    opacity:1;
}

/* --- Hide old fallback gallery styles (no longer used) --- */
.woocommerce-product-gallery__wrapper:not(:has(.oz-gallery__main)) .woocommerce-product-gallery__image:not(:first-child){
    display:none;
}

/* --- Flexslider thumbnail nav (if flexslider initializes) --- */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs{
    display:flex!important;
    flex-wrap:nowrap;
    gap:10px;
    list-style:none;
    padding:0;
    margin:0;
    overflow-x:auto;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li{
    width:76px;
    height:76px;
    margin:0!important;
    flex:0 0 76px;
    border:2px solid var(--line);
    overflow:hidden;
    cursor:pointer;
    transition:border-color .2s ease,transform .2s ease;
    line-height:0;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.55;
    transition:opacity .2s ease;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li:hover{
    border-color:var(--ink);
    transform:translateY(-2px);
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li:hover img{
    opacity:.85;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active{
    opacity:1;
}

.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li.flex-active{
    border-color:var(--ink);
    box-shadow:0 0 0 1px var(--ink);
}

.woocommerce-product-gallery .flex-viewport{
    border:1px solid var(--line);
    overflow:hidden;
    line-height:0;
}

.woocommerce-product-gallery .flex-viewport img{
    width:100%;
    height:auto;
    object-fit:contain;
    display:block;
}

/* ================================================================
   2. VARIATION SWATCHES — flat tiles instead of dropdowns
   ================================================================ */

.variations_form select{
    position:absolute!important;
    width:1px;height:1px;
    overflow:hidden;
    clip:rect(1px,1px,1px,1px);
    white-space:nowrap;
    border:0;padding:0;margin:-1px;
    opacity:0;
    pointer-events:none;
}

.variations_form table.variations{
    width:100%;
    border:none;
    margin-bottom:1.5rem;
}

.variations_form table.variations tr{
    display:flex;
    flex-direction:column;
    gap:.6rem;
    margin-bottom:1.25rem;
    border:none;
}

.variations_form table.variations td,
.variations_form table.variations th{
    display:block;
    width:100%;
    padding:0;
    border:none;
    text-align:left;
    vertical-align:top;
}

.variations_form table.variations th.label label{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.14em;
    color:var(--ink);
}

.swatch-tiles{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.swatch-tile{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    min-height:44px;
    padding:8px 18px;
    border:1.5px solid var(--line);
    border-radius:0;
    background:#fff;
    color:var(--ink);
    font-size:13px;
    font-weight:500;
    line-height:1.2;
    cursor:pointer;
    user-select:none;
    transition:border-color .18s ease,background .18s ease,
               transform .18s ease,color .18s ease;
    position:relative;
}

.swatch-tile:hover{
    border-color:var(--ink);
    transform:translateY(-1px);
}

.swatch-tile:active{
    transform:translateY(0);
}

.swatch-tile.is-active{
    border-color:var(--ink);
    background:var(--ink);
    color:#fff;
    font-weight:600;
}

.swatch-tile.is-disabled{
    opacity:.3;
    cursor:not-allowed;
    text-decoration:line-through;
    pointer-events:none;
}

/* --- Hide default reset link (we use a custom one at the bottom) --- */
.reset_variations{
    display:none!important;
}

/* --- Custom clear-all button --- */
.oz-clear-selections{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:1.25rem;
    padding:8px 16px;
    border:1.5px solid var(--line);
    border-radius:0;
    background:transparent;
    color:var(--ink-3);
    font-size:11px;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
    cursor:pointer;
    transition:border-color .18s ease,color .18s ease,background .18s ease;
}

.oz-clear-selections:hover{
    border-color:var(--seal);
    color:var(--seal);
}

.oz-clear-selections[hidden]{
    display:none!important;
}

.oz-clear-selections__icon{
    font-size:14px;
    line-height:1;
}

/* ================================================================
   3. PURCHASE CONTROLS
   ================================================================ */

/* Base cart form styles (applies to simple products; variations override below) */
.woocommerce div.product form.cart:not(.variations_form){
    display:flex !important;
    align-items:stretch !important;
    gap:14px !important;
    margin:0 0 20px !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    box-sizing:border-box;
}

/* ================================================================
   4. HIDE SKU FROM CUSTOMERS
   ================================================================ */

.product_meta .sku_wrapper{
    display:none!important;
}

/* ================================================================
   5. QUANTITY STEPPER (+/- buttons)
   ================================================================ */

.woocommerce div.product form.cart .quantity{
    display:flex !important;
    align-items:stretch !important;
    gap:0;
    margin:0 !important;
    flex:0 0 auto;
}

.woocommerce div.product form.cart .quantity .qty{
    width:44px !important;
    height:48px !important;
    border:1px solid var(--line) !important;
    border-left:none !important;
    border-right:none !important;
    text-align:center;
    font:inherit;
    font-size:15px !important;
    font-weight:600;
    border-radius:0;
    -moz-appearance:textfield;
    padding:0 !important;
    margin:0 !important;
    background:#fff;
    color:var(--ink);
    box-sizing:border-box;
    line-height:48px;
}

.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.oz-qty-btn{
    width:40px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    background:#fff;
    color:var(--ink);
    cursor:pointer;
    transition:background .15s ease,color .15s ease,border-color .15s ease;
    padding:0;
    border-radius:0;
    user-select:none;
    line-height:1;
    flex:0 0 auto;
}

.oz-qty-btn--minus{
    border-right:none;
    border-radius:6px 0 0 6px;
}

.oz-qty-btn--plus{
    border-left:none;
    border-radius:0 6px 6px 0;
}

.oz-qty-btn:hover:not(:disabled){
    background:var(--ink);
    color:#fff;
    border-color:var(--ink);
}

.oz-qty-btn:active:not(:disabled){
    background:#000;
    color:#fff;
    border-color:#000;
}

.oz-qty-btn:disabled{
    opacity:.3;
    cursor:not-allowed;
}

.oz-qty-btn svg{
    width:14px;
    height:14px;
    display:block;
    stroke-width:2.5;
}

/* Add to cart button match height */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button{
    flex:1 1 auto;
    height:48px !important;
    line-height:48px !important;
    padding:0 24px !important;
    margin:0 !important;
    border-radius:6px !important;
    font-size:13px !important;
    font-weight:700 !important;
    letter-spacing:.08em !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
}

/* Add-to-cart success notice */
.single-product .woocommerce-notices-wrapper{
    margin:0 0 24px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error{
    position:relative;
    margin:0 0 20px !important;
    padding:18px 18px 18px 52px !important;
    border:1px solid #dfe7d2 !important;
    border-top:3px solid #98b52c !important;
    border-radius:8px !important;
    background:#f8faf5 !important;
    box-shadow:none !important;
    color:var(--ink) !important;
}

.single-product .woocommerce-message::before,
.single-product .woocommerce-info::before,
.single-product .woocommerce-error::before{
    left:18px !important;
    top:18px !important;
}

.single-product .woocommerce-message::before,
.single-product .woocommerce-info::before{
    color:#98b52c !important;
}

.single-product .woocommerce-error::before{
    color:#cf5c36 !important;
}

.single-product .woocommerce-message .button,
.single-product .woocommerce-message .wc-forward,
.single-product .woocommerce-info .button,
.single-product .woocommerce-error .button{
    border-radius:0 !important;
    box-shadow:none !important;
}

/* ================================================================
   6. OPTIONS BOX — clean variation layout
   ================================================================ */

.oz-options-box{
    margin:0 0 0;
}

.oz-option-row{
    margin:0 0 20px;
}

.oz-option-row:last-child{
    margin-bottom:16px;
}

.oz-option-row__label{
    font-size:12px;
    font-weight:700;
    letter-spacing:.14em;
    color:var(--ink);
    text-transform:uppercase;
    margin-bottom:12px;
}

.oz-option-row__value{
    min-height:0;
}

/* --- Add to cart wrap after layout restructure --- */
.oz-add-to-cart-wrap{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    box-sizing:border-box;
    padding:0 !important;
    margin:0 !important;
    background:none !important;
    border:none !important;
}

.oz-add-to-cart-wrap .quantity{
    flex:0 0 auto !important;
    margin:0 !important;
}

.oz-add-to-cart-wrap .single_add_to_cart_button{
    flex:1 1 auto !important;
}

/* Hide the hidden form elements inside the add-to-cart wrap */
.oz-add-to-cart-wrap input[type="hidden"]{
    display:none !important;
}

/* Make the variations form stack vertically in one column */
.woocommerce div.product form.variations_form.cart{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
    flex-wrap:nowrap !important;
    width:100% !important;
}

/* Hide the old single_variation_wrap after restructure */
.single_variation_wrap.oz-hidden{
    display:none !important;
}

.variations_form .woocommerce-variation-price,
.variations_form .woocommerce-variation .price,
.variations_form .single_variation .price,
.variations_form .single_variation_wrap .woocommerce-variation-price{
    display:none !important;
}

.oz-clear-selections{
    display:none !important;
}

/* ================================================================
   7. RESPONSIVE
   ================================================================ */

@media(max-width:900px){
    .oz-gallery__thumb,
    .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li{
        width:64px;
        height:64px;
        flex-basis:64px;
    }
}

@media(max-width:480px){
    .swatch-tile{
        min-width:56px;
        padding:6px 14px;
        font-size:12px;
    }

    .oz-gallery__thumb,
    .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li{
        width:52px;
        height:52px;
        flex-basis:52px;
    }

    .oz-gallery__main .oz-gallery__arrow{
        width:44px !important;
        height:44px !important;
        font-size:22px !important;
    }
}

/* ================================================================
   6. DOUYIN-STYLE INFO BLOCK — price, coupon, ranking, delivery, etc.
   ================================================================ */

.oz-info-block{
    margin:0 0 20px;
    border-radius:0;
    overflow:hidden;
    max-width:100%;
    box-sizing:border-box;
}

/* --- Price + sales row --- */
.oz-info-row--price{
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    gap:8px;
    padding:14px 16px 12px;
    background:linear-gradient(135deg,#1a1a1a 0%,#2d1b2e 100%) !important;
    border-radius:8px;
    margin-bottom:1px;
}

.oz-info-price-line{
    display:flex;
    align-items:baseline;
    gap:10px;
}

.oz-price-total{
    display:flex;
    justify-content:flex-start;
    align-items:baseline;
    gap:6px;
    flex-wrap:wrap;
    font-size:13px;
    font-weight:600;
    color:rgba(255,255,255,.85);
    font-family:var(--sans);
    line-height:1.2;
}
.oz-price-total[hidden]{ display:none !important; }
.oz-price-total__label{ color:rgba(255,255,255,.6); font-weight:500; }
.oz-price-total__amount{ color:#fff; font-weight:700; font-size:15px; }
.oz-price-total__save{ color:#8be2a9; font-weight:700; }
.oz-price-total__hint{ color:rgba(255,255,255,.55); font-weight:500; }

.oz-info-price{
    font-size:28px;
    font-weight:800;
    color:#fff;
    letter-spacing:-.02em;
    font-family:var(--sans);
}

.oz-info-price .woocommerce-Price-amount{
    color:#fff;
}

.oz-info-price del{
    font-size:14px;
    font-weight:400;
    opacity:.5;
    margin-right:6px;
}

.oz-info-price ins{
    text-decoration:none;
}

.oz-info-sales{
    font-size:12px;
    color:rgba(255,255,255,.7);
    font-weight:500;
}

/* --- Clickable info rows --- */
.oz-info-row{
    display:flex;
    align-items:center;
    gap:8px;
    padding:13px 16px;
    background:#fff;
    border-bottom:1px solid var(--line);
    cursor:pointer;
    transition:background .15s ease;
    outline:none;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
}
.oz-info-row--coupon{
    background:linear-gradient(135deg,#fff 0%,#fff 100%);
}
.oz-info-row--coupon.oz-coupon-available{
    background:#fff;
}
.oz-info-row--coupon.oz-coupon-active{
    background:#fff;
}
.oz-info-row--coupon.oz-coupon-available .oz-info-row-value{
    color:#d4a017;
    font-weight:600;
}
.oz-info-row--coupon.oz-coupon-active .oz-info-row-value{
    color:#128a3c;
    font-weight:700;
}
.oz-info-row--coupon.oz-coupon-none .oz-info-row-value{
    color:var(--ink-3);
}
.oz-info-row[data-param-key="social"] .oz-info-row-value{
    color:#e6a61a;
    font-weight:600;
}
.oz-modal-coupon-choices .oz-modal-note strong{
    color:var(--ink);
}

.oz-info-row:hover,
.oz-info-row:focus{
    background:var(--bg-2);
}

.oz-info-row:active{
    background:#ededeb;
}

/* --- Row icon --- */
.oz-info-row-icon{
    flex:0 0 auto;
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ink-2);
}

.oz-info-row-icon svg{
    width:18px;
    height:18px;
    display:block;
}

.oz-info-row-label{
    flex:0 0 auto;
    width:auto;
    font-size:13px;
    font-weight:600;
    color:var(--ink);
    white-space:nowrap;
}

.oz-info-row-value{
    flex:1 1 0;
    min-width:0;
    font-size:13px;
    color:var(--ink-2);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:1.4;
}

.oz-info-row-arrow{
    flex:0 0 auto;
    font-size:18px;
    font-weight:300;
    color:var(--ink-3);
    line-height:1;
}

/* --- Modal overlay --- */
.oz-modal-overlay{
    position:fixed;
    inset:0;
    z-index:9998;
    background:rgba(0,0,0,.5);
    opacity:0;
    transition:opacity .25s ease;
}

.oz-modal-overlay.is-visible{
    opacity:1;
}

/* --- Bottom sheet modal --- */
.oz-modal{
    position:fixed;
    bottom:0;
    left:50%;
    transform:translateX(-50%) translateY(100%);
    z-index:9999;
    width:100%;
    max-width:480px;
    max-height:75vh;
    display:flex;
    flex-direction:column;
    background:#fff;
    border-radius:16px 16px 0 0;
    box-shadow:0 -8px 40px rgba(0,0,0,.2);
    transition:transform .3s cubic-bezier(.22,.61,.36,1);
    overflow:hidden;
}

.oz-modal.is-visible{
    transform:translateX(-50%) translateY(0);
}

.oz-modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 20px 12px;
    border-bottom:1px solid var(--line);
    flex:0 0 auto;
}

.oz-modal-title{
    margin:0;
    font-size:16px;
    font-weight:700;
    color:var(--ink);
}

.oz-modal-close{
    flex:0 0 auto;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    background:none;
    font-size:22px;
    line-height:1;
    color:var(--ink-3);
    cursor:pointer;
    transition:color .15s ease;
    padding:0;
}

.oz-modal-close:hover{
    color:var(--ink);
}

.oz-modal-body{
    padding:18px 20px 32px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    font-size:14px;
    line-height:1.6;
    color:var(--ink-2);
    flex:1 1 auto;
}

/* --- Modal: coupon list --- */
.oz-modal-coupon-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:16px;
}

.oz-coupon-card{
    position:relative;
    display:flex;
    align-items:stretch;
    width:100%;
    padding:0;
    margin:0;
    border:1px solid #f0d4b8;
    border-radius:10px;
    overflow:hidden;
    background:linear-gradient(135deg,#fff8f0 0%,#ffffff 100%);
    cursor:pointer;
    text-align:left;
    color:inherit;
    font-family:var(--sans);
    transition:border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .12s ease;
    -webkit-tap-highlight-color:transparent;
    appearance:none;
}

.oz-coupon-card:hover{
    border-color:#e7bd92;
}

.oz-coupon-card:active{
    transform:scale(.995);
}

.oz-coupon-card.is-selected{
    border-color:#35b46b;
    background:linear-gradient(135deg,#eefaf2 0%,#ffffff 100%);
    box-shadow:0 6px 18px rgba(18,138,60,.14);
}

.oz-coupon-card__amount{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:86px;
    padding:14px 8px;
    background:linear-gradient(160deg,#fff2e3 0%,#ffe3cb 100%);
    color:#9c3d22;
}

.oz-coupon-card.is-selected .oz-coupon-card__amount{
    background:linear-gradient(160deg,#ffe3d0 0%,#ffd2b8 100%);
}

.oz-coupon-card__pct{
    font-size:30px;
    font-weight:800;
    line-height:.95;
    letter-spacing:-.02em;
}

.oz-coupon-card__pct em{
    font-style:normal;
    font-size:16px;
    font-weight:700;
}

.oz-coupon-card__off{
    margin-top:5px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:rgba(156,61,34,.7);
}

.oz-coupon-card__divider{
    flex:0 0 auto;
    width:0;
    border-left:2px dashed #eed9c4;
    margin:10px 0;
}

.oz-coupon-card.is-selected .oz-coupon-card__divider{
    border-left-color:#b7e6c8;
}

.oz-coupon-card__body{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:13px 34px 13px 14px;
}

.oz-coupon-card__title{
    font-size:15px;
    font-weight:700;
    color:var(--ink);
    line-height:1.3;
}

.oz-coupon-card__sub{
    font-size:12px;
    color:var(--ink-2);
    line-height:1.45;
}

.oz-coupon-card__status{
    margin-top:5px;
    font-size:12px;
    font-weight:700;
    color:#d4a017;
}

.oz-coupon-card.is-selected .oz-coupon-card__status{
    color:#128a3c;
}

.oz-coupon-card__check{
    position:absolute;
    top:12px;
    right:12px;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#128a3c;
    opacity:0;
    transform:scale(.6) rotate(-18deg);
    transition:opacity .18s ease, transform .26s cubic-bezier(.34,1.56,.64,1);
    pointer-events:none;
}

.oz-coupon-card__check svg{
    width:20px;
    height:20px;
    display:block;
}

.oz-coupon-card.is-selected .oz-coupon-card__check{
    opacity:1;
    transform:scale(1) rotate(0deg);
}

/* --- Modal: social proof --- */
.oz-modal-social{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.oz-modal-social-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:14px;
    background:var(--bg-2);
    border-radius:10px;
}

.oz-modal-social-icon{
    flex:0 0 auto;
    width:44px;
    height:44px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.oz-modal-social-icon svg{
    width:22px;
    height:22px;
    display:block;
}

.oz-modal-social-title{
    margin:0 0 4px;
    font-size:15px;
    font-weight:700;
    color:var(--ink);
}

.oz-modal-social-sub{
    margin:0;
    font-size:13px;
    color:var(--ink-3);
}

/* --- Modal: delivery timeline --- */
.oz-modal-delivery-timeline{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    margin-bottom:20px;
    padding:8px 0;
}

.oz-modal-delivery-step{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    text-align:center;
}

.oz-modal-delivery-dot{
    width:44px;
    height:44px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(47,111,102,.12);
    color:#2f6f66;
}

.oz-modal-delivery-dot svg{
    width:22px;
    height:22px;
    display:block;
}

.oz-modal-delivery-dot--active{
    background:#2f6f66;
    color:#fff;
    box-shadow:0 4px 12px rgba(47,111,102,.35);
}

.oz-modal-delivery-label{
    margin:0;
    font-size:13px;
    font-weight:600;
    color:var(--ink);
}

.oz-modal-delivery-time{
    margin:0;
    font-size:12px;
    color:var(--ink-3);
}

.oz-modal-delivery-line{
    flex:1 1 auto;
    height:2px;
    background:var(--line);
    margin-top:21px;
    min-width:24px;
}

/* --- Modal: service guarantees --- */
.oz-modal-service{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.oz-modal-service-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:14px;
    background:var(--bg-2);
    border-radius:10px;
}

.oz-modal-service-icon{
    flex:0 0 auto;
    width:44px;
    height:44px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.oz-modal-service-icon svg{
    width:22px;
    height:22px;
    display:block;
}

/* --- Icon semantic color themes --- */
.oz-icon-gold{
    background:rgba(214,158,34,.14);
    color:#c8951d;
}

.oz-icon-amber{
    background:rgba(244,180,46,.16);
    color:#e6a61a;
}

.oz-icon-blue{
    background:rgba(86,142,235,.14);
    color:#4a7de0;
}

.oz-icon-green{
    background:rgba(47,143,110,.14);
    color:#2f8f6e;
}

.oz-icon-orange{
    background:rgba(232,125,58,.14);
    color:#e0762f;
}

.oz-icon-teal{
    background:rgba(47,111,102,.14);
    color:#2f6f66;
}

.oz-modal-service-title{
    margin:0 0 4px;
    font-size:15px;
    font-weight:700;
    color:var(--ink);
}

.oz-modal-service-sub{
    margin:0 0 2px;
    font-size:13px;
    color:var(--ink-3);
}

/* --- Modal: product specs --- */
.oz-modal-specs{
    display:flex;
    flex-direction:column;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    margin-bottom:16px;
}

.oz-modal-spec-row{
    display:flex;
    align-items:baseline;
    gap:12px;
    padding:12px 16px;
    border-bottom:1px solid var(--line);
}

.oz-modal-spec-row:last-child{
    border-bottom:none;
}

.oz-modal-spec-label{
    flex:0 0 80px;
    font-size:13px;
    color:var(--ink-3);
    font-weight:500;
}

.oz-modal-spec-value{
    flex:1 1 auto;
    font-size:14px;
    color:var(--ink);
    font-weight:500;
}

/* --- Modal: note text --- */
.oz-modal-note{
    font-size:13px;
    color:var(--ink-3);
    line-height:1.6;
    margin:0 0 8px;
}

.oz-modal-note:last-child{
    margin-bottom:0;
}

/* --- Responsive --- */
@media(max-width:480px){
    .oz-info-price{
        font-size:24px;
    }

    .oz-info-row-label{
        font-size:12px;
    }

    .oz-info-row-value{
        font-size:12px;
    }

    .oz-info-row{
        padding:11px 14px;
    }

    .oz-info-row--price{
        padding:12px 14px;
    }

    .oz-modal{
        max-width:100%;
        border-radius:14px 14px 0 0;
    }

    .oz-modal-header{
        padding:14px 16px 10px;
    }

    .oz-modal-body{
        padding:16px 16px 28px;
    }

    .oz-coupon-card__amount{
        min-width:70px;
        padding:12px 6px;
    }

    .oz-coupon-card__pct{
        font-size:26px;
    }
}

/* ================================================================
   7. HIDE DUPLICATE WOOCOMMERCE PRICE & META (handled by info block)
   ================================================================ */

.woocommerce div.product .woocommerce-Price-amount:not(.oz-info-price .woocommerce-Price-amount){
    /* Allow price inside our info block */
}

/* Hide the standalone price block that WooCommerce outputs separately */
.woocommerce div.product > p.price,
.woocommerce div.product .product .price{
    display:none !important;
}

/* Hide product_meta (SKU, category, tag) — handled by info block */
.product_meta{
    display:none !important;
}

/* ================================================================
   LIGHTBOX — full-screen image preview (tap to zoom, tap to close)
   ================================================================ */

.oz-lightbox{
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.88);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:opacity .2s ease;
    cursor:zoom-out;
}
.oz-lightbox[hidden]{display:none}
.oz-lightbox.is-open{opacity:1}
.oz-lightbox__img{
    max-width:92vw;
    max-height:88vh;
    object-fit:contain;
    box-shadow:0 12px 60px rgba(0,0,0,.5);
    background:transparent;
}
.oz-lightbox__close{
    position:absolute;
    top:16px;
    right:16px;
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    transition:background .15s ease;
    padding:0;
}
.oz-lightbox__close:hover{
    background:rgba(255,255,255,.28);
}
