/* Shop card extras (tags + Quick view bar) and the quick view popup */

/* ---- tags on the photo ---- */
.astra-shop-thumbnail-wrap .onsale, .astra-shop-thumbnail-wrap .acoplw-badge-icon { display: none !important; }
.card-tag { position: absolute; top: 10px; left: 10px; z-index: 6; padding: 6px 9px; font-size: 11px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; color: #fff; pointer-events: none; }
.card-tag.is-blue { background: var(--blue, #0050c8); }
.card-tag.is-black { background: var(--ink, #0f0f10); }

/* ---- Quick view bar (hover) ---- */
.card-quickview { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: 44px; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: var(--ink, #0f0f10) !important; color: #fff !important;
    font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; opacity: 0; transform: translateY(100%); transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
.card-quickview:hover { background: var(--blue, #0050c8) !important; }
@media (hover: hover) {
    .astra-shop-thumbnail-wrap:hover .card-quickview, .astra-shop-thumbnail-wrap:focus-within .card-quickview { opacity: 1; transform: none; }
    /* make room: sizes strip and the sold-out bar sit just above the Quick view bar while hovering */
    .card-sizes { bottom: 56px; }
    .astra-shop-thumbnail-wrap .card-soldout-bar { transition: bottom .25s ease; }
    .astra-shop-thumbnail-wrap:hover .card-soldout-bar { bottom: 56px; }
}
@media (hover: none) { .card-quickview { display: none; } }

/* ---- popup ---- */
html.qv-lock { overflow: hidden; }
.qv-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
.qv-modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(15, 15, 16, .58); }
.qv-panel { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(14px) scale(.985); transition: transform .3s cubic-bezier(.2, .6, .2, 1); }
.qv-modal.is-open .qv-panel { transform: none; }
.qv-close { position: absolute; top: 8px; right: 12px; z-index: 3; width: 38px; height: 38px; padding: 0; border: 0 !important; background: none !important; color: var(--ink, #0f0f10) !important; font-size: 30px; line-height: 1; cursor: pointer; transition: color .2s; }
.qv-close:hover { color: var(--blue, #0050c8) !important; }
.qv-loading { display: grid; place-items: center; min-height: 380px; }
.qv-loading span { width: 34px; height: 34px; border: 3px solid #e6e6e6; border-top-color: var(--blue, #0050c8); border-radius: 50%; animation: qv-spin .8s linear infinite; }
@keyframes qv-spin { to { transform: rotate(360deg); } }
.qv-error { padding: 60px 30px; text-align: center; }

.qv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.qv-media { background: #f3f4f6; }
.qv-main { aspect-ratio: 4 / 5; overflow: hidden; }
.qv-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s ease; }
.qv-thumbs { display: flex; gap: 6px; padding: 8px; background: #fff; }
.qv-thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 1px solid transparent !important; background: none !important; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-thumb:hover, .qv-thumb.is-active { opacity: 1; border-color: var(--ink, #0f0f10) !important; }

.qv-info { padding: 40px 36px 32px; display: flex; flex-direction: column; }
.qv-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 8px; }
.qv-title { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; color: var(--ink, #0f0f10); }
.qv-price { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.qv-price del { color: #8e8e8e; font-weight: 400; margin-right: 8px; } .qv-price ins { color: var(--blue, #0050c8); text-decoration: none; font-weight: 700; background: none; }
.qv-bnpl { font-size: 12.5px; color: #6b6b6b; margin-bottom: 14px; }
.qv-desc { font-size: 14px; line-height: 1.55; color: #3c3c3c; margin: 0 0 18px; }
.qv-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; } .qv-label span { font-weight: 400; color: #6b6b6b; letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.qv-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.qv-chip { position: relative; margin: 0; cursor: pointer; }
.qv-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qv-chip span { display: block; min-width: 48px; padding: 12px 12px; border: 1px solid #d6d6d6; text-align: center; font-size: 13px; font-weight: 700; transition: background-color .15s, color .15s, border-color .15s; }
.qv-chip:hover span { border-color: var(--ink, #0f0f10); }
.qv-chip input:checked + span { background: var(--ink, #0f0f10); color: #fff; border-color: var(--ink, #0f0f10); }
.qv-chip input:focus-visible + span { outline: 2px solid var(--blue, #0050c8); outline-offset: 2px; }
.qv-chip.is-soldout { cursor: not-allowed; } .qv-chip.is-soldout span { text-decoration: line-through; opacity: .4; background: #fafafa; border-color: #e6e6e6; }
.qv-buy { display: flex; gap: 10px; }
.qv-qty { display: flex; align-items: stretch; border: 1px solid #d6d6d6; }
.qv-qty button { width: 40px; padding: 0; border: 0 !important; background: none !important; color: var(--ink, #0f0f10) !important; font-size: 18px; cursor: pointer; transition: background-color .15s; }
.qv-qty button:hover { background: #f3f4f6 !important; }
.qv-qty input { width: 44px; border: 0 !important; text-align: center; font-size: 14px; font-weight: 600; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; padding: 0; }
.qv-qty input::-webkit-outer-spin-button, .qv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qv-add { flex: 1; height: 50px; border: 0 !important; border-radius: 0 !important; background: var(--ink, #0f0f10) !important; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease; }
.qv-add:hover { background: var(--blue, #0050c8) !important; } .qv-add.is-loading { opacity: .6; }
.qv-msg { min-height: 22px; margin-top: 12px; font-size: 13px; } .qv-msg.is-error { color: #b42318; } .qv-msg.is-ok { color: var(--ink, #0f0f10); } .qv-msg a { color: var(--blue, #0050c8); font-weight: 600; text-decoration: underline; }
.qv-sold { padding: 14px; background: #f3f4f6; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.qv-full { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink, #0f0f10); text-decoration: underline; text-underline-offset: 4px; } .qv-full:hover { color: var(--blue, #0050c8); }

@media (max-width: 767px) {
    .qv-modal { padding: 0; align-items: end; } .qv-panel { max-height: 94vh; width: 100%; }
    .qv { grid-template-columns: 1fr; } .qv-main { aspect-ratio: 1 / 1; max-height: 42vh; } .qv-info { padding: 22px 18px 22px; }
}
