/* =================================================================
   PlantBazar.in — Premium eCommerce Stylesheet
   Sections: 1) Variables  2) Reset  3) Typography  4) Layout
             5) Buttons   6) Header  7) Hero  8) Sections
             9) Products  10) Footer  11) Pages  12) Modals
             13) Animations  14) Dark Mode  15) Responsive
   ================================================================= */

/* ============= 0) MOBILE SAFETY NETS ============= */
/* Targeted word wrapping only on text-heavy blocks (not universal) */
.product-info h3 a, .blog-content h3, .category-card .cat-info h4,
.section-head h2, .testimonial p, .potd h2 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Ensure long product names wrap gracefully */
.product-info h3 a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============= 1) DESIGN TOKENS ============= */
:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #66BB6A;
  --secondary: #66BB6A;
  --bg: #F8FAF8;
  --bg-alt: #EEF5EE;
  --white: #FFFFFF;
  --accent: #FF9800;
  --accent-dark: #F57C00;
  --text: #263238;
  --text-muted: #607D8B;
  --text-light: #90A4AE;
  --border: #E0E6E0;
  --danger: #E53935;
  --success: #43A047;
  --warning: #FFB300;
  --info: #1E88E5;

  --shadow-sm: 0 2px 8px rgba(38, 50, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(38, 50, 56, 0.08);
  --shadow-lg: 0 20px 50px rgba(38, 50, 56, 0.12);
  --shadow-glow: 0 10px 30px rgba(46, 125, 50, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;

  --header-h: 124px;
  --container-w: 1280px;

  --grad-primary: linear-gradient(135deg, #2E7D32 0%, #66BB6A 100%);
  --grad-accent: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  --grad-leaf: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
  --grad-soft: linear-gradient(180deg, #F8FAF8 0%, #EEF5EE 100%);
}

/* ============= 2) RESET & BASE ============= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}
img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ============= 3) TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-muted); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============= 4) LAYOUT ============= */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
.hide-sm { display: inline; }
@media (max-width: 768px) { .hide-sm { display: none !important; } }
.section { padding: 70px 0; position: relative; }
.section-sm { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.flex { display: flex; }
.grid { display: grid; }
.between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============= 5) BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(46,125,50,.35); }
.btn-accent {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255,152,0,.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,152,0,.4); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: var(--bg-alt); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Ripple effect */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.4) 10%, transparent 10%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0 0;
  opacity: 0;
  transition: background-size 0.5s, opacity 0.5s;
}
.btn:active::after { background-size: 600px 600px; opacity: 1; transition: 0s; }

/* Icon button */
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  position: relative;
  transition: var(--transition-fast);
}
.icon-btn:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ============= 6) HEADER ============= */

/* Announcement bar */
.announcement {
  background: var(--grad-primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}
.announcement-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.announcement-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo .leaf-icon {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
  transform: rotate(-10deg);
}
.logo small { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; display: block; }

/* Search bar */
.search-wrap { position: relative; max-width: 580px; }
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  transition: var(--transition);
}
.search-bar:focus-within { background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,125,50,.1); }
.search-bar input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text);
}
.search-bar button {
  background: var(--grad-primary);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.search-bar button:hover { transform: scale(1.04); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  z-index: 50;
  max-height: 380px;
  overflow-y: auto;
}
.search-suggestions.active { display: block; }
.search-suggestions h6 { padding: 8px 12px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.search-suggestions a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.search-suggestions a:hover { background: var(--bg-alt); }
.search-suggestions img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }

/* Location selector */
.location-selector {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.location-selector:hover { background: var(--bg-alt); }
.location-selector .loc-text { display: flex; flex-direction: column; }
.location-selector .loc-text strong { color: var(--text); font-size: 0.9rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.auth-btn.login { color: var(--text); }
.auth-btn.login:hover { background: var(--bg-alt); }
.auth-btn.register { background: var(--grad-primary); color: white; box-shadow: var(--shadow-glow); }
.auth-btn.register:hover { transform: translateY(-2px); }

/* Category nav */
.category-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav ul {
  display: flex; gap: 4px;
  padding: 10px 0;
}
.category-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: var(--transition-fast);
}
.category-nav a:hover, .category-nav a.active { background: var(--bg-alt); color: var(--primary); }
.category-nav a i { color: var(--primary); font-size: 0.85rem; }

/* Mobile menu */
.menu-toggle { display: none; }
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 85vw;
  background: var(--white);
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.active .mobile-menu-inner { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu nav a i { color: var(--primary); width: 20px; }

/* ============= 7) HERO SLIDER ============= */
.hero {
  position: relative;
  background: var(--grad-soft);
  overflow: hidden;
  padding: 30px 0;
}
.hero-slider { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-slide {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center;
  padding: 60px;
  background-size: cover;
  background-position: center;
  display: none;
  animation: fadeIn 0.6s ease;
}
.hero-slide.active { display: flex; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--slide-gradient, var(--grad-primary));
  opacity: 0.9;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  color: white;
}
.hero-content .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.25);
}
.hero-content h1 {
  color: white;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-content p {
  color: rgba(255,255,255,.95);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-controls {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: white; width: 30px; border-radius: 5px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: var(--transition);
}
.hero-arrow:hover { background: white; color: var(--primary); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* Quick benefits */
.quick-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.quick-benefit {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.quick-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-benefit .ic {
  width: 48px; height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}
.quick-benefit h5 { font-size: 0.95rem; margin-bottom: 2px; }
.quick-benefit p { font-size: 0.8rem; margin: 0; }

/* ============= 8) SECTION STYLES ============= */

/* Category grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}
.category-card .cat-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  z-index: 2;
  color: white;
}
.category-card .cat-info h4 { color: white; font-size: 1.05rem; margin-bottom: 2px; }
.category-card .cat-info span { font-size: 0.8rem; opacity: 0.9; }
.category-card .cat-icon {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  z-index: 2;
}

/* Product grid + cards */
.section-head-row {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 30px; flex-wrap: wrap; gap: 16px;
}
.section-head-row .text-side h2 { margin-bottom: 4px; }
.section-head-row .text-side p { margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.product-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge.discount { background: var(--accent); color: white; }
.product-badge.new { background: var(--info); color: white; }
.product-badge.hot { background: var(--danger); color: white; }
.product-badge.limited { background: var(--text); color: white; }
.product-badge.bestseller { background: var(--primary); color: white; }

.product-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2;
  opacity: 0; transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button {
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.product-actions button:hover { background: var(--primary); color: white; }
.product-actions button.active { background: var(--danger); color: white; }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info h3 { font-size: 1.05rem; margin: 6px 0; line-height: 1.3; }
.product-info h3 a:hover { color: var(--primary); }
.product-info p { font-size: 0.85rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 0.85rem; }
.stars { color: var(--warning); }
.product-rating span { color: var(--text-muted); }

.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.product-price .now { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.product-price .was { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }
.product-price .save { font-size: 0.75rem; color: var(--success); font-weight: 700; }

.stock-status {
  font-size: 0.78rem; font-weight: 600;
  padding: 3px 8px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
}
.stock-status.in { background: rgba(67,160,71,.12); color: var(--success); }
.stock-status.low { background: rgba(255,179,0,.15); color: var(--warning); }
.stock-status.out { background: rgba(229,57,53,.12); color: var(--danger); }

.product-buttons { display: flex; gap: 8px; margin-top: auto; }
.product-buttons .btn { flex: 1; padding: 9px 12px; font-size: 0.85rem; }

/* Flash sale section */
.flash-sale {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  border-radius: var(--radius-xl);
  padding: 50px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(27, 94, 32, .3);
}
.flash-sale::before {
  content: "";
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,152,0,.5), transparent 70%);
  border-radius: 50%;
  animation: floatBlob 8s ease-in-out infinite;
}
.flash-sale::after {
  content: "";
  position: absolute; bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(102,187,106,.35), transparent 70%);
  border-radius: 50%;
  animation: floatBlob 10s ease-in-out infinite reverse;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}
.flash-head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; flex-wrap: wrap; gap: 20px;
}
.flash-head h2 { color: white; }
.flash-head .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(255,152,0,.4);
  animation: pulseGlow 2s ease-in-out infinite;
}
.flash-head .pill i { animation: zapFlash 1.2s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,152,0,.4); }
  50% { box-shadow: 0 4px 24px rgba(255,152,0,.7); }
}
@keyframes zapFlash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Urgency viewers badge */
.viewers-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
  margin-top: 8px;
}
.viewers-badge .pulse-dot {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,.7); }
  50% { box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}

