/* ─────────────────────────────────────────────────────────────────────────
   Falfruit – main.css
   Premium fresh produce landing page styles
   ───────────────────────────────────────────────────────────────────────── */

/* Fonts loaded via <link> in base.html for faster parallel loading */

:root {
  --cream:       #faf8f3;
  --green:       #0b4d2e;
  --green-mid:   #0f5c36;
  --green-light: #187a48;
  --amber:       #c89520;
  --amber-light: #e0aa2a;
  --rust:        #a87618;
  --text:        #131610;
  --muted:       #5a6b5e;
  --white:       #ffffff;
  --card-bg:     #f2f8f5;

  /* Nav height at each breakpoint — logo-img CSS height + top+bottom padding.
     Used for dashboard padding-top and sidebar sticky-top so they always
     clear the fixed navbar without JS timing issues. JS in main.js refines
     this on resize, but CSS sets the correct value immediately on first paint. */
  --nav-height: 110px; /* logo 94px + 2×0.5rem(8px) padding */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a, button, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

/* Firefox scrollbar — thin + green tinted */
* { scrollbar-width: thin; scrollbar-color: rgba(13,92,54,0.3) transparent; }
/* Chrome/Safari/Edge scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(13,92,54,0.3); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
/* iOS Safari scroll lock — position:fixed prevents fixed elements from jumping when body
   overflow:hidden is set. JS saves/restores scrollY via body.style.top. */
body.scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: #faf8f3; background: var(--cream); /* fallback for browsers without CSS variable support */
  color: #131610; color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-x: none; /* prevents horizontal rubber-band causing layout jank on Chrome Android */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  zoom: 0.9; /* Set global scale to 90% as requested */
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 2.5vw;
  /* Dynamic Island / notch — viewport-fit=cover means content runs under the island;
     push nav content below it. Falls back to 0px on non-notch devices. */
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  background: transparent !important;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  /* will-change + transform removed — GPU layer promotion causes Brave Android to render
     the transparent nav as a solid blurred bar. Browser transitions still work without it. */
  transition: background 0.7s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.7s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(13,92,54,0.09);
  box-shadow: 0 2px 28px rgba(13,92,54,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
}
/* Amber accent line at top of scrolled nav */
#navbar.scrolled::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 25%, var(--green-light) 60%, var(--amber) 80%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

/* ── Dashboard — solid white nav ────────────────────────────────────────── */
body:has(.dash-page) #navbar {
  background: rgba(255,255,255,0.96) !important;
  border-bottom-color: rgba(13,92,54,0.1);
  box-shadow: 0 2px 24px rgba(13,92,54,0.07);
}
body:has(.dash-page) #navbar ul a { color: var(--green); }
body:has(.dash-page) .nav-cta {
  background: var(--green) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
body:has(.dash-page) .hamburger {
  background: rgba(13,92,54,0.08);
  border-color: rgba(13,92,54,0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(.dash-page) .hamburger span { background: var(--green); }
body:has(.dash-page) .logo-text { color: var(--green); }

/* ── Auth pages (login, register) — shorter semi-transparent nav ─────────── */
body:has(.auth-scene) #navbar,
body:has(.auth-page) #navbar {
  background: rgba(10,46,24,0.45) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: none;
  padding-top: calc(0.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.25rem;
}
body:has(.auth-scene) .logo-img,
body:has(.auth-page) .logo-img { height: 46px; }
body:has(.auth-scene) .logo-text,
body:has(.auth-page) .logo-text { font-size: 1.5rem; }
body:has(.auth-scene) #navbar ul a,
body:has(.auth-page) #navbar ul a { color: rgba(255,255,255,0.9); }
body:has(.auth-scene) .nav-cta,
body:has(.auth-page) .nav-cta {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: none !important;
}
body:has(.auth-scene) .hamburger span,
body:has(.auth-page) .hamburger span { background: #fff; }

/* Logo area */
.logo-area {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
}
.logo-img {
  height: 94px; width: auto; object-fit: contain;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.84rem; font-weight: 900;
  color: rgba(255,255,255,0.95); /* white on transparent/dark hero nav */
  letter-spacing: -0.3px;
  line-height: 1;
  transition: color 0.7s cubic-bezier(0.25,0.46,0.45,0.94), text-shadow 0.7s;
}
#navbar.scrolled .logo-text {
  text-shadow: none;
}
.logo-text span { color: rgba(255,255,255,0.95); }
#navbar.scrolled .logo-text { color: var(--green); }
#navbar.scrolled .logo-text span { color: var(--green); }

#navbar ul { list-style: none; display: flex; gap: 1.4rem; align-items: center; padding-right: 0.3rem; }
#navbar ul a {
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  color: #ffffff; letter-spacing: 0.02em;
  position: relative; padding-bottom: 3px;
  transition: color 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
#navbar.scrolled ul a { color: var(--green); }
#navbar ul a::after {
  content: ''; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--amber-light);
  border-radius: 99px;
  transition: width 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
}
#navbar ul a:hover::after { width: 70%; }
#navbar.scrolled ul a::after { background: var(--green); }

.nav-cta { /* base — overridden by high-specificity rule below */ }
/* High-specificity: beats #navbar ul a so padding/font actually apply */
#navbar ul .nav-cta {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.92) !important;
  padding: 0.78rem 2.2rem !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem !important; font-weight: 600 !important; letter-spacing: 0.02em;
  line-height: 1 !important;
  border: 2px solid rgba(255,255,255,0.65) !important;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
#navbar ul .nav-cta:hover { background: rgba(255,255,255,0.28) !important; border-color: rgba(255,255,255,0.9); box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important; }
#navbar.scrolled ul .nav-cta {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(11,77,46,0.28), 0 1px 0 rgba(255,255,255,0.15) inset !important;
  letter-spacing: 0.025em;
}
#navbar.scrolled ul .nav-cta:hover {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%) !important;
  box-shadow: 0 6px 22px rgba(11,77,46,0.38) !important;
  transform: translateY(-1px);
}
#navbar ul .nav-cta::after { display: none !important; }


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 10000;
  -webkit-tap-highlight-color: transparent;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.hamburger:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-1px);
}
.hamburger:active { transform: scale(0.94); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s, width 0.3s;
}
.hamburger span:nth-child(2) { width: 14px; align-self: flex-end; margin-right: 12px; }
.hamburger:hover span:nth-child(2) { width: 22px; }
#navbar.scrolled .hamburger {
  background: rgba(255,255,255,0.95);
  border-color: rgba(11,77,46,0.14);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
