/* ==========================================================================
   YOPPY B2C storefront — design system for the consumer homepage (index.html)
   --------------------------------------------------------------------------
   Brand tokens are the ONLY source of color. Mobile-first: base styles target
   320px, then min-width breakpoints at 640 / 1024 / 1280.
   Motion lives in motion.css; this file only sets up GPU-friendly transitions
   (transform + opacity only — never top/left/width/height/margin).
   ========================================================================== */

:root {
  /* ----- Brand tokens (mandatory palette) ------------------------------- */
  --red: #EA1F25;
  --green: #0D6334;
  --cream: #FBF4E4;
  --ink: #1A1A1A;
  --white: #ffffff;

  /* ----- Derived shades (kept on-brand) --------------------------------- */
  --red-deep: #c0151b;
  --green-deep: #0a4f29;
  --cream-soft: #fdf9ef;
  --ink-soft: #2a2a2a;
  --ink-700: rgba(26, 26, 26, 0.7);
  --ink-500: rgba(26, 26, 26, 0.62);
  --line: rgba(26, 26, 26, 0.12);

  /* Anton/Hanken cover Latin; Oswald adds Cyrillic display, Inter Cyrillic body, Cairo Arabic — per-glyph fallback keeps every language on-brand. */
  --font-display: "Anton", "Oswald", "Cairo", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 12px 30px rgba(26, 26, 26, 0.12);
  --shadow-lg: 0 26px 60px rgba(26, 26, 26, 0.18);

  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1240px;
  --header-h: 70px;

  /* ----- Motion tokens (Emil Kowalski-style: ease-out entrances, snappy UI) -- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-ui: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-micro: 100ms;
  --dur-fast: 150ms;
  --dur-std: 200ms;
  --dur-reveal: 320ms;
  --dur-hero: 480ms;
}

/* ----- Reset / base ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* scroll-padding-top keeps in-page anchor targets (#shop, #main) clear of the
   sticky header instead of landing behind it. Header ≈128px <640, ≈107px ≥640. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--red);
  margin: 0 0 0.7rem;
}

/* ----- Buttons ---------------------------------------------------------- */
/* Buttons — matched to the B2B/trade page (gradient pills, weight 900). */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
/* Emil rule: tactile press feedback */
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #c2182b, #9e1322);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(191, 30, 46, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(191, 30, 46, 0.4); }

.btn:focus-visible { outline: 3px solid rgba(13, 99, 52, 0.45); outline-offset: 2px; }

.btn-secondary {
  background: linear-gradient(135deg, #1a8a4f, var(--green-deep));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(13, 99, 52, 0.3);
}
.btn-secondary:hover { box-shadow: 0 16px 36px rgba(13, 99, 52, 0.38); }

.btn-ghost {
  border-color: rgba(26, 26, 26, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green); background: var(--white); color: var(--green-deep); }

.btn-block { width: 100%; white-space: normal; }

/* ======================================================================== */
/*  HEADER / NAV                                                            */
/* ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(251, 244, 228, 0.82);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 244, 228, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.top-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, var(--green-deep), var(--green) 60%, #0a4a2e);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.top-strip a { color: #f3d9a4; font-weight: 800; white-space: nowrap; }

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}
.brand-logo { width: clamp(92px, 11vw, 122px); height: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { margin-top: 0.18rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}
.nav-link {
  font-family: "Inter", var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #4d4138;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: #d59b35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
/* Current-page indicator (persistent underline) */
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link.for-business { color: var(--green); font-weight: 800; }
.nav-link.for-business::after { background: var(--green); }
.nav-link.for-business:hover { color: var(--green-deep); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-business-btn { min-height: 46px; padding: 0.55rem 1.3rem; font-size: 0.9rem; flex-shrink: 0; white-space: nowrap; font-family: "Inter", var(--font-body); }
.cart-btn { flex-shrink: 0; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }

/* "For Business" nav pill — styled + positioned like the trade page buttons. */
.nav-business-btn { display: none; color: var(--white); min-height: 44px; padding: 0.6rem 1.3rem; font-size: 0.88rem; }

/* Cart button + live badge */
.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.is-empty { transform: scale(0); }
.cart-count.bump { animation: cart-bump 0.4s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Hamburger */
.menu-toggle {
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer — anchored to the header's bottom edge (the sticky header
   is the positioning context) so it never overlaps the nav regardless of how
   many lines the announcement strip wraps to. */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 1.2rem clamp(1.1rem, 4vw, 2.5rem) 1.6rem;
  display: grid;
  gap: 0.4rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s ease, opacity 0.24s ease, visibility 0.24s ease;
  z-index: 110;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  font-weight: 700; font-size: 1.1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a.for-business { color: var(--green); }

/* ======================================================================== */
/*  HERO  (light, rotating product slideshow — matches the B2B/trade page)   */
/* ======================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 118px));
  background: var(--cream);
  isolation: isolate;
}
/* Ken Burns product slides — cross-fade + slow zoom (same as the trade hero). */
.hero-slide {
  position: absolute;
  inset: 0;
  background-color: var(--green-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1100ms ease, transform 6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* Cream-to-transparent wash keeps the left readable, product bleeds in on the right. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 244, 228, 0.98) 0%, rgba(251, 244, 228, 0.93) 33%, rgba(251, 244, 228, 0.45) 58%, rgba(251, 244, 228, 0.04) 88%),
    linear-gradient(180deg, rgba(13, 99, 52, 0.04), rgba(13, 99, 52, 0.22));
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: var(--maxw);
  min-height: inherit;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
}
.hero-eyebrow { color: var(--green); letter-spacing: 0.14em; }
.hero-title {
  font-size: clamp(56px, 12vw, 116px);
  line-height: 0.9;
  color: var(--green-deep);
  margin: 0.2rem 0 1.1rem;
  max-width: 13ch;
  text-transform: none;
}
/* Each word on its own line: OPEN. / CRUNCH. / REPEAT. (stacked display headline) */
.hero-title .word { display: block; }
.hero-title .accent { color: var(--red); }
/* letter spans used by the GSAP letter-by-letter reveal */
.hero-title .char { display: inline-block; }

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #30231d;
  max-width: 34ch;
  margin: 0 0 1.8rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Hero supporting "cool text" — rating line + feature chips */
.hero-extra { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(13, 99, 52, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-deep);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d59b35; }

/* Slide indicator dots */
.hero-dots {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(28px, 6vw, 60px);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0;
  border-radius: 999px;
  background: rgba(13, 99, 52, 0.4);
  box-shadow: 0 1px 4px rgba(7, 61, 37, 0.4);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dots button.is-active { width: 28px; background: var(--red); }

/* ======================================================================== */
/*  SHOP / FLAVOR SELECTOR                                                   */
/* ======================================================================== */
.section { padding-block: clamp(3.5rem, 8vh, 6rem); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-title { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--ink); }
.section-title.on-dark { color: var(--cream); }
.section-intro { color: var(--ink-700); font-size: 1.05rem; max-width: 46ch; margin-top: 0.8rem; }

.shop { background: var(--cream); }

.tab-row {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.tab {
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab.is-active { background: var(--ink); color: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-std) var(--ease-out), box-shadow var(--dur-std) var(--ease-out);
  cursor: pointer;
}
.product-card.is-hidden { display: none; }
.product-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-soft);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-std) var(--ease-out);
}
.product-card:hover .card-media img { transform: scale(1.04); }

.range-badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  color: var(--white);
}
.range-badge.coated { background: var(--red); }
.range-badge.marinated { background: var(--green); }

.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-name { font-size: 1.5rem; color: var(--ink); }
.card-price { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.card-price .per-piece { color: var(--ink-500); font-weight: 600; font-size: 0.84rem; }
.card-price .case { color: var(--red); font-weight: 800; }
.card-note { font-size: 0.8rem; color: var(--ink-500); margin-top: -0.2rem; }
.card-specs { margin: 0.1rem 0 0; font-size: 0.74rem; font-weight: 700; color: var(--green-deep); letter-spacing: 0.01em; }
.card-actions { margin-top: auto; padding-top: 0.6rem; }
.add-btn .added-label { display: none; }
/* Confirmation stays red (only the label swaps) — buttons never change color on click. */
.add-btn.is-added .added-label { display: inline; }
.add-btn.is-added .default-label { display: none; }

/* Tab-filter re-entry animation (transform + opacity only) */
.product-card.enter { animation: card-enter 0.35s ease both; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ======================================================================== */
/*  CART DRAWER                                                              */
/* ======================================================================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}
body.cart-open .cart-overlay { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
body.cart-open .cart-drawer { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cart-header h2 { font-size: 1.6rem; }
.cart-close {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 1.2rem; line-height: 1;
  transition: transform 0.18s ease;
}
.cart-close:hover { transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-empty { color: var(--ink-500); text-align: center; padding: 3rem 1rem; }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--white); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 800; display: block; }
.cart-line-meta { font-size: 0.8rem; color: var(--ink-500); }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cart-line-total { font-weight: 800; }
.cart-line-remove { background: none; border: none; color: var(--red); font-size: 0.78rem; font-weight: 700; padding: 0; }

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); margin-top: 0.4rem;
}
.qty-step {
  width: 30px; height: 30px; border: none; background: transparent;
  font-size: 1.1rem; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-input {
  width: 38px; text-align: center; border: none; background: transparent;
  font-weight: 800; font-family: var(--font-body); color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-foot { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--cream-soft); }
.cart-row { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 0.25rem 0; }
.cart-total { font-weight: 800; font-size: 1.15rem; border-top: 1px dashed var(--line); margin-top: 0.4rem; padding-top: 0.6rem; }
.cart-ship-free { color: var(--green); font-weight: 800; }
.cart-hint { font-size: 0.82rem; color: var(--ink-700); margin: 0.5rem 0 0; }
.cart-hint.free { color: var(--green); font-weight: 700; }
.cart-secure { font-size: 0.76rem; color: var(--ink-500); text-align: center; margin: 0.7rem 0 0; }
.cart-note { font-size: 0.85rem; text-align: center; margin: 0.5rem 0 0; min-height: 1em; }

/* ======================================================================== */
/*  WHY YOPPY                                                                */
/* ======================================================================== */
.why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.why-card .accent-line { width: 44px; height: 4px; background: var(--red); border-radius: 999px; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.7rem; color: var(--ink); }
.why-card p { color: var(--ink-700); margin: 0.6rem 0 0; }


/* ======================================================================== */
/*  FOOTER (B2C)                                                             */
/* ======================================================================== */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 7vh, 4.5rem) 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand .brand-logo { width: 52px; height: 52px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.5rem; margin: 0.8rem 0 0; color: var(--cream); }
.footer-desc { color: rgba(251, 244, 228, 0.62); font-size: 0.9rem; line-height: 1.6; margin: 0.7rem 0 0; max-width: 38ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.footer-badges span {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #66c089; border: 1px solid rgba(102, 192, 137, 0.4); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.footer-col strong { display: block; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.footer-col a, .footer-col span { display: block; color: rgba(251, 244, 228, 0.75); padding: 0.28rem 0; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-col a.for-business { color: #66c089; font-weight: 700; }
.footer-business-note { color: rgba(251, 244, 228, 0.7); font-size: 0.9rem; margin-top: 0.6rem; }
.footer-business-note a { color: #66c089; font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(251, 244, 228, 0.16);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(251, 244, 228, 0.6);
  font-size: 0.82rem;
}
.pay-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pay-badge {
  font-weight: 800; font-size: 0.7rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem; border-radius: 6px;
  background: rgba(251, 244, 228, 0.1); color: var(--cream);
  border: 1px solid rgba(251, 244, 228, 0.2);
}
.pay-note { color: rgba(251, 244, 228, 0.55); font-size: 0.78rem; font-weight: 700; margin-right: 0.4rem; }

/* ======================================================================== */
/*  RESPONSIVE                                                               */
/* ======================================================================== */
@media (min-width: 640px) {
  html { scroll-padding-top: 112px; } /* single-line strip → shorter header */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .primary-nav { display: flex; }
  .nav-business-btn { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(80px, 9vw, 120px); }
}

/* ======================================================================== */
/*  LANGUAGE SWITCHER (same custom switcher as the B2B pages, with flags)    */
/* ======================================================================== */
.language-switcher {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 150;
}
.mermer-language-menu { position: relative; color: var(--ink); font-family: var(--font-body); }
.mermer-language-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 78px;
  min-height: 46px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(31, 25, 21, 0.16);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mermer-language-current:hover,
.mermer-language-current:focus-visible { border-color: rgba(13, 99, 52, 0.4); outline: none; }
.language-code { min-width: 1.8rem; font-size: 0.82rem; line-height: 1; text-align: center; }
.language-arrow { margin-left: 0; font-size: 0.72rem; }
.language-flag {
  display: block;
  width: 24px; height: 18px;
  flex: 0 0 24px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(31, 25, 21, 0.12);
}
.mermer-language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 200px;
  max-height: min(360px, calc(100vh - 150px));
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(31, 25, 21, 0.22);
}
.mermer-language-options[hidden] { display: none !important; }
.mermer-language-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}
.mermer-language-option:hover,
.mermer-language-option:focus-visible,
.mermer-language-option[aria-selected="true"] { background: var(--green); color: var(--white); outline: none; }
html[dir="rtl"] .mermer-language-options { right: auto; left: 0; }
html[dir="rtl"] .mermer-language-option { text-align: right; }
@media (max-width: 680px) {
  .language-switcher { right: max(12px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .mermer-language-current { min-width: 72px; min-height: 42px; padding: 0.5rem 0.55rem; }
  .mermer-language-options { width: 184px; }
}

/* ======================================================================== */
/*  RIGHT-TO-LEFT (Arabic) — mirror the LTR-first layout (H-01)             */
/* ======================================================================== */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .hero-content { align-items: flex-end; text-align: right; }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .section-head,
html[dir="rtl"] .section-intro,
html[dir="rtl"] .why-card,
html[dir="rtl"] .footer-col { text-align: right; }
html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(251, 244, 228, 0.98) 0%, rgba(251, 244, 228, 0.93) 33%, rgba(251, 244, 228, 0.45) 58%, rgba(251, 244, 228, 0.04) 88%),
    linear-gradient(180deg, rgba(13, 99, 52, 0.04), rgba(13, 99, 52, 0.22));
}
html[dir="rtl"] .hero-dots { right: auto; left: clamp(16px, 4vw, 44px); }
html[dir="rtl"] .language-switcher { right: auto; left: max(20px, env(safe-area-inset-left)); }
html[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .nav-link::after { left: auto; right: 0; transform-origin: right; }
html[dir="rtl"] .why-card .accent-line { margin-left: auto; }

/* Touch targets >= 44px (P-01) */
.tab { min-height: 44px; }
.mermer-language-option { min-height: 44px; }

/* ======================================================================== */
/*  PRODUCT QUICK-VIEW PANEL (B2C)                                          */
/* ======================================================================== */
body.panel-open { overflow: hidden; }

.product-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 26, 26, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-std) var(--ease-out);
}
.product-panel-overlay[hidden] { display: none; }
.product-panel-overlay.open { opacity: 1; pointer-events: auto; }

.product-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* Emil: enter from scale(0.95) + blur, never scale(0). */
  transform: scale(0.95) translateY(12px);
  filter: blur(4px);
  opacity: 0;
  transition: transform var(--dur-std) var(--ease-out), filter var(--dur-std) var(--ease-out), opacity var(--dur-std) var(--ease-out);
}
.product-panel-overlay.open .product-panel { transform: scale(1) translateY(0); filter: blur(0); opacity: 1; }

