/* ============================================================
   THEME SYSTEM — LIGHT + DARK
   ============================================================ */
:root {
  --bg2: #081C2D; --text-muted: #9AA3A8; --text-dim: #4A6070; /* defaults so no menu is ever transparent */
  --primary: #1F7A63;
  --gold: #1F7A63; /* alias — no separate gold in the approved palette; was referenced but never defined */
  --border-gold: rgba(31,122,99,0.3);
  --primary-light: #27A882;
  --primary-dark: #165C4A;
  --primary-bg: rgba(31,122,99,0.08);
  --primary-border: rgba(31,122,99,0.3);
  --wa: #25D366; /* WhatsApp brand green — used throughout for WhatsApp buttons.
                    Was referenced everywhere via var(--wa)/var(--wa-bg) but never
                    actually defined, so it silently fell back to transparent —
                    invisible in light mode, only "worked" in dark mode by luck. */
  --wa-bg: rgba(37,211,102,0.12);
  --navy: #081C2D;
  --navy-mid: #0D2537;
  --navy-light: #122840;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface2: #EDF0F2;
  --border: #DDE1E4;
  --text: #081C2D;
  --muted: #4A6070;
  --dim: #5F6B73;
  --red: #e53e3e;
  --green: #1F7A63;
  --blue: #1a6da8;
  --purple: #6b46c1;
  --primary: #1F7A63;
  --gold: #1F7A63; /* alias — no separate gold in the approved palette; was referenced but never defined */
  --border-gold: rgba(31,122,99,0.3);
  --nav-bg: #081C2D;
  --modal-bg: rgba(6,15,24,0.85);
  --ease: cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg: #060F18;
  --bg2: #081C2D;
  --text-muted: #9AA3A8;
  --text-dim: #4A6070;
  --surface: #081C2D;
  --surface2: #0D2537;
  --border: #122840;
  --text: #F5F7FA;
  --muted: #9AA3A8;
  --dim: #8FA1AE;
  --nav-bg: #060F18;
  --modal-bg: rgba(6,15,24,0.92);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg2: #ffffff;
  --surface: #fafafa;
  --surface2: #f2f2f0;
  --surface3: #ececea;
  --border: rgba(0,0,0,0.14);
  --primary-border: rgba(31,122,99,0.4);
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-dim: #aaaaaa;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --nav-bg: rgba(255,255,255,0.95);
  --nav-blur: blur(16px);
  --modal-bg: rgba(0,0,0,0.6);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }

.gold { color: var(--primary); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-new { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,0.2); }
.badge-used { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(217,119,6,0.2); }
.badge-sold { background: var(--red-bg); color: var(--red); border: 1px solid rgba(220,38,38,0.2); }
.badge-hot { background: var(--primary-glow); color: var(--primary); border: 1px solid var(--primary-border); }

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
}
#nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; max-width: 1240px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; user-select: none;
}
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.3px; }
.logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.2px; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: border-color 0.15s;
}
.theme-btn:hover { border-color: var(--primary); }

.btn-wa-nav {
  display: flex; align-items: center; gap: 7px;
  background: var(--wa); color: #fff; padding: 9px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  display: none; position: fixed; top: 64px; right: 10px; left: 10px; bottom: auto; max-width: 400px; margin-left: auto; z-index: 990;
  max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--bg2); padding: 8px 18px; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  flex-direction: column; gap: 0;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text-muted); padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
#mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--primary-border);
  padding: 7px 14px; border-radius: 50px; font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 20px;
}
.hero-title .accent { color: var(--primary); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px); color: var(--text-muted); line-height: 1.7;
  max-width: 500px; margin-bottom: 36px; font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }

.btn-primary {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #0a0a0a;
  padding: 14px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-wa {
  display: flex; align-items: center; gap: 9px;
  background: var(--wa-bg); border: 1px solid rgba(37,211,102,0.25);
  color: var(--wa); padding: 14px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  transition: background 0.15s;
}
.btn-wa:hover { background: rgba(37,211,102,0.2); }
.btn-wa svg { width: 18px; height: 18px; fill: var(--wa); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-display); font-size: 8px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; margin-top: 2px; }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--primary); padding: 7px 0; overflow: hidden;
  display: flex; white-space: nowrap;
  position: fixed; top: 58px; width: 100%; z-index: 99;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease, top 0.1s ease;
}
.marquee-inner {
  display: inline-flex; gap: 0;
  flex-shrink: 0;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
  }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
   }
.marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  padding: 0 20px; font-size: 10px; font-weight: 700; color: #0a0a0a;
  letter-spacing: 0.5px; text-transform: uppercase; border-right: 1px solid rgba(0,0,0,0.15);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
#search-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 0; position: fixed; top: 83px; z-index: 100; width: 100%;
}
.search-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
}
.search-wrap { flex: 1; position: relative; }
.search-wrap input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 16px 8px 38px; color: var(--text); font-size: 12.5px;
  transition: border-color 0.15s;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-color: var(--primary); }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 15px; pointer-events: none;
}
.filter-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.search-pills-row {
  display: flex; gap: 7px; overflow-x: auto; padding: 6px 16px 0;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: 1240px; margin: 0 auto;
}
.search-pills-row::-webkit-scrollbar { display: none; }

.pill {
  padding: 7px 14px; border-radius: 50px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
}
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 10px; }

/* ============================================================
   CATEGORIES
   ============================================================ */
#categories { padding: 72px 0; background: var(--bg2); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-card:hover { border-color: var(--primary-border); box-shadow: 0 4px 20px var(--primary-glow); }
.cat-card.active { border-color: var(--primary); background: var(--primary-glow); }
.cat-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); font-size: 26px; border: 1px solid var(--border);
}
.cat-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.cat-count { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
#products { padding: 8px 0 80px; margin-top: 128px; }
.products-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.products-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }

