/* === WIDGETS (P3 batch — quick view / 3-key overlay / cart drawer / wishlist / size chart / back-in-stock) === */
/* Target params: F §1.2 (modal), §1.8 (quick-shop panel), §2.3 (overlay keys), §2.6 (tooltip),
   §3.2 (swatch states), §3.4 (size table), §6.2 (drawer), §6.3 (progress bar — shares .shipping-* from P2),
   §6.4 (drawer stepper 30×30). Square-radius system throughout; documented exceptions:
   overlay keys 50px circles (§2.3), modal container 9px (§1.2). */
/* MOUNT STATUS (2026-09-16): independent file per P2.5 boundary ruling — NOT yet enqueued.
   Pending mount: add wp_enqueue_style for this file (suggest handle carmela-widgets, loaded after
   the theme/replica base styles) once P2.5 concludes. Depends on base primitives that live in
   carmela-replica.css / theme css: .shipping-container + .shipping-bar__* (drawer progress bar)
   and .carmela-login-link base styles (L5 pattern). Restyle those there, not here. */

/* ---------- shared helpers ---------- */
body.cqw-no-scroll { overflow: hidden; }
.cqw-loading {
	width: 24px; height: 24px; margin: 40px auto;
	border: 2px solid #ddd; border-top-color: #111; border-radius: 50%;
	animation: cqwSpin .7s linear infinite;
}
@keyframes cqwSpin { to { transform: rotate(360deg); } }
.cqw-login-link, .carmela-login-link.cqw-qv-login, .carmela-login-link.cqw-shop-login, .carmela-login-link.cqw-wl-login {
	color: #111; text-decoration: underline; cursor: pointer;
}
.cqw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 42px; padding: 10px 24px; font-size: 13px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 1px; border-radius: 0;
}
/* R18-③b: 改良款 hover 反转 — black↔white full swap, matching the cart-page
   CTA family (去结算 hover=白底黑字黑框 / 继续购物 hover=黑底白字).
   R18-③c: :visited companions — the theme's global a:visited (0-1-1) outranks
   single-class rules (0-1-0) and painted visited CTAs red (R12h pattern). */