.product-panel__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.product-panel__close:hover { background: var(--white); }
.product-panel__close:active { transform: scale(0.92); }

.product-panel__media {
  position: relative;
  background: var(--cream-soft);
  min-height: 320px;
}
.product-panel__img { width: 100%; height: 100%; object-fit: cover; }
.product-panel__badge {
  position: absolute;
  top: 0.95rem; left: 0.95rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.product-panel__content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem 1.9rem;
  overflow-y: auto;
}
.product-panel__name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--ink); line-height: 1.05; margin: 0; }
.product-panel__subtitle { margin: 0.35rem 0 0; color: var(--green-deep); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.product-panel__label { display: block; margin-bottom: 0.4rem; color: var(--red); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.product-panel__desc { margin: 0; color: var(--ink-700); font-size: 1rem; line-height: 1.6; }
.product-panel__specs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spec-pill {
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(13, 99, 52, 0.2);
  border-radius: 999px;
  background: rgba(13, 99, 52, 0.06);
  color: var(--green-deep);
  font-size: 0.74rem; font-weight: 700;
}
.product-panel__pricing { display: flex; flex-direction: column; gap: 0.35rem; }
.pricing-row { display: flex; justify-content: space-between; font-size: 0.96rem; color: var(--ink); }
.pricing-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.pricing-row:last-of-type .pricing-price { color: var(--red); }
.pricing-note { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--ink-500); }
.product-panel__actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }

