/* ===================================================
   SPECTRE TECH — Modern Design System v2.0 (2026)
   =================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Global Design Tokens ── */
:root {
  --font-sans: 'Inter', 'Poppins', sans-serif;
  --accent:        #3cb371;
  --accent-light:  #4ade80;
  --accent-dark:   #2d9a5e;
  --accent-glow:   rgba(60, 179, 113, 0.35);

  /* Light mode */
  --bg-body:    #f4f6f9;
  --bg-nav:     rgba(255, 255, 255, 0.88);
  --bg-card:    #ffffff;
  --text-main:  #1a202c;
  --text-muted: #64748b;
  --border:     rgba(0,0,0,0.08);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-green: 0 8px 32px var(--accent-glow);
}

body.dark-mode {
  --bg-body:    #070c14;
  --bg-nav:     rgba(7, 12, 20, 0.90);
  --bg-card:    #101828;
  --text-main:  #e8f0fe;
  --text-muted: #8ba0b8;
  --border:     rgba(255,255,255,0.07);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-green: 0 8px 32px rgba(60,179,113,0.2);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.25s;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ── Glassmorphism Nav ── */
.glass-nav {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
body.dark-mode .glass-nav {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #3cb371 0%, #5fe09a 50%, #2d9a5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 28px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.98); }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ── Card ── */
.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
  border-color: var(--accent);
}

/* ── Section Heading Decoration ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(60,179,113,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(60,179,113,0.25);
  margin-bottom: 12px;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile: skip scroll-reveal motion (prevents flicker while scrolling) */
@media (max-width: 767px) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal.in-view,
  .reveal-left.in-view,
  .reveal-right.in-view {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hover-lift,
  .hover-lift:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
  }

  /* Why Choose — lock cards static on mobile; marquee GPU must not bleed here */
  .why-choose-section {
    position: relative;
    z-index: 2;
    background-color: var(--bg-body);
    isolation: isolate;
    contain: layout paint style;
    overflow: hidden;
    transform: none !important;
  }
  .why-choose-section .why-heading,
  .why-choose-section .why-card,
  .why-choose-section .why-card * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
  }
  .why-choose-section .why-heading,
  .why-choose-section .why-card {
    opacity: 1 !important;
  }
  .why-choose-section .why-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--bg-card, #fff);
    box-shadow: none !important;
    contain: layout paint style;
  }
  .why-choose-section .why-card > div {
    box-shadow: none !important;
  }
}

/* ── Hero Animated Background Orbs ── */
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.06); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}
@keyframes orbFloatAlt {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-25px, 20px) scale(0.94); }
  66%       { transform: translate(18px, -25px) scale(1.07); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(60,179,113,0.22) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(45,154,94,0.18) 0%, transparent 70%);
  animation: orbFloatAlt 15s ease-in-out infinite;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(74,222,128,0.14) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
  animation-delay: -4s;
}

/* ── Stat Counter ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-number { animation: countUp 0.6s ease both; }

/* ── Page Hero Banner ── */
.page-hero {
  background: linear-gradient(135deg, #0a1a12 0%, #0d2b1a 40%, #0f3321 100%);
  position: relative;
  overflow: hidden;
}
body:not(.dark-mode) .page-hero {
  background: linear-gradient(135deg, #162e1e 0%, #1a3d26 40%, #1e4d2e 100%);
}

/* ── Mobile Menu ── */
/* Hamburger icon lines */
.hamburger-line { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
#hamburger.open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
#hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.2s, color 0.2s;
}
#mobile-menu a:hover, #mobile-menu a.active {
  background: rgba(60,179,113,0.12);
  color: var(--accent);
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 22px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,0.55);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Shimmer Loading effect ── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── Product cards (stable grid — no reveal flicker on mobile) ── */
.product-item {
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.product-item .product-card-img {
  transition: transform 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(60, 179, 113, 0.18);
  }
  .product-item:hover .product-card-img {
    transform: scale(1.05);
  }
}
@media (max-width: 767px) {
  #home-products-grid .product-item,
  #product-grid .product-item {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  }
}

/* ── Cart item layout ── */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-item-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cart-item-thumb {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}
.dark-mode .cart-item-thumb { background: #1e293b; }
.cart-item-meta {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-weight: 700;
  color: var(--primary, #3cb371);
  font-size: 0.95rem;
}
.cart-item-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cart-price-mobile { margin-top: 0.15rem; }
.cart-price-desktop { display: none; }
.cart-remove-mobile { display: flex; }
.cart-remove-desktop { display: none; }
@media (min-width: 640px) {
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .cart-item-top { flex: 1; align-items: center; }
  .cart-item-desc {
    flex: 1.2;
    min-width: 0;
    -webkit-line-clamp: 2;
    margin-top: 0;
  }
  .cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .cart-price-mobile,
  .cart-remove-mobile { display: none; }
  .cart-price-desktop,
  .cart-remove-desktop { display: block; }
}

/* ── Product Card Enhancements ── */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1.5px var(--accent);
  border-color: var(--accent);
}
.product-card .card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  z-index: 1;
}
.product-card .img-wrap {
  overflow: hidden;
  background: #f3f6f9;
}
body.dark-mode .product-card .img-wrap { background: #1a2235; }
.product-card .img-wrap img { transition: transform 0.5s ease; }
.product-card:hover .img-wrap img { transform: scale(1.1); }

/* ── Header Action Icons ── */
.nav-icon-btn svg,
.nav-icon-btn span,
#theme-icon svg {
  color: var(--accent) !important;
}
.nav-icon-btn:hover svg,
.nav-icon-btn:hover span {
  color: var(--accent-dark) !important;
}
.nav-icon-btn .cart-badge,
.nav-icon-btn #cart-count,
.nav-icon-btn #cart-count-badge {
  color: #fff !important;
}