#navbar.scrolled .hamburger span { background: var(--green); }
#navbar.scrolled .hamburger:hover { background: #fff; border-color: rgba(11,77,46,0.25); box-shadow: 0 4px 16px rgba(11,77,46,0.12); }
.hamburger.open span:nth-child(2) { width: 24px; opacity: 0; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Modern Dropdown Menu — Premium Dark Glass */
#navbar ul.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 1rem;
  width: 260px; max-width: calc(100vw - 2rem); /* prevent overflow on 320px phones */
  background: rgba(10, 13, 11, 0.94) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 1rem 0.75rem;
  gap: 0.15rem;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 1px solid rgba(255,255,255,0.14);
  overflow: hidden; /* prevent Chromium blur-rect artifact */
  transform-origin: top right;
  animation: dropdownGrow 0.33s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownGrow {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#navbar ul.mobile-open li { 
  width: 100%;
  margin: 0;
}

#navbar ul.mobile-open a {
  display: block;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  text-align: left;
}

#navbar ul.mobile-open a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
}

#navbar ul.mobile-open a:active {
  background: rgba(255,255,255,0.12);
}

#navbar ul.mobile-open .nav-cta {
  background: var(--green) !important;
  border: none !important;
  color: white !important;
  margin-top: 0.4rem;
  text-align: center;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(11,77,46,0.4);
  padding: 0.85rem 1.5rem !important;
  justify-content: center !important;
}
#navbar ul.mobile-open .nav-cta:hover {
  background: var(--green-mid) !important;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  min-height: 100svh; /* Compensates for 90% zoom to fill the viewport */
  display: grid; grid-template-columns: 1fr;
  padding-top: 80px;
  position: relative; overflow: hidden;
  background-color: #0a2e18;
  background-image: var(--hero-bg, linear-gradient(135deg, #062a18 0%, #0b4d2e 60%, #0f5c36 100%));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* contain: layout paint (not strict) — avoid size-containment on abs-pos elements, which
     breaks Safari's compositor when combined with object-fit */
  will-change: opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}
/* Hero photo slideshow layers */
.hero-photo-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
}

/* Portrait video — rotate 90° and scale to fill the landscape frame */
.hero-video-bg.is-portrait {
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  -webkit-transform: translate(-50%, -50%) rotate(90deg) translateZ(0);
  object-fit: cover;
}
#hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 40%);
  z-index: 1;
}
/* Logo stays consistent size — no shrink on scroll */
@media (max-width: 1100px) {
  .logo-img { height: 68px; }
  .logo-text { font-size: 1.7rem; }
  /* Hamburger: remove backdrop-filter on mobile — it's directly above the hero video
     and forces per-frame GPU re-compositing through the video layer (causes lag) */
  .hamburger { backdrop-filter: none; -webkit-backdrop-filter: none; width: 52px; height: 52px; }
  #navbar { padding: 1rem 3.5vw 0.5rem 3.5vw; }
  :root { --nav-height: 90px; }
}
@media (max-width: 640px) {
  .logo-img { height: 64px; }
  .logo-text { font-size: 1.55rem; }
  .hamburger { width: 50px; height: 50px; }
  #navbar { padding: 1rem 4vw 0.5rem 4vw; }
  :root { --nav-height: 86px; }
}

@media (max-width: 640px) {
  #hero { min-height: 85vh; min-height: 85svh; padding-top: 60px; }
  #hero::after {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.38) 0%,   /* stronger at top — covers the nav bar area */
      rgba(0,0,0,0.12) 35%,
      rgba(0,0,0,0.18) 70%,
      rgba(0,0,0,0.28) 100%);
  }
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 5vw 5rem 8vw;
  max-width: 700px;
  position: relative; z-index: 5;
  /* z-index 5 — must be above photo layers (max z-index 2 during slideshow,
     initialised at 1/2) and above video layers (0/1) */
}
.hero-left::before {
  content: '';
  position: absolute;
  top: 15%; left: -8%;
  width: 75%; height: 55%;
  background: radial-gradient(ellipse at 40% 50%,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.07) 35%,
    rgba(255,255,255,0.02) 60%,
    transparent 75%);
  pointer-events: none;
  animation: fogBreath 7s ease-in-out infinite;
  z-index: -1;
  filter: blur(18px);
}
@keyframes fogBreath {
  0%, 100% { opacity: 0.5; transform: scale(1)    translateY(0px);  }
  50%       { opacity: 1;   transform: scale(1.12) translateY(-12px); }
}
/* Disable fogBreath on mobile — filter:blur animation is too expensive on iOS GPU.
   Also clear filter entirely: even static blur(18px) forces GPU re-compositing through the video layer. */
