/*
 * Guards against styles leaking in from the parent theme and from Elementor's
 * site kit. Elementor stays installed for WooCommerce routes, and its kit CSS
 * loads after ours, so these rules carry a little extra specificity on purpose.
 */

html body .nav-cta { color: #fff; }
html body .nav-links a { color: rgba(240, 237, 232, 0.7); }
html body .mega-col li a { color: var(--text-dim); }
html body .mega-col li a:hover { color: var(--accent); }
html body .footer .footer-col a,
html body .footer .footer-bottom a { color: rgba(240, 237, 232, 0.55); }
html body .footer .footer-col a:hover { color: var(--accent); }
html body .product-card,
html body a.product-card { color: inherit; }

/* The parent resets headings; keep the display face on ours. */
html body h1, html body h2, html body h3, html body h4 { font-family: var(--font-display); }

/* WooCommerce ships `.woocommerce-page img { height:auto }` at (0,1,1),
   which out-weighs `.nav-logo-img` and blew the logo up to its intrinsic
   size on every shop template. */
html body .nav .nav-logo .nav-logo-img { height: 48px; width: auto; max-width: none; }
html body .cat-card-img img,
html body .r-card-img img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* Supplier photos come in every shape (portrait cut-outs, padded squares):
   show each whole on a white card rather than cropping the odd one. */
html body .split-img { width: 100%; height: 100%; object-fit: contain; background: #fff; max-width: none; }

/* ── Scrolled header: black on every page ──
   Once the page moves the header goes black, whether it started transparent
   over a dark hero or white on a light template. The nav--solid selectors
   are spelled out because they outrank a plain .nav.scrolled. */
html body .nav.scrolled,
html body .nav.nav--solid.scrolled {
  background: rgba(12, 12, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html body .nav.scrolled .nav-logo-img,
html body .nav.nav--solid.scrolled .nav-logo-img { filter: brightness(10); }
html body .nav.scrolled .nav-logo-text,
html body .nav.nav--solid.scrolled .nav-logo-text { color: #F0EDE8; }
html body .nav.scrolled .nav-links a,
html body .nav.nav--solid.scrolled .nav-links a { color: rgba(240, 237, 232, 0.7); }
html body .nav.scrolled .nav-links a:hover,
html body .nav.nav--solid.scrolled .nav-links a:hover { color: #F0EDE8; }
html body .nav.scrolled .nav-toggle span,
html body .nav.nav--solid.scrolled .nav-toggle span { background: #F0EDE8; }
html body .nav.scrolled .nav-icon-btn svg,
html body .nav.nav--solid.scrolled .nav-icon-btn svg { stroke: rgba(240, 237, 232, 0.8); }

/* Home service cards: the whole card opens its link, not only the button (2026-11-11). */
.service-card { cursor: pointer; }
.service-card .service-card-btn::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* The CTA glow is 500px wide; on a phone it pushed the page 60px sideways. */
html body .cta-section { overflow: hidden; }

/* Phone hero text: the desktop's right-only padding let lines run off the left edge. */
@media (max-width: 767px) {
  html body .hero-phase { padding: 0 1.25rem; }
}

/* 1.9.45 — Oz, 22.11: VAT shown both ways, photo note, home categories. */
.cat-card-vat{display:block;font-size:.78em;font-weight:400;color:var(--text-mid)}
.c-price-row .val small.c-price-vat{display:block;font-size:.5em;font-weight:400;color:var(--text-mid);margin-top:.15rem}
.img-note{margin:.75rem 0 0;font-size:.78rem;color:var(--text-dim);text-align:center}
.split-visual .img-note{text-align:start;padding-inline:.25rem}
.home-cats{padding:4.5rem 1.5rem 3rem;background:var(--bg)}
.home-cats-inner{max-width:1280px;margin:0 auto}
.home-cats .section-title{margin-bottom:1.75rem}
.home-cats-grid{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;max-width:1100px}
.home-cat{display:flex;flex-direction:column;gap:.6rem;text-decoration:none;color:var(--text);height:100%}
.home-cat-img{display:block;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--bg-elevated);border:1px solid var(--border)}
.home-cat-img img{width:100%;height:100%;object-fit:contain;padding:10%;transition:transform .35s ease}
.home-cat:hover .home-cat-img img,.home-cat:focus-visible .home-cat-img img{transform:scale(1.05)}
.home-cat:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:14px}
.home-cat-name{font-weight:700;font-size:1rem;text-align:center;line-height:1.3}

@media (prefers-reduced-motion:reduce){.home-cat-img img{transition:none}}

/* 1.9.46 — Asher, 23.11: home categories 4+4+3; the services band (כל מה שהמותג שלך צריך) hidden. */
.services-section{display:none!important}
@media (max-width:900px){.home-cats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.home-cats{padding:3rem 1rem 2rem}.home-cats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}}

/* Legal links in the footer (23.11) */
.footer-legal{display:flex;flex-wrap:wrap;gap:.4rem 1.25rem;justify-content:center;margin-bottom:.75rem;font-size:.85rem}
.footer-legal a{color:inherit;opacity:.8;text-decoration:none}
.footer-legal a:hover{opacity:1;text-decoration:underline}