/* ── Input & Form ── */
.modern-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modern-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(60,179,113,0.15);
}
.modern-input::placeholder { color: var(--text-muted); }

/* ── Global Input / Select / Textarea visibility fix ── */
/* Ensures typed text is always readable in both light and dark mode */
input, select, textarea {
  color: var(--text-main, #1a1f2e);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted, #64748b);
  opacity: 1;
}
/* When body has dark-mode class (custom toggle) */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  color: #f1f5f9;
  background-color: transparent; /* preserve per-element bg */
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #64748b;
}
/* Inputs with bg-transparent need their own background in dark mode
   so browsers don't default to white-text-on-white autocomplete fill */
body.dark-mode input:not([class*="bg-"]),
body.dark-mode textarea:not([class*="bg-"]),
body.dark-mode select:not([class*="bg-"]) {
  background-color: rgba(255,255,255,0.05);
}
/* Select option text (browser-native dropdown) */
body.dark-mode select option {
  background: #1e293b;
  color: #f1f5f9;
}
/* Tailwind dark utilities used inline across pages */
body.dark-mode .dark\:bg-slate-800,
body.dark-mode .dark\:bg-slate-900 {
  color: #f1f5f9;
}


/* ── Glow ring on accent elements ── */
.glow-ring {
  box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--accent), 0 0 20px var(--accent-glow);
}

/* ── Hide scrollbar utility ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Typography Helpers ── */
.text-balance { text-wrap: balance; }

