/* ==========================================================================
   Refinement layer — inspired by dizzywine.co.il (client reference), measured live:
   page #F7F4F1, alt sections #EFECE9, panels with ONE big corner (10px/100px),
   soft grape-vine shadows over the panels, thin dark announcement bar, 18+ gate.
   Colours follow the whisky palette in base.css (burgundy / gold / cream).
   ========================================================================== */
:root {
	--lg-paper: #F7F4F1;
	--lg-paper-2: #F8EEDC;   /* light cream for the alternate sections */
	/* real grape-vine shadow (generated photo, wall normalised to white) → used with multiply */
	--lg-vine: url("https://legima.ussl.co/wp-content/uploads/2026/09/legima-vine-shadow.webp");
	--lg-corner: 10px 10px 10px 100px;       /* big corner bottom-left, like the reference hero */
	--lg-corner-sm: 6px 6px 6px 48px;
}

/* warm paper instead of pure white, everywhere */
body, .website-wrapper, .main-page-wrapper, .whb-general-header, .whb-header .whb-row.whb-general-header,
.wd-dropdown-menu, .wd-dropdown { background-color: var(--lg-paper) !important; }
:root { --wd-main-bgcolor: var(--lg-paper); --lg-surround: var(--lg-paper); }
.whb-sticked .whb-general-header { background-color: rgba(247,244,241,.96) !important; backdrop-filter: none; }
.whb-general-header { border-bottom: 1px solid rgba(122,31,43,.12) !important; }

/* ---------- announcement bar ---------- */
.lg-topbar {
	background: var(--lg-ink);
	color: var(--lg-cream);
	font-family: var(--lg-font);
	font-size: 14px;
	line-height: 1;
	padding: 9px 16px;
	display: flex; justify-content: center; align-items: center; gap: 12px;
	flex-wrap: wrap;
	text-align: center;
}
.lg-topbar__dot { opacity: .5; }

/* ---------- vine shadow helper (any element with .lg-vine) ---------- */
.lg-vine { position: relative; isolation: isolate; }
.lg-vine::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--lg-vine) no-repeat right top / cover;
	mix-blend-mode: multiply;
	opacity: .45;
	pointer-events: none;
	z-index: 0;
	border-radius: inherit;
}
.lg-vine > * { position: relative; z-index: 1; }
.lg-vine--left::after { background-position: left -80px bottom -60px; transform: scaleX(-1); }
.lg-vine--soft::after { opacity: .1; }

/* ---------- homepage ---------- */
/* hero: the dark card is part of the hero image itself, so its corners stay as designed */
.elementor-5828 .elementor-element-a5b0620 { background-color: transparent !important; }
/* recommended band: vine over the taupe half */
.elementor-5828 .elementor-element-6af0372 { position: relative; isolation: isolate; }
.elementor-5828 .elementor-element-6af0372::after {
	content: ""; position: absolute; inset: 52% 0 0 0; pointer-events: none; z-index: 0;   /* 52% = where the taupe band starts */
	background: var(--lg-vine) no-repeat right top / max(1300px, 100%) auto; mix-blend-mode: multiply; opacity: .4;
}
.elementor-5828 .elementor-element-6af0372 > * { position: relative; z-index: 1; }
/* brands on the slightly deeper paper, like the reference's alternate sections */
.elementor-5828 .elementor-element-f9b0ca9 { background-color: var(--lg-paper-2) !important; }
/* category cards: one big corner */
.elementor-5828 .elementor-widget-call-to-action .elementor-cta,
.elementor-5828 .elementor-widget-call-to-action .elementor-cta__bg-wrapper { border-radius: var(--lg-corner-sm) !important; }
.lg-about.e-con { background: var(--lg-paper-2); border-radius: 10px 100px 10px 10px; }

/* one grid line for every section: content edges at the boxed width (1192px @1440) */
.elementor-5828 .elementor-element-44923c3 .e-con,
.elementor-5828 .elementor-element-4559213 .e-con { padding-inline: 0 !important; }
.lg-about.e-con { width: 100%; margin-inline: 0 !important; padding-inline: 48px !important; }
.lg-about.e-con > .e-con-inner { max-width: none; }
.lg-footer__inner > .e-con-inner { max-width: 1192px; padding-inline: 0; }