@media (max-width: 768px) {
  .hero-left::before { animation: none; opacity: 0.6; filter: none; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: rgba(255,255,255,0.95);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1.4rem; width: fit-content;
  animation: fadeUp 0.7s ease both;
}
.hero-badge::before {
  content: '◆'; width: auto; height: auto;
  background: none; font-size: 0.45rem; opacity: 0.65; flex-shrink: 0;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.08; font-weight: 900;
  color: #e8f5ee;
  -webkit-text-stroke: 0.6px rgba(11,77,46,0.55);
  paint-order: stroke fill;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s 0.1s ease both;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}
.hero-title em {
  display: block;
  color: #157a40;
  -webkit-text-stroke: 0.7px rgba(255,255,255,0.85);
  paint-order: stroke fill;
  font-style: italic;
  text-shadow: none;
}
.hero-desc {
  font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  max-width: 400px; margin-bottom: 2.2rem;
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 400; letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  #hero { background-position: center center; background-attachment: scroll; }

  /* No card — text sits directly over the photo */
  .hero-left {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    padding: 5.5rem 6vw 3rem;
  }

  /* Badge line stays white */
  .hero-badge { color: rgba(255,255,255,0.9); }
  .hero-badge::before { background: none; }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
    margin-bottom: 0.8rem;
    color: #e8f5ee;
    -webkit-text-stroke: 0.6px rgba(11,77,46,0.55);
    paint-order: stroke fill;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  }
  .hero-title em {
    color: #157a40;
    -webkit-text-stroke: 0.7px rgba(255,255,255,0.85);
    paint-order: stroke fill;
    text-shadow: none;
  }

  /* Description — match desktop sizing */
  .hero-desc {
    margin-bottom: 2rem; font-size: 1rem; line-height: 1.75;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    max-width: 100%;
  }

  /* Stats — white text with soft shadow */
  .stat-num { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
  .stat-label { color: rgba(255,255,255,0.8) !important; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 900; color: var(--green);
  text-shadow: none;
}
@media (max-width: 640px) {
  .hero-stats { margin-top: 2rem; gap: 1.8rem; }
  .stat-num { font-size: 1.3rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
  .stat-label { color: rgba(255,255,255,0.75); }
  .hero-actions .btn-primary {
    background: var(--green); color: white;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  }
  .hero-actions .btn-outline {
    color: rgba(255,255,255,0.9);
  }
}
.stat-label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }



/* ── MARQUEE ──────────────────────────────────────────────────────────────── */
.marquee-strip {
  background: var(--green); color: var(--white);
  padding: 0.9rem 0; overflow: hidden;
  border-bottom: 2px solid rgba(200,149,32,0.35);
}
.marquee-inner {
  display: flex; gap: 3rem;
  will-change: transform;
  animation: marquee 12s linear infinite;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .marquee-inner { animation-duration: 9s; }
}
.marquee-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  flex-shrink: 0;
}
.marquee-dot { color: var(--amber); font-size: 1.2rem; }

/* ── SECTIONS COMMON ──────────────────────────────────────────────────────── */
section { padding: 6rem 8vw; }
@media (max-width: 640px) { section { padding: 5rem 6vw; } }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-light);
  display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.8rem;
  background: rgba(24,122,72,0.08);
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  width: fit-content;
}
.section-label::before { content: '✦'; width: auto; height: auto; background: none; font-size: 0.5rem; opacity: 0.7; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900;
  color: var(--green); line-height: 1.12; margin-bottom: 1rem;
  letter-spacing: -0.3px;
}
.section-sub { color: var(--muted); max-width: 520px; line-height: 1.75; margin-bottom: 2rem; }

/* Search Bar generic */
.search-container { position: relative; width: 100%; display: flex; align-items: center; }
.search-input {
  width: 100%; padding: 0.9rem 1.2rem 0.9rem 3.5rem; border-radius: 100px;
  border: 1.5px solid rgba(13,92,54,0.22); background: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; /* ≥16px prevents iOS Safari auto-zoom on focus */ transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 0 3px rgba(13,92,54,0.04);
}
.search-input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(13,92,54,0.10); transform: translateY(-1px); }
.search-icon { position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%); color: rgba(13,92,54,0.45); pointer-events: none; z-index: 2; transition: color 0.3s; }
/* :focus-within is used (not + adjacent sibling) because .search-icon precedes .search-input in DOM */
.search-container:focus-within .search-icon { color: #0b4d2e; color: var(--green); }

/* ── PRODUCTS ─────────────────────────────────────────────────────────────── */
#products { background: var(--white); padding: 5rem 6vw; }
@media (max-width: 640px) { #products { padding: 4.5rem 6vw; } }
@media (min-width: 901px) {
  #products { padding: 5rem 8vw; }
}
.products-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 4.5rem;
}
.products-header-title { order: 1; }
.products-header .search-container { order: 2; max-width: 750px; }
.filter-tabs { order: 3; display: flex; gap: 0.5rem; flex-wrap: wrap; width: 100%; align-items: center; }

@media (min-width: 901px) {
  .products-header {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem 5rem;
  }
  .products-header-title { grid-column: 1; grid-row: 1; white-space: nowrap; }
  .search-container { grid-column: 2; grid-row: 1; margin-bottom: 0; justify-self: start; width: 100%; margin-top: 1.6rem; }
  .filter-tabs { grid-column: 1 / span 2; grid-row: 2; margin-top: 0.5rem; }
}
.filter-tab {
  border: 1.5px solid rgba(13,92,54,0.22); background: transparent;
  color: var(--green); padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s; font-family: 'DM Sans', sans-serif;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--green); color: var(--white); border-color: var(--green);
}
.products-grid {
  /* display: flex fallback for UC Browser / Opera Mini (no CSS grid support) */
  display: flex; flex-wrap: wrap;
  display: grid;
  /* min(240px,100%) inside minmax() is buggy in Safari <15.4 — use plain value,
     mobile 2-col is handled by .view-double override below */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 901px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
  }
}

/* ── VIEW TOGGLE BUTTON ───────────────────────────────────────────────────── */
.view-toggle-btn {
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 34px;
  border: 1.5px solid rgba(13,92,54,0.22);
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* prevents 300ms tap delay on mobile */
  user-select: none;
}
@media (min-width: 768px) {
  .view-toggle-btn { display: none !important; }
}
.view-toggle-btn:hover, .view-toggle-btn.active {
  background: var(--green); color: white; border-color: var(--green);
}
/* default (double/grid mode): show list icon, hide grid icon */
.vt-icon-grid { display: none; }
.vt-icon-list { display: block; }
/* when grid is in list mode: show grid icon, hide list icon */
#productsGrid.view-list ~ * .vt-icon-list,
.view-toggle-btn.is-list .vt-icon-list { display: none; }
.view-toggle-btn.is-list .vt-icon-grid { display: block; }

/* ── VIEW MODES ───────────────────────────────────────────────────────────── */
/* Double (2-col) — explicit 2 cols on mobile */
@media (max-width: 640px) {
  #productsGrid.view-double {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  #productsGrid.view-double .product-img { height: 140px; }
  #productsGrid.view-double .product-body { padding: 0.75rem; }
  #productsGrid.view-double .product-name { font-size: 0.95rem; }
  #productsGrid.view-double .product-desc { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #productsGrid.view-double .product-emoji-span { font-size: 3.5rem; }
}

/* List (1-col horizontal) */
#productsGrid.view-list {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
#productsGrid.view-list .product-card {
  flex-direction: row;
  align-items: stretch;
  border-radius: 16px;
}
#productsGrid.view-list .product-img {
  width: 140px;
  min-width: 140px;
  height: 140px;
  border-radius: 0;
  flex-shrink: 0;
}
#productsGrid.view-list .product-body {
  flex: 1;
  padding: 0.85rem 1rem;
  min-width: 0; /* prevents flex child from overflowing */
}
#productsGrid.view-list .product-name { font-size: 0.98rem; margin-bottom: 0.25rem; }
#productsGrid.view-list .product-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.5rem;
}
#productsGrid.view-list .product-emoji-span { font-size: 3.8rem; }

