/* ============================================================
   BrightRoot IT — Premium SaaS Light/Dark Theme
   Indigo-Violet gradient palette, mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* === LIGHT THEME (DEFAULT) === */
:root,
[data-theme="light"] {
  --bg:           #fbfaf7;
  --bg-surface:   #ffffff;
  --bg-surface2:  #f5f3ee;
  --bg-hover:     #ece9e1;

  /* accent = Admin > Settings > theme_color (template.js inline <style> overrides these) */
  --accent:       #f59e0b;
  --accent2:      #d97706;
  --accent-rgb:   245, 158, 11;
  --on-accent:    #1a1203;   /* text colour on accent buttons/badges */
  --grad-btn:     linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  --grad-hero:    linear-gradient(150deg, rgba(var(--accent-rgb), 0.14) 0%, #fbfaf7 60%, rgba(var(--accent-rgb), 0.06) 100%);
  --grad-text:    linear-gradient(135deg, var(--accent), var(--accent2));
  --grad-badge:   linear-gradient(135deg, #ef4444, #f97316);

  --text:         #14141f;
  --text-2:       #55556a;
  --text-muted:   #8a8a9c;

  --border:       rgba(20, 20, 31, 0.10);
  --border-md:    rgba(20, 20, 31, 0.18);
  --shadow-sm:    0 1px 3px rgba(20,20,31,0.07), 0 4px 12px rgba(20,20,31,0.05);
  --shadow-md:    0 4px 16px rgba(20,20,31,0.09), 0 8px 32px rgba(20,20,31,0.06);
  --shadow-lg:    0 8px 40px rgba(20,20,31,0.12), 0 16px 56px rgba(20,20,31,0.08);
  --shadow-accent:0 4px 24px rgba(var(--accent-rgb), 0.30);

  --success:      #10b981;
  --warning:      #f59e0b;
  --error:        #ef4444;
  --info:         #3b82f6;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --header-h: 64px;
  --font: 'Hind Siliguri', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;

  /* ALIASES — functions/*.js (admin, checkout, track, home) use these names */
  --bg-primary:     var(--bg);
  --bg-secondary:   var(--bg-surface2);
  --bg-card:        var(--bg-surface);
  --text-primary:   var(--text);
  --text-secondary: var(--text-2);
}

/* === DARK THEME === */
[data-theme="dark"] {
  --bg:           #08080f;
  --bg-surface:   #0e0e1c;
  --bg-surface2:  #141426;
  --bg-hover:     #1c1c33;

  --grad-hero:    linear-gradient(150deg, rgba(var(--accent-rgb), 0.10) 0%, #08080f 60%, rgba(var(--accent-rgb), 0.04) 100%);

  --text:         #f0f0f8;
  --text-2:       #a3a3c2;
  --text-muted:   #6e6e8c;

  --border:       rgba(255, 255, 255, 0.08);
  --border-md:    rgba(255, 255, 255, 0.15);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent:0 4px 28px rgba(var(--accent-rgb), 0.30);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--text);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
[data-theme="dark"] .header {
  background: rgba(8, 8, 15, 0.90);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  background: var(--grad-btn);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--on-accent);
  flex-shrink: 0;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-desktop ~ .header-actions {
  margin-left: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-md);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* Hamburger */
.nav-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: none;
  align-items: center; justify-content: center;
  background: var(--bg-surface2);
  color: var(--text-2);
  border: 1px solid var(--border);
  font-size: 15px;
  transition: background 0.18s;
}
.nav-toggle:hover { background: var(--bg-hover); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a::after {
  content: '›';
  font-size: 18px;
  opacity: 0.4;
}
.mobile-nav a:hover { background: var(--bg-hover); color: var(--text); }
.mobile-nav a:last-child { border-bottom: none; }

body.nav-open .mobile-nav {
  display: flex;
  max-height: 500px;
}

/* Page push-down for fixed header */
.page-wrap { padding-top: var(--header-h); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--grad-btn);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(var(--accent-rgb), 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--accent2);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.07);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-surface2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.4); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

/* === HERO SECTION === */
.hero-section {
  background: var(--grad-hero);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge {
  background: rgba(var(--accent-rgb), 0.15);
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 16px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === SECTION TITLES === */
.section { padding: 56px 0; }
.section-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}
.section-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 36px;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--grad-btn);
  border-radius: var(--r-full);
  margin: 10px auto 0;
}