.countdown { display: flex; gap: 10px; }
.countdown .time-block {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 70px;
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
  overflow: hidden;
}
.countdown .time-block::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.countdown .time-block strong {
  font-size: 1.6rem; font-weight: 800; display: block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c8e6c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.countdown .time-block span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.countdown .time-block.urgent {
  animation: flashUrgent 1s ease-in-out infinite;
}
@keyframes flashUrgent {
  0%, 100% { background: rgba(0,0,0,.35); }
  50% { background: rgba(229,57,53,.4); }
}

.flash-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.flash-grid .product-card { background: white; }

/* Stock urgency bar */
.stock-bar {
  margin: 10px 0;
  font-size: 0.75rem;
}
.stock-bar .stock-text {
  display: flex; justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
}
.stock-bar .stock-text .left-num { color: var(--danger); }
.stock-bar .stock-progress {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.stock-bar .stock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--accent));
  border-radius: 3px;
  transition: width 0.6s ease;
  position: relative;
}
.stock-bar .stock-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* "Almost gone" pulse badge */
.almost-gone {
  background: var(--danger);
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: urgentPulse 1.2s ease-in-out infinite;
}
.almost-gone::before {
  content: "🔥";
  font-size: 0.85rem;
}
@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Live notification toast (recent purchase) */
.live-toast {
  position: fixed; bottom: 100px; left: 24px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 850;
  max-width: 320px;
  border-left: 4px solid var(--primary);
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.live-toast.show { transform: translateX(0); }
.live-toast img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.live-toast .lt-info { font-size: 0.82rem; }
.live-toast .lt-info strong { color: var(--text); display: block; font-size: 0.85rem; }
.live-toast .lt-info span { color: var(--text-muted); }
.live-toast .lt-time { font-size: 0.72rem; color: var(--primary); font-weight: 600; margin-top: 2px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  transform: rotate(-5deg);
  transition: var(--transition);
}
.feature-card:hover .feature-icon { transform: rotate(0deg) scale(1.08); }
.feature-card h4 { margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; margin: 0; }

/* Trending carousel */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  z-index: 5;
  transition: var(--transition-fast);
}
.carousel-nav:hover { background: var(--primary); color: white; }
.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }

/* Carousel on mobile — 1 product at a time, snap to each */
@media (max-width: 768px) {
  .carousel { gap: 12px; padding: 4px 24px 20px; }
  .carousel > * {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
    max-width: 360px;
    margin: 0 auto;
  }
  .carousel-nav {
    width: 38px; height: 38px;
    background: var(--primary);
    color: white;
  }
  .carousel-nav.prev { left: 4px; }
  .carousel-nav.next { right: 4px; }
  .carousel-nav:hover { background: var(--primary-dark); }
}

/* Carousel dot indicators (mobile only) */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.cdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border, #e0e0e0);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.cdot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .carousel-dots { display: flex; }
}

/* Special offer banner */
.special-offer {
  border-radius: var(--radius-xl);
  padding: 60px;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.special-offer::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M40 0L80 40L40 80L0 40z'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.special-offer > * { position: relative; z-index: 2; }
.special-offer h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 12px; }
.special-offer p { color: rgba(255,255,255,.95); font-size: 1.1rem; max-width: 480px; }

