/* ==========================================================================
   Quattro Design · top bar, header, side cart (mini cart), footer, WhatsApp
   Header (design.md "נעול"): sticks and shrinks on scroll, search always visible.
   Benchmark §2.16: 64px white header, thin promo bar above it.
   Heights / sticky behaviour are set in WoodMart's header builder (whb_*); this file only skins.
   Markup: WoodMart 8.5.7 header builder (.whb-*), header elements (.wd-header-*, .wd-tools-element).
   ========================================================================== */

/* ---------- Top bar (includes/woo.php, qc_top_bar) ---------- */
.qc-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 12px;
	min-height: 36px;
	padding: 6px 16px;
	background-color: var(--qc-ink);
	color: var(--qc-white);
	font-family: var(--qc-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}
.qc-topbar__dot { opacity: .5; }
@media (max-width: 767px) {
	/* phones: smaller, messages wrap as whole units (never cut into each other) */
	.qc-topbar { gap: 2px 8px; font-size: 12px; padding: 5px 12px; }
	.qc-topbar__item { white-space: nowrap; }
}

/* ---------- Header ---------- */
html body .whb-header { background-color: var(--qc-paper); }
html body .whb-main-header,
html body .whb-general-header {
	background-color: var(--qc-paper);
	border-bottom: 1px solid var(--qc-line);
}
html body .whb-top-bar { display: none; } /* our .qc-topbar replaces WoodMart's top bar row. VERIFY-ON-STAGING if the header builder keeps a top row */
html body .whb-sticked .whb-general-header,
html body .whb-sticked .whb-main-header {
	box-shadow: 0 1px 0 var(--qc-line);
	background-color: var(--qc-paper);
}
/* Navigation */
html body .wd-nav-header > li > a,
html body .wd-header-nav .wd-nav > li > a {
	font-family: var(--qc-font);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--qc-ink);
}
html body .wd-nav-header > li:is(:hover, .current-menu-item, .current-menu-ancestor) > a { color: var(--qc-ink); }
html body .wd-nav-header > li > a .nav-link-text { position: relative; }
html body .wd-nav-header > li:is(.current-menu-item, .current-menu-ancestor) > a .nav-link-text::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -6px;
	height: 2px;
	background-color: var(--qc-ink);
}
/* Mega menu / dropdowns: anchored under the header */
html body .wd-dropdown {
	background-color: var(--qc-paper);
	border-radius: 0;
	box-shadow: 0 12px 30px rgba(23, 23, 25, .08);
}
/* Search field in the header: always visible, pill */
html body .whb-header .wd-search-form .searchform input[type="text"],
html body .whb-header .searchform .s {
	min-height: 40px;
	border-radius: var(--qc-pill);
	background-color: var(--qc-stone);
	border-color: var(--qc-stone);
	padding-inline: 18px 44px;
}
/* Icons: account, wishlist, cart */
html body .whb-header .wd-tools-element > a { color: var(--qc-ink); }
html body .whb-header .wd-tools-count {
	background-color: var(--qc-ink);
	color: var(--qc-white);
	font-family: var(--qc-font);
	font-weight: 700;
}

/* ---------- Mobile drawer menu ---------- */
html body .mobile-nav.wd-side-hidden { background-color: var(--qc-paper); }
html body .mobile-nav .wd-nav-mobile > li > a {
	font-size: 17px;
	font-weight: 600;
	color: var(--qc-ink);
	text-transform: none;
	border-color: var(--qc-line);
}