/* brand logos run edge to edge */
.elementor-5828 .elementor-element-f9b0ca9, .elementor-5828 .elementor-element-f9b0ca9 .e-con { overflow: visible !important; }
.elementor-5828 .elementor-element-f9b0ca9 .elementor-widget-image-carousel {
	--container-widget-width: 100vw; --container-widget-flex-grow: 0;
	width: 100vw !important; max-width: 100vw !important; align-self: center !important;
	margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
}
/* category cards: first and last card sit exactly on the grid lines */
.elementor-5828 .elementor-element-44923c3 > .e-con-inner,
.elementor-5828 .elementor-element-4559213 > .e-con-inner { justify-content: space-between !important; }

/* two promo panels (gift boxes / hot deals) */
.lg-promos > .e-con-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-promo.e-con {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 440px; padding: 48px 44px !important;
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 20px;
}
.lg-promo--taupe.e-con { background: var(--lg-taupe); border-radius: 10px 10px 10px 100px; }
.lg-promo--cream.e-con { background: var(--lg-cream); border-radius: 10px 100px 10px 10px; }
.lg-promo.e-con::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
	background: var(--lg-vine) no-repeat right top / cover; mix-blend-mode: multiply; opacity: .5;
}
.lg-promo--cream.e-con::after { opacity: .38; transform: scaleX(-1); }
/* no z-index on the children: the bottle photo must multiply straight onto the panel colour */
.lg-promo.e-con > * { position: relative; z-index: auto; }
.lg-promo__text.e-con { gap: 14px; padding: 0; }
.lg-promo--taupe .elementor-heading-title, .lg-promo--taupe .lg-lead p { color: #fff !important; }
.lg-promo .lg-title .elementor-heading-title { font-size: clamp(34px, 3.2vw, 52px); }
.lg-promo__img img { width: 100%; height: 340px !important; object-fit: contain; mix-blend-mode: multiply; }
.lg-promo--taupe .elementor-button { background: var(--lg-cream) !important; color: var(--lg-ink) !important; }
.lg-promo--cream .elementor-button { background: var(--lg-ink) !important; color: #fff !important; }

/* inner pages + shop title: same single big corner */
.lg-page-hero.e-con,
.woodmart-archive-shop .wd-page-title, .woocommerce-page .wd-page-title.page-title { border-radius: var(--lg-corner) !important; }
.lg-page-hero.e-con, .woodmart-archive-shop .wd-page-title, .woocommerce-page .wd-page-title.page-title { position: relative; isolation: isolate; overflow: hidden; }
.lg-page-hero.e-con::after, .woodmart-archive-shop .wd-page-title::after, .woocommerce-page .wd-page-title.page-title::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background: var(--lg-vine) no-repeat right top / cover;
	opacity: .1; filter: invert(1); mix-blend-mode: screen;
}
.lg-page-hero.e-con > *, .wd-page-title > .container { position: relative; z-index: 1; }
.lg-cta-band__panel.e-con { border-radius: 10px 100px 10px 10px; position: relative; overflow: hidden; }
.lg-cta-band__panel.e-con::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--lg-vine) no-repeat right top / cover; mix-blend-mode: multiply; opacity: .4; transform: scaleX(-1); }
.lg-cta-band__panel.e-con > * { position: relative; z-index: 1; }

/* product page gallery + cards pick up the same corner language */
.single-product .woocommerce-product-gallery .wd-gallery-images { border-radius: 10px 10px 10px 90px; }
.lg-contact__form.e-con { border-radius: 10px 10px 10px 80px; }

/* footer: vine over the taupe */
.lg-footer.e-con { position: relative; isolation: isolate; overflow: hidden; }
.lg-footer.e-con::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: var(--lg-vine) no-repeat right top / max(1300px, 100%) auto; mix-blend-mode: multiply; opacity: .45; transform: scaleX(-1); }
.lg-footer.e-con > * { position: relative; z-index: 1; }

/* 18+ gate: its CSS moved to assets/age-gate.css, printed inline in <head> (see legima_design_age_gate_head). */