/* === CATEGORY TABS === */
.cat-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 28px;
}
.cat-tabs-wrap::-webkit-scrollbar { display: none; }
.cat-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 2px;
  width: max-content;
  margin: 0 auto;
}
.cat-tab {
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--bg-surface2);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.cat-tab.active {
  background: var(--grad-btn);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

/* === PRODUCT GRID === */
.product-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-md);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface2);
}
.product-img-wrap img.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--text-muted);
  font-size: 32px;
  gap: 6px;
}
.product-img-placeholder span { font-size: 12px; }
.discount-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--grad-badge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.bestseller-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1a1203;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.product-name-bn { font-size: 12px; color: var(--text-muted); }
.product-delivery {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.product-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-top: 2px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-original-price {
  font-size: 13px; color: var(--text-muted); text-decoration: line-through;
}
.product-body .btn { margin-top: auto; }

/* No results */
.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: var(--text-muted);
}
.no-results i { font-size: 40px; margin-bottom: 12px; display: block; }

/* === ALERTS === */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md);
  margin-bottom: 16px; font-size: 14px;
  border-left: 4px solid;
  animation: alertIn 0.25s ease;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert.fade-out { opacity: 0; transition: opacity 0.4s; }
.alert-success { background: rgba(16,185,129,0.08); border-color: var(--success); color: #065f46; }
.alert-error   { background: rgba(239,68,68,0.08);  border-color: var(--error);   color: #991b1b; }
.alert-info    { background: rgba(var(--accent-rgb), 0.08);  border-color: var(--info);    color: #1e40af; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: #92400e; }
[data-theme="dark"] .alert-success { color: #34d399; }
[data-theme="dark"] .alert-error   { color: #f87171; }
[data-theme="dark"] .alert-info    { color: #818cf8; }
[data-theme="dark"] .alert-warning { color: #fcd34d; }

/* === FORMS === */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-label .req { color: var(--error); }
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-md);
  font-size: 15px; font-family: var(--font);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8a9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}

/* === CARDS (generic) === */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 16px;
}

/* === CHECKOUT PAGE === */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 28px; align-items: start; padding: 36px 0 60px;
}
.checkout-summary {
  background: var(--bg-surface2); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.checkout-product-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-md); margin-bottom: 16px; background: var(--bg-hover);
}
.checkout-product-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.checkout-price-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.checkout-price {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gateway-select { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gateway-option {
  flex: 1; min-width: 120px;
  border: 2px solid var(--border-md); border-radius: var(--r-md); padding: 12px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg-surface);
}
.gateway-option:hover { border-color: var(--accent); }
.gateway-option.selected { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.gateway-option .gw-name { font-size: 13px; font-weight: 600; }
.gateway-option .gw-icon { font-size: 22px; }

/* === ORDER TRACKING === */
.track-box { max-width: 600px; margin: 0 auto; padding: 40px 0 60px; }
.track-order-id {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  text-align: center;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.status-timeline { position: relative; padding-left: 36px; margin: 24px 0; }
.status-timeline::before {
  content: ''; position: absolute;
  left: 13px; top: 12px; bottom: 12px;
  width: 2px; background: var(--border-md);
}
.timeline-item { position: relative; padding: 0 0 24px 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -23px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border-md); border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 2px var(--border-md); transition: background 0.3s;
}
.timeline-item.done   .timeline-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.timeline-item.active .timeline-dot { background: var(--accent);  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.timeline-label { font-size: 14px; font-weight: 600; color: var(--text); }
.timeline-time  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* === ORDER INFO TABLE === */
.order-info-table { width: 100%; border-collapse: collapse; }
.order-info-table td {
  padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--border);
}
.order-info-table tr:last-child td { border-bottom: none; }
.order-info-table td:first-child { color: var(--text-muted); width: 38%; }
.order-info-table td:last-child  { font-weight: 500; color: var(--text); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
}
.badge-pending    { background: rgba(245,158,11,0.12); color: #b45309; }
.badge-processing { background: rgba(var(--accent-rgb), 0.12);  color: var(--accent); }
.badge-completed  { background: rgba(16,185,129,0.12); color: #065f46; }
.badge-cancelled  { background: rgba(239,68,68,0.10);  color: #991b1b; }
.badge-paid       { background: rgba(16,185,129,0.12); color: #065f46; }
.badge-failed     { background: rgba(239,68,68,0.10);  color: #991b1b; }
[data-theme="dark"] .badge-pending    { color: #f59e0b; }
[data-theme="dark"] .badge-processing { color: #a5b4fc; }
[data-theme="dark"] .badge-completed  { color: #34d399; }
[data-theme="dark"] .badge-cancelled  { color: #f87171; }
[data-theme="dark"] .badge-paid       { color: #34d399; }
[data-theme="dark"] .badge-failed     { color: #f87171; }

/* === SUCCESS / FAILED PAGES === */
.result-page {
  min-height: 70vh; display: flex; align-items: center;
  justify-content: center; padding: 40px 16px;
}
.result-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 48px 36px;
  text-align: center; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.result-icon { font-size: 56px; margin-bottom: 20px; display: block; }
.result-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.result-subtitle { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }

/* === FEATURES GRID === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(var(--accent-rgb), 0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.feature-text  { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 18px 0;
  font-size: 15px; font-weight: 600; color: var(--text);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font); transition: color 0.2s;
}
.faq-question:hover { color: var(--accent2); }
.faq-question .faq-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background 0.2s, transform 0.3s;
}
.faq-item.open .faq-question .faq-icon,
.faq-item.active .faq-question .faq-icon { background: rgba(var(--accent-rgb), 0.12); transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 18px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.faq-item.open .faq-answer,
.faq-item.active .faq-answer { display: block; }
.faq-question { user-select: none; }
.faq-answer p { margin: 0; }

/* === REVIEWS === */
.review-grid,
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.review-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.review-header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-accent); font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.review-name  { font-weight: 600; font-size: 14px; }
.review-stars { color: #f59e0b; font-size: 13px; }
.review-text  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* === FOOTER === */
.footer {
  background: var(--bg-surface2); border-top: 1px solid var(--border);
  padding: 56px 0 0; margin-top: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 14px;
}
.footer-about { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 260px; }
.footer-heading {
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: var(--text-2); transition: color 0.18s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5;
}
.footer-contact-item i { margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--text-muted); transition: color 0.18s; }
.footer-bottom-links a:hover { color: var(--text-2); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 52px; height: 52px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.40); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* === DIVIDER === */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* === ADMIN PANEL (theme-aware, matches functions/admin/_layout.js) === */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-surface); border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  overflow-y: auto; transition: transform 0.3s;
}
.admin-sidebar-brand {
  padding: 20px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-brand .brand-logo { width: 36px; height: 36px; font-size: 16px; }
.admin-sidebar-brand strong { font-size: 14px; font-weight: 800; }
.admin-nav { padding: 12px 8px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 2px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.admin-nav-item:hover { background: var(--bg-surface2); color: var(--text); }
.admin-nav-item.active { background: rgba(var(--accent-rgb), 0.15); color: var(--accent2); font-weight: 700; }
.admin-nav-item i { width: 18px; text-align: center; font-size: 15px; }
.admin-main {
  flex: 1; min-width: 0; margin-left: 240px; min-height: 100vh;
  background: var(--bg); color: var(--text);
}
.admin-topbar {
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar-title { font-size: 18px; font-weight: 800; color: var(--text); }
.admin-content { padding: 24px; }
.admin-sidebar-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 20px; cursor: pointer; padding: 4px;
}
.admin-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
}
.admin-card-body { padding: 0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 11px 14px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); text-align: left;
  background: var(--bg-surface2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 14px; font-size: 13.5px; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-surface2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.admin-stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.admin-stat-value {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.admin-stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-form-group { margin-bottom: 18px; }
.admin-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.admin-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-surface); border: 1.5px solid var(--border-md);
  border-radius: var(--r-md); font-size: 14px; font-family: var(--font);
  color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.admin-input::placeholder { color: var(--text-muted); }
textarea.admin-input { min-height: 90px; resize: vertical; }
select.admin-input { cursor: pointer; }
.admin-login-page { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 44px 36px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-logo { text-align: center; margin-bottom: 32px; }
.admin-login-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.admin-login-sub   { font-size: 14px; color: var(--text-2); text-align: center; }
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-sidebar-toggle { display: block; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 14px; }
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
  padding: 7px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  background: var(--bg-surface2); color: var(--text-2);
  border: 1px solid var(--border); transition: all 0.18s; cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: var(--grad-btn); color: var(--on-accent); border-color: transparent; }

/* === STATIC PAGES === */
.static-page { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.static-page h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.static-page .page-date { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.static-page h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.static-page p  { color: var(--text-2); margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.static-page ul { color: var(--text-2); padding-left: 20px; margin-bottom: 14px; }
.static-page ul li { margin-bottom: 7px; line-height: 1.7; font-size: 15px; }

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface2) 25%, var(--bg-hover) 50%, var(--bg-surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }
  .mobile-nav  { display: flex; }
  .hero-section { padding: 48px 0 40px; }
  .hero-stats { gap: 20px; }
  .section { padding: 40px 0; }
  .product-grid,
.products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .admin-content { padding: 20px; }
  .result-card { padding: 36px 24px; }
  .static-page { padding: 32px 0 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .product-grid,
.products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .review-grid,
.reviews-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .product-body { padding: 12px; gap: 6px; }
  .product-price { font-size: 17px; }
  .product-name { font-size: 13px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
  .checkout-layout { padding: 20px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* === SKELETON SCREENS (images, grid, page bar) === */
.skel { position: relative; }
.skel.is-ready { background: var(--bg-surface2); }

/* shimmer shudhu 0.5s por dekhabe, tar moddhe image ele kichu dekhabe na */
.skel:not(.is-ready)::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, var(--bg-surface2) 25%, var(--bg-hover) 50%, var(--bg-surface2) 75%);
  background-size: 200% 100%;
  animation: skelShow .01s linear .5s forwards, shimmer 1.4s linear .5s infinite;
}
@keyframes skelShow { to { opacity: 1; } }
.product-detail-img-wrap.skel:not(.is-ready) { min-height: 280px; border-radius: var(--r-lg); }
.skeleton-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.skeleton-card .sk-img  { aspect-ratio: 16/9; }
.skeleton-card .sk-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-card .sk-line { height: 12px; }
.skeleton-card .sk-line.w70 { width: 70%; }
.skeleton-card .sk-line.w40 { width: 40%; }
.skeleton-card .sk-btn  { height: 36px; border-radius: var(--r-sm); margin-top: 4px; }
/* top page-load bar shown on link click / form submit */
#br-topbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: var(--accent, #f59e0b); box-shadow: 0 0 8px var(--accent, #f59e0b);
  transition: width .25s ease, opacity .3s ease; opacity: 0; pointer-events: none;
}
#br-topbar.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .skel:not(.is-ready), .skeleton { animation: none; }
  img.skel-img { transition: none; }
}

/* alias used by admin pages */
.alert-danger { background: rgba(239,68,68,0.08); border-color: var(--error); color: #991b1b; }
[data-theme="dark"] .alert-danger { color: #f87171; }


/* ============================================================
   ADDED — classes used by functions/*.js that were missing
   ============================================================ */

/* --- section header (label + title + desc) --- */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header .section-title { margin-bottom: 0; }
.section-label {
  display: inline-block; padding: 5px 14px; margin-bottom: 12px;
  border-radius: var(--r-full);
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.section-desc { color: var(--text-2); font-size: 15px; max-width: 560px; margin: 14px auto 0; }
.highlight {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- HERO v2 --- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 0 80px; background: var(--grad-hero);
}
.hero::before {
  content: ''; position: absolute; top: -140px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 70%);
}
.hero-bg-icons { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hbi {
  position: absolute; color: var(--accent); opacity: 0.13; font-size: 40px;
  animation: hbiFloat 7s ease-in-out infinite;
}
.hbi-1 { top: 12%;    left: 6%;   font-size: 44px; }
.hbi-2 { top: 22%;    right: 8%;  font-size: 52px; animation-delay: -1s; }
.hbi-3 { bottom: 18%; left: 12%;  font-size: 36px; animation-delay: -2s; }
.hbi-4 { bottom: 12%; right: 14%; font-size: 46px; animation-delay: -3s; }
.hbi-5 { top: 55%;    left: 3%;   font-size: 30px; animation-delay: -4s; }
.hbi-6 { top: 8%;     right: 30%; font-size: 28px; animation-delay: -5s; }
.hbi-7 { top: 42%;    right: 3%;  font-size: 34px; animation-delay: -2.5s; }
.hbi-8 { bottom: 6%;  left: 40%;  font-size: 32px; animation-delay: -1.5s; }
@keyframes hbiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
.hero-single { max-width: 760px; margin: 0 auto; }
.hero-title-v2 { font-size: clamp(30px, 5.5vw, 54px); line-height: 1.2; max-width: 760px; }
.hero-line3 { position: relative; display: inline-block; isolation: isolate; }
.hero-line3::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; z-index: -1;
  border-radius: var(--r-full); background: rgba(var(--accent-rgb), 0.32);
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-btn-order { animation: heroPulse 2.4s ease-in-out infinite; }
@keyframes heroPulse {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50%      { box-shadow: 0 6px 38px rgba(var(--accent-rgb), 0.55); }
}
.hero-trust { display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.hero-trust-item i { color: var(--success); }

/* --- STATS --- */
.stats-section { position: relative; z-index: 3; margin-top: -30px; padding-bottom: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 14px; text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-number {
  display: block; font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.1;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }

/* --- CATEGORIES --- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 14px; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.category-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent2);
  transition: background 0.22s, color 0.22s;
}
.category-card:hover .category-icon { background: var(--grad-btn); color: var(--on-accent); }
.category-name  { font-size: 15px; font-weight: 700; color: var(--text); }
.category-count { font-size: 12px; color: var(--text-muted); }

/* --- product card links / skeleton image fade --- */
.product-card > a { display: block; color: inherit; }
img.skel-img { opacity: 0; transition: opacity 0.35s ease; }
img.skel-img.is-loaded { opacity: 1; }
@media (scripting: none) { img.skel-img { opacity: 1; } }

/* --- WHY US --- */
.why-section { background: var(--bg-surface2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.why-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-md); }
.why-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent2);
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.why-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* --- REVIEWS (home + product) --- */
.reviews-section { background: var(--bg); }
img.review-avatar { object-fit: cover; background: var(--bg-surface2); }

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-2); transition: color 0.18s; }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb-sep { opacity: 0.5; }

/* --- PRODUCT DETAIL --- */
.product-detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.product-detail-img-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--bg-surface2); box-shadow: var(--shadow-md);
}
.product-detail-img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.product-detail-info { min-width: 0; }
.product-category-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 5px 14px; border-radius: var(--r-full);
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent2);
  font-size: 13px; font-weight: 700;
}
.product-detail-title { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; line-height: 1.25; margin-bottom: 8px; }

/* --- CHECKOUT --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }

/* --- STATUS BADGES (track page) --- */
.badge-success { background: rgba(34, 197, 94, 0.15);  color: #16a34a; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-danger  { background: rgba(239, 68, 68, 0.14);  color: #dc2626; }
.badge-info    { background: rgba(59, 130, 246, 0.14); color: #2563eb; }
[data-theme="dark"] .badge-success { color: #4ade80; }
[data-theme="dark"] .badge-warning { color: #fbbf24; }
[data-theme="dark"] .badge-danger  { color: #f87171; }
[data-theme="dark"] .badge-info    { color: #60a5fa; }

/* --- ORDER TRACK STEPS --- */
.track-steps { display: flex; flex-direction: column; }
.track-step { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.track-step:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 52px;
  width: 2px; height: calc(100% - 20px); background: var(--border-md);
}
.track-step.done:not(:last-child)::after { background: var(--accent); }
.track-step-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--bg-surface); border: 2px solid var(--border-md); color: var(--text-muted);
}
.track-step.done .track-step-icon   { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.track-step.active .track-step-icon { animation: trackPulse 1.6s infinite; }
@keyframes trackPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}
.track-step-info  { min-width: 0; }
.track-step-label { font-size: 15px; font-weight: 700; }
.track-step-desc  { margin-top: 3px; font-size: 13px; color: var(--text-2); }

/* --- ADMIN > SMTP page --- */
.smtp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.relay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- RESPONSIVE for the added blocks --- */
@media (max-width: 980px) {
  .smtp-grid, .relay-row { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .hero { padding: 64px 0 60px; }
  .hbi { opacity: 0.08; }
  .stats-section { margin-top: -22px; }
  .section-header { margin-bottom: 26px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-buttons .btn { width: 100%; }
  .stat-card { padding: 18px 10px; }
  .category-card { padding: 18px 10px; }
  .hero-trust { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hbi, .hero-btn-order, .track-step.active .track-step-icon { animation: none !important; }
}
.bottom-nav { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 12px; right: 12px; z-index: 120;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 64px; padding: 0 6px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(20, 20, 31, 0.16), 0 2px 8px rgba(20, 20, 31, 0.06);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }
  [data-theme="dark"] .bottom-nav {
    background: rgba(14, 14, 28, 0.82);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  .bn-item {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    height: 100%; color: var(--text-muted);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em;
    transition: color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .bn-item i { font-size: 19px; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
  .bn-item:active { transform: scale(0.92); }
  .bn-item.active { color: var(--accent2); }
  .bn-item.active i { transform: translateY(-2px) scale(1.1); }
  .bn-item.active::before {
    content: ''; position: absolute; top: 5px;
    width: 18px; height: 3px; border-radius: var(--r-full);
    background: var(--grad-btn);
  }
  .bn-center { overflow: visible; }
  .bn-fab {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-top: -26px;
    border-radius: 50%; font-size: 24px; color: #fff;
    background: linear-gradient(135deg, #25d366, #128c4a);
    border: 4px solid var(--bg);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  }
  .bn-center:active .bn-fab { transform: scale(0.94); }
  .whatsapp-float { display: none; }
}