/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.testimonial .quote {
  font-size: 2.5rem; color: var(--primary-light); line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.testimonial p { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; }
.testimonial .person { display: flex; align-items: center; gap: 12px; }
.testimonial .person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial .person strong { display: block; font-size: 0.95rem; }
.testimonial .person span { font-size: 0.8rem; color: var(--text-muted); }

/* On mobile, override the testimonials grid to be a single-card carousel */
@media (max-width: 768px) {
  .testimonials-carousel-wrap { position: relative; }
  .testimonials-carousel-wrap .testimonials-grid.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 4px 24px 20px;
  }
  .testimonials-carousel-wrap .testimonials-grid.carousel::-webkit-scrollbar { display: none; }
  .testimonials-carousel-wrap .testimonials-grid.carousel > * {
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: 100%;
    min-width: 0;
  }
  .testimonials-carousel-wrap .carousel-nav {
    width: 38px; height: 38px;
    background: var(--primary);
    color: white;
  }
  .testimonials-carousel-wrap .carousel-nav.prev { left: 4px; }
  .testimonials-carousel-wrap .carousel-nav.next { right: 4px; }
  .testimonials-carousel-wrap .carousel-nav:hover { background: var(--primary-dark); }
  /* Hide dot indicators on tablets/phones (carousel only — testimonials already in 2-col at 480px) */
  .testimonials-carousel-wrap .carousel-dots { display: flex; }
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-image { aspect-ratio: 16/10; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-content { padding: 22px; }
.blog-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-content h3 a:hover { color: var(--primary); }
.blog-content p { font-size: 0.88rem; margin: 0; }

/* Instagram grid */
.insta-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.insta-grid a {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta-grid a:hover img { transform: scale(1.1); }
.insta-grid a::after {
  content: "\f16d"; font-family: "Font Awesome 6 Brands";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46,125,50,.85);
  color: white; font-size: 1.6rem;
  opacity: 0; transition: var(--transition);
}
.insta-grid a:hover::after { opacity: 1; }

/* Newsletter */
.newsletter {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 60%);
  border-radius: 50%;
}
.newsletter h2 { color: white; margin-bottom: 10px; position: relative; }
.newsletter p { color: rgba(255,255,255,.92); max-width: 540px; margin: 0 auto 24px; position: relative; }
.newsletter-form {
  position: relative;
  display: flex; max-width: 500px; margin: 0 auto;
  background: white; border-radius: var(--radius-pill);
  padding: 6px;
  z-index: 2;
}
.newsletter-form input {
  flex: 1; border: none; outline: none; padding: 12px 20px;
  background: transparent; color: var(--text);
}
.newsletter-form button {
  background: var(--grad-accent);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ============= 9) FOOTER ============= */
.footer {
  background: #1B2421;
  color: #B0BEC5;
  padding: 60px 0 20px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 { color: white; margin-bottom: 18px; font-size: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 16px 0; }
.footer-brand .logo { color: white; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #B0BEC5; font-size: 0.9rem; transition: var(--transition-fast); }
.footer ul a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact li { display: flex; align-items: start; gap: 10px; font-size: 0.9rem; }
.footer-contact i { color: var(--primary-light); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: var(--transition);
}
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-methods span {
  background: rgba(255,255,255,.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ============= 10) INNER PAGES ============= */

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  padding: 16px 0;
  font-size: 0.88rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* Page hero */
.page-hero {
  background: var(--grad-soft);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 8px; word-wrap: break-word; }
.page-hero p { max-width: 580px; margin: 0 auto; }

/* Product listing page */
.listing-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 40px 0;
}
.filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border: none; margin: 0; padding: 0; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 14px; }
.filter-group label {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--primary); }
.filter-group input[type="range"] { width: 100%; accent-color: var(--primary); }
.price-range-display { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 8px; color: var(--text-muted); }
.rating-filter .stars { font-size: 0.85rem; }

.listing-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.listing-head .count { color: var(--text-muted); font-size: 0.9rem; }
.listing-head select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
}
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination button {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: var(--transition-fast);
}
.pagination button:hover, .pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Product details page */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 40px 0; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.pd-main-image {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 14px;
  cursor: zoom-in;
  position: relative;
}
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pd-main-image:hover img { transform: scale(1.1); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumbs button {
  aspect-ratio: 1/1; border-radius: var(--radius-md);
  overflow: hidden; border: 2px solid transparent;
  padding: 0;
  transition: var(--transition-fast);
}
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.pd-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.pd-meta .stars { font-size: 1rem; }
.pd-meta .reviews-link { color: var(--text-muted); text-decoration: underline; font-size: 0.9rem; }
.pd-meta .sku { color: var(--text-muted); font-size: 0.88rem; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--text); }
.pd-mrp { font-size: 1.1rem; color: var(--text-light); text-decoration: line-through; }
.pd-off { color: var(--success); font-weight: 700; font-size: 0.95rem; }
.pd-desc { margin: 20px 0; line-height: 1.8; }
.pd-features { background: var(--bg-alt); border-radius: var(--radius-md); padding: 18px; margin: 20px 0; }
.pd-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.92rem; }
.pd-features i { color: var(--primary); width: 16px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty-control button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty-control button:hover { background: var(--bg-alt); }
.qty-control input { width: 50px; text-align: center; border: none; outline: none; background: transparent; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pd-tabs { margin: 50px 0; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 30px; overflow-x: auto; }
.tabs-nav button {
  padding: 12px 24px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; animation: fadeIn 0.4s ease; }
.tab-pane.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 14px 12px; font-size: 0.95rem; }
.specs-table td:first-child { font-weight: 600; color: var(--text); width: 35%; background: var(--bg-alt); }

/* Cart page */
.cart-wrap { padding: 40px 0; display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.cart-items { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-md); }
.cart-item h4 { font-size: 1rem; margin-bottom: 4px; }
.cart-item .ci-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.cart-item .ci-price { font-weight: 700; font-size: 1.1rem; }
.cart-item .remove-btn { color: var(--danger); font-size: 0.85rem; cursor: pointer; }
.cart-item .remove-btn:hover { text-decoration: underline; }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.cart-summary h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; font-size: 1.1rem; font-weight: 700; }
.coupon-input { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); outline: none; }
.coupon-input button { padding: 10px 16px; background: var(--text); color: white; border-radius: var(--radius-pill); font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.empty-state i { font-size: 4rem; color: var(--primary-light); margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* Checkout */
.checkout-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 30px; padding: 40px 0; }
.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.checkout-section h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-fast);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,125,50,.1); }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}
.payment-option:hover { border-color: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: rgba(46,125,50,.05); }
.payment-option input { accent-color: var(--primary); }
.payment-option i { font-size: 1.2rem; color: var(--primary); }

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 50px 0;
  gap: 60px;
}
.auth-side {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  color: white;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 60%);
  border-radius: 50%;
}
.auth-side h2 { color: white; font-size: 2rem; margin-bottom: 14px; position: relative; }
.auth-side p { color: rgba(255,255,255,.9); position: relative; }
.auth-side ul { margin-top: 20px; position: relative; }
.auth-side li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.auth-side li i { width: 24px; height: 24px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

.auth-form { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-form h1 { margin-bottom: 8px; }
.auth-form > p { margin-bottom: 24px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.9rem; }
.auth-form .form-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-form .divider-text {
  text-align: center; position: relative; margin: 24px 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.auth-form .divider-text::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border);
}
.auth-form .divider-text span { background: var(--bg); padding: 0 12px; position: relative; }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition-fast);
}
.social-btn:hover { background: var(--bg-alt); }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Dashboard */
.dashboard-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 40px 0; }
.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.user-card { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.user-card img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; }
.user-card h4 { margin-bottom: 2px; }
.user-card span { color: var(--text-muted); font-size: 0.85rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text);
  transition: var(--transition-fast);
  margin-bottom: 2px;
}
.sidebar nav a i { width: 18px; color: var(--text-muted); }
.sidebar nav a:hover { background: var(--bg-alt); color: var(--primary); }
.sidebar nav a.active { background: var(--grad-primary); color: white; box-shadow: var(--shadow-glow); }
.sidebar nav a.active i { color: white; }
.dash-content { background: var(--white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card i {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.6rem; color: var(--primary-light); opacity: 0.4;
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--text); display: block; }
.stat-card .lbl { color: var(--text-muted); font-size: 0.85rem; }
.order-card { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.order-card:last-child { border: none; }
.order-card img { width: 70px; height: 70px; border-radius: var(--radius-md); object-fit: cover; }
.order-card .meta { flex: 1; }
.order-card h5 { font-size: 0.95rem; margin-bottom: 2px; }
.order-card span { color: var(--text-muted); font-size: 0.85rem; }
.status-pill {
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
}
.status-pill.delivered { background: rgba(67,160,71,.12); color: var(--success); }
.status-pill.shipped { background: rgba(30,136,229,.12); color: var(--info); }
.status-pill.processing { background: rgba(255,179,0,.15); color: var(--warning); }

/* ============= 11) MODAL ============= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 30px; }

/* ============= 12) UTILITIES ============= */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 6000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--text);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  animation: slideIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast i { font-size: 1.2rem; }

.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  z-index: 999;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); }

.loader-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; }
.plant-loader {
  width: 60px; height: 60px;
  position: relative;
  animation: bounce 1.4s ease-in-out infinite;
}
.plant-loader::before, .plant-loader::after {
  content: "🌱"; position: absolute;
  font-size: 2.5rem;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.plant-loader::after { animation: pulse 1.4s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============= 13) ANIMATIONS ============= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============= 14) DARK MODE ============= */