/* ---------- tablets / phones ---------- */
@media (max-width: 1024px) {
	.lg-promos > .e-con-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	:root { --lg-corner: 8px 8px 8px 56px; --lg-corner-sm: 6px 6px 6px 32px; }
	.lg-topbar { font-size: 13px; gap: 6px 8px; padding: 8px 10px; }
	.lg-topbar span:nth-child(n+4) { display: none; }
	.lg-promo.e-con { grid-template-columns: 1fr; min-height: 0; padding: 32px 22px !important; text-align: center; }
	.lg-promo__text.e-con { align-items: center; }
	.lg-promo__img img { height: 220px !important; }
	.lg-promo--taupe.e-con { border-radius: 8px 8px 8px 60px; }
	.lg-promo--cream.e-con { border-radius: 8px 60px 8px 8px; }
	.lg-about.e-con { border-radius: 8px 60px 8px 8px; }
}

/* ==========================================================================
   Round 3 — site-wide: text aligned right (RTL start), balanced inner padding,
   nothing clipped inside its frame
   ========================================================================== */
/* section titles + paragraphs start on the right grid line */
.lg-title .elementor-heading-title,
.elementor-5828 .elementor-widget-heading .elementor-heading-title,
.lg-about__text, .lg-about__text p,
.lg-lead, .lg-lead p,
.lg-page-hero__title .elementor-heading-title, .lg-page-hero__sub .elementor-heading-title,
.single-product .related-products .title, .single-product .related-and-upsells .title,
.wd-page-title .title, .wd-page-title h1 { text-align: right !important; }
.lg-page-hero.e-con { align-items: flex-start; padding-inline: 64px !important; }
.wd-page-title .container { text-align: right; }
.wd-page-title .wd-nav-product-cat { justify-content: flex-start !important; }
.lg-about.e-con, .lg-about__text { align-items: flex-start; }
/* product cards: name + category line on the right, like the rest of the text */
.wd-product.wd-hover-alt { --wd-align: start; --text-align: start; text-align: right; }
.wd-product.wd-hover-alt .product-element-bottom,
.wd-product.wd-hover-alt .wd-product-header,
.wd-product.wd-hover-alt .wd-entities-title,
.wd-product.wd-hover-alt .wd-entities-title a,
.wd-product.wd-hover-alt .wd-product-cats { text-align: right !important; justify-content: flex-start !important; }
.wd-product.wd-hover-alt .product-element-bottom { padding-inline: 12px !important; }
.wd-product.wd-hover-alt .wd-add-btn { justify-content: center; }
/* the strip never lets a tag or price run past its own edges */
.wd-product.wd-hover-alt .product-labels { max-width: calc(50% - var(--lg-pad) - 12px); overflow: hidden; }
.wd-product.wd-hover-alt .product-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wd-product.wd-hover-alt .product-labels .product-label + .product-label { display: none; }
/* features row: icon and text start on the right of each column */
.lg-feature { align-items: flex-start; text-align: right; padding-inline: 22px; }
.lg-features { margin-inline: 0; max-width: none; }
/* promo panels: balanced inner padding, text never squeezed */
.lg-promo.e-con { padding: 52px 48px !important; }
.lg-promo__text.e-con { min-width: 0; align-items: flex-start; }
.lg-promo .lg-lead p { max-width: 34ch; }
/* footer + sidebar + account: right aligned */
.lg-footer, .lg-footer .elementor-heading-title, .sidebar-container, .woocommerce-MyAccount-content { text-align: right; }
@media (max-width: 767px) {
	.lg-page-hero.e-con { padding-inline: 24px !important; }
	.lg-about.e-con { padding-inline: 20px !important; }
	.lg-promo.e-con { padding: 30px 22px !important; text-align: right; }
	.lg-promo__text.e-con { align-items: flex-start; }
	.lg-feature { padding-inline: 12px; }
	.wd-product.wd-hover-alt .product-element-bottom { padding-inline: 8px !important; }
	.wd-product.wd-hover-alt .product-labels { max-width: none; justify-content: flex-start; }
	.wd-product.wd-hover-alt .wrap-price .price { justify-content: flex-start !important; }
}

/* ==========================================================================
   Photographic panels (images in the style of the category cards: marble, late sun, leaf shadows)
   ========================================================================== */