.product-card {
  background: #fff; border-radius: 22px;
  overflow: hidden;
  /* box-shadow removed from transition — shadow transitions repaint the entire card
     every frame on the CPU; transform-only is GPU-accelerated (no repaint) */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(13,92,54,0.08);
  box-shadow: 0 2px 12px rgba(13,92,54,0.06);
  cursor: pointer;
  display: flex; flex-direction: column;
  flex: 1 1 240px; /* flex fallback sizing when CSS grid not supported */
  -webkit-tap-highlight-color: transparent; user-select: none;
  contain: layout; /* isolate card reflows from the rest of the page */
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(13,92,54,0.14); border-color: rgba(13,92,54,0.14); }
.product-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f2f8f5, #f8fcfa);
}
.product-photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-photo { transform: scale(1.1); }
.product-emoji-span { font-size: 5.5rem; }
.product-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--rust); color: white;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 100px;
}
.product-badge.fresh { background: var(--green-light); }
.out-of-stock-label {
  display: inline-block;
  background: rgba(90,107,90,0.1);
  color: var(--muted);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 100px;
}
.search-empty { text-align: center; padding: 2.5rem 1rem; font-family: inherit; }
.search-empty-emoji { font-size: 2.2rem; margin: 0 0 0.75rem 0; line-height: 1; }
.search-empty-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.4rem 0; opacity: 0.85; font-family: inherit; }
.search-empty-sub { font-size: 0.85rem; opacity: 0.55; line-height: 1.6; margin: 0 auto; max-width: 260px; font-family: inherit; }
.product-badge.sale  { background: var(--rust); }
.product-badge.new   { background: #7c3aed; }
.product-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light); font-weight: 600; margin-bottom: 0.3rem; }
.product-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 900; color: var(--green); margin-bottom: 0.5rem; }
.product-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
@media (max-width: 640px) {
  .product-desc { font-size: 0.95rem; line-height: 1.6; }
}
.product-footer { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; margin-top: auto; width: 100%; }
.product-price { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 900; color: var(--green); width: 100%; border-bottom: 1px solid rgba(0,0,0,0.03); padding-bottom: 0.5rem; }
.product-price span { font-size: 0.78rem; font-family: 'DM Sans'; font-weight: 400; color: var(--muted); }
.btn-add-cart {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  color: white;
  border: none; border-radius: 12px;
  padding: 0.8rem 1rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: transform 0.3s cubic-bezier(0.165,0.84,0.44,1), box-shadow 0.3s;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px;
  box-shadow: 0 4px 14px rgba(13,92,54,0.22);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,92,54,0.32); }
.btn-add-cart:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(13,92,54,0.2); }

/* content-visibility: auto removed — while it helps initial paint it causes burst
   rendering work exactly when sections scroll into view, producing visible jank
   mid-scroll on mobile Chrome. Page sections are lightweight enough to render upfront. */

/* ── THE FALFRUIT WAY ────────────────────────────────────────────────── */
#experience { padding: 3.5rem 8vw 2.5rem; background: var(--white); text-align: center; }
.experience-header { margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; }
.experience-header .section-label { justify-content: center; }
.experience-header .section-title { margin-bottom: 0.5rem; }

.experience-flow {
  display: flex; flex-wrap: wrap; /* UC Browser fallback */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step {
  background: transparent;
  padding: 0.6rem 0.8rem;
  flex: 1 1 200px; /* flex fallback sizing */
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.flow-step:hover { transform: translateY(-4px); }

.step-emoji {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1;
  transition: transform 0.4s ease;
  background: var(--card-bg);
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.flow-step:hover .step-emoji {
  transform: scale(1.1) rotate(5deg);
  background: #f2f8f5;
}

.flow-step h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.flow-step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 900px) {
  .flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.8rem;
    right: -2rem;
    width: 3.5rem;
    height: 1px;
    background: rgba(13,92,54,0.1);
  }
}

@media (max-width: 900px) {
  .experience-flow { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  #experience { padding: 2.5rem 6vw 2rem; }
  .experience-flow { grid-template-columns: 1fr; gap: 1rem; }
  .flow-step { padding: 0.6rem 0.8rem; }
  #find-us { padding: 3.5rem 6vw; }
}

/* ── FIND US ─────────────────────────────────────────────────────────────── */
#find-us {
  background: linear-gradient(160deg, #062a18 0%, #0b4d2e 55%, #0f5c36 100%);
  text-align: center; padding: 3.5rem 8vw;
  position: relative; overflow: hidden;
}
#find-us::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 160%;
  background: radial-gradient(ellipse, rgba(26,138,82,0.25) 0%, transparent 65%);
  pointer-events: none;
}
#find-us .section-title { color: #ffffff; text-align: center; margin-bottom: 2.4rem; }
.find-us-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto;
}

/* ── PREMIUM SOCIAL BUTTONS ──────────────────────────────────────────────── */

.btn-whatsapp, .btn-facebook, .btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border-radius: 100px;
  text-decoration: none;
  color: white;
  min-width: 200px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.165,0.84,0.44,1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

/* Platform icon — small circle */
.btn-social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-whatsapp .btn-social-icon {
  background: #25D366;
  box-shadow: 0 2px 10px rgba(37,211,102,0.45);
}
.btn-facebook .btn-social-icon {
  background: #1877F2;
  box-shadow: 0 2px 10px rgba(24,119,242,0.45);
}
.btn-instagram .btn-social-icon {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  box-shadow: 0 2px 10px rgba(188,24,136,0.4);
}
.btn-whatsapp svg, .btn-facebook svg, .btn-instagram svg {
  width: 17px; height: 17px; fill: white;
}

/* Text body */
.btn-social-body {
  display: flex; flex-direction: column; gap: 0.1rem; flex: 1;
}
.btn-social-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
}
.btn-social-sub {
  font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.01em;
}

/* Per-platform hover */
.btn-whatsapp:hover {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.35);
  box-shadow: 0 16px 48px rgba(37,211,102,0.2);
  transform: translateY(-4px);
}
.btn-facebook:hover {
  background: rgba(24,119,242,0.12);
  border-color: rgba(24,119,242,0.35);
  box-shadow: 0 16px 48px rgba(24,119,242,0.2);
  transform: translateY(-4px);
}
.btn-instagram:hover {
  background: rgba(188,24,136,0.12);
  border-color: rgba(188,24,136,0.35);
  box-shadow: 0 16px 48px rgba(188,24,136,0.18);
  transform: translateY(-4px);
}
.btn-whatsapp:active, .btn-facebook:active, .btn-instagram:active {
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .btn-whatsapp, .btn-facebook, .btn-instagram {
    width: 100%; max-width: 340px; min-width: unset;
  }
  .find-us-actions { flex-direction: column; align-items: center; }
}