@media (min-width: 560px) { .product-panel__actions { flex-direction: row; } }

/* Mobile — bottom sheet */
@media (max-width: 700px) {
  .product-panel-overlay { padding: 0; align-items: flex-end; }
  .product-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(40px);
  }
  .product-panel-overlay.open .product-panel { transform: translateY(0); }
  .product-panel__media { min-height: 200px; max-height: 34vh; }
}

@media (prefers-reduced-motion: reduce) {
  .product-panel-overlay, .product-panel { transition-duration: 0.001ms !important; filter: none !important; }
}
html[dir="rtl"] .product-panel__close { right: auto; left: 14px; }
html[dir="rtl"] .product-panel__badge { left: auto; right: 0.95rem; }

/* ──────────────────────────────────────────────────────────────────────────
   Mobile hardening (2026-06-26) — targeted touch/iOS fixes, additive only.
   No brand-token, layout, or desktop-hover changes.
   ────────────────────────────────────────────────────────────────────────── */

/* 1. No "sticky hover" on touch: hovers that MOVE an element are neutralised
      where hover isn't a real pointer, so a tapped card/button never stays
      lifted. (:active feedback is unaffected.) */
@media (hover: none) {
  .btn:hover,
  .cart-btn:hover,
  .cart-close:hover,
  .product-card:hover,
  .product-card:hover .card-media img { transform: none; }
  .product-card:hover { box-shadow: var(--shadow-sm); }
}

/* 2. iOS dynamic viewport: the hero shouldn't jump as the address bar shows/
      hides. dvh sits after the vh rule above — browsers without dvh keep vh. */
.hero { min-height: min(760px, calc(100dvh - 118px)); }

/* 3. Contain overlay scrolling so it doesn't chain to the page on iOS. */
.cart-body,
.mermer-language-options { overscroll-behavior: contain; }

/* 4. Comfortable >=44px touch targets on phones (language option already 44px). */
@media (max-width: 768px) {
  .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a { padding-block: 0.6rem; }
}

/* 5. No blue tap-highlight flash on touch. */
a, button, .btn, [role="button"] { -webkit-tap-highlight-color: transparent; }