.lg-promo.e-con { min-height: 470px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lg-promo--taupe.e-con { background: var(--lg-cream) url("https://legima.ussl.co/wp-content/uploads/2026/09/legima-promo-gift.webp") center / cover no-repeat; }
.lg-promo--cream.e-con { background: var(--lg-paper-2) url("https://legima.ussl.co/wp-content/uploads/2026/09/legima-promo-deals.webp") center / cover no-repeat; }
.lg-promo.e-con::after { display: none; }
/* soft light wash behind the text side (right, RTL start) keeps the copy readable over the wall */
.lg-promo.e-con::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(to left, rgba(247,244,241,.82) 0%, rgba(247,244,241,.55) 38%, rgba(247,244,241,0) 62%);
}
.lg-promo__img { display: none !important; }
.lg-promo--taupe .elementor-heading-title, .lg-promo--taupe .lg-lead p,
.lg-promo--cream .elementor-heading-title, .lg-promo--cream .lg-lead p { color: var(--lg-ink) !important; }
.lg-promo .elementor-button { background: var(--lg-ink) !important; color: #fff !important; }
.lg-promo .elementor-button:hover { background: var(--lg-hero) !important; }

/* shop / category banner: the dark pouring shot from the media library */
.woodmart-archive-shop .wd-page-title {
	background: var(--lg-hero) url("banner-pour-burgundy.webp") left center / auto 100% no-repeat !important;
}
.woodmart-archive-shop .wd-page-title::after { background: linear-gradient(to left, rgba(66,19,28,.96) 0%, rgba(66,19,28,.9) 45%, rgba(66,19,28,.25) 80%) !important; opacity: 1 !important; filter: none !important; mix-blend-mode: normal !important; }
@media (max-width: 767px) {
	.lg-promo.e-con { min-height: 380px; grid-template-columns: 1fr; align-content: start; }
	.lg-promo.e-con::before { background: linear-gradient(to bottom, rgba(247,244,241,.9) 0%, rgba(247,244,241,.6) 45%, rgba(247,244,241,0) 70%); }
	.woodmart-archive-shop .wd-page-title { background-size: cover !important; background-position: left center !important; }
}

/* banner photo must beat the older flat-panel rule (.woocommerce-page .wd-page-title.page-title) */
body.woodmart-archive-shop .wd-page-title.page-title {
	background: var(--lg-hero) url("banner-pour-burgundy.webp") left center / auto 100% no-repeat !important;
}
/* first category row is a full-width container (no inner box): pad it onto the grid lines */
.elementor-5828 .elementor-element-44923c3.e-con-full, .elementor-5828 .elementor-element-4559213.e-con-full {
	padding-inline: max(16px, calc((100% - 1192px) / 2)) !important;
	justify-content: space-between !important;
}
@media (max-width: 767px) {
	body.woodmart-archive-shop .wd-page-title.page-title { background-size: cover !important; }
}

/* the first category row had its own boxed width (1173px) — same 1192px box as every other section */
.elementor-5828 .elementor-element-44923c3 > .e-con-inner, .elementor-5828 .elementor-element-4559213 > .e-con-inner { max-width: 1192px !important; width: 100%; }

/* banner: the photo melts into the dark panel well before its own edge (no visible seam) */
body.woodmart-archive-shop .wd-page-title.page-title::after { background: linear-gradient(to left, var(--lg-hero) 0%, var(--lg-hero) 52%, rgba(66,19,28,.55) 68%, rgba(66,19,28,0) 88%) !important; opacity: 1 !important; filter: none !important; mix-blend-mode: normal !important; }

/* inner pages: hero sits on the same 1192px grid as the content under it, with air between them */
.lg-page-hero.e-con { margin: 8px 0 0 !important; width: 100% !important; max-width: 100%; padding-inline: 64px !important; }
.lg-page-hero + .e-con { margin-top: 40px !important; }
.lg-page-hero__sub .elementor-heading-title { letter-spacing: .18em !important; }
.lg-about--page.e-con { padding-block: 64px !important; }
.lg-feature__title { white-space: nowrap; }
@media (max-width: 1024px) { .lg-feature__title { white-space: normal; } }
@media (max-width: 767px) { .lg-page-hero.e-con { padding-inline: 24px !important; } .lg-page-hero + .e-con { margin-top: 24px !important; } }

/* the "back" arrow beside the title of a category page points left, like the site's other arrows (the owner asked for it) */
.rtl .wd-page-title .wd-back-btn .wd-action-icon::before { display: inline-block; transform: scaleX(-1); }

/* every theme page title (pages, cart, account…) = the dark rounded hero panel, on the grid */
.wd-page-title.page-title { background: var(--lg-hero) !important; background-image: none; margin: 8px auto 0 !important; max-width: 1192px; border-radius: var(--lg-corner) !important; padding-block: 48px 36px !important; }
.wd-page-title.page-title .container { max-width: none; padding-inline: 56px; }
.wd-page-title .breadcrumbs a, .wd-page-title .breadcrumbs span, .wd-page-title .woocommerce-breadcrumb, .wd-page-title .woocommerce-breadcrumb a { color: var(--lg-sage) !important; }
.wd-page-title .breadcrumbs .breadcrumb-last, .wd-page-title .breadcrumbs span:last-child { color: var(--lg-cream) !important; }
@media (max-width: 1240px) { .wd-page-title.page-title { margin-inline: 16px !important; } }
@media (max-width: 767px) { .wd-page-title.page-title .container { padding-inline: 22px; } }

/* carousel section titles stay centred over their full-width strips, as in the Figma */
.elementor-5828 .elementor-element-7468f4d .elementor-heading-title,
.elementor-5828 .elementor-element-9b3a858 .elementor-heading-title { text-align: center !important; }

/* ==========================================================================
   Finishing pass (mobile audit)
   ========================================================================== */
/* touch screens: carousels are swiped, the half-visible arrows go */
@media (max-width: 1024px) { .wd-btn-arrow { display: none !important; } }

/* homepage hero on phones: the desktop composite image crops badly → the dark pouring shot,
   inset on the grid with the single big corner */
@media (max-width: 767px) {
	.elementor-5828 .elementor-element-a5b0620 {
		background-image: url("banner-pour-burgundy.webp") !important;
		background-size: cover !important; background-position: 22% center !important;
		margin: 12px 16px 36px !important; width: auto !important;
		min-height: 520px !important; padding: 40px 22px !important;
		border-radius: 8px 8px 8px 56px; overflow: hidden; justify-content: flex-end !important;
	}
	.elementor-5828 .elementor-element-a5b0620::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(66,19,28,.92) 0%, rgba(66,19,28,.55) 55%, rgba(66,19,28,.1) 100%); pointer-events: none; }
	.elementor-5828 .elementor-element-a5b0620 > * { position: relative; z-index: 1; }
	.elementor-5828 .elementor-element-f02f21b .elementor-heading-title { font-size: 84px !important; line-height: .9 !important; text-align: right !important; }
	.elementor-5828 .elementor-element-8ecf77d .elementor-heading-title { font-size: 38px !important; line-height: 1 !important; text-align: right !important; }
	.elementor-5828 .elementor-element-578523a .elementor-heading-title { font-size: 17px !important; line-height: 1.35 !important; text-align: right !important; }
	.elementor-5828 .elementor-element-df0f71f { justify-content: flex-start !important; gap: 10px !important; }
	/* every homepage block keeps the 16px side gutter */
	.elementor-5828 .elementor-element-44923c3, .elementor-5828 .elementor-element-4559213 { padding-inline: 16px !important; }
	.lg-page-hero__sub .elementor-heading-title { letter-spacing: .04em !important; }
}