/* ── WHATSAPP WIDGET ──────────────────────────────────────────────────────── */
#wa-widget {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 2rem;
  z-index: 999;
  /* will-change + translateZ removed — position:fixed already gets its own
     compositor layer; forcing a second layer wastes GPU memory every scroll frame */
}
#wa-fab {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(37,211,102,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#wa-fab svg { width: 32px; height: 32px; fill: white; }
#wa-fab:hover { transform: scale(1.1) rotate(5deg); }

#wa-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: min(320px, calc(100vw - 3rem));
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  display: none;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
#wa-popup.show { display: block; animation: slideUp 0.4s ease forwards; }

.wa-popup-header {
  background: #075e54;
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-header-info b { display: block; font-size: 1rem; }
.wa-header-info span { font-size: 0.75rem; opacity: 0.8; }
.wa-popup-header button { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }

.wa-popup-body { padding: 1.5rem; background: #e5ddd5; }
.wa-popup-body p {
  background: white;
  padding: 0.8rem 1rem;
  border-radius: 0 15px 15px 15px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wa-options { display: flex; flex-direction: column; gap: 0.6rem; }
.wa-options a {
  background: white;
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  border: 1px solid rgba(0,0,0,0.05);
}
.wa-options a:hover { background: #f0f0f0; color: var(--green); }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── CART SYSTEM ─────────────────────────────────────────────────────────── */
#cart-bubble {
  position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); left: 2rem; z-index: 999;
  width: 65px; height: 65px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(13,92,54,0.38), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  /* will-change + translateZ removed — see #wa-widget note above */
}
#cart-bubble:hover { transform: scale(1.1); box-shadow: 0 14px 36px rgba(13,92,54,0.48), inset 0 1px 0 rgba(255,255,255,0.2); }
#cart-bubble svg { width: 30px; height: 30px; fill: white; }
#cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--amber); color: white;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
  border: 2px solid white;
}

#cart-drawer {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1001;
  display: none; justify-content: flex-end;
}
#cart-drawer.open { display: flex; }

.cart-panel {
  width: 100%; max-width: 420px; background: white; height: 100%;
  display: flex; flex-direction: column;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  min-width: 0; /* allow flex children to shrink */
}
/* Mobile: cap at 75vw — keeps overlay visible so close button at left:-62px remains accessible */
@media (max-width: 768px) {
  .cart-panel { width: 75vw; max-width: 75vw; }
}
@media (min-width: 1200px) {
  .cart-panel { max-width: 480px; }
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ── Cart header ── */
.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.cart-header h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  white-space: nowrap;
}
.cart-close {
  position: absolute;
  left: -62px; top: 57%;
  transform: translateY(-57%);
  width: 57px; height: 57px;
  display: flex; align-items: center; justify-content: center;
  background: white; border: none; border-radius: 50%;
  cursor: pointer; opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0;
  box-shadow: -2px 0 8px rgba(0,0,0,0.12);
}
.cart-close:hover { opacity: 1; transform: translateY(-57%) translateX(-3px); }
.cart-close-arrow { font-size: 2.1rem; line-height: 57px; display: block; width: 57px; text-align: center; }

/* ── Cart items list ── */
.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  min-height: 0; /* critical: allows flex child to scroll instead of expand */
}

