/* Payism V3 quick view (design/catalog/quickview_1440_v3.png, quickview_390_v3.png).
   #rightOffcanvas[data-v3-qv] becomes a centred dialog at >= 768 px and a bottom sheet below. */

#rightOffcanvas[data-v3-qv] {
    font-family: var(--v3-font); color: var(--v3-ink); font-size: 15px; line-height: 24px;
    position: fixed !important; z-index: 1050 !important; padding: 0 !important; background: #fff !important;
    top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
    width: min(920px, calc(100vw - 48px)) !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: calc(100vh - 64px) !important;
    border-radius: 24px; box-shadow: var(--v3-shadow-3); overflow: auto; overscroll-behavior: contain;
    transform: translate(-50%, -46%) scale(.98) !important; opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
#rightOffcanvas[data-v3-qv].active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) !important; transition: opacity .18s ease, transform .18s ease; }
#rightOffcanvas[data-v3-qv]:focus { outline: none; }
#rightOffcanvasOverlay.v3-qv-overlay { z-index: 1049 !important; background: rgba(15, 27, 45, .55) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .18s ease; }
#rightOffcanvasOverlay.v3-qv-overlay.active { opacity: 1; visibility: visible; display: block !important; }

.v3-qv__panel { position: relative; padding: 24px; }
.v3-qv__grab { display: none; }
.v3-qv__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; box-shadow: none; border: 1px solid var(--v3-line-strong); }
.v3-qv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin: 0; }
.v3-qv__gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.v3-qv__main { position: relative; aspect-ratio: 1 / 1; background: var(--v3-tile); border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v3-qv__main img { max-width: 82%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.v3-qv__main .v3c-badge { position: absolute; top: 14px; left: 14px; }
.v3-qv__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.v3-qv__thumb { aspect-ratio: 1 / 1; border: 1.5px solid var(--v3-line); border-radius: 12px; background: var(--v3-tile); padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.v3-qv__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.v3-qv__thumb.is-on { border-color: var(--v3-brand-600); box-shadow: 0 0 0 1px var(--v3-brand-600); }

.v3-qv__info { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-right: 36px; }
.v3-qv__head { display: flex; gap: 12px; }
.v3-qv__mini { display: none; }
.v3-qv__brand { color: var(--v3-brand-600) !important; font-weight: 600; font-size: 15px; }
.v3-qv__title { font-size: 22px !important; line-height: 30px !important; font-weight: 700 !important; margin: 4px 0 6px !important; }
.v3-qv__rating { margin-bottom: 6px; }
.v3-qv__price p { margin: 0; }
.v3-qv__now { font-size: 32px; line-height: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.v3-qv__unit { font-size: 15px; font-weight: 500; color: var(--v3-muted); }
.v3-qv__mrpline { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.v3-qv__mrp { color: var(--v3-muted); }
.v3-qv__off { color: var(--v3-success); font-weight: 700; font-size: 17px; }
.v3-qv__tax { font-size: 13px; color: var(--v3-muted); }
.v3-qv__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.v3-qv__label { display: block; font-size: 15px !important; font-weight: 700; color: var(--v3-ink); margin: 0 0 10px; padding: 0; }
.v3-qv__colour-name { font-weight: 500; }
.v3-qv__chips, .v3-qv__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-qv__chip, .v3-qv__swatch { position: relative; margin: 0 !important; padding: 0 !important; cursor: pointer; }
.v3-qv__chip input, .v3-qv__swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3-qv__chip .payism-megabox-elem { display: inline-flex !important; align-items: center; height: 44px; padding: 0 18px !important; border-radius: 12px !important; border: 1.5px solid var(--v3-line-strong) !important; background: #fff !important; font-size: 15px; }
.v3-qv__chip input:checked + .payism-megabox-elem, .v3-qv__swatch input:checked + .v3-qv__swatch-card { border-color: var(--v3-brand-600) !important; background: var(--v3-brand-50) !important; box-shadow: 0 0 0 1px var(--v3-brand-600); font-weight: 600; }
.v3-qv__chip input:focus-visible + .payism-megabox-elem, .v3-qv__swatch input:focus-visible + .v3-qv__swatch-card { outline: 2px solid var(--v3-brand-600); outline-offset: 2px; }
.v3-qv__swatch-card { width: 112px; height: 104px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px !important; border-radius: 12px !important; border: 1.5px solid var(--v3-line) !important; background: #fff !important; }
.v3-qv__swatch-card img { width: 64px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.v3-qv__dot { width: 36px; height: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(15, 27, 45, .15); }
.v3-qv__swatch-name { font-size: 13px; line-height: 16px; text-align: center; color: var(--v3-ink); }
.v3-qv__sizeguide { align-self: flex-start; border: 0; background: none; padding: 0; }

.v3-qv__qty { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.v3-qv__qty .v3-qv__label { margin: 0; }
.v3-qv__stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--v3-line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.v3-qv__stepper button { width: 44px; height: 46px; border: 0; background: #F7F9FC; color: var(--v3-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.v3-qv__stepper button[disabled] { color: #9AA5B4; cursor: not-allowed; }
.v3-qv__stepper input { width: 52px; height: 46px; border: 0; border-left: 1px solid var(--v3-line); border-right: 1px solid var(--v3-line); text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.v3-qv__stepper input::-webkit-outer-spin-button, .v3-qv__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v3-qv__stock { margin: 0; font-size: 14px; font-weight: 600; color: var(--v3-warning); }
.v3-qv__total { font-size: 14px; color: var(--v3-muted); }
.v3-qv__total.d-none { display: none; }
.v3-qv__total strong { color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.v3-qv__delivery { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--v3-ink-2); }
.v3-qv__delivery .v3-ico { color: var(--v3-brand-600); }
.v3-qv__cta { display: flex; gap: 12px; }
.v3-qv__cta .v3c-btn { flex: 1; }
.v3-qv__cta .v3c-btn.d-none { display: none; }
.v3-qv__cta .out-of-stock { background: var(--v3-disabled-bg, #E3EAF2); color: var(--v3-disabled-ink, #6B7686) !important; }
.v3-qv__wish { width: 56px !important; height: 56px !important; box-shadow: none; border: 1.5px solid var(--v3-brand-600); color: var(--v3-brand-600); border-radius: 12px !important; }
.v3-qv__links { display: flex; justify-content: center; gap: 24px; }
.v3-qv__links .v3c-link { border: 0; background: none; padding: 0; min-height: 44px; }
.v3-qv__links .buy-now.d-none { display: none; }
.v3-qv__wa { align-self: center; gap: 6px; }

/* added-to-cart state */
.v3-qv__panel.is-added > form, .v3-qv__panel.is-added > .v3-qv__close + form { display: none; }
.v3-qv__added { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; padding: 8px 0; }
.v3-qv__added[hidden] { display: none; }
.v3-qv__added-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 800; }
.v3-qv__added-title .v3-ico { color: #fff; background: var(--v3-success); border-radius: 999px; padding: 4px; }
.v3-qv__added-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--v3-line); border-radius: 16px; }
.v3-qv__added-line img { width: 72px; height: 72px; object-fit: contain; background: var(--v3-tile); border-radius: 12px; mix-blend-mode: multiply; }
.v3-qv__added-name { font-size: 14px; line-height: 20px; color: var(--v3-ink-2); }
.v3-qv__added-price { font-size: 17px; font-variant-numeric: tabular-nums; }
.v3-qv__added-count { margin: 0; font-size: 15px; font-weight: 600; text-align: center; }
.v3-qv__added-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v3-qv__continue { align-self: center; border: 0; background: none; padding: 0; min-height: 44px; }
.v3-qv__error { margin: 24px 0 16px; text-align: center; font-size: 16px; }

/* loading skeleton */
.v3-skel { background: #E9EEF4; border-radius: 12px; position: relative; overflow: hidden; }
.v3-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #F3F6FA, transparent); animation: v3-shimmer 1.2s infinite; }
.v3-skel--line { height: 18px; margin: 0 0 12px; }
.v3-skel--block { height: 120px; }
@keyframes v3-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* phone: bottom sheet */
@media (max-width: 767px) {
    #rightOffcanvas[data-v3-qv] {
        top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important;
        max-height: 88vh !important; border-radius: 24px 24px 0 0; transform: translateY(24px) !important;
    }
    #rightOffcanvas[data-v3-qv].active { transform: none !important; }
    .v3-qv__panel { padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); }
    .v3-qv__grab { display: block; width: 40px; height: 4px; border-radius: 999px; background: #CBD5E1; margin: 4px auto 12px; }
    .v3-qv__close { top: 12px; right: 12px; width: 48px; height: 48px; border: 0; }
    .v3-qv__grid { grid-template-columns: 1fr; gap: 16px; }
    .v3-qv__gallery { display: none; }
    .v3-qv__info { padding-right: 0; gap: 14px; }
    .v3-qv__head { padding-right: 40px; }
    .v3-qv__mini { display: block; width: 72px; height: 72px; flex-shrink: 0; object-fit: contain; background: var(--v3-tile); border-radius: 12px; mix-blend-mode: multiply; }
    .v3-qv__brand { font-size: 13px; }
    .v3-qv__title { font-size: 16px !important; line-height: 22px !important; margin: 0 0 4px !important; }
    .v3-qv__now { font-size: 22px; line-height: 28px; }
    .v3-qv__tax, .v3-qv__rating { display: none; }
    .v3-qv__swatches { display: grid; grid-template-columns: repeat(3, 1fr); }
    .v3-qv__swatch-card { width: 100%; height: 96px; }
    .v3-qv__cta { position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
    .v3-qv__cta .v3c-btn { height: 52px; }
    .v3-qv__wish { width: 52px !important; height: 52px !important; }
    .v3-qv__added-cta .v3c-btn { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    #rightOffcanvas[data-v3-qv], #rightOffcanvasOverlay.v3-qv-overlay { transition: none !important; }
    .v3-skel::after { animation: none; }
}
