/* Quick View V1 */
.mm-qv-overlay[hidden], .mm-qv-size-modal[hidden]{display:none!important}
.mm-qv-overlay{
    position:fixed; inset:0; z-index:99990; display:grid; place-items:center;
    padding:20px; background:rgba(10,10,10,.46); backdrop-filter:blur(3px);
}
.mm-qv-dialog{
    position:relative; width:min(1180px,96vw); max-height:min(760px,92vh);
    display:grid; grid-template-columns:minmax(0,1fr) minmax(440px,1.05fr);
    overflow:hidden; background:#fff; border-radius:24px; box-shadow:0 28px 80px rgba(0,0,0,.22);
}
.mm-qv-close{
    position:absolute; top:16px; right:18px; z-index:12; width:38px; height:38px;
    border:0; background:rgba(255,255,255,.9); border-radius:50%; font-size:28px; line-height:1;
    color:#555; cursor:pointer;
}
.mm-qv-gallery{min-width:0;background:#f4f0eb}
.mm-qv-main-media{position:relative;height:640px;max-height:82vh;overflow:hidden}
.mm-qv-main-media img{width:100%;height:100%;display:block;object-fit:contain}
.mm-qv-gallery-arrow{
    position:absolute;top:50%;transform:translateY(-50%);width:54px;height:54px;border:0;border-radius:50%;
    background:rgba(255,255,255,.58);color:#333;font-size:34px;cursor:pointer;backdrop-filter:blur(6px)
}
.mm-qv-prev{left:16px}.mm-qv-next{right:16px}
.mm-qv-thumbs{
    display:flex;gap:8px;padding:10px 12px;overflow-x:auto;background:#fff;border-top:1px solid #eee
}
.mm-qv-thumb{width:54px;height:68px;padding:0;border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;flex:0 0 auto}
.mm-qv-thumb img{width:100%;height:100%;object-fit:contain}
.mm-qv-thumb.is-active{border:2px solid #111}
.mm-qv-info{min-width:0;overflow-y:auto;padding:34px 38px 30px}
.mm-qv-head h2{margin:0 44px 18px 0;font-size:31px;line-height:1.16;font-weight:700;letter-spacing:-.025em}
.mm-qv-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.mm-qv-price strong{font-size:31px}.mm-qv-price del{color:#999}.mm-qv-price span{padding:5px 9px;border-radius:999px;background:#fff0ec;color:#b34b35;font-size:11px;font-weight:700}
.mm-qv-description{color:#6d655f;font-size:13px;line-height:1.6;margin:0 0 20px}
.mm-qv-option-group{margin-top:20px}
.mm-qv-option-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}
.mm-qv-option-head span{font-size:13px;color:#5e5752}.mm-qv-option-head strong{color:#111}
.mm-qv-option-values{display:flex;flex-wrap:wrap;gap:10px}
.mm-qv-option{
    min-width:62px;height:50px;padding:5px 14px;border:1px solid #e0ddd9;border-radius:6px;background:#fff;color:#555;cursor:pointer;font:inherit
}
.mm-qv-option.is-selected{background:#111;color:#fff;border-color:#111}
.mm-qv-option.is-disabled{opacity:.35;cursor:not-allowed}
.mm-qv-color-option{width:58px;height:58px;min-width:58px;padding:3px;border-radius:10px;overflow:hidden}
.mm-qv-color-option img{width:100%;height:100%;display:block;object-fit:contain;border-radius:7px}
.mm-qv-color-swatch{display:block;width:100%;height:100%;border-radius:7px;background:var(--qv-swatch,#ddd);border:1px solid rgba(0,0,0,.08)}
.mm-qv-size-line{display:flex;align-items:center;gap:6px;margin-top:18px;color:#67605a;font-size:13px}
.mm-qv-size-line button{margin-left:auto;border:0;background:transparent;color:#111;text-decoration:underline;cursor:pointer;font-weight:600}
.mm-qv-stock{min-height:20px;margin:15px 0 12px;font-size:12px;color:#2f7c5a}.mm-qv-stock.is-out{color:#b42318}
.mm-qv-purchase-row{display:grid;grid-template-columns:162px 1fr 64px;gap:12px;align-items:center;margin-top:16px}
.mm-qv-qty{height:62px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;border:1px solid #e5e5e5;border-radius:999px;background:#f7f7f7}
.mm-qv-qty button{border:0;background:transparent;font-size:22px;cursor:pointer}.mm-qv-qty span{text-align:center}
.mm-qv-add,.mm-qv-buy{
    height:62px;border:0;border-radius:999px;font:inherit;font-weight:700;cursor:pointer
}
.mm-qv-add{background:#111;color:#fff}.mm-qv-buy{width:100%;margin-top:14px;background:#ed0573;color:#fff}
.mm-qv-wishlist{height:62px;border:1px solid #e2e2e2;border-radius:50%;background:#fff;font-size:28px;cursor:pointer}
.mm-qv-details{display:inline-flex;gap:8px;margin-top:34px;color:#111;text-decoration:none;font-weight:700;font-size:14px}
.mm-qv-details span{font-size:22px;line-height:.7}
.mm-qv-size-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(10,10,10,.45)}
.mm-qv-size-box{position:relative;width:min(520px,94vw);padding:28px;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.2)}
.mm-qv-size-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:28px;cursor:pointer}
.mm-qv-size-box h3{margin:0 0 8px;font-size:24px}.mm-qv-size-box p{margin:0 0 18px;color:#746d68;font-size:13px}
.mm-qv-size-chart-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.mm-qv-size-chart-list span{min-width:52px;padding:10px 12px;text-align:center;border:1px solid #ddd;border-radius:8px;font-weight:650}
.mm-qv-size-box small{display:block;color:#8f8781;line-height:1.5}
.cv2-card-actions{display:flex;gap:8px;margin-top:12px}
.cv2-quick-view-btn,.cv2-details-link{flex:1;min-height:36px;display:grid;place-items:center;border-radius:6px;font-size:10px;font-weight:650;text-decoration:none}
.cv2-quick-view-btn{border:1px solid #b34b35;background:#b34b35;color:#fff;cursor:pointer}
.cv2-details-link{border:1px solid #ddd3cc;background:#fff;color:#5d534d}
body.mm-qv-open{overflow:hidden}
@media(max-width:900px){
    .mm-qv-dialog{grid-template-columns:1fr;max-height:94vh;overflow-y:auto}
    .mm-qv-gallery{position:relative}.mm-qv-main-media{height:min(58vh,520px)}
    .mm-qv-info{overflow:visible;padding:24px}
}
@media(max-width:560px){
    .mm-qv-overlay{padding:0;align-items:end}
    .mm-qv-dialog{width:100%;max-height:96vh;border-radius:20px 20px 0 0}
    .mm-qv-main-media{height:46vh}
    .mm-qv-info{padding:20px 16px 24px}
    .mm-qv-head h2{font-size:22px;margin-right:30px}.mm-qv-price strong{font-size:25px}
    .mm-qv-purchase-row{grid-template-columns:126px 1fr 52px;gap:8px}
    .mm-qv-qty,.mm-qv-add,.mm-qv-wishlist{height:54px}
    .mm-qv-buy{height:54px}.mm-qv-gallery-arrow{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){.mm-qv-overlay *{scroll-behavior:auto!important;transition:none!important}}


/* Select Options -> Quick View V2 refinements */
body.mm-qv-open{
    overflow:hidden;
}

.mm-hover-size-select{
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    font-family:inherit;
}

.mm-qv-dialog[aria-busy="true"]::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:30;
    background:rgba(255,255,255,.72);
    pointer-events:none;
}

.mm-qv-dialog[aria-busy="true"]::before{
    content:"";
    position:absolute;
    z-index:31;
    top:50%;
    left:50%;
    width:34px;
    height:34px;
    margin:-17px 0 0 -17px;
    border:3px solid #eadce1;
    border-top-color:#d32669;
    border-radius:50%;
    animation:mm-qv-spin .7s linear infinite;
}

@keyframes mm-qv-spin{
    to{transform:rotate(360deg)}
}

@media(max-width:680px){
    .mm-qv-overlay{
        padding:8px;
        align-items:end;
    }

    .mm-qv-dialog{
        width:100%;
        max-height:94vh;
        border-radius:18px 18px 0 0;
    }
}

/* BARBET QUICK VIEW V3 - layout, image and action refinements */
.mm-qv-dialog{
    grid-template-columns:minmax(0, 1fr) minmax(420px, .96fr);
    width:min(1160px, calc(100vw - 40px));
    max-height:min(760px, calc(100vh - 40px));
}
.mm-qv-gallery{
    display:flex;
    flex-direction:column;
    min-height:0;
    background:#f7f4ef;
}
.mm-qv-main-media{
    height:auto;
    min-height:560px;
    flex:1 1 auto;
    display:grid;
    place-items:center;
    background:#f7f4ef;
}
.mm-qv-main-media img{
    width:100%;
    height:100%;
    max-height:650px;
    object-fit:contain;
    object-position:center;
    background:#f7f4ef;
}
.mm-qv-main-media img[hidden]{display:none!important}
.mm-qv-thumbs:empty{display:none}
.mm-qv-info{
    padding:34px 38px 32px;
    display:flex;
    flex-direction:column;
}
.mm-qv-head{padding-right:24px}
.mm-qv-stock{margin-top:10px}
.mm-qv-cart-form{margin-top:2px}
.mm-qv-add:disabled,.mm-qv-buy:disabled{
    cursor:not-allowed;
    opacity:.48;
}
.mm-qv-add,.mm-qv-buy,.mm-qv-wishlist,.mm-qv-qty button,
.mm-qv-gallery-arrow,.mm-qv-close,.mm-qv-details{
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.mm-qv-add:not(:disabled):hover,.mm-qv-buy:not(:disabled):hover{transform:translateY(-1px)}
.mm-qv-wishlist:hover,.mm-qv-gallery-arrow:hover,.mm-qv-close:hover{box-shadow:0 5px 18px rgba(0,0,0,.10)}
.mm-qv-details{margin-top:28px;align-items:center}
.mm-qv-error-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.mm-qv-error-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:700;font-size:13px}
.mm-qv-error-actions .primary{background:#111;color:#fff}.mm-qv-error-actions .secondary{border:1px solid #ddd;color:#111;background:#fff}
@media(max-width:900px){
    .mm-qv-dialog{width:min(720px,calc(100vw - 24px));grid-template-columns:1fr}
    .mm-qv-main-media{min-height:0;height:min(52vh,520px)}
    .mm-qv-main-media img{max-height:none}
}
@media(max-width:560px){
    .mm-qv-overlay{padding:0}
    .mm-qv-dialog{width:100%;max-height:96vh}
    .mm-qv-main-media{height:42vh;min-height:300px}
    .mm-qv-info{padding:20px 16px 26px}
    .mm-qv-purchase-row{grid-template-columns:112px minmax(0,1fr) 52px}
    .mm-qv-qty{grid-template-columns:36px 1fr 36px}
    .mm-qv-details{margin-top:22px}
}

/* BARBET QUICK VIEW V4 - compact, stable responsive layout */
.mm-qv-overlay{
    padding:24px;
}
.mm-qv-dialog{
    width:min(1220px, calc(100vw - 48px));
    height:min(790px, calc(100vh - 48px));
    max-height:calc(100vh - 48px);
    grid-template-columns:minmax(0, 1.04fr) minmax(430px, .96fr);
    border-radius:22px;
}
.mm-qv-gallery{
    min-height:0;
    overflow:hidden;
    border-right:1px solid #eee8e2;
}
.mm-qv-main-media{
    min-height:0;
    height:auto;
    flex:1 1 auto;
    background:#f7f4ef;
}
.mm-qv-main-media img{
    width:100%;
    height:100%;
    max-height:none;
    object-fit:contain;
    object-position:center;
}
.mm-qv-thumbs{
    flex:0 0 auto;
    min-height:82px;
    padding:10px 14px;
    align-items:center;
}
.mm-qv-thumb{
    width:54px;
    height:64px;
}
.mm-qv-info{
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:34px 42px 30px;
    scrollbar-width:thin;
}
.mm-qv-head{
    padding-right:34px;
}
.mm-qv-head h2{
    margin:0 0 14px;
    font-size:30px;
    line-height:1.12;
    letter-spacing:-.03em;
}
.mm-qv-price{
    margin-bottom:14px;
}
.mm-qv-price strong{
    font-size:30px;
    line-height:1;
}
.mm-qv-description{
    margin:0 0 16px;
    font-size:13px;
    line-height:1.55;
}
.mm-qv-option-group{
    margin-top:14px;
}
.mm-qv-option-head{
    margin-bottom:8px;
}
.mm-qv-option-values{
    gap:8px;
}
.mm-qv-option{
    min-width:58px;
    height:46px;
    padding:4px 12px;
    border-radius:7px;
}
.mm-qv-color-option{
    width:52px;
    height:52px;
    min-width:52px;
}
.mm-qv-size-line{
    min-height:26px;
    margin-top:12px;
    justify-content:flex-end;
}
.mm-qv-size-line button{
    margin-left:0;
    padding:0;
    font-size:12px;
}
.mm-qv-visually-hidden{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.mm-qv-stock{
    margin:8px 0 10px;
}
.mm-qv-purchase-row{
    grid-template-columns:148px minmax(0,1fr) 58px;
    gap:10px;
    margin-top:10px;
}
.mm-qv-qty,
.mm-qv-add,
.mm-qv-wishlist{
    height:56px;
}
.mm-qv-buy{
    height:56px;
    margin-top:10px;
}
.mm-qv-details{
    margin-top:18px;
    padding-bottom:2px;
    font-size:13px;
}
.mm-qv-close{
    top:14px;
    right:16px;
}

@media (max-width: 1024px){
    .mm-qv-overlay{padding:16px}
    .mm-qv-dialog{
        width:min(920px, calc(100vw - 32px));
        height:min(760px, calc(100vh - 32px));
        max-height:calc(100vh - 32px);
        grid-template-columns:minmax(0,1fr) minmax(390px,.92fr);
    }
    .mm-qv-info{padding:28px 28px 26px}
    .mm-qv-head h2{font-size:26px}
    .mm-qv-price strong{font-size:27px}
}

@media (max-width: 820px){
    .mm-qv-overlay{padding:10px;align-items:center}
    .mm-qv-dialog{
        width:min(720px, calc(100vw - 20px));
        height:auto;
        max-height:calc(100vh - 20px);
        grid-template-columns:1fr;
        overflow-y:auto;
    }
    .mm-qv-gallery{
        min-height:auto;
        overflow:visible;
        border-right:0;
        border-bottom:1px solid #eee8e2;
    }
    .mm-qv-main-media{
        height:min(50vh,500px);
    }
    .mm-qv-info{
        overflow:visible;
        padding:24px 22px 26px;
    }
}

@media (max-width: 560px){
    .mm-qv-overlay{padding:0;align-items:end}
    .mm-qv-dialog{
        width:100%;
        max-height:96vh;
        border-radius:18px 18px 0 0;
    }
    .mm-qv-main-media{
        height:38vh;
        min-height:260px;
        max-height:390px;
    }
    .mm-qv-thumbs{
        min-height:66px;
        padding:7px 10px;
    }
    .mm-qv-thumb{width:46px;height:54px}
    .mm-qv-info{padding:18px 16px 22px}
    .mm-qv-head{padding-right:32px}
    .mm-qv-head h2{
        font-size:21px;
        line-height:1.16;
        margin-bottom:10px;
    }
    .mm-qv-price strong{font-size:24px}
    .mm-qv-description{font-size:12.5px;line-height:1.5;margin-bottom:12px}
    .mm-qv-option-group{margin-top:12px}
    .mm-qv-option{min-width:52px;height:42px;padding:4px 10px}
    .mm-qv-color-option{width:46px;height:46px;min-width:46px}
    .mm-qv-purchase-row{
        grid-template-columns:104px minmax(0,1fr) 50px;
        gap:8px;
    }
    .mm-qv-qty,.mm-qv-add,.mm-qv-wishlist,.mm-qv-buy{height:50px}
    .mm-qv-qty{grid-template-columns:32px 1fr 32px}
    .mm-qv-add{font-size:13px}
    .mm-qv-buy{font-size:13px}
    .mm-qv-details{margin-top:16px}
}

/* Barbet: Quick View image-backed colour swatches only.
   Keep uploaded thumbnails on white even when the option is selected. */
.mm-qv-option.mm-qv-color-option:has(> img),
.mm-qv-option.mm-qv-color-option.is-selected:has(> img) {
    background: #fff;
    color: #111;
}
.mm-qv-option.mm-qv-color-option > img {
    background: #fff;
    object-fit: contain;
    object-position: center;
}
.mm-qv-option.mm-qv-color-option.is-selected:has(> img) {
    border-color: #a7442d;
    box-shadow: 0 0 0 1px #a7442d;
}