.cart-item {
  display: flex;
  align-items: flex-start; /* top-align so long names don't misalign media */
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f0f0f0;
  min-width: 0; /* prevent overflow */
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-item-img {
  width: 48px; height: 48px;
  border-radius: 8px; object-fit: cover;
  flex-shrink: 0;
}
.cart-item-emoji {
  font-size: 1.8rem; width: 48px;
  text-align: center; flex-shrink: 0; line-height: 48px;
}

.cart-item-info {
  flex: 1;
  min-width: 0; /* allow text to wrap/truncate inside flex */
  display: flex; flex-direction: column; gap: 0.15rem;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}
.cart-item-price {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Qty controls row — wraps remove button below on very narrow panels */
.cart-item-qty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.cart-qty-btn {
  width: 44px; height: 38px; min-height: 44px;
  border-radius: 8px; border: 1.5px solid #e0e0e0;
  background: #fff; cursor: pointer;
  font-size: 1.2rem; font-weight: 700; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cart-qty-btn:active { transform: scale(0.85); background: #f0faf0; border-color: var(--green); }
.cart-item-qty > span { font-weight: 700; font-size: 0.95rem; min-width: 18px; text-align: center; }
.cart-item-remove {
  background: transparent; color: #e53935; border: 1.5px solid #e53935;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.cart-item-remove:hover { background: #e53935; color: white; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(229,57,53,0.25); }
.cart-item-remove:active { transform: translateY(0); }

/* ── Cart footer — non-scrolling area at bottom ── */
.cart-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid #eee;
  background: #fafafa;
  display: flex; flex-direction: column; gap: 0.6rem;
}

/* ── Disclaimer ── */
.cart-disclaimer {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 120px; opacity: 1;
}
.cart-disclaimer.hidden { max-height: 0; opacity: 0; pointer-events: none; }
.cart-disclaimer-inner {
  display: flex; align-items: flex-start; gap: 0.4rem;
  background: rgba(128,128,128,0.07);
  border-radius: 7px;
  padding: 0.5rem 0.65rem;
  border-left: 2px solid rgba(128,128,128,0.25);
}
.cart-disclaimer-icon { font-size: 0.8rem; opacity: 0.45; flex-shrink: 0; margin-top: 1px; }
.cart-disclaimer-text {
  font-size: 0.75rem; opacity: 0.6;
  line-height: 1.45; margin: 0; flex: 1;
  font-family: inherit;
  word-break: break-word;
}
.cart-disclaimer-hide {
  background: none; border: none;
  font-size: 0.68rem; opacity: 0.4; cursor: pointer;
  padding: 0; flex-shrink: 0; font-family: inherit;
  text-decoration: underline; align-self: flex-start;
  margin-top: 1px; transition: opacity 0.15s;
}
.cart-disclaimer-hide:hover { opacity: 0.7; }

/* ── Bill toggle button ── */
.cart-bill-toggle {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  background: #f4f8f4; border: 1px solid #d6e8d6; border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; color: var(--green);
  cursor: pointer; transition: background 0.15s;
  white-space: nowrap;
}
.cart-bill-toggle:hover { background: #eaf3ea; }
.cart-bill-arrow { font-size: 0.72rem; margin-left: 0.5rem; flex-shrink: 0; }

/* ── Price breakdown ── */
.cart-price-breakdown {
  background: #f9fbf9;
  border: 1px solid #e8f0e8;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  box-sizing: border-box;
  width: 100%;
}
.cart-breakdown-section-label {
  font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #999; margin: 0.45rem 0 0.2rem;
}
.cart-breakdown-section-label:first-child { margin-top: 0; }
.cart-breakdown-section-extras { color: var(--green); opacity: 0.85; }
.cart-breakdown-row {
  display: flex; justify-content: space-between; align-items: baseline;
  color: #444; padding: 0.15rem 0; gap: 0.4rem;
}
.cart-breakdown-row span:first-child {
  flex: 1; min-width: 0;
  word-break: break-word; overflow-wrap: break-word;
  line-height: 1.35;
}
.cart-breakdown-row span:last-child { white-space: nowrap; flex-shrink: 0; }
.cart-breakdown-extra-row { color: #1a6b1f; font-weight: 500; }
.cart-breakdown-divider { border: none; border-top: 1px dashed #ccc; margin: 0.4rem 0 0; }

/* ── Total row ── */
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.2rem 0.5rem;
  font-weight: 800; font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  color: var(--green);
}
.cart-total span:last-child { white-space: nowrap; }

/* ── WhatsApp checkout button ── */
.cart-checkout-btn {
  position: relative; overflow: hidden;
  width: 100%; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #25D366 0%, #0ea356 50%, #128C7E 100%);
  color: white; border: none;
  font-weight: 700; font-size: clamp(0.82rem, 3vw, 1rem); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s;
  box-shadow: 0 6px 24px rgba(37,211,102,0.38), inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.cart-checkout-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background 0.3s;
}
.cart-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
.cart-checkout-btn:hover::before { background: rgba(255,255,255,0.1); }
.cart-checkout-btn:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }

/* ── Responsive overrides ─────────────────────────────────────────────────── */

/* Phones ≤ 480px — tighten spacing so content fits 75vw panel (≈240–360px) */
@media (max-width: 480px) {
  .cart-items { padding: 0.875rem 1rem; gap: 0.75rem; }
  .cart-footer { padding: 0.875rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)); gap: 0.5rem; }
  .cart-header { padding: 1rem; }
  .cart-item { gap: 0.6rem; }
  .cart-item-img, .cart-item-emoji { width: 40px; height: 40px; font-size: 1.5rem; line-height: 40px; }
  .cart-item-name { font-size: 0.83rem; }
  .cart-item-price { font-size: 0.75rem; }
  .cart-qty-btn { width: 40px; height: 36px; min-height: 40px; font-size: 1.1rem; border-radius: 7px; }
  .cart-item-remove { padding: 0.28rem 0.55rem; font-size: 0.65rem; }
  .cart-price-breakdown { padding: 0.5rem 0.65rem; font-size: 0.75rem; }
  .cart-bill-toggle { font-size: 0.75rem; padding: 0.45rem 0.7rem; }
  .cart-checkout-btn { height: 50px; border-radius: 12px; }
  .cart-checkout-btn svg { width: 17px; height: 17px; }
}


@media (max-width: 640px) {
  /* Ensure product body has safe padding on mobile */
  .product-body { padding: 1rem; }
}

/* Mobile refinements */
@media (max-width: 640px) {
  #wa-widget { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  #cart-bubble { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  /* Social buttons — no backdrop-filter on mobile, no visible effect against dark bg + causes iOS compositing issues */
  .btn-whatsapp, .btn-facebook, .btn-instagram {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 480px) {
  #wa-widget { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); right: 1.2rem; }
  #cart-bubble { bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); left: 1.2rem; }
  #wa-popup { width: 280px; right: 0; }

  /* Cart close uses the same left:-56px position as desktop — visible in the
     dark overlay area since cart is now 75vw and not full screen width. */
}

/* ── TAP TARGET FIXES (mobile) ────────────────────────────────────────────
   Apple HIG + Google Material both require 44×44px minimum touch targets.
   These close buttons are visually small — grow them without changing appearance.
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Cart drawer close — full-width text button, tap target is naturally large enough */
  /* Checkout modal close — explicit 36×36px is below minimum */
  .checkout-modal-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ── BUTTONS GENERIC ──────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 0.85rem 2.2rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 700; text-decoration: none; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 18px rgba(13,92,54,0.28);
  min-width: 210px; /* Equalized length */
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13,92,54,0.38); background: var(--green-mid); }
.btn-order-now {
  border-radius: 50px;
  padding: 0.85rem 2rem;
  box-shadow: 0 6px 24px rgba(13,92,54,0.35);
}
.btn-outline {
  color: rgba(255,255,255,0.92);
  padding: 0.78rem 1.6rem; border-radius: 50px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  border: 2px solid rgba(255,255,255,0.65); background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  min-width: 210px; /* Matching Shop Now length */
}
.btn-outline:hover { color: #ffffff; border-color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.08); }

/* ── TESTIMONIALS & BRANCHES MINIMIZED ────────────────────────────────────── */
#testimonials { background: var(--white); padding: 4rem 4vw; }
#branches { background: var(--white); padding: 2.5rem 4vw 4rem; }
@media (max-width: 640px) {
  #testimonials { padding: 3.5rem max(4vw, 1.2rem); }
  .testimonials-grid { max-width: 100%; }
  #branches { padding: 2.5rem max(4vw, 1.2rem) 4rem; }
}
#testimonials .section-title { font-size: 1.62rem; margin-bottom: 1.4rem; }
#branches .section-title { font-size: 1.78rem; margin-bottom: 1.4rem; }
#testimonials .section-label { font-size: 0.72rem; margin-bottom: 0.3rem; }
#branches .section-label { font-size: 0.72rem; margin-bottom: 0.3rem; }

.testimonials-grid {
  display: flex; flex-wrap: wrap; /* UC Browser / Opera Mini fallback */
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 1100px; margin: 0 auto;
}
.testimonial-card { flex: 1 1 280px; } /* flex fallback sizing */
.testimonial-card {
  background: var(--white); border-radius: 18px; padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid rgba(0,0,0,0.07);
  border-top: 3px solid var(--amber);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(11,77,46,0.1); }
.testimonial-text {
  font-size: 0.88rem; line-height: 1.72; color: #3a3a38; margin: 0;
  font-weight: 400; font-family: 'DM Sans', sans-serif; font-style: italic; flex: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.7rem;
  border-top: 1px solid rgba(0,0,0,0.06); padding-top: 0.9rem;
}
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: white; font-weight: 700; flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 0.15rem; }
.author-name { font-weight: 600; font-size: 0.8rem; color: var(--green); }
.stars { color: #f59e0b; font-size: 0.72rem; letter-spacing: 1.5px; }

/* Tablet (641–768px): 2-col testimonials — 1-col on desktop (3 col) is too extreme a jump */
@media (min-width: 641px) and (max-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-grid { max-width: 100%; grid-template-columns: 1fr; }
}

.branches-grid { 
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; 
}
.branch-card {
  flex: 1 1 320px; max-width: 380px; min-width: min(320px, 100%);
  background: #fff; border-radius: 24px; padding: 1.8rem;
  border: 1px solid rgba(13,92,54,0.12);
  box-shadow: 0 2px 14px rgba(13,92,54,0.07);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.branch-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(13,92,54,0.13); border-color: rgba(13,92,54,0.22); }

.branch-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 800; color: var(--green); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }

.branch-info { 
  display: flex; flex-direction: column; gap: 0.8rem; flex-grow: 1; border-top: 1px solid rgba(0,0,0,0.04); padding-top: 1.2rem; margin-bottom: 1.5rem;
}
.branch-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text); }
.b-icon { font-size: 1rem; flex-shrink: 0; line-height: 1; margin-top: 0.08rem; }
.branch-item b { color: var(--green); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; width: 70px; flex-shrink: 0; opacity: 0.8; padding-top: 0.15rem; }
.branch-item span:last-child { color: var(--text); font-size: 0.85rem; font-weight: 500; word-break: break-word; }

