/* ==========================================================================
   Quattro Design · base
   Tokens (locked, design.md "נעול"):
     paper    #FAFAF8  background
     stone    #F1F0EC  surfaces, product image ground
     ink      #171719  headings, buttons (measured: buy buttons on the current site)
     grey     #6E6E73  secondary text
     line     rgba(23,23,25,.12)
     red      #D50A0A  sale + one small accent only (measured: current sale red)
     graphite #1E1F22  anatomy chapter only (the single dark chapter)
   Sold-out size: bg #F7F7F7 / text #B3B3B3 (benchmark, Terminal X).
   Type (lock updated 15.10, "classic and clean"): headings QC Heebo 300 to 400, large and airy;
   Heebo 900 only for promo numbers (.qc-num); body and shop QC Assistant 400 to 700.
   Fonts: self-hosted woff2 in the plugin, unique family names ("QC Heebo", "QC Assistant"),
   because Heebo and Assistant are already loaded under their own names by other plugins.
   Mapped onto WoodMart's own variables (--wd-*, --btn-*) so every native component follows.
   Variable names checked against WoodMart 8.5.7 css/parts.
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Heebo is a variable font: the hebrew + latin files cover the light heading weights 300 to 400. */
@font-face {
	font-family: "QC Heebo";
	font-style: normal;
	font-weight: 300 400;
	font-display: swap;
	src: url("fonts/qc-heebo-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "QC Heebo";
	font-style: normal;
	font-weight: 300 400;
	font-display: swap;
	src: url("fonts/qc-heebo-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 900: promo numbers only (.qc-num). */
@font-face {
	font-family: "QC Heebo";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("fonts/qc-heebo-900-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "QC Heebo";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("fonts/qc-heebo-900-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Assistant is a variable font (wght 200 to 800): one file per script covers 400 / 600 / 700. */
@font-face {
	font-family: "QC Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/qc-assistant-hebrew.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "QC Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/qc-assistant-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens + WoodMart variables ----------
   html:root (0,1,1) beats WoodMart's generated :root (0,1,0) whatever the load order. */
html:root {
	--qc-paper: #FAFAF8;
	--qc-stone: #F1F0EC;
	--qc-ink: #171719;
	--qc-grey: #6E6E73;
	--qc-line: rgba(23, 23, 25, .12);
	--qc-red: #171719; /* 1.9.0 (20.10: "תסיר את הצבע האדום מהמבצע, תחליף במשהו אלגנטי יותר" → ink): the sale reads in ink, the old price struck in grey */
	--qc-graphite: #1E1F22;
	--qc-mist: #ECECEC;     /* 1.7.0 (18.10): neutral panels only, site/assets/css/tokens.css */
	--qc-charcoal: #222326;
	--qc-white: #FFFFFF;
	--qc-soldout-bg: #F7F7F7;
	--qc-soldout-ink: #B3B3B3;

	--qc-font: "QC Assistant", Arial, Helvetica, sans-serif;
	--qc-font-display: "QC Heebo", "QC Assistant", Arial, Helvetica, sans-serif;
	--qc-radius: 4px;       /* inputs + size buttons */
	--qc-radius-surface: clamp(14px, 1.4vw, 20px); /* 1.7.0: ONE corner for every surface (card frames, panels, tiles), mock --radius */
	--qc-pill: 6px;         /* 1.7.3 (18.10 "קלאסי, לא מצועצע"): every button a quiet rectangle, was 999px */
	--qc-ease: cubic-bezier(.2, .7, .2, 1);

	/* WoodMart: colours */
	--wd-primary-color: var(--qc-ink);
	--wd-alternative-color: var(--qc-red);
	--wd-main-bgcolor: var(--qc-paper);
	--wd-text-color: var(--qc-ink);
	--wd-title-color: var(--qc-ink);
	--wd-entities-title-color: var(--qc-ink);
	--wd-entities-title-color-hover: var(--qc-grey);
	--wd-widget-title-color: var(--qc-ink);
	--wd-link-color: var(--qc-ink);
	--wd-link-color-hover: var(--qc-grey);
	--wd-bcrumb-color-active: var(--qc-ink);

	/* WoodMart: typography */
	--wd-text-font: var(--qc-font);
	--wd-text-font-weight: 400;
	--wd-text-font-size: 16px;
	--wd-text-line-height: 1.6;
	--wd-title-font: var(--qc-font-display);
	--wd-title-font-weight: 300;
	--wd-entities-title-font: var(--qc-font);
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-transform: none;
	--wd-alternative-font: var(--qc-font);
	--wd-widget-title-font: var(--qc-font);
	--wd-widget-title-font-weight: 700;
	--wd-header-el-font: var(--qc-font);
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: none;

	/* WoodMart: shapes and forms. Cards and images square, inputs 4px. */
	--wd-brd-radius: 0px;
	--wd-form-brd-radius: var(--qc-radius);
	--wd-form-brd-width: 1px;
	--wd-form-brd-color: var(--qc-line);
	--wd-form-brd-color-focus: var(--qc-ink);
	--wd-form-bg: var(--qc-white);
	--wd-form-color: var(--qc-ink);
	--wd-form-placeholder-color: var(--qc-grey);
	--wd-form-height: 48px;

	/* WoodMart: buttons. Pill, ink. Hover goes grey (Nike pattern). */
	--btn-font-family: var(--qc-font);
	--btn-font-weight: 600;
	--btn-transform: none;
	--btn-height: 48px;
	--btn-brd-radius: var(--qc-pill);
	--btn-accented-brd-radius: var(--qc-pill);
	--btn-default-brd-radius: var(--qc-pill);
	--btn-accented-bgcolor: var(--qc-ink);
	--btn-accented-bgcolor-hover: var(--qc-grey);
	--btn-accented-color: var(--qc-white);
	--btn-accented-color-hover: var(--qc-white);
	--btn-accented-box-shadow: none;
	--btn-accented-box-shadow-hover: none;
	--btn-accented-box-shadow-active: none;
	--btn-accented-bottom-active: 0;
	--btn-accented-transform: none;
	--btn-default-bgcolor: var(--qc-stone);
	--btn-default-bgcolor-hover: var(--qc-ink);
	--btn-default-color: var(--qc-ink);
	--btn-default-color-hover: var(--qc-white);
	--btn-default-box-shadow: none;
	--btn-default-box-shadow-hover: none;
	--btn-default-box-shadow-active: none;
	--btn-default-bottom-active: 0;
	--btn-default-transform: none;
}

/* WoodMart sets html { font-size: var(--wd-text-font-size) } (14px by default): every rem was 12.5% short. */
html { font-size: 100%; }

body {
	background-color: var(--qc-paper);
	color: var(--qc-ink);
	font-family: var(--qc-font);
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Headings: Heebo 300 to 400, large and airy ---------- */
html body :is(h1, h2, h3) {
	font-family: var(--qc-font-display);
	font-weight: 300;
	letter-spacing: -.01em;
	color: var(--qc-ink);
}
html body :is(h1, h2) { line-height: 1.08; }
html body h3 { font-weight: 400; line-height: 1.2; }

/* Promo numbers: the only place for Heebo 900 ("2 זוגות ב-300 ₪"). */
html body .qc-num {
	font-family: var(--qc-font-display);
	font-weight: 900;
	letter-spacing: -.02em;
	font-variant-numeric: lining-nums;
	direction: ltr;
	unicode-bidi: isolate;
}
html body :is(h4, h5, h6, .widget-title, .wd-widget-title) {
	font-family: var(--qc-font);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--qc-ink);
}
/* Product names everywhere (cards, sticky bar, mini cart): body font, not the display face. */
html body .wd-entities-title {
	font-family: var(--qc-font);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

/* Latin label: QUATTRO · 01 */
.qc-label {
	display: inline-block;
	font-family: var(--qc-font);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	direction: ltr;
	unicode-bidi: isolate;
	color: var(--qc-grey);
}

/* ---------- Prices: sale red, regular struck ---------- */
.price { color: var(--qc-ink); font-weight: 700; }
.price .amount, .price bdi { color: inherit; }
/* Prices read "300 ₪" (currency position forced to right_space in includes/woo.php): every amount is an LTR island,
   so the RTL page never flips the shekel to the front. */
html body .woocommerce-Price-amount,
html body .woocommerce-Price-amount bdi { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
html body .price del {
	color: var(--qc-grey);
	font-weight: 400;
	opacity: 1;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}
html body .price del .amount { color: inherit; }
html body .price ins {
	color: var(--qc-red);
	background: none;
	text-decoration: none;
	font-weight: 700;
}
html body .price ins .amount { color: inherit; }

/* ---------- Buttons: pill ---------- */
/* :not(.qc-w *): the home widgets carry the mock's own buttons (home.css); this rule has id specificity (#place_order). */
html body :is(.btn, .button, button.button, input.button, input[type="submit"], .single_add_to_cart_button, .checkout-button, #place_order, .wd-load-more):not(.qc-w *) {
	border-radius: var(--qc-pill);
	font-family: var(--qc-font);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
html body :is(.btn, .button):not(.qc-w *):focus-visible,
html body :is(a, button, input, select, textarea, [tabindex]):not(.qc-w *):focus-visible {
	outline: 2px solid var(--qc-ink);
	outline-offset: 2px;
}

/* ---------- Forms: radius 4, 48px ---------- */
html body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea) {
	border-radius: var(--qc-radius);
	border-color: var(--qc-line);
	background-color: var(--qc-white);
	color: var(--qc-ink);
	font-family: var(--qc-font);
	font-size: 16px; /* 16px keeps iOS from zooming into the field */
}
html body :is(input, select, textarea):focus { border-color: var(--qc-ink); }

/* ---------- Notices ---------- */
html body :is(.woocommerce-message, .woocommerce-info) {
	background-color: var(--qc-stone);
	color: var(--qc-ink);
	border-radius: var(--qc-radius);
}
html body .woocommerce-error {
	background-color: var(--qc-stone);
	color: var(--qc-red);
	border-radius: var(--qc-radius);
}

/* Screen-reader only, without moving anything off-screen in RTL. */
.qc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	html body *, html body *::before, html body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