/* ---------- Side cart (mini cart) ---------- */
html body .cart-widget-side { background-color: var(--qc-paper); }
html body .cart-widget-side .wd-heading { border-bottom: 1px solid var(--qc-line); }
html body .woocommerce-mini-cart-item .wd-entities-title { font-size: 15px; }
html body .woocommerce-mini-cart-item img {
	background-color: var(--qc-stone);
	mix-blend-mode: darken;
	border-radius: 0;
}
html body .woocommerce-mini-cart__total {
	border-top: 1px solid var(--qc-line);
	font-size: 16px;
	font-weight: 700;
}
html body .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 8px;
}
html body .woocommerce-mini-cart__buttons .button {
	min-height: 52px;
	border-radius: var(--qc-pill);
}
html body .woocommerce-mini-cart__buttons .button.checkout {
	background-color: var(--qc-ink);
	color: var(--qc-white);
}
html body .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background-color: var(--qc-stone);
	color: var(--qc-ink);
}
/* ADP: struck original price inside the mini cart line */
html body .woocommerce-mini-cart-item del { color: var(--qc-grey); }
html body .woocommerce-mini-cart-item ins { color: var(--qc-red); text-decoration: none; background: none; }
.qc-savings-mini {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: var(--qc-radius);
	background-color: var(--qc-stone);
	color: var(--qc-red);
	font-size: 15px;
	font-weight: 700;
}
.qc-savings-mini strong { color: inherit; }

/* ---------- Footer (dark ink room) ---------- */
html body .footer-container,
html body .wd-footer {
	background-color: var(--qc-ink);
	color: rgba(250, 250, 248, .78);
}
/* WoodMart widget footers only: our footer (.qcf, assets/footer.css) owns its own colours */
html body :is(.footer-container, .wd-footer) :is(h1, h2, h3, h4, h5, h6, .widget-title):where(:not(.qcf *)) { color: var(--qc-paper); }
html body :is(.footer-container, .wd-footer) a:where(:not(.qcf *)) { color: rgba(250, 250, 248, .78); }
@media (hover: hover) {
	html body :is(.footer-container, .wd-footer) a:where(:not(.qcf *)):hover { color: var(--qc-paper); }
}
/* Our footer inside WoodMart's footer (HTML Block "QC · פוטר"): full bleed, no theme box, no Elementor padding */
/* 1.7.0: the footer is a rounded panel set into the page (site/assets/css/footer.css end): WoodMart's ink box behind it
   becomes the page paper, so the panel's margin reads as paper like every other panel. */
html body .wd-footer:has(.qcf) { padding: 0; border: 0; background-color: var(--qc-paper); }
html body .wd-footer .main-footer:has(.qcf) {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}
html body .wd-footer .main-footer:has(.qcf) :is(.elementor, .e-con, .e-con-inner, .elementor-widget-container, .elementor-element) {
	max-width: none;
	margin: 0;
	padding: 0;
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
}
html body .copyrights-wrapper {
	border-top: 1px solid rgba(250, 250, 248, .12);
	color: rgba(250, 250, 248, .6);
}

/* ---------- WhatsApp: our single floating element. 1.8.8 (20.10: "רוצה את הכפתור ווצאפ בצד ימין ובצבע של ווצאפ"):
   start side (right in RTL), WhatsApp green; the accessibility button keeps the left side on its own ---------- */