.branch-link { 
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1rem; border-radius: 12px; background: var(--green); 
  color: white; text-decoration: none; font-size: 0.88rem; font-weight: 700;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s; letter-spacing: 0.05em; width: 100%;
}
.branch-link:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,92,54,0.18); }

/* ── PREMIUM NOTIFICATIONS ───────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 0.8rem;
  pointer-events: none; width: 90%; max-width: 400px;
}
.toast {
  background: white; border-radius: 16px; padding: 1rem 1.4rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--green);
  transform: translateY(-20px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  pointer-events: auto;
}
.toast-error { border-left-color: #c62828; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-content { display: flex; align-items: center; gap: 1rem; }
.toast-icon { 
  width: 32px; height: 32px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.toast-error .toast-icon { background: #c62828; }
.toast-msg { font-size: 0.92rem; font-weight: 600; color: var(--green); line-height: 1.4; }
.toast-error .toast-msg { color: #c62828; }
/* End of branch styles */

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer { background: #0f1309; color: rgba(255,255,255,0.8); padding: 3.5rem 8vw 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-grid {
  display: flex; flex-wrap: wrap; /* UC Browser fallback */
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem;
}
.footer-logo-area { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; text-decoration: none; }
.footer-logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo-text {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900;
  color: white; letter-spacing: -0.5px; line-height: 1;
}
.footer-logo-text span { color: rgba(255,255,255,0.85); }
.footer-desc { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.5); margin-bottom: 0; max-width: 280px; }