/* ── Tooltip ── */
[data-tip] { position: relative; cursor: default; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
[data-tip]:hover::after { opacity: 1; }

/* ── Performance: reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Cart Badge ── */
.cart-badge {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-badge.scale-125 {
  transform: scale(1.5) !important;
}

/* ── Sticky page layout (verify / payment / short pages) ── */
body.site-sticky-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.site-sticky-layout .site-page-main,
body.site-sticky-layout > main {
  flex: 1 0 auto;
}
body.site-sticky-layout .site-bottom {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
.site-copy-strip {
  border-top: 1px solid rgba(60, 179, 113, 0.18);
  padding: 0.8rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-body, #f4f6f9);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}
body:not(.light-mode) .site-copy-strip,
body.dark-mode .site-copy-strip {
  background: var(--bg-body, #070c14);
  color: #94a3b8;
}
.site-copy-strip .accent { color: #3cb371; }
.site-copy-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(60, 179, 113, 0.09);
  border: 1px solid rgba(60, 179, 113, 0.22);
  border-radius: 999px;
  padding: 4px 14px;
}
.site-copy-clock time {
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #3cb371;
  white-space: nowrap;
}
.site-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cb371;
  flex-shrink: 0;
  transition: opacity 0.4s, transform 0.4s;
}

/* ── Centered Add-to-Cart Toast ── */
.cart-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0d2b19, #1a5c38);
  border: 1px solid rgba(60, 179, 113, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(60, 179, 113, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
  max-width: min(90vw, 340px);
}
.cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.cart-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(60, 179, 113, 0.2);
  border: 1px solid rgba(60, 179, 113, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-toast-icon svg {
  width: 20px;
  height: 20px;
  color: #3cb371;
}
.cart-toast-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.cart-toast-msg {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive Mobile Helpers ── */
@media (max-width: 640px) {
  .page-hero { padding: 32px 20px; }
  .page-hero h1 { font-size: 2rem; }
  .section-badge { font-size: 10px; padding: 5px 12px; }
  .whatsapp-float { bottom: 16px; right: 12px; width: 50px; height: 50px; }
}

/* ── Theme-Adaptive Mobile Sidebar ── */
/* Nav links share color via a class so light/dark modes both work */
.sidebar-nav-link { color: #d1d5db; } /* gray-300 — readable on dark bg */
body:not(.dark-mode) .sidebar-nav-link { color: #374151 !important; }

/* Light mode: white/light sidebar so it doesn't look all-black */
body:not(.dark-mode) #mobile-sidebar {
  background: linear-gradient(160deg, #ffffff 0%, #f5fcf8 50%, #edf7f2 100%) !important;
  box-shadow: 6px 0 36px rgba(0,0,0,0.12) !important;
  border-right: 1px solid rgba(60,179,113,0.15);
}
body:not(.dark-mode) #mobile-sidebar nav a {
  color: #374151 !important;
}
body:not(.dark-mode) #mobile-sidebar nav a:hover {
  color: #3cb371 !important;
  background: rgba(60,179,113,0.08) !important;
}
/* Active nav item */
body:not(.dark-mode) #mobile-sidebar nav a[class*="bg-[#3cb371]"],
body:not(.dark-mode) #mobile-sidebar nav a[class*="bg-[#3cb371]/10"] {
  background: rgba(60,179,113,0.12) !important;
  color: #3cb371 !important;
}
body:not(.dark-mode) #mobile-sidebar .border-b,
body:not(.dark-mode) #mobile-sidebar .border-t {
  border-color: rgba(60,179,113,0.12) !important;
}
/* Close button */
body:not(.dark-mode) #mobile-sidebar > div:first-child button {
  color: #6b7280 !important;
}
body:not(.dark-mode) #mobile-sidebar > div:first-child button:hover {
  color: #111827 !important;
}
/* Footer contact info */
body:not(.dark-mode) #mobile-sidebar > div:last-child p,
body:not(.dark-mode) #mobile-sidebar > div:last-child span {
  color: #6b7280 !important;
}

/* ── Carousel Slide Mobile Improvements ── */
@media (max-width: 479px) {
  .slide-title { font-size: 1.6rem !important; line-height: 1.12 !important; }
  .slide-sub   { font-size: 0.82rem !important; line-height: 1.55 !important; margin-bottom: 1.1rem !important; }
  .hero-nav-btn { width: 34px !important; height: 34px !important; }
  .hero-nav-btn svg { width: 18px !important; height: 18px !important; }
}
@media (max-width: 639px) {
  /* Prevent pill tags from wrapping awkwardly */
  .hero-carousel-wrap { min-height: 400px; }
  #hero-carousel { min-height: 400px; }
  /* Reduce vertical padding so all content fits */
  #hero-carousel .py-12 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
}

/* ── Category rail: text-only (no icons) ── */
.cat-icon-wrap { display: none !important; }
.cat-item { gap: 0; padding-left: 16px; padding-right: 16px; }

/* ── Mobile site header & hero (all pages using modern.css) ── */
.site-top-bar {
  background: #071a0f;
  border-bottom: 1px solid rgba(60, 179, 113, 0.2);
}
.site-top-bar .site-top-bar-inner {
  gap: 0.5rem;
}
.site-main-header.glass-nav,
.site-main-header.nav-container,
header.glass-nav.sticky,
header.nav-container.sticky,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Sticky nav stack — header + secondary links scroll together (no overlap) */
.site-nav-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
.site-nav-stack > header {
  position: relative;
  top: auto !important;
  z-index: 2;
  border-bottom: none !important;
}
.site-nav-stack > nav {
  position: relative !important;
  top: auto !important;
  z-index: 1;
}
.site-nav-stack > header.glass-nav,
.site-nav-stack > header.nav-container {
  box-shadow: none;
}
.site-nav-stack > nav.glass-nav,
.site-nav-stack > nav.secondary-nav {
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
body.dark-mode .site-nav-stack > nav.glass-nav,
body.dark-mode .site-nav-stack > nav.secondary-nav {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.secondary-nav a {
  color: #111827;
  font-weight: 600;
  transition: color 0.2s;
}
.secondary-nav a:hover { color: #3cb371 !important; }
.secondary-nav a.nav-active { color: #3cb371 !important; }
body.dark-mode .secondary-nav a { color: #f1f5f9 !important; }
body.dark-mode .secondary-nav a:hover { color: #3cb371 !important; }

@media (max-width: 1023px) {
  .site-top-bar {
    transition: transform 0.22s ease, opacity 0.22s ease, margin 0.22s ease, padding 0.22s ease;
  }
  body.site-top-scrolled .site-top-bar {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    margin-bottom: calc(-1 * var(--site-top-bar-height, 36px));
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    overflow: hidden;
  }
  .site-top-hours {
    display: inline;
  }
  .site-top-devportal {
    display: inline !important;
  }
  header.site-main-header .max-w-7xl,
  header.glass-nav .max-w-7xl,
  header.nav-container .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  header.site-main-header img[alt*="Logo"],
  header.glass-nav img[alt*="Logo"],
  header.nav-container img[alt*="Logo"] {
    height: 2.25rem !important;
  }
  .dash-mobile-header.site-main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
  }
  body.dark-mode .dash-mobile-header.site-main-header {
    background: rgba(7, 12, 20, 0.92);
  }

  /* Live backdrop-blur on the sticky nav forces Android Chrome to re-blur
     everything scrolling beneath it every frame — that's what flickers in the
     cards below. Use an opaque bar on mobile instead (blur is imperceptible
     on a phone); the glass effect is preserved on desktop. */
  header.glass-nav,
  .glass-nav.secondary-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #ffffff !important;
  }
  body.dark-mode header.glass-nav,
  body.dark-mode .glass-nav.secondary-nav {
    background: #0a1018 !important;
  }
}

@media (min-width: 1024px) {
  .brand-stack .brand-line-top { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.1; letter-spacing: 0.04em; }
  .brand-stack .brand-line-sub { display: block; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em; line-height: 1.25; color: var(--text-muted, #9ca3af); white-space: nowrap; }
}

@media (max-width: 1023px) {
  header a .leading-tight.brand-stack,
  header a .brand-stack {
    display: block !important;
  }
  .brand-stack .brand-line-top {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
  }
  .brand-stack .brand-line-sub {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted, #9ca3af);
    line-height: 1.25;
    white-space: nowrap;
  }

  /* Unified mobile header: green hamburger like index.html */
  header #hamburger,
  header .site-mobile-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #3cb371 !important;
    border-radius: 8px;
    cursor: pointer;
  }
  header #hamburger:hover,
  header .site-mobile-hamburger:hover {
    background: rgba(60, 179, 113, 0.08);
  }
  header #hamburger .hamburger-line,
  header #hamburger span.hamburger-line,
  header #hamburger > span,
  header .site-mobile-hamburger .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  header a[href*="checkout.html"] {
    display: none !important;
  }
  header a .leading-tight {
    display: block !important;
  }
  header a .leading-tight .brand-line-top,
  header a .leading-tight > span:first-child {
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }
  header a .leading-tight .brand-line-sub,
  header a .leading-tight > span:last-child:not(:first-child) {
    font-size: 0.625rem !important;
    letter-spacing: 0.16em !important;
  }

  header .nav-actions-mobile .nav-icon-btn {
    padding: 0.35rem !important;
  }
  header .nav-actions-mobile .nav-icon-btn svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
  }
  header .nav-actions-mobile .nav-icon-btn span.text-\\[10px\\] {
    display: none !important;
  }

  main.site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }
  main.site-main > .hero-strip {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
  main.site-main > .hero-strip #hero-carousel {
    border-radius: 0 !important;
    min-height: min(72vh, 520px);
  }
  main.site-main > .hero-strip .hero-carousel-wrap {
    min-height: min(72vh, 520px);
  }
  main.site-main > .page-section {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.25rem;
  }

  .page-hero-full-mobile {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0 !important;
  }
  main.max-w-7xl.px-6,
  main.max-w-\\[1400px\\].px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-section.rounded-2xl {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0 !important;
  }
}

/* Floating cart bubble — bottom center (avoids WhatsApp button) */
#floating-cart-btn {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
#floating-cart-btn:hover {
  transform: translateX(-50%) scale(1.1) !important;
}

/* Mobile hero carousel — keep copy over full-bleed image */
@media (max-width: 1023px) {
  .carousel-slide .absolute.inset-0.flex.flex-col {
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2.75rem;
    z-index: 2;
  }
  .carousel-slide .slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
  }
  .carousel-slide .slide-title,
  .carousel-slide.is-active .slide-title {
    opacity: 1 !important;
  }
  .carousel-slide.is-active .slide-sub,
  .carousel-slide.is-active .slide-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: heroInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards !important;
  }
  .page-hero-full-mobile {
    min-height: min(52vh, 420px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
  }
  .page-hero-full-mobile > * {
    position: relative;
    z-index: 2;
  }
}

.site-footer-powered {
  font-size: 10px;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

/* Solid green footer (#0a3d22) — keep brand/nav text white even when page is in light mode */
footer .text-white,
.light-mode footer .text-white {
  color: #ffffff !important;
}

/* Solid green footer (#0a3d22) — bottom bar text was too faint at 20–30% white */
footer .text-white\/25 {
  color: rgba(255, 255, 255, 0.72) !important;
}

footer .text-white\/20 {
  color: rgba(255, 255, 255, 0.6) !important;
}

footer .text-white\/30 {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer .site-footer-powered {
  color: rgba(255, 255, 255, 0.58) !important;
  opacity: 1 !important;
}