[data-theme="dark"] {
  --bg: #0F1411;
  --bg-alt: #1A2520;
  --white: #1E2A24;
  --text: #ECEFF1;
  --text-muted: #90A4AE;
  --text-light: #78909C;
  --border: #2C3A33;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}
[data-theme="dark"] .header { background: var(--white); }
[data-theme="dark"] .product-card,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .cart-items,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .checkout-section,
[data-theme="dark"] .filters,
[data-theme="dark"] .dash-content,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .listing-head,
[data-theme="dark"] .auth-side { background: var(--white); }
[data-theme="dark"] .search-bar,
[data-theme="dark"] .listing-head { background: var(--bg-alt); }
[data-theme="dark"] .search-bar input,
[data-theme="dark"] .search-bar input::placeholder { color: var(--text); }
[data-theme="dark"] .footer { background: #0A0F0C; }
[data-theme="dark"] .bg-soft, [data-theme="dark"] .page-hero, [data-theme="dark"] .hero { background: linear-gradient(180deg, #0F1411 0%, #1A2520 100%); }
[data-theme="dark"] .icon-btn { background: var(--bg-alt); }
[data-theme="dark"] .specs-table td:first-child { background: var(--bg-alt); }
[data-theme="dark"] .newsletter-form input { color: var(--text); }

/* ============= 14.5) NEW FEATURES ============= */

/* --- Promo banner (top sticky) --- */
.promo-bar {
  background: var(--grad-accent);
  color: white;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: slideDown 0.5s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.promo-bar.hidden { display: none; }
.promo-bar a { text-decoration: underline; font-weight: 700; }
.promo-bar .close-promo {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); width: 24px; height: 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.7rem;
  transition: var(--transition-fast);
}
.promo-bar .close-promo:hover { background: rgba(255,255,255,.4); }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--grad-primary);
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(46,125,50,.5);
}

/* --- Quick Cart Drawer --- */
.cart-drawer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 5000;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.cart-drawer.active { opacity: 1; visibility: visible; }
.cart-drawer-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.cart-drawer.active .cart-drawer-inner { transform: translateX(0); }
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-header h3 { display: flex; align-items: center; gap: 10px; }
.drawer-header h3 .count {
  background: var(--primary); color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.drawer-close {
  width: 36px; height: 36px;
  background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-fast);
}
.drawer-close:hover { background: var(--danger); color: white; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-empty { text-align: center; padding: 40px 20px; }
.drawer-empty i { font-size: 3.5rem; color: var(--primary-light); margin-bottom: 14px; }
.drawer-item {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.drawer-item img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.drawer-item h5 { font-size: 0.9rem; margin-bottom: 4px; line-height: 1.3; }
.drawer-item .di-price { font-weight: 700; font-size: 0.95rem; }
.drawer-item .qty-mini {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px;
  margin-top: 6px;
}
.drawer-item .qty-mini button {
  width: 24px; height: 24px;
  background: var(--bg-alt); border-radius: 50%;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.drawer-item .qty-mini button:hover { background: var(--primary); color: white; }
.drawer-item .qty-mini span { padding: 0 6px; font-size: 0.85rem; font-weight: 600; }
.drawer-item .di-remove { color: var(--danger); cursor: pointer; font-size: 0.85rem; }
.drawer-item .di-remove:hover { text-decoration: underline; }
.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.1rem; font-weight: 700; }

/* --- Plant Finder Quiz --- */
.quiz-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 20px;
}
.quiz-overlay.active { opacity: 1; visibility: visible; }
.quiz-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.quiz-overlay.active .quiz-modal { transform: scale(1); }
.quiz-progress {
  display: flex; gap: 6px; margin-bottom: 24px;
}
.quiz-progress span {
  flex: 1; height: 4px; background: var(--border);
  border-radius: 2px; transition: background 0.3s;
}
.quiz-progress span.done { background: var(--primary); }
.quiz-step h2 { margin-bottom: 8px; font-size: 1.5rem; }
.quiz-step > p { margin-bottom: 20px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition-fast);
  text-align: left; width: 100%;
  font-family: inherit; font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--primary); background: rgba(46,125,50,.03); }
.quiz-option.selected { border-color: var(--primary); background: rgba(46,125,50,.08); }
.quiz-option i { font-size: 1.4rem; color: var(--primary); width: 30px; }
.quiz-result { text-align: center; }
.quiz-result h3 { margin-bottom: 8px; }
.quiz-result p { margin-bottom: 20px; }
.quiz-result .results-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.quiz-actions { display: flex; gap: 10px; justify-content: center; }

/* --- Live Chat Widget --- */
.chat-widget {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 900;
}
.chat-bubble {
  width: 60px; height: 60px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(46,125,50,.4);
  transition: var(--transition);
  position: relative;
}
.chat-bubble:hover { transform: scale(1.08); }
.chat-bubble .pulse {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: var(--danger);
  border: 2px solid var(--bg);
  border-radius: 50%;
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); }
  70% { box-shadow: 0 0 0 12px rgba(229,57,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}
.chat-window {
  position: absolute; bottom: 76px; left: 0;
  width: 340px; max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chat-window.active { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-header {
  background: var(--grad-primary);
  color: white;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-header img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; }
.chat-header h5 { color: white; margin-bottom: 0; }
.chat-header small { font-size: 0.75rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; }
.chat-header small::before { content: ""; width: 8px; height: 8px; background: #66ff66; border-radius: 50%; display: inline-block; }
.chat-body {
  height: 320px; overflow-y: auto;
  padding: 20px; background: var(--bg-alt);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 16px; font-size: 0.88rem;
  line-height: 1.4;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot {
  background: var(--white); align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user {
  background: var(--primary); color: white;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-msg .quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-msg .quick-replies button {
  background: rgba(46,125,50,.08); color: var(--primary);
  padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(46,125,50,.2);
}
.chat-msg .quick-replies button:hover { background: var(--primary); color: white; }
.chat-input-area {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input-area input {
  flex: 1; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; outline: none;
  font-size: 0.9rem;
}
.chat-input-area button {
  width: 38px; height: 38px;
  background: var(--primary); color: white;
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* --- Image Lightbox --- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 6000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,.15);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }

/* --- Compare Bar --- */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 -10px 30px rgba(0,0,0,.15);
  z-index: 800;
  padding: 14px 20px;
  display: none;
  align-items: center; gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--primary);
}
.compare-bar.active { display: flex; transform: translateY(0); }
.compare-items { display: flex; gap: 10px; flex: 1; }
.compare-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-alt);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.compare-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.compare-item .ci-remove { color: var(--danger); cursor: pointer; font-size: 0.75rem; padding: 2px; }

/* --- Sticky Add-to-Cart (mobile) --- */
.sticky-pd-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 12px 16px;
  display: none;
  align-items: center; gap: 12px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.1);
  z-index: 700;
  border-top: 1px solid var(--border);
}
.sticky-pd-bar .sp-info { flex: 1; min-width: 0; }
.sticky-pd-bar .sp-info h6 { font-size: 0.9rem; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-pd-bar .sp-info .sp-price { color: var(--primary); font-weight: 700; font-size: 1rem; }

/* --- Order Tracking Timeline --- */
.tracking-wrap { padding: 40px 0; }
.tracking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.tracking-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
  margin: 40px 0 20px;
}
.tracking-steps::before {
  content: ""; position: absolute;
  top: 22px; left: 12%; right: 12%;
  height: 3px; background: var(--border);
  z-index: 0;
}
.tracking-steps::after {
  content: ""; position: absolute;
  top: 22px; left: 12%;
  height: 3px; background: var(--primary);
  z-index: 1; transition: width 0.6s ease;
}
.tracking-step { text-align: center; position: relative; z-index: 2; }
.tracking-step .ts-icon {
  width: 48px; height: 48px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.tracking-step.done .ts-icon {
  background: var(--primary); border-color: var(--primary); color: white;
}
.tracking-step.active .ts-icon {
  background: var(--white); border-color: var(--primary); color: var(--primary);
  animation: pulse 2s infinite;
}
.tracking-step h6 { font-size: 0.9rem; margin-bottom: 4px; }
.tracking-step small { color: var(--text-muted); font-size: 0.78rem; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.4); } 50% { box-shadow: 0 0 0 12px rgba(46,125,50,0); } }

/* --- Animated Counters --- */
.stats-banner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.stat-block { text-align: center; min-width: 0; }
.stat-block .num {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.stat-block .lbl {
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  margin-top: 6px;
  display: block;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.stat-block i { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--primary-light); margin-bottom: 8px; display: block; }

/* --- Recently Viewed --- */
.recently-viewed { background: var(--white); }

/* --- Plant of the Day --- */
.potd {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  border-radius: var(--radius-xl);
  padding: 50px;
  color: white;
  position: relative;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.potd::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 60%);
  border-radius: 50%;
}
.potd .potd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: 16px;
}
.potd h2 { color: white; margin-bottom: 12px; }
.potd p { color: rgba(255,255,255,.9); margin-bottom: 20px; max-width: 380px; }
.potd .potd-img {
  position: relative; z-index: 1;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: var(--transition);
}
.potd .potd-img:hover { transform: rotate(0deg) scale(1.02); }
.potd .potd-img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Compare Modal --- */
.compare-modal-body { padding: 30px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px; text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table th { background: var(--bg-alt); font-weight: 700; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; }
.compare-table img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; }