/* Footer social icons — used in contact column */
.social-link {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: white;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.social-link:hover { transform: translateY(-2px); }
.social-link.wa:hover  { background: #25D366; border-color: #25D366; }
.social-link.fb:hover  { background: #1877F2; border-color: #1877F2; }
.social-link.ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.social-link.em:hover  { background: var(--amber); border-color: var(--amber); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-contact-socials { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

.footer-col-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul li { font-size: 0.86rem; color: rgba(255,255,255,0.5); }
.footer-col ul a { font-size: 0.86rem; color: rgba(255,255,255,0.48); text-decoration: none; transition: color 0.25s, padding-left 0.2s; }
.footer-col ul a:hover { color: var(--amber-light); padding-left: 3px; }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-careers-link { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-careers-link:hover { color: var(--amber-light); }
@media (max-width: 768px) {
  footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
  .footer-bottom { padding-bottom: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.2rem; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  footer { padding-left: 5vw; padding-right: 5vw; }
}

/* ── CHECKOUT MODAL ───────────────────────────────────────────────────────── */
#checkout-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.55);
  /* backdrop-filter removed — Brave blocks it at runtime but keeps the compositor
     layer, causing a rectangular artifact over the entire overlay */
  align-items: center; justify-content: center;
  padding: 1rem;
}
#checkout-overlay.open { display: flex; }

.checkout-modal {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  width: 100%; max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  animation: fadeUp 0.3s ease;
  max-height: 92svh; overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; gap: 1rem;
}
.checkout-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--green); margin-bottom: 0.3rem;
}
.checkout-modal-sub {
  font-size: 0.88rem; color: var(--muted);
}
.checkout-modal-close {
  background: var(--card-bg); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem; cursor: pointer;
  color: var(--muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.checkout-modal-close:hover { background: #e0ece0; }

.checkout-field {
  margin-bottom: 1.1rem;
}
.checkout-field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--green); margin-bottom: 0.4rem; letter-spacing: 0.03em;
  text-transform: uppercase;
}
.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1.5px solid #d4e8d4;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; /* ≥16px prevents iOS Safari auto-zoom on focus */
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(58,170,58,0.12);
}

.checkout-error {
  font-size: 0.85rem; color: #c62828;
  margin-bottom: 0.8rem;
}

.checkout-submit-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #25d366;
  color: white;
  border: none; border-radius: 14px;
  padding: 0.95rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.checkout-submit-btn:hover { background: #20b858; transform: translateY(-1px); }
.checkout-submit-btn:active { transform: translateY(0); }
.checkout-submit-btn:disabled {
  background: var(--muted); cursor: not-allowed; transform: none;
}

/* ── FADE IN ANIMATION ────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; text-align: left; }
  .hero-left { padding: 7rem 5vw 4rem; align-items: flex-start; }
  .hero-desc { margin: 0 0 2.5rem; }
  .hero-actions { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 1100px) {
  #navbar ul { display: none; flex-direction: column; } /* match #navbar ul specificity so this actually wins */
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .hero-left { padding: 5.5rem 6vw 3rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-whatsapp, .btn-facebook, .btn-instagram { width: 100%; max-width: 340px; }
}

/* ── ADAPTIVE QUALITY TIERS ───────────────────────────────────────────────
   JS stamps tier-low / tier-mid / tier-high on <html> before page renders.
   Low  = ≤2 CPU cores or 2G/saveData → strip all expensive effects
   Mid  = average phone → keep animations, reduce blur
   High = powerful device → full premium experience
──────────────────────────────────────────────────────────────────────── */

/* LOW TIER — no blur, no heavy animations, solid backgrounds */
.tier-low nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* background NOT overridden here — nav.scrolled handles it; forcing white here
     made the nav permanently white even when at the top of the hero */
}
.tier-low .fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.tier-low * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
.tier-low .marquee-inner {
  animation-duration: 14s !important;
}
/* Only #find-us::before exists — #hero and #experience have no ::before in CSS */
.tier-low #find-us::before {
  display: none;
}

/* MID TIER — keep animations; no nav backdrop-filter (backdrop-filter on nav causes
   Brave Android to render the entire nav as a solid blurred bar — Brave blocks the
   effect at runtime but still promotes the element to a compositor layer) */

/* ── FEEDBACK MODAL ──────────────────────────────────────────────────────── */
.feedback-box {
  background: var(--white); border-radius: 20px;
  width: 100%; max-width: 440px;
  padding: 1.8rem 1.8rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; gap: 1.2rem;
  max-height: 90svh; overflow-y: auto; overscroll-behavior: contain;
}
.feedback-header {
  display: flex; align-items: center; justify-content: space-between;
}
.feedback-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 900; color: var(--green);
}
.fb-stars-row {
  display: flex; gap: 0.4rem; justify-content: center;
}
.fb-star {
  font-size: 2rem; background: none; border: none; cursor: pointer;
  color: #ddd; transition: color 0.15s, transform 0.15s;
  padding: 0; line-height: 1;
}
.fb-star.active { color: #f59e0b; transform: scale(1.15); }
.feedback-form { display: flex; flex-direction: column; gap: 0.75rem; }
.fb-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 1.5px solid rgba(13,92,54,0.18); font-family: 'DM Sans', sans-serif;
  font-size: 1rem; /* ≥16px prevents iOS Safari auto-zoom on focus */ outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.fb-input:focus { border-color: var(--green); }
.fb-textarea { resize: vertical; min-height: 90px; }
.fb-msg-success { color: #166534; font-weight: 500; }
.fb-msg-error   { color: #b91c1c; font-weight: 500; }
.phone-counter {
  display: block; font-size: 0.75rem; margin-top: 0.25rem;
  color: var(--muted); transition: color 0.2s;
}
.phone-counter-ok  { color: #166534; font-weight: 600; }
.phone-counter-bad { color: #b91c1c; }
@media (max-width: 640px) {
  .feedback-box { padding: 1.4rem 1.2rem 1.2rem; }
}

/* ── FULLSCREEN MODE ─────────────────────────────────────────────────────────
   Activates only when the browser is in fullscreen (F11 or JS requestFullscreen).
   Zero side effects on normal browsing — all rules are scoped inside
   :fullscreen / :-webkit-full-screen so they never apply otherwise.
   ─────────────────────────────────────────────────────────────────────────── */

/* Chrome / Edge / Firefox */
:fullscreen #hero,
:fullscreen #hero {
  min-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  padding-top: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

:fullscreen .hero-video-bg,
:fullscreen .hero-photo-bg {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Hide chrome: nav, marquee, everything outside the hero */
:fullscreen nav,
:fullscreen .marquee-strip,
:fullscreen #navbar {
  display: none !important;
}

/* Safari / older WebKit */
:-webkit-full-screen #hero {
  min-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  padding-top: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

:-webkit-full-screen .hero-video-bg,
:-webkit-full-screen .hero-photo-bg {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center center !important;
}

:-webkit-full-screen nav,
:-webkit-full-screen .marquee-strip,
:-webkit-full-screen #navbar {
  display: none !important;
}

/* ── EXPERIENCE SECTION — Pure White Branding ─────────────────────────────── */
#experience {
  background: #ffffff; /* Pure white as requested to remove yellow */
  padding-bottom: 2rem; /* Reduce gap to discovery row */
}

/* ── DISCOVERY ROW — Premium 2-Column (Blended & Outlined) ───────────────── */
.home-discovery-section {
  padding: 0 8vw 6rem;
  background: #ffffff; /* Unified with experience section */
}
.home-discovery-container {
  max-width: 1100px;
  margin: 0 auto;
}
.discovery-grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.discovery-item-premium {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 2.5rem;
  background: rgba(24,122,72,0.03); /* Fresh light green tint as requested */
  border-radius: 20px;
  text-decoration: none;
  border: 1.5px solid rgba(24,122,72,0.12); /* Thin brand-green outline */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.discovery-item-premium:hover {
  transform: translateY(-5px);
  background: rgba(24,122,72,0.06); /* Slightly stronger green on hover */
  border-color: var(--green-light);
  box-shadow: 0 12px 36px rgba(13,92,54,0.08);
}

.discovery-icon-ph {
  font-size: 1.8rem;
  background: rgba(13,92,54,0.06);
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.discovery-item-premium:hover .discovery-icon-ph {
  transform: scale(1.1) rotate(-4deg);
  background: white;
  box-shadow: 0 8px 20px rgba(13,92,54,0.06);
}

.discovery-body-ph { flex: 1; }
.discovery-body-ph h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
}
.discovery-body-ph p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.discovery-arrow-ph {
  color: var(--green-light);
  opacity: 0.4;
  transition: all 0.3s ease;
  transform: scale(1.2); /* Made the arrow bigger */
}
.discovery-item-premium:hover .discovery-arrow-ph {
  opacity: 1;
  color: var(--amber);
  transform: scale(1.5) translateX(5px); /* Even bigger on hover */
}

@media (max-width: 900px) {
  .discovery-grid-premium { grid-template-columns: 1fr; gap: 1rem; }
  .discovery-item-premium { padding: 1.5rem; gap: 1.4rem; }
}
@media (max-width: 640px) {
  .home-discovery-section { padding-bottom: 4rem; }
  .discovery-icon-ph { width: 50px; height: 50px; font-size: 1.5rem; }
  .discovery-body-ph h3 { font-size: 1.15rem; }
  .discovery-arrow-ph { transform: scale(1.1); }
}

/* Respect OS reduced-motion preference — skip smooth scroll & hero animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-left::before { animation: none !important; }
  .marquee-inner { animation-play-state: paused; }
  .fade-in { animation: none !important; opacity: 1 !important; }
}