#product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 500px) {
  #product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 700px) {
  #product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  #product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 1400px) {
  #product-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow); }

.product-img-wrap {
  aspect-ratio: 4/3; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.product-img-placeholder span:first-child { font-size: 48px; }
.product-img-placeholder span:last-child {
  font-size: 11px; color: var(--text-dim); font-weight: 500; text-align: center; padding: 0 12px;
}
.product-img-real {
  width: 100%; height: 100%; object-fit: cover;
}
.product-badges {
  position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap;
}
.product-viewers {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; backdrop-filter: blur(4px);
}
[data-theme="light"] .product-viewers { background: rgba(0,0,0,0.5); }

.product-body { padding: 14px; flex: 1; }
.product-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 5px;
}
.product-name { font-weight: 700; font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.product-specs { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }

.product-footer {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text); }
.product-price-label { font-size: 10px; color: var(--text-dim); }

.btn-buy {
  display: flex; align-items: center; gap: 6px;
  background: var(--wa); color: #fff; padding: 8px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; transition: background 0.15s;
}
.btn-buy:hover { background: #1da851; }
.btn-buy svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }

.btn-buy-disabled {
  display: flex; align-items: center;
  background: var(--surface2); color: var(--text-dim);
  padding: 8px 14px; border-radius: 50px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
}

.add-to-cart-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
  padding: 7px 12px; border-radius: 50px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.add-to-cart-btn:hover { border-color: var(--primary); color: var(--primary); }

.stock-warning {
  font-size: 10.5px; color: var(--red); font-weight: 600; margin-top: 4px;
}

/* ============================================================
   CART / STICKY BAR
   ============================================================ */
#cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px 20px; display: none;
}
#cart-bar.visible { display: flex; }
.cart-bar-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cart-count-label { font-size: 13px; font-weight: 600; }
.cart-count-label span { color: var(--primary); }
.cart-bar-actions { display: flex; gap: 8px; }
.btn-view-cart {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary); color: #0a0a0a;
  padding: 10px 20px; border-radius: 50px; font-size: 13px; font-weight: 700;
}
.btn-clear-cart {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
  padding: 10px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
}

/* Cart Modal */
#cart-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: var(--modal-bg); align-items: center; justify-content: center; padding: 20px;
}
#cart-modal.open { display: flex; }
.cart-modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 85vh;
  overflow-y: auto;
}
.cart-modal-header {
  padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.cart-modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.modal-close-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  color: var(--text-muted); border: 1px solid var(--border);
}
.cart-items { padding: 0 20px; }
.cart-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-emoji { font-size: 28px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cart-item-price { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface2);
  border: 1px solid var(--border); color: var(--text); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.qty-num { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--red); font-size: 12px; cursor: pointer; }
.cart-total { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total-label { font-size: 15px; font-weight: 600; }
.cart-total-amt { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--primary); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-checkout-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; padding: 14px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
}
.btn-checkout-form {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 12px; border-radius: 50px; font-size: 14px; font-weight: 600; text-align: center;
}
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.cart-empty-icon { font-size: 44px; margin-bottom: 12px; }

/* ============================================================
   FEATURED CAROUSEL
   ============================================================ */
#featured { padding: 64px 0; background: var(--bg2); }
.carousel-wrap { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.3s ease; }
.carousel-slide {
  min-width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; display: flex; align-items: center; gap: 40px;
}
.carousel-emoji { font-size: 80px; flex-shrink: 0; }
.carousel-info { flex: 1; }
.carousel-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.carousel-name { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.carousel-specs { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.carousel-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.carousel-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); }
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background 0.2s, width 0.2s;
}
.carousel-dot.active { background: var(--primary); width: 18px; border-radius: 3px; }

/* Carousel auto-play progress bar */
.carousel-progress {
  height: 3px; background: var(--border);
  border-radius: 2px; margin-top: 14px; overflow: hidden;
}
.carousel-progress-bar {
  height: 100%; background: var(--primary);
  width: 0%; border-radius: 2px;
  transition: width linear;
}


/* ============================================================
   DEAL COUNTDOWN
   ============================================================ */
#deal-section { padding: 64px 0; }
.deal-banner {
  background: var(--surface); border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg); padding: 40px; display: flex;
  align-items: center; gap: 40px; flex-wrap: wrap;
}
.deal-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.deal-title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.deal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.countdown { display: flex; gap: 16px; margin-bottom: 24px; }
.count-block { text-align: center; }
.count-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px; min-width: 60px; display: block; color: var(--text);
}
.count-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.5px; }
.count-sep { font-size: 28px; font-weight: 800; color: var(--primary); align-self: flex-start; padding-top: 8px; }

/* ============================================================
   TRENDING
   ============================================================ */
#trending { padding: 64px 0; background: var(--bg2); }
.trending-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.trending-main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; position: relative;
}
.trending-main-emoji { font-size: 80px; margin-bottom: 20px; }
.trending-main h3 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.trending-main-specs { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.trending-price { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.trending-side { display: flex; flex-direction: column; gap: 16px; }
.trending-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 14px; align-items: center;
  cursor: pointer; transition: border-color 0.15s;
}
.trending-item:hover { border-color: var(--primary-border); }
.trending-item-emoji { font-size: 32px; flex-shrink: 0; }
.trending-item-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.trending-item-price { font-size: 15px; font-weight: 800; color: var(--primary); margin-top: 3px; }
.trending-rank {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary-glow);
  border: 1px solid var(--primary-border); color: var(--primary); font-size: 12px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
#trust { padding: 64px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.trust-icon { font-size: 28px; margin-bottom: 14px; }
.trust-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.trust-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { padding: 64px 0; background: var(--bg2); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Rotating testimonials */
.testi-grid { position: relative; min-height: 220px; }
.testi-card {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testi-card.fade-out { opacity: 0; transform: translateY(8px); }
.testi-card.fade-in  { opacity: 1; transform: translateY(0); }
.testi-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 16px;
}
.testi-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); transition: background 0.3s;
}
.testi-dot.active { background: var(--primary); }
.review-pending {
  text-align:center; padding: 10px; font-size: 12px;
  color: var(--text-muted); font-style: italic;
}

