/* Shared quickview: component scale independent of page rem/legacy CSS. */
.plc-quickview { position: fixed; inset: 0; width: calc(100% - 48px); max-width: 1080px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; margin: auto; border: 0; border-radius: 18px; background: #fff; color: var(--pl-text); font-size: 16px; line-height: 1.45; box-shadow: 0 24px 90px #0f172a38; overflow: hidden; }
.plc-quickview:not([open]), .plc-quickview [hidden], .plc-quickview[hidden] { display: none !important; }
.plc-quickview::backdrop { background: #1822388c; backdrop-filter: blur(3px); }
.plc-quickview *, .plc-quickview *::before, .plc-quickview *::after { box-sizing: border-box; }
.plc-quickview button, .plc-quickview input { font: inherit; color: inherit; letter-spacing: normal; }
.plc-quickview button { cursor: pointer; }
.plc-quickview button:disabled { cursor: not-allowed; opacity: .45; }
.plc-quickview :is(button,input,a,summary):focus-visible { outline: 2px solid var(--pl-ink); outline-offset: 3px; }
.plc-quickview p, .plc-quickview dl, .plc-quickview dd { margin: 0; }
.plc-quickview__panel { display: flex; flex-direction: column; max-height: inherit; }
.plc-quickview__topbar { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 8px 16px 8px 28px; border-bottom: 1px solid var(--pl-line); color: var(--pl-muted); font-size: 14px; }
.plc-quickview__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; background: var(--pl-bg-soft); }
.plc-quickview__close svg { width: 20px; height: 20px; }
.plc-quickview__close:hover { background: var(--pl-bg-tint); color: var(--pl-brand); }
.plc-quickview__body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; padding: 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-gutter: stable; }
.plc-quickview__media, .plc-quickview__info { min-width: 0; }
.plc-quickview__photo { display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-height: 420px; padding: 20px; background: #fff; border: 1px solid var(--pl-line); border-radius: 12px; overflow: hidden; color: var(--pl-muted); }
.plc-quickview__photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.plc-quickview__thumbs, .plc-quickview__swatches { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; margin: 12px 0 0; }
.plc-quickview__thumbs button, .plc-quickview__swatches button { display: grid; place-items: center; width: 52px; height: 52px; padding: 5px; border: 1px solid var(--pl-line); border-radius: 8px; background: #fff; }
.plc-quickview__thumbs img, .plc-quickview__swatches img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.plc-quickview [aria-pressed="true"] { border-color: var(--pl-brand); box-shadow: 0 0 0 1px var(--pl-brand); background: var(--pl-bg-tint); }
.plc-quickview__swatches { margin-top: 8px; max-height: 136px; overflow-y: auto; padding: 2px; }
.plc-quickview__swatches button { position: relative; width: 48px; height: 48px; }
.plc-quickview__swatches [aria-pressed="true"]::after { content: '✓'; position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--pl-brand); color: #fff; font-size: 11px; }
.plc-quickview__color-fallback { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pl-bg-soft); color: var(--pl-ink); font-size: 12px; border: 1px solid var(--pl-line); }
.plc-quickview__details { margin-top: 18px; font-size: 14px; overflow-wrap: anywhere; }
.plc-quickview__facts { display: grid; gap: 10px; }
.plc-quickview__facts div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; }
.plc-quickview__facts dt { color: var(--pl-muted); }
.plc-quickview__details details { margin-top: 14px; border-top: 1px solid var(--pl-line); padding-top: 12px; }
.plc-quickview__details summary { cursor: pointer; color: var(--pl-ink); font-weight: 600; }
.plc-quickview__details details p { margin-top: 10px; line-height: 1.6; }
.plc-quickview__retry { background: transparent; border: 0; padding: 8px 0; text-decoration: underline; }
.plc-quickview__info { display: flex; flex-direction: column; gap: 20px; }
.plc-quickview h2 { font: inherit; font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; color: var(--pl-ink); overflow-wrap: anywhere; }
.plc-quickview__muted { color: var(--pl-muted); font-size: 13px; line-height: 1.5; }
.plc-quickview__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.plc-quickview__price-row strong { font-size: 28px; color: var(--pl-ink); font-weight: 700; line-height: 1.1; }
.plc-quickview__label { display: block; font-size: 14px; color: var(--pl-muted); }
.plc-quickview__label strong { color: var(--pl-text); font-weight: 600; }
.plc-quickview__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.plc-quickview__sizes button { min-width: 44px; min-height: 40px; padding: 7px 12px; background: #fff; border: 1px solid var(--pl-line); border-radius: 7px; font-size: 14px; }
.plc-quickview__sizes [data-unavailable="true"] { color: var(--pl-muted); text-decoration: line-through; }
.plc-quickview__availability { border-block: 1px solid var(--pl-line); padding: 16px 0; }
#plcQuickviewStock { font-weight: 600; font-size: 14px; margin-bottom: 12px; }
#plcQuickviewStock[data-available="true"] { color: #247348; }
.plc-quickview__warehouses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plc-quickview__warehouses dt { color: var(--pl-muted); font-size: 13px; }
.plc-quickview__warehouses dd { font-weight: 600; margin-top: 2px; }
.plc-quickview__availability > .plc-quickview__muted { margin-top: 10px; font-size: 12px; }
.plc-quickview__quantity-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.plc-quickview__stepper { display: flex; height: 44px; border: 1px solid var(--pl-line); border-radius: 8px; }
.plc-quickview__stepper button { width: 40px; border: 0; background: transparent; font-size: 22px; }
.plc-quickview__stepper input { width: 76px; min-width: 0; text-align: center; border: 0; border-inline: 1px solid var(--pl-line); background: #fff; appearance: textfield; -moz-appearance: textfield; font-size: 16px; }
.plc-quickview__stepper input::-webkit-inner-spin-button, .plc-quickview__stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.plc-quickview__presets { display: flex; gap: 6px; }
.plc-quickview__presets button { min-width: 44px; height: 40px; padding: 4px 8px; background: var(--pl-bg-soft); border: 1px solid var(--pl-line); border-radius: 7px; font-size: 14px; }
#plcQuickviewQtyHint { margin-top: 8px; min-height: 20px; }
#plcQuickviewQtyHint[data-error="true"] { color: #b42338; }
.plc-quickview__branding { font-size: 14px; }
.plc-quickview__branding strong { color: var(--pl-ink); }
.plc-quickview__branding p { margin: 4px 0 8px; color: var(--pl-muted); }
.plc-quickview__branding a, .plc-quickview__feedback a { color: var(--pl-ink); text-decoration: underline; text-underline-offset: 3px; }
.plc-quickview__footer { flex: none; display: grid; grid-template-columns: 1fr minmax(240px, 1fr); gap: 10px 24px; align-items: center; padding: 18px 28px; border-top: 1px solid var(--pl-line); background: #fff; box-shadow: 0 -6px 16px #1e293b04; }
.plc-quickview__total { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plc-quickview__total span { font-size: 13px; color: var(--pl-muted); }
.plc-quickview__total strong { font-size: 26px; color: var(--pl-ink); line-height: 1.2; overflow-wrap: anywhere; }
.plc-quickview__cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 9px; background: var(--pl-brand); color: #fff !important; font-weight: 700 !important; }
.plc-quickview__cta:hover:not(:disabled) { background: var(--pl-brand-dark); }
.plc-quickview__cta svg { width: 20px; height: 20px; flex: none; }
.plc-quickview__feedback { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; }
.plc-quickview__feedback[data-kind="success"] { color: #247348; }
.plc-quickview__feedback[data-kind="error"] { color: #b42338; }
@media (min-width: 1600px) { .plc-quickview { max-width: 1160px; } .plc-quickview__body { gap: 40px; padding: 32px; } }
@media (max-width: 760px) {
    .plc-quickview { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
    .plc-quickview__topbar { padding: 6px 10px 6px 18px; }
    .plc-quickview__body { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
    .plc-quickview__photo { height: 230px; max-height: 32vh; aspect-ratio: auto; padding: 12px; }
    .plc-quickview__media { display: contents; }
    .plc-quickview__photo { order: 0; }
    .plc-quickview__thumbs { order: 1; margin: -10px 0 0; }
    .plc-quickview__info { order: 2; gap: 18px; }
    .plc-quickview__details { order: 3; margin-top: 0; }
    .plc-quickview h2 { font-size: 21px; }
    .plc-quickview__footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); gap: 8px 12px; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr); }
    .plc-quickview__total strong { font-size: 22px; }
    .plc-quickview__total span { font-size: 11px; }
    .plc-quickview__cta { padding: 10px; gap: 6px; font-size: 14px !important; }
    .plc-quickview__cta svg { display: none; }
}