/* build-your-own-box: search field stays inside the screen */
.lg-box__pick, .lg-box__search { min-width: 0; max-width: 100%; }
.lg-box__search input { box-sizing: border-box; max-width: 100%; }

/* link to the box builder: plain cream, text always readable */
.lg-box-cta { background: var(--lg-cream) !important; }

/* product tabs: the accordion already says "מידע נוסף" */
.woocommerce-Tabs-panel--additional_information > h2, .wd-accordion-content > h2:first-child { display: none; }

/* empty cart "חדש בחנות": white tiles so the white product photos sit cleanly */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product,
.wp-block-woocommerce-empty-cart-block .wc-block-product { background: #fff !important; border: 1px solid var(--lg-line); }

/* finishing pass 2 */
@media (max-width: 767px) {
	.elementor-5828 .elementor-element-a5b0620 { margin: 12px auto 56px !important; width: calc(100% - 32px) !important; max-width: calc(100% - 32px) !important; background-position: 88% center !important; }
	.elementor-5828 .elementor-element-c0c83c5 { padding-inline: 0 !important; }
	.elementor-5828 .elementor-element-44923c3 > .e-con-inner, .elementor-5828 .elementor-element-4559213 > .e-con-inner { padding-inline: 0 !important; width: 100% !important; }
}
.lg-box { grid-template-columns: minmax(0, 1fr); }
.lg-box__search input { width: 100% !important; min-width: 0 !important; margin: 0 !important; }

/* finishing pass 3: WoodMart stretches the hero to the full screen with inline styles, so on phones the
   picture is drawn by pseudo-elements inset 16px onto the grid instead of by the container itself */
@media (max-width: 767px) {
	.elementor-5828 .elementor-element-a5b0620 { background: none !important; border-radius: 0 !important; overflow: visible !important; padding: 40px 38px !important; position: relative; isolation: isolate; }
	.elementor-5828 .elementor-element-a5b0620::after { content: ""; position: absolute; inset: 0 16px; z-index: -2; border-radius: 8px 8px 8px 56px; background: var(--lg-hero) url("banner-pour-burgundy.webp") 88% center / cover no-repeat; }
	.elementor-5828 .elementor-element-a5b0620::before { inset: 0 16px !important; z-index: -1 !important; border-radius: 8px 8px 8px 56px; }
}
.lg-box__search input { box-sizing: border-box !important; }

@media (max-width: 767px) {
	.elementor-5828 .elementor-element-a5b0620::before { background: linear-gradient(to top, rgba(66,19,28,.95) 0%, rgba(66,19,28,.75) 55%, rgba(66,19,28,.35) 100%) !important; }
	.elementor-5828 .elementor-element-a5b0620 > .elementor-background-overlay, .elementor-5828 .elementor-element-a5b0620 > .e-con-inner::before { display: none !important; }
	.elementor-5828 .elementor-element-a5b0620 { background-color: transparent !important; }
}

/* Elementor gives the overlay width:100%; in RTL that overrides the left inset → strip on the left edge */
@media (max-width: 767px) { .elementor-5828 .elementor-element-a5b0620::before, .elementor-5828 .elementor-element-a5b0620::after { width: auto !important; height: auto !important; left: 16px !important; right: 16px !important; top: 0 !important; bottom: 0 !important; } }

/* ==========================================================================
   Grid lock: header + footer sit on the same 1192px grid as the page content
   (124–1316 @1440), 16px gutters on phones
   ========================================================================== */
.whb-header .whb-row > .container, .whb-general-header > .container, .whb-top-bar > .container, .whb-header-bottom > .container { max-width: 1222px !important; padding-inline: 15px !important; margin-inline: auto !important; }
.whb-general-header .whb-flex-row { margin-inline: 0 !important; }
.whb-general-header .site-logo { padding-inline: 0 !important; }
.whb-general-header .whb-column:first-child, .whb-general-header .whb-column:last-child { padding-inline: 0 !important; }
.lg-footer__inner > .e-con-inner { max-width: 1192px !important; width: 100% !important; margin-inline: auto !important; padding-inline: 0 !important; }
@media (max-width: 1240px) { .lg-footer__inner > .e-con-inner { max-width: calc(100% - 32px) !important; } }
@media (max-width: 1024px) {
	.whb-header .whb-row > .container, .whb-general-header > .container { max-width: 100% !important; padding-inline: 16px !important; }
	.whb-general-header .wd-tools-element > a, .whb-general-header .wd-header-mobile-nav > a { padding-inline: 0 !important; }
	/* search and cart: 10px apart, and the search is at least 28px wide to tap (they touched, the search was 20px) */
	.whb-general-header .whb-column:has(> .wd-header-cart) { column-gap: 10px; }
	.whb-general-header .wd-header-search > a { padding-inline: 4px !important; }
}

/* WoodMart pulls the outer header columns 10px outward — keep them on the grid */
.whb-general-header .whb-column { margin-inline: 0 !important; }

/* full-width mega menu: WoodMart offsets it with JS against the old full-width header — pin it to the viewport, content on the grid */
@media (min-width: 1025px) {
	.whb-general-header .wd-nav-main > li.menu-mega-dropdown { position: static !important; }
	.whb-general-header .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width { position: fixed !important; left: 0 !important; right: 0 !important; width: 100vw !important; margin: 0 !important; transform: none !important; top: auto; }
	.whb-general-header .wd-dropdown-menu.wd-design-full-width > .container { max-width: 1222px !important; margin-inline: auto !important; padding-inline: 15px !important; left: auto !important; }
}

@media (min-width: 1025px) {
	.whb-general-header { position: relative; }
	.whb-general-header > .container, .whb-general-header .whb-flex-row, .whb-general-header .whb-column, .whb-general-header .wd-header-nav, .whb-general-header .wd-nav-main { position: static !important; }
	.whb-general-header .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width { position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important; width: auto !important; }
	.whb-general-header .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width::after { content: none; }
}

/* ==========================================================================
   Hero on the grid at every width (desktop/tablet). WoodMart stretches the section to the viewport,
   so the picture is painted by pseudo-elements placed exactly on the 1192px grid box.
   ========================================================================== */
@media (min-width: 768px) {
	.elementor-5828 .elementor-element-a5b0620 {
		--lg-gx: max(16px, calc((100% - 1192px) / 2));
		background: none !important; position: relative; isolation: isolate; overflow: visible !important;
		min-height: clamp(460px, 44vw, 620px) !important;
		padding: 0 calc(var(--lg-gx) + clamp(32px, 5vw, 80px)) !important;
		justify-content: center !important; margin-top: 12px !important;
	}
	.elementor-5828 .elementor-element-a5b0620::after {
		content: ""; position: absolute; top: 0 !important; bottom: 0 !important; left: var(--lg-gx) !important; right: var(--lg-gx) !important; width: auto !important; height: auto !important;
		z-index: -2; border-radius: 10px 10px 10px 100px;
		background: var(--lg-hero) url("banner-pour-burgundy.webp") right center / cover no-repeat;
	}
	.elementor-5828 .elementor-element-a5b0620::before {
		content: ""; position: absolute; top: 0 !important; bottom: 0 !important; left: var(--lg-gx) !important; right: var(--lg-gx) !important; width: auto !important; height: auto !important;
		z-index: -1 !important; border-radius: 10px 10px 10px 100px; pointer-events: none;
		background: linear-gradient(to right, rgba(66,19,28,.92) 0%, rgba(66,19,28,.72) 38%, rgba(66,19,28,.15) 70%, rgba(66,19,28,0) 100%) !important; opacity: 1 !important;
	}
	.elementor-5828 .elementor-element-a5b0620 > .e-con-inner, .elementor-5828 .elementor-element-194e52f { max-width: 560px !important; margin-inline-start: auto !important; margin-inline-end: 0 !important; align-items: flex-start !important; }
	.elementor-5828 .elementor-element-194e52f { width: 100% !important; }
	.elementor-5828 .elementor-element-f02f21b .elementor-heading-title { font-size: clamp(80px, 9vw, 150px) !important; line-height: .9 !important; text-align: left !important; }
	.elementor-5828 .elementor-element-8ecf77d .elementor-heading-title { font-size: clamp(34px, 3.8vw, 62px) !important; line-height: 1 !important; text-align: left !important; }
	.elementor-5828 .elementor-element-578523a .elementor-heading-title { font-size: clamp(16px, 1.4vw, 20px) !important; text-align: left !important; }
	.elementor-5828 .elementor-element-df0f71f { justify-content: flex-end !important; }
}

@media (min-width: 768px) {
	/* the inner box is the grid box itself (percentages resolve against the full-width hero) */
	.elementor-5828 .elementor-element-a5b0620 { padding: 0 !important; }
	.elementor-5828 .elementor-element-a5b0620 > .e-con-inner { width: min(1192px, calc(100% - 32px)) !important; max-width: none !important; margin: 0 auto !important; padding: 0 clamp(32px, 5vw, 80px) !important; align-items: flex-end !important; justify-content: center !important; min-height: inherit; }
	.elementor-5828 .elementor-element-194e52f { width: min(560px, 100%) !important; max-width: none !important; margin: 0 !important; align-self: flex-end !important; align-items: flex-end !important; }
	.elementor-5828 .elementor-element-194e52f .elementor-heading-title { text-align: left !important; }
}

/* ==========================================================================
   Tablet (768–1240): same grid as everywhere (16px gutters)
   ========================================================================== */
@media (max-width: 1240px) {
	.elementor-5828 .elementor-element-44923c3, .elementor-5828 .elementor-element-4559213, .elementor-5828 .elementor-element-6af0372, .elementor-5828 .elementor-element-f9b0ca9 { padding-inline: 16px !important; }
	.elementor-5828 .elementor-element-44923c3 > .e-con-inner, .elementor-5828 .elementor-element-4559213 > .e-con-inner { width: 100% !important; max-width: none !important; }
	.lg-reco .wd-carousel, .lg-reco .wd-carousel-inner { overflow: hidden !important; }
}
@media (max-width: 1024px) {
	.lg-new__grid.e-con { width: 100% !important; flex: 0 0 auto !important; }
	.lg-new__grid .wd-products, .lg-new__grid .products { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.lg-new__grid .products.wd-grid-g { --wd-col-lg: 3 !important; --wd-col-md: 3 !important; --wd-col-sm: 3 !important; }
}

@media (max-width: 1024px) { .elementor-5828 .lg-new > .e-con-inner { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; } .lg-new__intro.e-con { width: 100% !important; flex: 0 0 auto !important; } }

/* sticky header on phones/tablets: slimmer bar, smaller logo */
@media (max-width: 1024px) {
	.whb-sticked .whb-general-header .whb-flex-row { height: 52px !important; transition: height .3s ease; }
	.whb-general-header .whb-flex-row { transition: height .3s ease; }
	.whb-sticked .whb-general-header .wd-logo img { max-width: 62px !important; transition: max-width .3s ease; }
}
.whb-sticked .whb-general-header { box-shadow: 0 6px 18px rgba(66,19,28,.08); }

/* the site has no compare page: the theme's "השווה" button and menu item led nowhere */
.wd-compare-btn, .mobile-nav .menu-item-compare, .wd-header-compare { display: none !important; }

/* phones: the promo panels use the 1060x800 copies of their pictures (same crop, about half the bytes) */
@media (max-width: 767px) {
	.lg-promo--taupe.e-con { background-image: url("https://legima.ussl.co/wp-content/uploads/2026/09/legima-promo-gift-1060x800.webp"); }
	.lg-promo--cream.e-con { background-image: url("https://legima.ussl.co/wp-content/uploads/2026/09/legima-promo-deals-1060x800.webp"); }
}

/* ---------- text pages (תקנון, מדיניות משלוחים והחזרות) and the FAQ (its own page + the About page) ---------- */
.lg-legal, .lg-faq { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--lg-ink-soft); }
.lg-legal h2 { margin: 36px 0 10px; font-family: var(--lg-font); font-size: 24px; font-weight: 400; color: var(--lg-ink); }
.lg-legal h2:first-child { margin-top: 0; }
.lg-legal p { margin: 0 0 12px; }
.lg-legal__note { padding: 12px 16px; border-radius: 8px; background: var(--lg-cream-soft); color: var(--lg-ink); }
.lg-legal a, .lg-faq a { color: var(--lg-ink); text-decoration: underline; text-underline-offset: 3px; }
.lg-faq__item { border-bottom: 1px solid var(--lg-line); }
.lg-faq__item summary {
	display: block; position: relative; padding: 18px 0; padding-inline-end: 44px; cursor: pointer; list-style: none;   /* block, not flex: a question mixing Hebrew and English stays one line of text */
	font-family: var(--lg-font); font-size: 19px; line-height: 1.35; color: var(--lg-ink);
}
.lg-faq__item summary::-webkit-details-marker { display: none; }
.lg-faq__item summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; margin-top: -14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lg-cream); color: var(--lg-ink); font-size: 18px; line-height: 1; transition: transform .25s ease; }
.lg-faq__item[open] summary::after { content: "−"; }
.lg-faq__item summary:focus-visible { outline: 3px solid var(--lg-ink); outline-offset: 2px; }
.lg-faq__a p { margin: 0 0 18px; }
.lg-faq-section.e-con { --padding-top: 56px; --padding-bottom: 16px; padding-top: 56px !important; padding-bottom: 16px !important; }
.lg-faq-section .lg-title, .lg-faq-section .elementor-widget-html { width: 100%; align-self: stretch; }   /* the widgets shrank to their text, so centring did nothing */
.lg-faq-section .lg-title .elementor-heading-title { text-align: center !important; margin-bottom: 18px; }

/* ---------- cart + checkout: what the store promises (includes/site-info.php) ---------- */
.lg-trust {
	list-style: none; margin: 0 0 24px; padding: 12px 18px; border-radius: var(--lg-radius);
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
	background: var(--lg-cream-soft); border: 1px solid var(--lg-line);
	font-size: 15px; line-height: 1.4; color: var(--lg-ink);
}
.lg-trust li { display: inline-flex; align-items: center; gap: 8px; }
.lg-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lg-gold); flex: none; }
.lg-trust a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