.qc-wa {
	position: fixed;
	bottom: calc(16px + env(safe-area-inset-bottom));
	inset-inline-start: 16px;
	inset-inline-end: auto;
	z-index: 330; /* under WoodMart's sticky add-to-cart (340) */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: #25D366; /* WhatsApp's own green */
	color: #fff;
	box-shadow: 0 6px 18px rgba(23, 23, 25, .18);
	transition: transform .25s var(--qc-ease), bottom .3s var(--qc-ease);
}
@media (hover: hover) { .qc-wa:hover { transform: translateY(-2px); color: #fff; } }
/* make room when WoodMart's sticky bar is up (desktop and phone) */
body:has(.wd-sticky-btn.wd-sticky-btn-shown) .qc-wa { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (max-width: 768.98px) {
	body.wd-sticky-btn-on-mb .qc-wa { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ---------- Accessibility button (plugin accessible-poetry), staging 15.10: it floated top-left at 145px over the content.
   Bottom, END side (left in RTL, 1.6.3: off the start of the Hebrew line), 44px, stacked above our WhatsApp button, so ours stays the only floating
   element of ours and nothing overlaps. The plugin positions it inline, hence !important (third-party override only).
   VERIFY-ON-STAGING: wrapper id/class of accessible-poetry 5.4 (#acwp-toolbar-btn-wrap / #acwp-toolbar-btn). ---------- */
html body :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) {
	position: fixed !important;
	top: auto !important;
	bottom: calc(16px + env(safe-area-inset-bottom)) !important;
	inset-inline-start: auto !important;   /* 1.6.3: the END side (left in RTL), never on the start of a Hebrew line */
	inset-inline-end: 16px !important;
	z-index: 320 !important;
	margin: 0 !important;
	transform: none !important;
}
html body :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) :is(#acwp-toolbar-btn, button, .acwp-toggler) {
	width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	border-radius: 50% !important;
}
body:has(.wd-sticky-btn.wd-sticky-btn-shown) :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 768.98px) {
	body.wd-sticky-btn-on-mb :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}
/* 1.9.0 (20.10, "שיהיה מושלם בהכל": at 140px it floated over the products mid-screen): phones = the bottom corner like
   desktop (WhatsApp has the other corner since 1.8.8); on the home page just above the banner's SALE button, which
   sits in this corner of the first screen */
@media (max-width: 767px) {
	html body.home :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
/* 1.8.8: WhatsApp moved to the start side, so the accessibility button no longer stacks above it */

/* ==========================================================================
   1.8.3 · header "fashion house" (19.10: "אני רוצה הדר קצת יותר מיוחד ושונה", option A of three,
   qa/shots/header-options/השוואת-הדר.jpg). WoodMart's own header, rearranged: desktop = the monogram centred with
   QUATTRO CAVALLI under it, the icons at the end, the categories in a second row between two hairlines.
   Phone = burger, monogram + name, cart, and the categories in a row that scrolls sideways (.qc-catbar, includes/header.php).
   ========================================================================== */
@font-face {
	font-family: "QC Frank";
	src: url("fonts/qc-frank-latin.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
	unicode-range: U+0000-00FF;
}
html body .whb-header_qc_2026 .site-logo .wd-main-logo::after {
	content: "QUATTRO CAVALLI";
	display: block;
	margin-block-start: 8px;
	padding-inline-start: .42em; /* the tracking's last gap, so the word sits centred */
	font: 500 12px/1 "QC Frank", Georgia, serif;
	letter-spacing: .42em;
	color: var(--qc-ink);
	text-align: center;
	white-space: nowrap;
	direction: ltr;
}
html body .whb-header_qc_2026 .site-logo .wd-main-logo { display: flex; flex-direction: column; align-items: center; } /* the main logo only: WoodMart's second (sticky) logo keeps its own show/hide */
/* scrolled (sticky): WoodMart swaps in its second logo; the first one goes away (19.10: "זה מופיע פעמיים בגלילה") */
html body .whb-header_qc_2026.whb-sticked .wd-switch-logo .wd-main-logo { display: none; }
html body .whb-header_qc_2026:not(.whb-sticked) .wd-switch-logo .wd-sticky-logo { display: none; }

@media (min-width: 1025px) {
	html body { --qc-hero-offset: 178px; } /* top bar 36 + logo row 92 + category row 48 */
	html body .whb-header_qc_2026 .whb-general-header,
	html body .whb-header_qc_2026 .whb-general-header .container,
	html body .whb-header_qc_2026 .whb-general-header-inner { height: auto !important; min-height: 0; max-height: none !important; } /* WoodMart fixes the row height in its generated header CSS */
	html body .whb-header_qc_2026 .whb-general-header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: ". logo tools" "nav nav nav";
		align-items: center;
	}
	/* 1.8.8 (20.10: "למה ההדר לא ברוחב מלא?"): the rows span the window, not WoodMart's 1222px container */
	html body .whb-header_qc_2026 :is(.whb-top-bar, .whb-general-header) .container { max-width: none; padding-inline: clamp(16px, 2.8vw, 40px); }
	/* 1.8.9 (20.10: "למה זה ככה נחתך?", the shop title under the header): when the header starts to stick, WoodMart keeps
	   its configured 77px in place of it; the two-row header is 142px, so the page jumped 65px up under it */
	html body .whb-header_qc_2026.whb-sticky-prepared { padding-top: 142px !important; }
	html body .whb-header_qc_2026 .whb-col-left { grid-area: logo; justify-content: center; padding-block: 14px 12px; }
	html body .whb-header_qc_2026 .whb-col-left .site-logo img { max-height: 46px; width: auto; }
	html body .whb-header_qc_2026 .whb-col-right { grid-area: tools; justify-content: flex-end; }
	html body .whb-header_qc_2026 .whb-col-center {
		grid-area: nav;
		justify-content: center;
		block-size: 48px;
		border-block-start: 1px solid var(--qc-line);
	}
	html body .whb-header_qc_2026 .wd-header-main-nav .wd-nav { gap: 6px clamp(28px, 3vw, 48px); }
	html body .whb-header_qc_2026 .wd-header-main-nav .wd-nav > li > a { font-size: 14px; letter-spacing: .02em; padding-inline: 0; }
	/* scrolled: one quiet row (the name and the logo row fold away, the categories stay) */
	html body .whb-header_qc_2026.whb-sticked .whb-col-left { padding-block: 8px; }
	html body .whb-header_qc_2026.whb-sticked .site-logo .wd-main-logo::after { display: none; }
	html body .whb-header_qc_2026.whb-sticked .whb-col-left .site-logo img { max-height: 36px; }
}

@media (max-width: 1024px) {
	html body { --qc-hero-offset-m: 146px; } /* top bar 36 + header 62 + category row 48 */
	html body .whb-header_qc_2026 .site-logo .wd-main-logo::after { margin-block-start: 4px; font-size: 8px; letter-spacing: .34em; padding-inline-start: .34em; }
	html body .whb-header_qc_2026 .whb-mobile-center .site-logo img { max-height: 34px; width: auto; }
	/* 1.9.0: the row is moved under the header by footer.js once the page has loaded; until then its 49px are kept free,
	   so the page does not jump down when it arrives (20.10, the product page "glitch" on phones) */
	html body:not(.qc-catbar-placed) .whb-header_qc_2026 { margin-block-end: 49px; }
	.qc-catbar {
		position: relative;
		background: var(--qc-paper);
		border-block-end: 1px solid var(--qc-line);
	}
	.qc-catbar__list {
		display: flex;
		gap: 26px;
		margin: 0;
		padding: 0 16px;
		overflow-x: auto;
		scrollbar-width: none;
		list-style: none;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.qc-catbar__list::-webkit-scrollbar { display: none; }
	.qc-catbar__list > li { margin: 0; }
	.qc-catbar__list > li > a {
		display: flex;
		align-items: center;
		min-block-size: 48px;
		font: 500 14px/1 var(--qc-font);
		color: var(--qc-ink);
		text-decoration: none;
	}
	.qc-catbar__list > li:is(.current-menu-item, .current-menu-ancestor) > a { box-shadow: inset 0 -2px 0 var(--qc-ink); }
	/* the video banner on phones: the height of the screen under the header and the category row */
	html body .qc-hero__slide--video { min-block-size: 0; block-size: clamp(420px, calc(100svh - var(--qc-hero-offset-m, 146px)), 860px); }
}
@media (min-width: 1025px) { .qc-catbar { display: none; } }

/* 1.8.6 (19.10: "תחזיר לפס הלבן"): the header over the film (1.8.4 colour switching, 1.8.5 frosted glass) is removed;
   the two-row paper header above the film (1.8.3) is the header on every page. */

/* 1.8.7 (19.10: "שים את החיפוש מצד ימין של הלוגו בהדר"): desktop, the search moves to the start side of the logo row,
   with its word; the other tools (account, wishlist, cart) stay at the end. */
@media (min-width: 1025px) {
	html body .whb-header_qc_2026 .whb-general-header-inner { position: relative; }
	html body .whb-header_qc_2026 .whb-col-right .wd-header-search {
		position: absolute;
		inset-inline-start: 0;
		inset-block-start: 26px; /* the middle of the logo row (92px), like the tools at the end */
		margin: 0;
	}
	html body .whb-header_qc_2026 .whb-col-right .wd-header-search > a { display: inline-flex; align-items: center; gap: 8px; }
	html body .whb-header_qc_2026 .whb-col-right .wd-header-search > a::after { content: "חיפוש"; font: 500 14px/1 var(--qc-font); color: var(--qc-ink); }
	html body .whb-header_qc_2026.whb-sticked .whb-col-right .wd-header-search { inset-block-start: 6px; }
}

/* 1.8.7 (19.10: "תוסיף כפתור ווצאפ צף", the number from the footer in the plugin settings): phones.
   Home: the banner's two buttons fill the bottom of the first screen, so WhatsApp (and the accessibility button above
   it) sit higher there. Product page: the buy bar is always up, WhatsApp rides above it and the accessibility button
   above WhatsApp. */
@media (max-width: 767px) {
	html body.single-product:not(.qc-is-soldout) .qc-wa { bottom: calc(78px + env(safe-area-inset-bottom)); } /* 1.8.8: home no longer lifts it: the banner's one button sits in the other corner */
}

/* 1.9.4 (20.10): favourites have no "add" button in this design (the product page dropped it in 1.8.0), so the header
   heart could only open an empty list: hidden with its menu item until hearts come back on the cards */
html body .whb-header_qc_2026 .wd-header-wishlist,
html body .menu-item-wishlist { display: none !important; }

/* 1.9.22 · the bottom corner (17.11, Orel: "תעשה פה סדר שלא יעלה אחד על השני"): the floating WhatsApp is gone (woo.php),
   the ValueCard club button owns the corner, the reCAPTCHA badge is hidden ("ריקפטשה- אפשר להסתיר"; the forms carry
   Google's notice instead). The club button rises above WoodMart's sticky buy bar on a product page. */
.grecaptcha-badge { visibility: hidden !important; }
body:has(.wd-sticky-btn.wd-sticky-btn-shown) #vcPlugin { top: auto !important; bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 768.98px) {
	body.wd-sticky-btn-on-mb #vcPlugin,
	html body.single-product:not(.qc-is-soldout) #vcPlugin { top: auto !important; bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}

/* 1.9.22 · the Google store badge (Code Snippets #12, merchantwidget) sat in the same corner as the club button
   (17.11: "כפתור איכות גוגל- לשנות מיקום"). It moves to the left corner, and the accessibility button stands on top of it.
   Google writes "bottom: 30px !important; right: 0 !important" on the wrapper itself, so a stylesheet cannot change
   those two: the badge is shifted with a transform, and only while it is closed (68px wide; opened, it is left alone).
   Three cases: the page as it is · WoodMart's sticky buy bar is up · the home page on a phone (the banner's SALE button
   lives in that corner). */
html body #google-merchantwidget-iframe-wrapper[style*="width: 68px"] { transform: translateX(calc(80px - 100vw)) !important; }
html body :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(106px + env(safe-area-inset-bottom)) !important; }
html body:has(.wd-sticky-btn.wd-sticky-btn-shown) #google-merchantwidget-iframe-wrapper[style*="width: 68px"] { transform: translate(calc(80px - 100vw), -56px) !important; }
html body:has(.wd-sticky-btn.wd-sticky-btn-shown) :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(162px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 768.98px) {
	html body.wd-sticky-btn-on-mb #google-merchantwidget-iframe-wrapper[style*="width: 68px"],
	html body.home #google-merchantwidget-iframe-wrapper[style*="width: 68px"] { transform: translate(calc(80px - 100vw), -56px) !important; }
	html body.wd-sticky-btn-on-mb :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap),
	html body.home :is(#acwp-toolbar-btn-wrap, .acwp-toolbar-btn-wrap) { bottom: calc(162px + env(safe-area-inset-bottom)) !important; }
}
/* desktop: the closed badge is 84px, 20px from the right edge; and the "X bought this" note (woo-notification, bottom right)
   rises above the club button instead of covering it */
html body #google-merchantwidget-iframe-wrapper[style*="width: 84px"] { transform: translateX(calc(116px - 100vw)) !important; }
html body:has(.wd-sticky-btn.wd-sticky-btn-shown) #google-merchantwidget-iframe-wrapper[style*="width: 84px"] { transform: translate(calc(116px - 100vw), -66px) !important; }
html body #message-purchased.bottom_right { bottom: 96px !important; }
html body:has(.wd-sticky-btn.wd-sticky-btn-shown) #message-purchased.bottom_right { bottom: 162px !important; }