.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.testi-stars { color: var(--primary); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-glow);
  border: 1px solid var(--primary-border); display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.testi-name { font-size: 13px; font-weight: 700; }
.testi-location { font-size: 11px; color: var(--text-dim); }

/* ============================================================
   AI PANEL
   ============================================================ */
#ai-fab { position: fixed; bottom: 24px; right: 20px; z-index: 800; }
#ai-panel {
  display: none; position: absolute; bottom: 64px; right: 0;
  width: 340px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
#ai-panel.open { display: flex; flex-direction: column; }
.ai-panel-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2);
}
.ai-header-left { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-glow); border: 1px solid var(--primary-border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ai-header-info h4 { font-size: 13px; font-weight: 700; }
.ai-header-info p { font-size: 11px; color: var(--green); }
.ai-close { color: var(--text-muted); font-size: 14px; }
.ai-messages { height: 260px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.5;
}
.ai-msg.ai .ai-msg-bubble { background: var(--surface2); color: var(--text); border-radius: 4px 16px 16px 16px; }
.ai-msg.user .ai-msg-bubble { background: var(--primary); color: #0a0a0a; font-weight: 500; border-radius: 16px 16px 4px 16px; }
.typing-indicator { display: flex; gap: 4px; align-items: center; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.ai-suggestions { padding: 10px 14px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ai-sugg {
  padding: 6px 12px; border-radius: 50px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
  font-size: 11px; cursor: pointer; transition: all 0.15s;
}
.ai-sugg:hover { border-color: var(--primary); color: var(--primary); }
.ai-input-row {
  padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px;
}
.ai-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50px; padding: 9px 14px; color: var(--text); font-size: 13px;
  transition: border-color 0.15s;
}
.ai-input:focus { border-color: var(--primary); }
.ai-send {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: #0a0a0a; font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 11px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.ai-btn:hover { border-color: var(--primary); }
.ai-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 0; }

.footer-logo {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: border-color 0.15s;
}
.social-btn:hover { border-color: var(--primary); }
.footer-col h4, .footer-col h3.foot-h { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: var(--text-muted); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); }
.contact-icon { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}

/* Footer logo (secret admin trigger) */
#footer-logo-tap { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }

/* ============================================================
   ADMIN AUTH MODAL
   ============================================================ */
#admin-auth-modal {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: var(--modal-bg); align-items: center; justify-content: center; padding: 20px;
}
#admin-auth-modal.open { display: flex; }
.auth-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 380px; padding: 32px;
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-icon { font-size: 36px; margin-bottom: 10px; }
.auth-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-muted); }
.auth-step { display: none; flex-direction: column; gap: 14px; }
.auth-step.active { display: flex; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 4px; }
.auth-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-size: 14px;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--primary); }
.auth-btn {
  width: 100%; background: var(--primary); color: #0a0a0a;
  padding: 13px; border-radius: 50px; font-size: 14px; font-weight: 700;
  transition: background 0.15s;
}
.auth-btn:hover { background: var(--primary-light); }
.auth-cancel {
  background: none; color: var(--text-muted); font-size: 13px; text-align: center; padding: 4px;
}
.auth-error { font-size: 12px; color: var(--red); background: var(--red-bg); padding: 8px 12px; border-radius: 6px; display: none; }
/* OTP Colour Puzzle */
.otp-puzzle-wrap { margin-bottom: 8px; }
.otp-puzzle-label {
  font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px;
  text-align: center; line-height: 1.7;
}
.otp-colour-tiles {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 6px; background: transparent; border: none;
  border-radius: 0; margin-bottom: 8px;
}
.otp-ctile {
  width: 14px; height: 17px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 8px; font-weight: 800;
  color: #fff; user-select: none; pointer-events: none;
  box-shadow: none;
}
.otp-ctile.red   { background: linear-gradient(135deg,#e53e3e,#c53030); }
.otp-ctile.blue  { background: linear-gradient(135deg,#3182ce,#2b6cb0); }
.otp-ctile.green { background: linear-gradient(135deg,#38a169,#276749); }
.otp-legend {
  display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap;
}
.otp-legend-item {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted);
}
.otp-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.otp-legend-dot.red   { background: #e53e3e; }
.otp-legend-dot.blue  { background: #3182ce; }
.otp-legend-dot.green { background: #38a169; }
.otp-hint { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
#admin-panel {
  display: none; position: fixed; inset: 0; z-index: 4000;
  background: var(--modal-bg); overflow-y: auto;
}
.admin-wrap {
  background: var(--surface); border: 1px solid var(--border);
  max-width: 680px; margin: 40px auto; border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); position: sticky; top: 0;
}
.admin-header h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.admin-close {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.admin-form { padding: 24px; }
.form-row { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; display: block; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text); font-size: 13.5px;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-select { appearance: none; cursor: pointer; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ai-gen-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-glow); border: 1px solid var(--primary-border);
  color: var(--primary); padding: 7px 14px; border-radius: 50px; font-size: 11.5px; font-weight: 600;
  margin-top: 7px; transition: background 0.15s;
}
.ai-gen-btn:hover { background: rgba(31,122,99,0.18); }

.btn-admin-save {
  width: 100%; background: var(--primary); color: #0a0a0a;
  padding: 13px; border-radius: 50px; font-size: 14px; font-weight: 700;
  margin-top: 8px; transition: background 0.15s;
}
.btn-admin-save:hover { background: var(--primary-light); }

.admin-products-list { padding: 0 24px 24px; }
.admin-product-row {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.admin-product-emoji { font-size: 24px; }
.admin-product-info { flex: 1; }
.admin-product-info h4 { font-size: 13px; font-weight: 600; }
.admin-product-info p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.admin-product-price { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 15px; }
.btn-del {
  background: var(--red-bg); border: 1px solid rgba(220,38,38,0.2);
  color: var(--red); padding: 5px 10px; border-radius: 6px; font-size: 11.5px;
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results { text-align: center; padding: 60px 24px; color: var(--text-dim); grid-column: 1/-1; }
.no-results-icon { font-size: 40px; margin-bottom: 14px; }
.no-results h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-muted); }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed; top: 90px; right: 20px; z-index: 9000;
  background: var(--surface); border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  box-shadow: var(--shadow); display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .trending-main { min-height: 280px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-wa-nav { display: none; }
  /* Shrunk from 38px so the new account button fits without overlap on
     small screens — six icon buttons now share the space five used to. */
  .nav-search-btn, .theme-btn, .nav-account-btn { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  .nav-actions { gap: 6px !important; }
  #product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-header { flex-direction: column; align-items: flex-start; }
  .filter-row { width: 100%; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .pill { flex-shrink: 0; }
  #ai-panel { right: 0; bottom: 60px; width: calc(100vw - 32px); }
  #ai-fab { right: 12px; bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .testi-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex-direction: column; text-align: center; gap: 20px; }
  .carousel-emoji { font-size: 60px; }
  .filter-pills { display: none; }
  .search-inner { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 20px; }
  .section-pad { padding: 52px 0; }
  .deal-banner { flex-direction: column; gap: 28px; }
  .countdown { gap: 10px; }
  .count-num { font-size: 24px; padding: 6px 12px; min-width: 50px; }
  #cart-bar .cart-count-label { font-size: 12px; }
  .hero-title { letter-spacing: -1.5px; }
}

@media (max-width: 480px) {
  #product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-name { font-size: 13px; }
  .product-specs { font-size: 11px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 20px 14px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .carousel-slide { padding: 24px; }
  .admin-wrap { margin: 0; border-radius: 0; min-height: 100vh; }
}

/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */
#product-modal {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: var(--modal-bg); align-items: flex-start; justify-content: center;
  padding: 20px; overflow-y: auto;
}
#product-modal.open { display: flex; }
.pmodal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  margin: auto; overflow: hidden;
}
.pmodal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); position: sticky; top: 0; z-index: 1;
}
.pmodal-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.pmodal-gallery { position: relative; background: var(--surface2); }
.pmodal-main-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.pmodal-main-placeholder {
  width: 100%; aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--surface2);
}
.pmodal-main-placeholder span:first-child { font-size: 72px; }
.pmodal-main-placeholder span:last-child { font-size: 13px; color: var(--text-dim); }
.pmodal-thumbs {
  display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.pmodal-thumb {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px;
  border: 2px solid var(--border); cursor: pointer; overflow: hidden;
  transition: border-color 0.15s; background: var(--surface3);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.pmodal-thumb.active { border-color: var(--primary); }
.pmodal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pmodal-img-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(4px);
}
.pmodal-body { padding: 20px; }
.pmodal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pmodal-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.pmodal-cat { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.pmodal-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.pmodal-stock-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.pmodal-qty-badge {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.pmodal-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.pmodal-specs-title { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.pmodal-specs { font-size: 13.5px; color: var(--text); line-height: 1.7; }
.pmodal-actions { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.pmodal-btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; padding: 14px; border-radius: 50px;
  font-size: 15px; font-weight: 700; width: 100%;
}
.pmodal-btn-cart {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #0a0a0a; padding: 13px; border-radius: 50px;
  font-size: 14px; font-weight: 700; width: 100%; border: none; cursor: pointer;
}
.pmodal-btn-cart:hover { background: var(--primary-light); }


/* GitHub DB status */
.gh-status-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 16px; font-size: 12px;
}
.gh-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; flex-shrink:0; }
.gh-dot.green  { background: #38a169; }
.gh-dot.red    { background: #e53e3e; }
.gh-dot.yellow { background: #d69e2e; animation: pulse 1s infinite; }
.gh-token-row { display: flex; gap: 8px; margin-bottom: 12px; }
.gh-token-row input { flex: 1; font-size: 12px; }
.btn-gh-save {
  background: var(--primary-glow); border: 1px solid var(--primary-border);
  color: var(--primary); padding: 8px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.btn-gh-sync {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.btn-gh-sync:hover { border-color: var(--primary); color: var(--primary); }

/* Admin image list */
.img-url-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.img-url-row { display: flex; gap: 8px; align-items: center; }
.img-url-row input { flex: 1; }
.btn-remove-img {
  background: var(--red-bg); border: 1px solid rgba(220,38,38,0.2);
  color: var(--red); padding: 8px 10px; border-radius: 6px; font-size: 12px; flex-shrink: 0;
}
.btn-add-img {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
  padding: 7px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-add-img:hover { border-color: var(--primary); color: var(--primary); }

/* Admin product row edits */
.admin-edit-row {
  display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap;
}
.admin-mini-select, .admin-mini-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; color: var(--text); font-size: 11px;
  font-family: var(--font-body);
}
.btn-save-edit {
  background: var(--primary-glow); border: 1px solid var(--primary-border);
  color: var(--primary); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services { padding: 60px 0; background: var(--bg2); }
.services-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.services-title {
  font-family: var(--font-display); font-size: clamp(24px,4vw,36px);
  font-weight: 800; line-height: 1.2; margin-bottom: 10px;
}
.services-sub {
  color: var(--text-muted); font-size: 14px; margin-bottom: 36px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 18px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.service-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(31,122,99,0.15);
}
.service-icon { font-size: 40px; margin-bottom: 10px; }
.service-name {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 800; margin-bottom: 5px;
}
.service-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.service-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--wa); color: #fff;
  padding: 9px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 700; width: 100%;
  text-decoration: none; margin-top: auto;
}
.service-wa-btn:hover { opacity: 0.9; }

/* Service meta info */
.service-meta {
  font-size: 10.5px; color: var(--text-dim); margin-bottom: 12px;
  padding: 4px 8px; background: var(--surface2);
  border-radius: 20px; display: inline-block;
}
/* Service card hover gold border */
.service-card { cursor: default; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   FEEDBACK FORM
   ============================================================ */
.feedback-form-wrap {
  margin-top: 48px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.feedback-form-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  margin-bottom: 4px;
}
.feedback-form-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.feedback-stars-row { display: flex; gap: 6px; margin-bottom: 16px; }
.star-btn {
  font-size: 28px; background: none; border: none; cursor: pointer;
  transition: transform 0.1s; filter: grayscale(1); opacity: 0.4;
}
.star-btn.selected { filter: none; opacity: 1; transform: scale(1.15); }
.feedback-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.feedback-inputs input, .feedback-inputs textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 13.5px; resize: none;
}
.feedback-inputs input:focus, .feedback-inputs textarea:focus {
  outline: none; border-color: var(--primary);
}
.feedback-inputs textarea { min-height: 90px; }
.feedback-submit-btn {
  background: var(--primary); color: #0a0a0a; border: none;
  border-radius: 50px; padding: 12px 28px; font-size: 14px;
  font-weight: 700; font-family: var(--font-display); cursor: pointer;
  width: 100%; transition: background 0.2s;
}
.feedback-submit-btn:hover { background: var(--primary-light); }
.feedback-success {
  display: none; text-align: center; padding: 20px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--primary);
}
.customer-reviews-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.customer-review-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.customer-review-stars { font-size: 14px; margin-bottom: 4px; color: var(--primary); }
.customer-review-text { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.customer-review-meta { font-size: 11px; color: var(--text-muted); }


/* ==============================================================
   SMART VOLT LIMITED v5 — PRODUCTION CSS (All Patches)
   ============================================================== */

/* === DESIGN TOKENS === */
:root {
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-full: 50px;
  --space-xs:4px; --space-sm:8px; --space-md:16px;
  --space-lg:24px; --space-xl:40px;
  --shadow-sm:0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.18);
  --ease-out: cubic-bezier(0.4,0,0.2,1);
  --ease-bounce: cubic-bezier(0.34,1.56,0.64,1);
}

/* === PATCH 2: HEADER SPACER (dynamic via JS) === */
#header-spacer {
  height: 185px; /* fallback — JS overrides */
  flex-shrink: 0;
  pointer-events: none;
}

/* === PATCH 1 + 5: SERVICES HERO BLOCK === */
#services {
  background: linear-gradient(180deg,var(--bg2) 0%,var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.svc-hero-inner {
  padding: 20px 14px 18px;
  max-width: 1240px; margin: 0 auto;
}
.svc-hero-eyebrow {
  font-size: 9.5px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 6px;
}
.svc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(18px,4vw,26px); font-weight: 900;
  margin: 0 0 4px; line-height: 1.15;
}
.svc-hero-sub {
  font-size: 12px; color: var(--text-muted);
  margin: 0 0 14px; line-height: 1.5;
}
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 500px) { .svc-cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) { .svc-cards-grid { grid-template-columns: repeat(8, 1fr); } }

.svc-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 6px 9px;
  text-decoration: none; color: var(--text); gap: 2px;
  position: relative; overflow: hidden;
  /* Micro-interaction */
  transition: transform 0.18s var(--ease-bounce),
              border-color 0.15s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; cursor: pointer;
  will-change: transform;
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--sc, var(--primary));
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  pointer-events: none;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--sc, var(--primary)); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.svc-card:hover::after { opacity: 0.06; }
.svc-card:active { transform: scale(0.94) !important; transition-duration: 0.08s !important; }
.svc-icon { font-size: 22px; margin-bottom: 3px; }
.svc-name { font-family: var(--font-display); font-size: 11px; font-weight: 800; text-align: center; }
.svc-sub { font-size: 9px; color: var(--text-muted); text-align: center; display: none; }
@media (min-width: 400px) { .svc-sub { display: block; } }
.svc-btn {
  margin-top: 5px; font-size: 9px; font-weight: 700;
  color: var(--sc, var(--primary));
  border: 1px solid currentColor; border-radius: 20px;
  padding: 2px 8px; opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
}
.svc-card:hover .svc-btn { opacity: 1; background: rgba(255,255,255,0.08); }

/* === PATCH 1: NAVBAR + TRANSITION === */
#nav, .marquee-strip, #search-bar {
  transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease-out);
}
.header-hidden #nav { transform: translateY(-100%); }
.header-hidden /* marquee hidden state: handled by .header-hidden rule in master CSS below */
.header-hidden #search-bar { transform: translateY(-400%); opacity: 0; }

/* === PATCH 6: SEARCH BAR PREMIUM === */
#search-input {
  transition: box-shadow 0.2s var(--ease-out) !important;
}
#search-input:focus {
  box-shadow: 0 0 0 3px rgba(31,122,99,0.18) !important;
  border-color: var(--primary) !important;
}
.search-wrap:focus-within {
  box-shadow: 0 4px 20px rgba(31,122,99,0.1);
}

/* === PATCH 7: PRODUCT CARDS === */
.product-card {
  contain: layout style;
  will-change: transform;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s !important;
}
.product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(31,122,99,0.25) !important;
}

/* Product grid animations */
#product-grid > * {
  animation: fadeInCard 0.3s var(--ease-out) both;
}
@keyframes fadeInCard {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* === PATCH 8: PERFORMANCE === */
.product-img-wrap {
  aspect-ratio: 1;
  background: var(--surface2);
  contain: strict;
}
img { max-width: 100%; height: auto; }
img[loading="lazy"] { min-height: 40px; }

/* === PATCH 9: MOBILE FIXES === */
html { overflow-x: hidden; -webkit-overflow-scrolling: touch; }
body { overflow-x: hidden; max-width: 100vw; }
* { box-sizing: border-box; min-width: 0; }

@media (max-width: 480px) {
  /* Mobile 2-col handled by base rule above */
  .product-footer { padding: 8px !important; gap: 4px !important; flex-wrap: nowrap; }
  .btn-buy { padding: 7px 8px !important; font-size: 10.5px !important; white-space: nowrap; }
  .add-to-cart-btn { padding: 6px 8px !important; font-size: 10px !important; }
  .product-price { font-size: 13px !important; }
  .product-name { font-size: 12px !important; }
  .product-specs { font-size: 10px !important; -webkit-line-clamp: 2 !important; }
}

/* Section backgrounds alternating */
#products  { background: var(--bg); }
#featured  { background: var(--bg2); border-top:1px solid var(--border); }
#trending  { background: var(--bg);  border-top:1px solid var(--border); }
#trust     { background: var(--bg2); border-top:1px solid var(--border); }
#testimonials { background: var(--bg); border-top:1px solid var(--border); }

/* Smart Volt Limited Logo */
.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ── DUAL LOGO THEME SYSTEM ── */
#site-logo {
  width: 38px; height: 38px;
  object-fit: contain; border-radius: 4px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
/* Admin logo */
.admin-logo-img {
  width: 32px; height: 32px;
  object-fit: contain; border-radius: 4px;
}
/* Document/ERP logo */
.doc-logo {
  height: 48px; width: auto;
  object-fit: contain;
}

/* ============================================================
   MASTER UPGRADE CSS — Smart Volt Limited v5.1
   ============================================================ */

/* ── Fix: No overlap with fixed header ── */
body { overflow-x: hidden; }

/* ── Fix: Smooth header transitions ── */
#nav, .marquee-strip, #search-bar {
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
              opacity 0.22s ease !important;
  will-change: transform;
}
.header-hidden #nav { transform: translateY(-100%) !important; }
.header-hidden .marquee-strip { transform: translateY(-400%) !important; opacity: 0; }
.header-hidden #search-bar { transform: translateY(-600%) !important; opacity: 0; }