.cqw-btn--primary,
.cqw-btn--primary:visited { background: #111; color: #fff; border: 1px solid #111; }
.cqw-btn--primary:hover { background: #fff; color: #111; }
.cqw-btn--outline,
.cqw-btn--outline:visited { background: #fff; color: #111; border: 1px solid #111; }
.cqw-btn--outline:hover { background: #111; color: #fff; }

/* ---------- toast (guest login hint) ---------- */
.cqw-toast {
	position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
	background: #111; color: #fff; padding: 12px 20px; font-size: 13px;
	z-index: 10000; opacity: 0; visibility: hidden; transition: .3s ease-out;
}
.cqw-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cqw-toast .carmela-login-link { color: #fff; }

/* ---------- R4-4 login prompt — centered modal, [Log in now]/[Log in later] ---------- */
.cqw-login-modal {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 10000;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cqw-login-box {
	position: relative; background: #fff; border-radius: 9px; padding: 34px 28px 26px;
	max-width: 360px; width: 100%; text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.cqw-login-msg { font-size: 15px; color: #111; margin: 0 0 22px; line-height: 1.5; }
.cqw-login-actions { display: grid; gap: 10px; }
/* R5-3: .cqw-login-now is an <a> — the theme's global a / a:visited link
   colors (blue → visited red) outrank these rules and painted the black
   button blue/red. !important on color (incl. :visited/:hover) restores
   the black/white button; the <button> sibling gets the same defense. */
.cqw-login-now,
.cqw-login-now:visited {
	display: block; background: #111; color: #fff !important; border: 1px solid #111; border-radius: 0;
	font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
	padding: 12px 24px; text-decoration: none; cursor: pointer;
}
.cqw-login-now:hover,
.cqw-login-now:visited:hover { background: #333; color: #fff !important; }
.cqw-login-later,
.cqw-login-later:hover {
	background: #fff; color: #111 !important; border: 1px solid #111; border-radius: 0;
	font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
	padding: 12px 24px; cursor: pointer;
}
.cqw-login-later:hover { background: #f5f5f5; }
.cqw-login-close {
	position: absolute; top: 8px; right: 10px; width: 30px; height: 30px;
	font-size: 26px; color: #999; background: transparent; border: 0; cursor: pointer; line-height: 30px; padding: 0;
}
.cqw-login-close:hover { color: #111; }

/* ---------- PLP 3-key overlay (F §2.3; R2-T9 CSS-bottom anchor) ----------
   Grid mode: the group is absolutely positioned inside the .cqw-media aspect
   box and slides up on card hover — the old JS top-offset computation
   (positionActs) is retired. <=1024px keeps the keys permanently visible. */
li.product { position: relative; }
.cqw-acts { display: flex; gap: 10px; }
.cqw-media { position: relative; overflow: hidden; }
.cqw-media > .cqw-acts {
	position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
	z-index: 20; transition: bottom .3s ease-out;
}
li.product:hover .cqw-media > .cqw-acts,
li.product:focus-within .cqw-media > .cqw-acts { bottom: 10px; }
@media ( max-width: 1024px ) {
	.cqw-media > .cqw-acts { bottom: 5px; }
}
.cqw-act {
	position: relative; width: 30px; height: 30px; border-radius: 50px;
	/* R3-3a: solid white chip — transparent circles vanish over dark product
	   photos (industry default for hover keys). Hover inverts to #111. */
	background: #fff; border: 0; padding: 0; color: #111;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background .3s ease-out, color .3s ease-out;
}
.cqw-act:hover { background: #111; color: #fff; }
.cqw-act.is-active { color: #111; }
.cqw-act.is-active svg { fill: #111; stroke: #111; }
.cqw-act.is-active:hover svg { fill: #fff; stroke: #fff; }
.cqw-act.cqw-act--wish.is-active { background: #fff; }
.cqw-tip {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	font-size: 11px; line-height: 18px; white-space: nowrap; padding: 0 5px;
	background: #111; color: #fff; visibility: hidden; opacity: 0; transition: .2s ease-in-out;
}
.cqw-tip::before {
	content: ""; position: absolute; bottom: -5px; left: 50%; margin-left: -5px;
	border-width: 5px 5px 0; border-style: solid; border-color: #111 transparent transparent;
}
.cqw-act:hover .cqw-tip { visibility: visible; opacity: 1; }

/* ---------- quick-shop panel (F §1.8) ---------- */
.cqw-shop-wrap {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	background: #fff; box-shadow: #ddd 0 0 5px; z-index: 555; display: none;
	align-items: center; justify-content: center; transition: .3s ease-in-out;
}
.cqw-shop-wrap:not([hidden]) { display: flex; }
.cqw-shop { position: relative; width: 100%; }
.cqw-shop-close {
	position: absolute; top: 5px; right: 5px; padding: 10px; border: 0;
	background: transparent; color: #111; cursor: pointer; z-index: 2;
}
.cqw-shop-inner { max-height: 100%; padding: 15px 10px; overflow: hidden auto; }
.cqw-shop-price { display: flex; justify-content: center; margin-bottom: 15px; }
.cqw-shop-buy { display: flex; justify-content: center; margin: 15px 0; }
.cqw-shop-atc {
	background: #111; color: #fff; border: 1px solid #111; border-radius: 0;
	padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.cqw-shop-atc.is-disabled, .cqw-shop-atc:disabled { opacity: .5; cursor: not-allowed; }
.cqw-shop-detail { display: block; text-align: center; font-size: 12px; color: #444; text-decoration: underline; }
.cqw-shop-nobuy { text-align: center; font-size: 13px; color: #666; }
.carmela-login-link.cqw-shop-login { display: block; text-align: center; }

/* ---------- swatch system (F §3.2 states; modal 25 / panel 30) ---------- */
.cqw-vgroup { margin-bottom: 15px; }
.cqw-vgroup--center { display: flex; justify-content: center; }
.cqw-vlabel { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; text-transform: capitalize; }
.cqw-swatches, .cqw-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cqw-swatch {
	min-width: 30px; height: 30px; line-height: 26px; padding: 0 12px;
	border: 1px solid #ddd; background: #fff; color: #111; font-size: 12px;
	border-radius: 0; cursor: pointer; transition: .2s ease-in-out;
}
.cqw-swatch--color { width: 30px; padding: 0; text-indent: -9999px; overflow: hidden; }
.cqw-swatch.is-sel { background: #111; color: #fff; border-color: #000; }
.cqw-swatch.is-oos { text-decoration: line-through; opacity: .5; cursor: no-drop; }
.cqw-swatch:hover { border-color: #111; }

/* ---------- quick view modal (F §1.2) ---------- */
/* R2-T1: base state must carry the full hidden triplet. `display:flex` on the
   class outranks the UA `[hidden]{display:none}` rule, so before this fix the
   closed overlay kept display:flex+pointer events — a full-screen invisible
   wall freezing the page (X3). */
.cqw-overlay {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .6);
	z-index: 9999; display: flex; align-items: center; justify-content: center;
	padding: 20px; opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .3s ease-out, visibility 0s linear .3s;
}
.cqw-overlay.is-open {
	opacity: 1; visibility: visible; pointer-events: auto;
	transition: opacity .3s ease-out;
}
/* JS close path sets hidden=true — give the attribute back its display:none. */
.cqw-overlay[hidden] { display: none; }
.cqw-modal-box {
	position: relative; background: #fff; border-radius: 9px; padding: 20px;
	max-width: 900px; width: 100%; max-height: calc(100vh - 40px); overflow: hidden auto;
	transform: scale(.8); opacity: 0; transition: transform .3s ease-out, opacity .3s ease-out;
}
.cqw-overlay.is-open .cqw-modal-box { transform: scale(1); opacity: 1; }
.cqw-qv { display: flex; gap: 20px; }
.cqw-qv-close {
	position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
	font-size: 28px; font-family: Arial, Baskerville, monospace; color: #333;
	background: transparent; border: 0; line-height: 30px; cursor: pointer; z-index: 10;
}
.cqw-qv-gallery { flex: 0 0 46%; min-width: 0; }
.cqw-qv-slide img { width: 100%; height: auto; display: block; }
/* R4-3: slick's adaptiveHeight writes inline height on .slick-list at init
   time — with lazy modal images that measures 1px and never recomputes, so
   the loaded image (600×800) sat clipped inside a 1px viewport. Height auto
   lets the list grow with the track; slides share one aspect anyway. */
.cqw-qv-slider .slick-list { height: auto !important; }
/* R5-QV2: source-style carousel arrows — circular white buttons with
   chevrons at the photo's left/right edges, revealed on hover (always
   shown on touch/coarse pointers). The raw "Previous/Next" button text
   stays for screen readers; font-size:0 hides it visually. */
.cqw-qv-slider .slick-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, .95); border: 0;
	color: #111; font-size: 0; cursor: pointer; z-index: 5;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	opacity: 0; transition: opacity .2s ease-out;
}
.cqw-qv-slider .slick-arrow::before { font-size: 26px; line-height: 40px; }
.cqw-qv-slider .slick-prev::before { content: '\2039'; }
.cqw-qv-slider .slick-next::before { content: '\203A'; }
.cqw-qv-gallery:hover .slick-arrow,
.cqw-qv-slider .slick-arrow:focus-visible { opacity: 1; }
.cqw-qv-slider .slick-prev { left: 10px; }
.cqw-qv-slider .slick-next { right: 10px; }
@media (max-width: 1023px), (hover: none) {
	.cqw-qv-slider .slick-arrow { opacity: 1; }
}
.cqw-qv-info { flex: 1; min-width: 0; padding-top: 6px; }
.cqw-qv-title { font-size: 20px; font-weight: 600; color: #444; text-transform: capitalize; margin: 0 0 10px; }
.cqw-qv-title a { color: #444; text-decoration: none; }
/* R5-QV2: stock line = "Availability:" label + state badge (source:
   Disponibilidade: Em estoque). Badge carries the color; label stays grey. */
.cqw-qv-stock {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; color: #666; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px;
}
.cqw-qv-stock-label { color: #999; }
.cqw-qv-stock-badge {
	display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 600;
}
.cqw-qv-stock-badge.is-in, .cqw-qv-stock.is-in .cqw-qv-stock-badge { color: #2e7d32; background: #e9f5ec; }
.cqw-qv-stock-badge.is-out, .cqw-qv-stock.is-out .cqw-qv-stock-badge { color: #b71c1c; background: #fdeeee; }
.cqw-qv-price { font-size: 22px; margin-bottom: 10px; }
.cqw-qv-price del { font-size: 18px; opacity: .6; }
.cqw-qv-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.cqw-qv-price .carmela-login-link { font-size: 14px; }

/* modal overrides: swatches 25×25 (F §1.2 --swatch-size) */
.cqw-qv .cqw-swatch { min-width: 25px; height: 25px; line-height: 23px; padding: 0 10px; font-size: 11px; }
.cqw-qv .cqw-swatch--color { width: 25px; }

.cqw-qv-buy { display: flex; gap: 12px; align-items: stretch; margin: 18px 0; }
.cqw-qty { display: flex; border: 1px solid #ddd; }
.cqw-qty-btn {
	width: 42px; border: 0; background: #fff; color: #111; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.cqw-qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.cqw-qty-val {
	width: 43px; border: 0; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
	text-align: center; font-size: 14px; -moz-appearance: textfield;
}
.cqw-qty-val::-webkit-outer-spin-button, .cqw-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cqw-qv-atc {
	flex: 1; background: #111; color: #fff; border: 1px solid #111; border-radius: 0;
	font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
	padding: 10px 24px; cursor: pointer; transition: background .2s ease-out;
}
.cqw-qv-atc:hover { background: #333; }
.cqw-qv-atc.is-disabled, .cqw-qv-atc:disabled { opacity: .5; cursor: not-allowed; }
.cqw-qv-nobuy, .carmela-login-link.cqw-qv-login { font-size: 14px; }
.cqw-qv-detail { display: inline-block; font-size: 13px; color: #444; text-decoration: underline; }

/* ---------- R5-QV: source-aligned quick view right column ----------
   Round FILLED color swatches (fill = inline payload hex); selection is a
   dark ring with a white gap so the fill stays visible — the generic
   .is-sel black fill would swallow it (and loses to the inline style
   anyway). Sizes become pills: selected solid dark, unselected light,
   width follows the text ("S" and "35-36" both fit). Labels carry the
   selected value ("Color: light-blue"), the guest price slot is a single
   login line (one price per region — no retail/wholesale split), photo
   carries a circular Sale badge, detail link = quiet theme-colored text
   link with an arrow. */
.cqw-vsel { font-weight: 400; color: #111; }
.cqw-qv .cqw-swatch--color {
	width: 30px; height: 30px; padding: 0; border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .18);
}
.cqw-qv .cqw-swatch--color.is-sel {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
	border-color: rgba(0, 0, 0, .18);
}
.cqw-qv .cqw-swatch--size {
	min-width: 0; height: 32px; line-height: 30px; padding: 0 16px;
	border-radius: 999px; background: #eee; border-color: #eee; font-size: 12px;
}
.cqw-qv .cqw-swatch--size.is-sel { background: #111; border-color: #111; color: #fff; }
.cqw-qv .cqw-swatch--size.is-oos { opacity: .4; }
.cqw-qv-gallery { position: relative; }
.cqw-qv-gallery span.onsale {
	/* R12d: the QV badge rides woocommerce_sale_flash (-XX%); pink-circle
	   spec mirrors cards + PDP (the old .cqw-qv-sale chip was #111). */
	position: absolute; top: 12px; left: 12px; z-index: 2;
	margin: 0; min-width: 0; min-height: 0;
	width: 46px; height: 46px; padding: 0; box-sizing: border-box;
	border-radius: 50%;
	background: #F77575; color: #fff; font-size: 11px; font-weight: 700;
	font-family: 'DM Sans', sans-serif; line-height: 1.15;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
}
/* B4-R15: NET price badge (DAP regions) — top-right pill in the QV gallery. */
.cqw-qv-gallery .carmela-net-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}
.cqw-qv-detail {
	color: #111; text-decoration: none; border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
}
.cqw-qv-detail:hover { opacity: .7; }
/* R5-QV2: source-style ATC attention pulse — gentle scale up and back,
   looping; disabled state stays still. */
.cqw-qv-atc:not(:disabled) { animation: cqwAtcPulse 2.4s ease-in-out infinite; }
@keyframes cqwAtcPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}

/* ---------- back-in-stock notify (F §3.4/§7) ---------- */
.cqw-oos { border: 1px solid #ddd; padding: 15px; margin: 15px 0; }
.cqw-oos-title { font-size: 13px; font-weight: 600; color: #111; margin: 0 0 10px; }
.cqw-oos-notice { font-size: 13px; color: #2e7d32; margin: 0 0 10px; }
.cqw-oos-notice.is-err { color: #b71c1c; }
.cqw-oos-form { display: flex; gap: 8px; }
.cqw-oos-form input[type="email"] {
	flex: 1; min-width: 0; height: 40px; border: 1px solid #ddd; padding: 0 12px;
	font-size: 13px; border-radius: 0;
}
.cqw-oos-form input[type="email"]:focus { outline: none; border-color: #111; }
.cqw-oos-btn {
	background: #111; color: #fff; border: 1px solid #111; border-radius: 0;
	font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
	padding: 0 18px; cursor: pointer;
}
.cqw-oos-btn:hover { background: #333; }
.cqw-pdp-oos { max-width: 420px; }

/* ---------- cart drawer (F §6.2) ---------- */
.cqw-drawer-overlay {
	position: fixed; inset: 0; background: rgba(0, 0, 0, .6);
	z-index: 9000; opacity: 0; transition: opacity .3s ease-out;
}
.cqw-drawer-overlay.is-open { opacity: 1; }
.cqw-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px;
	background: #fff; z-index: 9100; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .3s ease-out;
	box-shadow: -3px 0 10px rgba(0, 0, 0, .1);
}
.cqw-drawer.is-open { transform: translateX(0); }
.cqw-drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px; border-bottom: 1px solid #eee;
}
.cqw-drawer-title { font-size: 15px; font-weight: 600; color: #111; }
.cqw-drawer-close { border: 0; background: transparent; color: #111; cursor: pointer; padding: 4px; }
.cqw-drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.cqw-drawer-empty { text-align: center; padding: 40px 0; }
.cqw-drawer-empty p { font-size: 14px; color: #666; margin-bottom: 20px; }
.cqw-drawer-empty .cqw-btn { display: flex; width: 100%; }
.cqw-drawer-empty .cqw-btn--outline { margin-top: 10px; }
.cqw-drawer-items { list-style: none; margin: 0; padding: 0; }
.cqw-drawer-item {
	position: relative; display: flex; gap: 12px; padding: 14px 0;
	border-bottom: 1px solid #eee;
}
.cqw-ditem-thumb { flex: 0 0 90px; }
.cqw-ditem-thumb img { width: 90px; height: 90px; object-fit: cover; display: block; }
.cqw-ditem-main { flex: 1; min-width: 0; }
.cqw-ditem-name { margin: 0 0 2px; font-size: 13px; font-weight: 500; }
.cqw-ditem-name a { color: #111; text-decoration: none; }
.cqw-ditem-opts { margin: 0 0 8px; font-size: 12px; color: #888; }
.cqw-ditem-row { display: flex; align-items: center; justify-content: space-between; }
.cqw-ditem-price { font-size: 13px; font-weight: 600; }
.cqw-drawer-remove {
	position: absolute; top: 8px; right: 0; border: 0; background: transparent;
	color: #999; cursor: pointer; padding: 4px;
}
.cqw-drawer-remove:hover { color: #111; }
.cqw-dqty { display: inline-flex; align-items: center; border: 1px solid #ddd; }
.cqw-dqty-btn {
	width: 30px; height: 30px; border: 0; background: #fff; color: #111;
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cqw-dqty-btn:disabled { opacity: .4; cursor: not-allowed; }
.cqw-dqty-val {
	min-width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 13px;
	border-left: 1px solid #ddd; border-right: 1px solid #ddd;
}
.cqw-drawer-foot { padding: 20px; border-top: 1px solid #eee; }
.cqw-drawer-foot .shipping-container { margin-bottom: 15px; }
.cqw-drawer-subtotal {
	display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 15px;
}
.cqw-drawer-subtotal span { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cqw-drawer-subtotal strong { font-size: 16px; }
.cqw-drawer-ctas { display: flex; flex-direction: column; gap: 10px; }
.cqw-drawer-ctas .cqw-btn { width: 100%; }

/* ---------- wishlist ---------- */
.cqw-fav-count {
	position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px;
	line-height: 16px; padding: 0 4px; background: #111; color: #fff;
	font-size: 10px; text-align: center; border-radius: 0;
}
.wishlist-icon { position: relative; display: inline-flex; }
.cqw-wishlist-page { max-width: 1320px; margin: 0 auto; padding: 40px 20px; }
.cqw-page-head { margin-bottom: 30px; }
.cqw-page-title { font-size: 24px; font-weight: 600; color: #111; margin: 0; }
.cqw-wl-state { text-align: center; padding: 60px 0; font-size: 14px; color: #666; }
.cqw-wl-state p { margin-bottom: 16px; }
.cqw-wl-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .cqw-wl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .cqw-wl-grid { grid-template-columns: repeat(2, 1fr); } }
.cqw-wl-card { position: relative; }
.cqw-wl-thumb { position: relative; }
.cqw-wl-thumb img { width: 100%; height: auto; display: block; }
.cqw-wl-remove {
	position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
	border: 0; background: #fff; color: #111; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: #ddd 0 0 5px;
}
.cqw-wl-remove:hover { background: #111; color: #fff; }
.cqw-wl-name { font-size: 14px; font-weight: 500; margin: 10px 0 6px; }
.cqw-wl-name a { color: #111; text-decoration: none; }
.cqw-wl-price { font-size: 14px; margin-bottom: 10px; }
.cqw-wl-detail { font-size: 12px; color: #444; text-decoration: underline; }
.addto-wishlist.is-active svg { fill: #111; }

/* ---------- size chart tab — Version B "Tulip Warmth" skin (B4 2026-10-04) ---------- */
.cqw-size-table { border-top: 3px solid #EFB33C; padding: 40px 48px 32px; background: #fff; }
.cqw-size-table__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.cqw-size-table__title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cqw-size-table__stroke { display: block; width: 28px; height: 2px; background: #EFB33C; flex: 0 0 auto; }
.cqw-size-table__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #111; }
.cqw-size-table__warm { margin: 0; font-size: 13px; line-height: 1.7; color: #444; }
.cqw-size-table__hl { background: #EFB33C; color: #0D0D0D; font-weight: 600; padding: 2px 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Full logo lockup (B4 R13 — user ruling: same mark as the header centre).
   Scoped to (0,2,0): WC layout ships .woocommerce img{height:auto} (0,1,1). */
.cqw-size-table__head .cqw-size-table__logo { display: block; flex: 0 0 auto; height: 44px; width: auto; }
.cqw-size-table__sub { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #111; }
.cqw-size-table__sub + .cqw-size-table__scroll { margin-bottom: 0; }
.cqw-size-table .cqw-size-table__sub:not(:first-of-type) { margin-top: 34px; }
.cqw-size-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cqw-size-table table { width: 100%; min-width: 640px; border-collapse: collapse; }
.cqw-size-table th, .cqw-size-table td { padding: 0 24px; }
.cqw-size-table thead th { padding-bottom: 14px; border-bottom: 1px solid #111; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #111; text-align: right; vertical-align: bottom; }
.cqw-size-table thead th.cqw-col-size { text-align: left; }
.cqw-size-table tbody th, .cqw-size-table tbody td { padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.cqw-size-table tbody th.cqw-col-size { text-align: left; font-size: 16px; font-weight: 700; letter-spacing: .8px; color: #111; }
.cqw-size-table tbody td { text-align: right; font-size: 15px; font-weight: 500; color: #111; font-variant-numeric: tabular-nums; }
.cqw-size-table tbody tr:last-child th, .cqw-size-table tbody tr:last-child td { border-bottom: 1px solid #111; }
.cqw-size-table tbody tr:hover th, .cqw-size-table tbody tr:hover td { box-shadow: inset 0 -2px 0 0 #EFB33C; }
.cqw-size-table__foot { margin: 18px 0 0; font-size: 12px; color: #999; letter-spacing: .3px; }
@media (max-width: 767px) {
	.cqw-size-table { padding: 24px 16px 20px; }
	.cqw-size-table th, .cqw-size-table td { padding-left: 12px; padding-right: 12px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.cqw-tip { display: none; }
	.cqw-acts { display: none; } /* hover ecosystem is desktop-only (target ≥1025px) */
}
@media (max-width: 766px) {
	.cqw-qv { flex-direction: column; }
	.cqw-qv-gallery { flex: none; }
	.cqw-oos-form { flex-direction: column; }
	.cqw-qv-buy { flex-direction: column; }
}
/* === /WIDGETS === */

/* === GUEST-POLICY P3g: guest inquiry CTA (pure display — contact-page link) === */
.cqw-inquiry-cta {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	color: #111;
}
.cqw-inquiry-cta:hover,
.cqw-inquiry-cta:visited {
	color: #111;
}