/* --- Care Reminders (Dashboard) --- */
.plant-card-my {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
}
.plant-card-my.needs-water { border-left-color: var(--info); }
.plant-card-my img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.plant-card-my .pc-info { flex: 1; }
.plant-card-my h6 { font-size: 0.95rem; margin-bottom: 2px; }
.plant-card-my small { color: var(--text-muted); font-size: 0.82rem; }
.water-badge {
  background: var(--info); color: white;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.water-badge.ok { background: var(--success); }

/* --- Success Page --- */
.success-wrap {
  text-align: center; padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 600px; margin: 40px auto;
}
.success-icon {
  width: 100px; height: 100px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 3rem;
  margin: 0 auto 24px;
  animation: bounceIn 0.6s ease;
  box-shadow: 0 0 0 8px rgba(46,125,50,.15);
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.success-wrap h1 { color: var(--primary); margin-bottom: 8px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.order-info {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 24px 0; padding: 20px;
  background: var(--bg-alt); border-radius: var(--radius-md);
}
.order-info div { text-align: left; }
.order-info small { color: var(--text-muted); font-size: 0.78rem; display: block; }
.order-info strong { font-size: 0.95rem; }

/* --- FAB with progress --- */
.scroll-top { overflow: hidden; }
.scroll-top .progress-ring {
  position: absolute; inset: 0;
  transform: rotate(-90deg);
}
.scroll-top .progress-ring circle {
  fill: none; stroke: var(--white);
  stroke-width: 3;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  stroke-linecap: round;
}

/* --- Sticky Filter (listing) --- */
.sticky-filter {
  position: sticky; top: calc(var(--header-h) + 10px);
  z-index: 50;
}

/* --- Helper utility --- */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============= 15) RESPONSIVE =============
   Strategy: preserve the original proven layout, just add viewport-fit
   support, safe areas, touch targets, and a few small-screen refinements.
   ============================================================== */

/* Global safety nets (apply at all widths) */
html, body { overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }
button, .icon-btn, .btn, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1rem); }