/* ── Fix: Spacing ── */
#products { padding-top: 12px !important; margin-top: 0 !important; }
#featured  { padding: 24px 0 !important; }
#trending  { padding: 24px 0 !important; }
#trust     { padding: 24px 0 !important; }
#testimonials { padding: 24px 0 !important; }

/* ── Services premium hero ── */
#services {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.svc-hero-inner { padding: 18px 14px 16px; max-width: 1240px; margin: 0 auto; }
.svc-hero-eyebrow {
  font-size: 9.5px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--primary); text-transform: uppercase; margin-bottom: 5px;
}
.svc-hero-title {
  font-family: var(--font-display); font-size: clamp(17px,3.5vw,24px);
  font-weight: 900; margin: 0 0 4px; line-height: 1.15;
}
.svc-hero-sub {
  font-size: 11.5px; color: var(--text-muted); margin: 0 0 14px;
}
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media(min-width:700px) { .svc-cards-grid { grid-template-columns: repeat(8, 1fr); } }

/* ── Service cards ── */
.svc-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 7px 9px;
  text-decoration: none; color: var(--text); gap: 2px;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--sc, var(--primary)); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.svc-card:active { transform: scale(0.94) !important; transition-duration: 0.08s !important; }
.svc-icon { font-size: 22px; margin-bottom: 3px; }
.svc-name { font-family: var(--font-display); font-size: 11px; font-weight: 800; text-align: center; }
.svc-sub { font-size: 9px; color: var(--text-muted); text-align: center; }
.svc-btn {
  margin-top: 5px; font-size: 9px; font-weight: 700;
  color: var(--sc, var(--primary)); border: 1px solid currentColor;
  border-radius: 20px; padding: 2px 8px; opacity: 0.8;
  transition: opacity 0.15s;
}
.svc-card:hover .svc-btn { opacity: 1; }

/* ── Product cards upgrade ── */
.product-card {
  border-radius: 14px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s !important;
  will-change: transform; contain: layout style;
}
.product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18) !important;
  border-color: rgba(31,122,99,0.22) !important;
}
.product-footer {
  padding: 9px 10px !important;
  gap: 5px !important;
}
.btn-buy {
  padding: 7px 10px !important; font-size: 11px !important;
  gap: 4px !important; white-space: nowrap; flex-shrink: 0;
}
.add-to-cart-btn {
  padding: 6px 8px !important; font-size: 10px !important;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Category pills upgrade ── */
.search-pills-row {
  padding: 7px 12px 8px !important; gap: 6px !important;
}
.pill {
  transition: all 0.15s ease !important;
  border-radius: 50px !important;
}
.pill.active {
  background: var(--primary) !important; color: #0a0a0a !important;
  border-color: var(--primary) !important;
}

/* ── Empty state ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 20px; text-align: center;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state-sub { font-size: 12px; color: var(--text-muted); max-width: 240px; }

/* ── Section separators ── */
#featured, #trending, #trust, #testimonials {
  border-top: 1px solid var(--border);
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: skeletonWave 1.4s infinite;
  border-radius: 8px;
}
@keyframes skeletonWave { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Footer upgrade ── */
#footer {
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
}