/* === Original 3-breakpoint structure (proven good) === */
@media (max-width: 1100px) {
  .header-top { grid-template-columns: auto 1fr auto; }
  .location-selector, .auth-btn.login { display: none; }
  .product-grid, .blog-grid, .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .quick-benefits { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .pd-wrap, .cart-wrap, .checkout-wrap, .dashboard-wrap, .listing-wrap { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 30px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .section { padding: 50px 0; }
  .header-top { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; }
  .search-wrap { display: none; }
  .menu-toggle { display: inline-flex; }
  .auth-btn.register { display: none; }
  .hero-slide { min-height: 380px; padding: 30px; }
  .hero-arrow { width: 38px; height: 38px; }
  .product-grid, .blog-grid, .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonials-grid, .features-grid { grid-template-columns: 1fr 1fr; }
  .flash-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .special-offer, .newsletter { padding: 30px; flex-direction: column; text-align: center; }

  /* === Product Details Page — responsive === */
  .pd-wrap { gap: 30px; padding: 24px 0; }
  .pd-gallery { position: static; }  /* disable sticky on mobile to avoid overlap */
  .pd-info h1 { font-size: 1.5rem; }
  .pd-price { font-size: 1.75rem; }
  .pd-meta { gap: 10px; font-size: 0.88rem; }
  .pd-price-row { gap: 10px; flex-wrap: wrap; }
  .pd-actions { gap: 8px; }
  .pd-actions .btn-lg { padding: 12px 18px; font-size: 0.92rem; }
  .pd-actions .icon-btn { width: 46px; height: 46px; }
  .pd-tabs { margin: 30px 0; }
  .tabs-nav button { padding: 12px 14px; font-size: 0.9rem; white-space: nowrap; }
  .pd-thumbs { gap: 8px; }
  /* The two inline-styled 2-col grids inside tab panes need to stack on mobile */
  #tab-care > div[style*="grid-template-columns:repeat(2"],
  #tab-reviews > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  /* Newsletter form: stack input above button on small screens so the
     Subscribe button isn't crushed next to the email input. */
  .newsletter-form {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: white;
  }
  .newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }
  .newsletter-form button {
    width: 100%;
    padding: 12px 20px;
  }
  .flash-sale { padding: 30px; }
  .flash-head { flex-direction: column; align-items: flex-start; }
  .countdown .time-block { padding: 8px 10px; min-width: 56px; }
  .countdown .time-block strong { font-size: 1.2rem; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .cart-item img { width: 80px; height: 80px; }
  .cart-item .ci-actions { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .quick-benefits { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .product-grid, .blog-grid, .listing-grid, .features-grid, .testimonials-grid, .categories-grid, .footer-grid, .insta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .quick-benefits { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 1.4rem; }
  .pd-price { font-size: 1.6rem; }
  /* Product Details — additional tightening on small mobile */
  .pd-wrap { gap: 20px; padding: 16px 0; }
  .pd-main-image { aspect-ratio: 1/1; border-radius: var(--radius-md); }
  .pd-thumbs button { height: 64px; }
  .pd-meta { gap: 8px; font-size: 0.82rem; }
  .pd-meta .sku { display: none; }  /* hide SKU on very small screens */
  .pd-price { font-size: 1.5rem; }
  .pd-mrp { font-size: 0.95rem; }
  .pd-off { font-size: 0.85rem; }
  .pd-desc { font-size: 0.9rem; line-height: 1.6; }
  .pd-features { padding: 14px; }
  .pd-features li { font-size: 0.85rem; }
  .qty-row { gap: 10px; }
  .qty-control button { width: 34px; height: 34px; }
  .qty-control input { width: 42px; font-size: 0.95rem; }
  /* Stack all action buttons full-width for easier thumb tapping */
  .pd-actions { flex-direction: column; gap: 8px; }
  .pd-actions .btn-lg { width: 100%; padding: 14px; font-size: 0.95rem; }
  .pd-actions .icon-btn { width: 100%; height: 44px; border-radius: var(--radius-pill); }
  .pd-actions .icon-btn i { margin-right: 6px; }
  .pd-tabs { margin: 24px 0; }
  .tabs-nav { gap: 2px; margin-bottom: 20px; }
  .tabs-nav button { padding: 10px 12px; font-size: 0.82rem; }
  .specs-table td { padding: 10px 8px; font-size: 0.85rem; }
  .specs-table td:first-child { width: 42%; font-size: 0.78rem; }
  /* Reviews inside tab-pane — full width on small mobile */
  .tab-pane h3 { font-size: 1.1rem; }
  .stats-banner { grid-template-columns: 1fr 1fr; padding: 24px; }
  .potd { grid-template-columns: 1fr; padding: 30px; }
  .chat-widget { bottom: 16px; left: 16px; }
  .chat-bubble { width: 50px; height: 50px; font-size: 1.2rem; }
  .chat-window { width: calc(100vw - 32px); }
  .compare-bar { flex-wrap: wrap; padding: 10px; }
  .compare-items { width: 100%; }
  .quiz-modal { padding: 24px; }
  .order-info { grid-template-columns: 1fr; }
}

/* === Extra small Android (≤ 360px — minimal additions only) === */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .logo span small { display: none; }
  .logo { font-size: 1.25rem; }
  .icon-btn { width: 38px; height: 38px; }
  .header-actions { gap: 4px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-slide { min-height: 320px; padding: 20px; }
  .quick-benefit { padding: 12px 14px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 0.95rem; }
  .product-buttons .btn { padding: 8px 10px; font-size: 0.8rem; }
  .countdown .time-block { padding: 8px 6px; min-width: 50px; }
  .countdown .time-block strong { font-size: 1.1rem; }
  .countdown .time-block span { font-size: 0.62rem; }
  .section-head h2 { font-size: 1.4rem; }
  .stat-block .num { font-size: 1.8rem; }
  .newsletter { padding: 24px 16px; }
  .newsletter h2 { font-size: 1.4rem; }
  .newsletter p { font-size: 0.85rem; }
  .modal, .quiz-modal { padding: 20px 16px; }
  .pd-info h1 { font-size: 1.25rem; }
  .pd-price { font-size: 1.5rem; }
  /* Product details — extra-small screens */
  .pd-wrap { gap: 16px; padding: 12px 0; }
  .pd-thumbs button { height: 56px; }
  .pd-actions .btn-lg { font-size: 0.9rem; padding: 12px; }
  .specs-table td { padding: 8px 6px; font-size: 0.8rem; }
  .specs-table td:first-child { width: 45%; }
}

/* === Desktop upscaling (1440px+) — gentle, non-breaking === */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  .flash-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .section { padding: 80px 0; }
  .flash-grid { grid-template-columns: repeat(6, 1fr); }
  .product-grid, .blog-grid, .listing-grid { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .features-grid { grid-template-columns: repeat(6, 1fr); }
}

/* === Landscape phones === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slide { min-height: 320px; padding: 24px 32px; }
  .hero-content h1 { font-size: 1.5rem; }
  .quick-benefits { display: none; }
  .page-hero { padding: 24px 0; }
}

/* === Print === */
@media print {
  .header, .footer, .chat-widget, .compare-bar, .scroll-top, .promo-bar { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ============================================================
   === NEW FEATURES — Phase 2-6 Styles ===
   ============================================================ */

/* === Loyalty Floating Pill === */
.loyalty-pill {
  position: fixed; bottom: 100px; right: 24px; z-index: 89;
  background: linear-gradient(135deg, #FFD54F, #FF9800);
  color: #1B5E20; border: 0; border-radius: 50px;
  padding: 10px 18px; font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(255,152,0,.4);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: transform 0.2s ease;
}
.loyalty-pill:hover { transform: translateY(-2px) scale(1.05); }
.loyalty-pill i { font-size: 1.05rem; }
@media (max-width: 768px) { .loyalty-pill { bottom: 80px; right: 12px; padding: 8px 14px; font-size: 0.82rem; } }

/* === Loyalty Modal === */
.loyalty-modal { max-width: 720px; max-height: 90vh; overflow-y: auto; padding: 36px 28px; }
.loyalty-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.loyalty-tier-icon {
  width: 70px; height: 70px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.loyalty-tier-name { display: inline-block; background: var(--bg-alt); color: var(--text); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.loyalty-hero h2 { margin: 4px 0; font-size: 2rem; }
.loyalty-progress { background: var(--bg-alt); padding: 16px; border-radius: 12px; margin-bottom: 24px; }
.loyalty-progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.loyalty-progress-fill { height: 100%; background: linear-gradient(90deg, #2E7D32, #66BB6A); transition: width 0.6s ease; }
.loyalty-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.loyalty-tier-card { background: white; border: 2px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; transition: all 0.2s ease; }
.loyalty-tier-card.unlocked { background: var(--bg-alt); }
.loyalty-tier-card.current { border-color: var(--primary); box-shadow: 0 4px 12px rgba(46,125,50,.2); }
.loyalty-tier-card i { font-size: 1.6rem; margin-bottom: 6px; }
.loyalty-tier-card strong { display: block; margin-bottom: 4px; }
.loyalty-tier-card small { color: var(--text-muted); }
.loyalty-tier-card ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.loyalty-tier-card li { padding: 2px 0; }
.loyalty-referral { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); padding: 20px; border-radius: 14px; margin-bottom: 20px; }
.loyalty-referral h4 { margin: 0 0 8px; }
.referral-code { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.referral-code code { flex: 1; min-width: 120px; background: white; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: 1rem; color: var(--primary); letter-spacing: 1px; text-align: center; }
.loyalty-history { border-top: 1px solid var(--border); padding-top: 16px; }
.loyalty-history-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bg-alt); font-size: 0.88rem; }
.loyalty-history-item .plus { color: var(--success); font-weight: 700; }
.loyalty-history-item .minus { color: var(--danger); font-weight: 700; }
@media (max-width: 768px) { .loyalty-tiers { grid-template-columns: 1fr; } .loyalty-modal { padding: 24px 18px; } }

/* === Spin Wheel === */
.spin-offer { position: fixed; bottom: 24px; left: 24px; z-index: 95; max-width: 380px; animation: spinOfferIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes spinOfferIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.spin-offer-card { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.18); display: flex; align-items: center; gap: 12px; position: relative; border: 2px solid #FF9800; }
.spin-offer-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #FF9800, #F57C00); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spin-offer-card strong { display: block; }
.spin-offer-card p { font-size: 0.82rem; margin: 2px 0 0; color: var(--text-muted); }
.spin-offer-close { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px; }

.spin-modal { max-width: 480px; text-align: center; padding: 32px 24px; }
.spin-wheel-wrap { position: relative; width: 280px; height: 280px; margin: 24px auto; }
.spin-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--danger); z-index: 5; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.spin-wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 6px solid #FFD54F; transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.34, 1.0); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.spin-seg { position: absolute; inset: 0; clip-path: polygon(50% 50%, 50% 0%, 100% 0%); transform: rotate(calc(var(--i) * (360deg / var(--n)))); transform-origin: 50% 50%; background: var(--c); }
.spin-seg span { position: absolute; left: 70%; top: 30%; transform: translate(-50%, -50%) rotate(calc(var(--i) * (360deg / var(--n)) + (180deg / var(--n)))); font-size: 0.7rem; font-weight: 700; color: white; text-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; }
.spin-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: white; border: 4px solid #FFD54F; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #FF9800; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 2; }
.spin-tnc { display: block; margin-top: 16px; color: var(--text-muted); font-size: 0.78rem; }
@media (max-width: 480px) { .spin-offer { left: 12px; right: 12px; max-width: none; } .spin-wheel-wrap { width: 240px; height: 240px; } }

/* === Product Variants === */
.variant-picker { margin: 20px 0; }
.variant-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.variant-name { color: var(--text); font-weight: 600; margin-left: 4px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-opt { padding: 10px 18px; border: 2px solid var(--border); background: white; border-radius: var(--radius-pill); cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: all 0.2s ease; color: var(--text); }
.variant-opt:hover { border-color: var(--primary-light); }
.variant-opt.active { border-color: var(--primary); background: var(--primary); color: white; }
.variant-opt small { display: block; font-size: 0.7rem; opacity: 0.85; }

/* === Facet Tags (inline on product) === */
.facet-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.facet-tag { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--c) 15%, white); color: var(--c); padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.facet-tag i { font-size: 0.7rem; }
.ar-trigger { background: linear-gradient(135deg, #9C27B0, #673AB7); color: white; border: 0; padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.ar-trigger:hover { transform: scale(1.04); }

/* === Gift Wrap === */
.gift-wrap-card { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); border: 2px dashed #FF9800; border-radius: var(--radius-md); padding: 16px; margin: 16px 0; }
.gift-checkbox { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.gift-checkbox input { width: 20px; height: 20px; accent-color: #FF9800; }
.gift-mark { width: 36px; height: 36px; background: #FF9800; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.gift-text { flex: 1; }
.gift-text strong { display: block; }
.gift-text small { color: var(--text-muted); font-size: 0.78rem; }
.gift-price { color: #FF9800; font-weight: 700; }
.gift-message { margin-top: 12px; }
.gift-message textarea { width: 100%; border: 1px solid #FFB74D; border-radius: 8px; padding: 10px; font-family: inherit; resize: vertical; }
.gift-msg-count { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* === Delivery Date Picker === */
.delivery-picker { background: var(--bg-alt); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; }
.delivery-picker h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.delivery-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.delivery-chip { background: white; border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; }
.delivery-chip:hover, .delivery-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.delivery-picker input[type="date"] { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; }
.delivery-festivals { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fest-tag { background: #FFE0B2; color: #E65100; padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }

/* === Order Tracking Timeline === */
.order-tracker { background: white; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.ot-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.ot-id { color: var(--text-muted); margin: 4px 0 0; }
.ot-eta { background: var(--bg-alt); padding: 12px 18px; border-radius: 10px; text-align: right; }
.ot-eta small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.ot-eta strong { color: var(--primary); }
.ot-timeline { position: relative; padding-left: 30px; }
.ot-timeline::before { content: ""; position: absolute; left: 18px; top: 16px; bottom: 16px; width: 2px; background: var(--border); }
.ot-stage { position: relative; padding: 0 0 24px 40px; }
.ot-stage:last-child { padding-bottom: 0; }
.ot-dot { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: white; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); z-index: 2; }
.ot-stage.done .ot-dot { background: var(--success); border-color: var(--success); color: white; }
.ot-stage.active .ot-dot { background: var(--primary); border-color: var(--primary); color: white; animation: pulse 2s infinite; }
.ot-stage.done::before, .ot-stage.active::before { content: ""; position: absolute; left: 18px; top: 36px; bottom: -24px; width: 2px; background: var(--primary); z-index: 1; }
.ot-stage:last-child::before { display: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,125,50,.5); } 50% { box-shadow: 0 0 0 8px rgba(46,125,50,0); } }
.ot-info strong { display: block; }
.ot-info small { color: var(--text-muted); }
.ot-when { display: block; margin-top: 4px; color: var(--primary) !important; font-weight: 600; font-size: 0.78rem !important; }
.ot-items { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.ot-items h4 { margin: 0 0 14px; }
.ot-items-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.ot-item { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); padding: 8px 12px; border-radius: 10px; flex: 1 1 200px; }
.ot-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.ot-item strong { display: block; font-size: 0.85rem; }
.ot-item span { color: var(--primary); font-weight: 700; font-size: 0.85rem; }
.ot-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 768px) { .ot-header { flex-direction: column; } .ot-eta { text-align: left; width: 100%; } }

/* === Plant of Month === */
.pom-widget { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: center; background: white; border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-md); }
.pom-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.pom-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pom-badge { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #FFD54F, #FF9800); color: #1B5E20; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.pom-content h2 { font-size: 1.6rem; margin: 8px 0; }
.pom-stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; font-size: 0.85rem; color: var(--text-muted); }
.pom-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pom-vote-note { margin-top: 12px; font-size: 0.82rem; color: var(--accent); }
@media (max-width: 768px) { .pom-widget { grid-template-columns: 1fr; padding: 20px; } .pom-img { max-width: 240px; margin: 0 auto; } }

/* === Success Stories === */
.success-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 30px; }
.success-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.success-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.success-img { aspect-ratio: 16/9; overflow: hidden; }
.success-img img { width: 100%; height: 100%; object-fit: cover; }
.success-body { padding: 20px; }
.success-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.success-stats span { display: inline-flex; align-items: center; gap: 4px; }
.success-stats i { color: var(--primary); }
.success-body h3 { font-size: 1.15rem; margin: 0 0 8px; }
.success-body p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.success-author { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--bg-alt); }
.success-author img { width: 40px; height: 40px; border-radius: 50%; }
.success-author strong { display: block; font-size: 0.88rem; }
.success-author small { color: var(--text-muted); font-size: 0.75rem; }
.success-cta { text-align: center; }
@media (max-width: 768px) { .success-grid { grid-template-columns: 1fr; gap: 16px; } }

/* === Q&A === */
.qa-section { background: white; padding: 24px; border-radius: var(--radius-lg); }
.qa-section h3 { margin: 0 0 16px; }
.qa-ask { display: flex; gap: 8px; margin-bottom: 20px; }
.qa-ask input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); outline: none; }
.qa-ask input:focus { border-color: var(--primary); }
.qa-item { padding: 16px 0; border-bottom: 1px solid var(--bg-alt); }
.qa-q { margin-bottom: 8px; }
.qa-meta { color: var(--text-muted); font-size: 0.8rem; margin-left: 6px; }
.qa-a { padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; margin: 8px 0; font-size: 0.92rem; }
.qa-seller-badge { background: var(--accent); color: white; padding: 1px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; margin-right: 4px; }
.qa-helpful { background: none; border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; font-size: 0.78rem; cursor: pointer; color: var(--text-muted); }
.qa-helpful:hover { border-color: var(--primary); color: var(--primary); }
.qa-empty { color: var(--text-muted); text-align: center; padding: 24px; }

/* === Photo Reviews === */
.photo-reviews { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.photo-reviews h3 { margin: 0 0 16px; }
.photo-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.photo-review-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-review-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.photo-review-info { padding: 12px; }
.photo-review-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.photo-review-user img { width: 32px; height: 32px; border-radius: 50%; }
.photo-review-user strong { display: block; font-size: 0.85rem; }
.photo-review-user small { color: var(--text-muted); font-size: 0.72rem; }
.photo-review-card p { font-size: 0.85rem; margin: 8px 0 0; }
@media (max-width: 768px) { .photo-review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-review-grid { grid-template-columns: 1fr; } }

/* === Voice / Visual Search === */
.voice-mic { background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--text-muted); font-size: 0.95rem; }
.voice-mic:hover { color: var(--primary); }
.voice-mic.listening { color: var(--danger); animation: micPulse 1s infinite; }
@keyframes micPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.visual-search-modal { max-width: 720px; }
.vs-upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s ease; margin: 16px 0; }
.vs-upload-zone:hover, .vs-upload-zone.dragover { border-color: var(--primary); background: var(--bg-alt); }
.vs-upload-zone i { font-size: 3rem; color: var(--primary); margin-bottom: 12px; }
.vs-results { margin-top: 20px; }
.vs-results h3 { margin-bottom: 16px; }
.vs-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vs-note { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 480px) { .vs-results-grid { grid-template-columns: 1fr; } }

/* === AR === */
.ar-modal { max-width: 720px; }
.ar-stage { position: relative; width: 100%; aspect-ratio: 4/3; background: #1B5E20; border-radius: var(--radius-md); overflow: hidden; }
.ar-stage video, .ar-stage .ar-plant { position: absolute; }
.ar-stage video { width: 100%; height: 100%; object-fit: cover; }
.ar-stage.ar-no-cam { background: linear-gradient(135deg, #1B5E20, #2E7D32); display: flex; align-items: center; justify-content: center; color: white; }
.ar-stage.ar-no-cam::before { content: "📷 Camera not available - showing plant preview"; padding: 20px; text-align: center; }
.ar-plant { width: 200px; height: 200px; object-fit: contain; left: 50%; top: 50%; transform: translate(-50%, -50%); cursor: grab; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.ar-plant:active { cursor: grabbing; }
.ar-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; }
.ar-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.ar-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ar-btn:hover { background: white; }
.ar-tips { margin-top: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* === My Plants enhancements === */
.my-plant-card { background: white; border-radius: var(--radius-md); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); margin-bottom: 12px; flex-wrap: wrap; }
.my-plant-card img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.my-plant-card.needs-water { border-left: 4px solid var(--info); }
.my-plant-info { flex: 1; min-width: 200px; }
.my-plant-info h4 { margin: 0 0 2px; }
.my-plant-info small { color: var(--text-muted); }
.my-plant-stats { display: flex; gap: 12px; margin-top: 6px; font-size: 0.85rem; }
.my-plant-stats .warn { color: var(--info); font-weight: 600; }
.my-plant-stats .ok { color: var(--text-muted); }
.my-plant-reminders { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 0.78rem; }
.reminder { background: var(--bg-alt); padding: 4px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.reminder.due { background: #FFF3E0; border: 1px solid #FF9800; }
.reminder.due strong { color: #E65100; }
.my-plant-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* === Care Streak === */
.care-streak-card { background: linear-gradient(135deg, #FF6B35, #F7931E); color: white; padding: 16px 20px; border-radius: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.streak-flame { width: 50px; height: 50px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.care-streak-card strong { display: block; font-size: 1.1rem; }
.care-streak-card small { opacity: 0.9; }

/* === Timeline modal === */
.timeline-modal { max-width: 720px; }
.timeline-upload { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin: 16px 0; align-items: center; }
.timeline-upload label { cursor: pointer; margin: 0; }
.timeline-upload input[type="text"] { padding: 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.timeline-photo { background: var(--bg-alt); border-radius: 10px; overflow: hidden; }
.timeline-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.timeline-photo-info { padding: 8px 10px; }
.timeline-photo-info small { color: var(--text-muted); }
.timeline-photo-info p { margin: 4px 0 0; font-size: 0.82rem; }
.timeline-empty { grid-column: 1/-1; text-align: center; color: var(--text-muted); padding: 20px; }
@media (max-width: 768px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } .timeline-upload { grid-template-columns: 1fr; } }

/* === Size Helper === */
.size-helper { background: var(--bg-alt); border-radius: var(--radius-md); padding: 14px; margin: 16px 0; }
.size-helper summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.size-helper-body { padding-top: 12px; }
.size-helper-body label { display: block; font-size: 0.82rem; margin-bottom: 10px; color: var(--text-muted); }
.size-helper-body select { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; margin-top: 4px; }
.rec-card { background: white; padding: 12px; border-radius: 8px; margin-top: 10px; font-size: 0.88rem; }

/* === Share modal === */
.share-link-box { display: flex; gap: 6px; margin: 16px 0; }
.share-link-box input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.82rem; }
.share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wishlist-preview { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.wishlist-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wl-preview-item { text-align: center; }
.wl-preview-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.wl-preview-item span { display: block; font-size: 0.72rem; margin-top: 4px; }
@media (max-width: 480px) { .wishlist-preview-grid { grid-template-columns: repeat(2, 1fr); } }

/* === Quiz save badge === */
.quiz-result .points-badge { background: linear-gradient(135deg, #FFD54F, #FF9800); color: #1B5E20; padding: 4px 12px; border-radius: 20px; display: inline-block; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