/* ── Admin panel logo ── */
.admin-logo-img { width: 30px; height: 30px; object-fit: contain; border-radius: 4px; }

/* ── Logo ring ── */
.admin-logo-ring {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--primary-border);
  flex-shrink: 0;
}
.admin-logo-ring .admin-logo-img { width: 30px; height: 30px; }

/* ── Status dot ── */
.admin-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green, #38a169); flex-shrink: 0;
  display: inline-block;
}

/* ── ERP Suite premium card ── */
/* erp-suite-card CSS removed — hidden 5-tap trigger used instead */

/* ── Admin Tabs ── */
.admin-tabs {
  display: flex; gap: 8px;
  padding: 14px 16px 12px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky; top: 0; z-index: 5;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex-shrink: 0; min-width: 64px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 10px; font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.admin-tab-ic { font-size: 17px; line-height: 1; }
.admin-tab-lb { font-size: 9.5px; letter-spacing: 0.2px; white-space: nowrap; }
.admin-tab:hover { border-color: var(--primary-border); color: var(--text); }
.admin-tab.active { background: var(--primary); border-color: var(--primary); color: #0a0a0a; }
.admin-tab:active { transform: scale(0.95); }

/* ── Admin header polish ── */
.admin-header {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%) !important;
}
  
/* ── Mobile global ── */
@media (max-width: 480px) {
  .svc-cards-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; }
  .svc-icon { font-size: 20px !important; }
  .svc-sub { display: none !important; }
  #product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}

/* ── chat / share / report ── */
.social-row{display:flex;gap:8px;padding:0 20px 14px;flex-wrap:wrap}
.social-btn{flex:1;min-width:96px;padding:10px;border-radius:10px;border:1px solid var(--border);background:none;color:var(--text);font-weight:700;font-size:12.5px;cursor:pointer}
.social-btn.warn{color:#e53e3e}
.chat-box{background:var(--surface);border-radius:16px;max-width:440px;width:94%;height:80vh;max-height:640px;display:flex;flex-direction:column;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border)}
.chat-head h3{flex:1;margin:0;font-family:var(--font-display);font-size:16px;font-weight:800}
.chat-x{background:none;border:none;font-size:18px;cursor:pointer;color:var(--text-muted)}
.chat-body{flex:1;min-height:0;overflow-y:auto;padding:10px}
.chat-empty{padding:18px;text-align:center;color:var(--text-muted);font-size:13px}
.chat-room{padding:10px 12px;border:1px solid var(--border);border-radius:12px;margin-bottom:8px;cursor:pointer}
.chat-room-name{font-weight:700;font-size:13.5px}
.chat-room-sub{font-size:11.5px;color:var(--text-muted)}
.chat-room-last{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-unread{background:#e53e3e;color:#fff;border-radius:10px;padding:1px 7px;font-size:11px;margin-left:4px}
.chat-msgs{flex:1;min-height:0;overflow-y:auto;padding:4px}
.chat-subject{text-align:center;font-size:11.5px;color:var(--text-muted);margin-bottom:8px}
.chat-row{display:flex;margin:5px 0}.chat-row.mine{justify-content:flex-end}
.chat-bubble{max-width:80%;padding:8px 12px;border-radius:14px;white-space:pre-wrap;word-break:break-word;font-size:13.5px;background:var(--surface2)}
.chat-row.mine .chat-bubble{background:var(--primary);color:#0a0a0a}
.chat-compose{display:flex;gap:8px;padding-top:8px}
.chat-compose input{flex:1;padding:11px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:14px}
.chat-compose button{padding:0 16px;border-radius:10px;border:none;background:var(--primary);color:#0a0a0a;font-weight:800;cursor:pointer}
.share-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.share-grid button,.share-wide{padding:11px;border-radius:10px;border:1px solid var(--border);background:none;color:var(--text);font-weight:700;font-size:13px;cursor:pointer}
.share-wide{width:100%;margin-bottom:6px}

/* ── international phone input ── */
.iphone{position:relative;display:flex;gap:6px;align-items:stretch;margin-bottom:2px}
.iphone-btn{display:flex;align-items:center;gap:5px;padding:0 10px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:14px;cursor:pointer;white-space:nowrap}
.iphone-flag{font-size:18px;line-height:1}.iphone-arrow{font-size:10px;opacity:.6}
.iphone-cap{font-size:11px;color:var(--text-muted);margin:2px 2px 8px}
.iphone-panel{position:absolute;z-index:50;top:calc(100% + 4px);left:0;width:min(320px,100%);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.25);overflow:hidden}
.iphone-search{width:100%;box-sizing:border-box;padding:10px 12px;border:none;border-bottom:1px solid var(--border);background:var(--bg);color:var(--text);font-size:14px;outline:none}
.iphone-list{max-height:220px;overflow-y:auto}
.iphone-row{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;font-size:13.5px;color:var(--text)}
.iphone-row:hover{background:var(--surface2)}
.iphone-name{flex:1}.iphone-dial{color:var(--text-muted)}.iphone-none{padding:12px;color:var(--text-muted);font-size:13px}
.otp-alt-btn{padding:8px 12px;border-radius:10px;border:1px solid var(--border);background:none;color:var(--text);font-size:12.5px;font-weight:700;cursor:pointer}
.empty-note{grid-column:1/-1;text-align:center;color:var(--text-muted);padding:18px 8px;font-size:14px}

/* Theme safety: buttons without their own colour follow the page text colour; WhatsApp button keeps readable contrast. */
button, input[type=button], input[type=submit] { color: inherit; }
.nav-search-btn, .theme-btn, .notif-bell { color: var(--text); }
.btn-wa-nav { background: #128C7E; color: #fff; }

/* Featured Products: swipe row of real deals */
.deal-row{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.deal-row.all{flex-wrap:wrap;overflow:visible}
.deal-card{position:relative;flex:0 0 190px;max-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;scroll-snap-align:start}
.deal-row.all .deal-card{flex:1 1 170px}
.deal-pct{position:absolute;top:8px;left:8px;z-index:1;background:#e53e3e;color:#fff;font:800 12px var(--font-display,system-ui);padding:3px 8px;border-radius:999px}
.deal-img{height:130px;display:flex;align-items:center;justify-content:center;background:var(--bg2);font-size:54px;cursor:pointer}
.deal-img img{width:100%;height:100%;object-fit:cover}
.deal-body{padding:10px}
.deal-name{font-weight:700;font-size:13.5px;line-height:1.25;height:34px;overflow:hidden;cursor:pointer}
.deal-price{font:800 15px var(--font-display,system-ui);color:var(--primary);margin-top:6px}
.deal-price s{font:500 12px system-ui;color:var(--text-muted);margin-left:4px}
.deal-left{font-size:11px;color:#e53e3e;font-weight:700;margin-top:3px}
.deal-actions{display:flex;gap:6px;margin-top:8px}
.deal-add{flex:1;padding:8px;border-radius:10px;border:none;background:var(--primary);color:#0a0a0a;font-weight:800;font-size:12px;cursor:pointer}
.deal-more{padding:9px 18px;border-radius:999px;border:1px solid var(--border);background:none;color:var(--text);font-weight:700;font-size:13px;cursor:pointer}
.sv-bottle.sm{padding:8px 10px}.sv-bottle.sm span{display:none}

/* Dark mode: menus are always opaque with readable text, borders and hover */
[data-theme="dark"] #mobile-menu { background: #081C2D; border-color: #1d3a57; }
[data-theme="dark"] #mobile-menu a { color: #cfd8df; }
[data-theme="dark"] #mobile-menu a:hover, [data-theme="dark"] #mobile-menu a:focus-visible { color: #fff; background: #0D2537; }
[data-theme="dark"] select, [data-theme="dark"] select option { background-color: #081C2D; color: #F5F7FA; }

.wwd-link{display:inline-block;padding:9px 14px;border:1px solid var(--border);border-radius:999px;color:var(--text);text-decoration:none;font-size:14px}.wwd-link:hover,.wwd-link:focus-visible{background:var(--surface2)}

/* contrast fixes from the audit (WCAG AA: 4.5:1 for small text) */
.marquee-item, .pill.active { color: #fff !important; }
.pill.active { color: #fff !important; }
.footer-bottom, .footer-bottom p { color: var(--text-muted); }
[data-theme="dark"] .section-eyebrow, [data-theme="dark"] .svc-hero-eyebrow { color: #3fc79f; }

/* customer login: Password / OTP tabs, social row */
.lg-tabs{display:flex;gap:4px;padding:3px;border-radius:12px;background:var(--bg);border:1px solid var(--border);margin-bottom:12px}
.lg-tab{flex:1;padding:9px 6px;border:none;border-radius:9px;background:none;color:var(--text-muted);font-weight:700;font-size:13px;cursor:pointer}
.lg-tab.on{background:var(--primary);color:#0a0a0a}
.lg-inp{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:14px;box-sizing:border-box;margin-bottom:8px}
.lg-code{font-size:17px;letter-spacing:6px;text-align:center}
.lg-pwwrap{position:relative}
.lg-pwwrap .lg-inp{padding-right:62px}
.lg-eye{position:absolute;right:6px;top:6px;height:32px;padding:0 10px;border:none;background:none;color:var(--text-muted);font-size:12px;font-weight:700;cursor:pointer}
.lg-btn{width:100%;padding:12px;border-radius:10px;border:none;background:var(--primary);color:#0a0a0a;font-weight:800;font-size:14px;cursor:pointer;margin-bottom:8px}
.lg-btn[disabled]{opacity:.6;cursor:default}
.lg-err{color:#e53e3e;font-size:11.5px;min-height:0;margin-bottom:8px}
.lg-err:empty{display:none}
.lg-link{font-size:12px;color:var(--text-muted);text-decoration:underline}
.lg-chan{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.lg-chip{flex:1;min-width:84px;padding:8px 6px;border-radius:10px;border:1px solid var(--border);background:none;color:var(--text);font-size:12px;font-weight:700;cursor:pointer}
.lg-chip.on{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.lg-resend{font-size:12px;color:var(--text-muted);text-align:center}
.lg-resend button{background:none;border:none;color:var(--text);text-decoration:underline;font-size:12px;cursor:pointer;padding:0}
.lg-divider{display:flex;align-items:center;gap:10px;margin:12px 0 10px;color:var(--text-muted);font-size:11.5px}
.lg-divider:before,.lg-divider:after{content:"";flex:1;height:1px;background:var(--border)}
.lg-social{display:flex;flex-direction:column;gap:8px}
.lg-soc{flex:1;min-width:0;height:42px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-weight:700;font-size:13px;cursor:pointer;overflow:hidden}
.lg-soc[aria-disabled="true"]{opacity:.55}
.lg-soc svg{flex:none}
.lg-note{font-size:11.5px;color:var(--text-muted);text-align:center;margin-top:8px}
.lg-note:empty{display:none}
.lg-foot{text-align:center;font-size:12px;color:var(--text-muted);margin-top:12px}
