:root {
  /* Light Color Palette */

  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-dark: #ffffff;
  --bg-card: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --border-light: #e2e8f0;
  --border-focus: #bae6fd;
  
  /* Layout & Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ========================================================
   SCROLL ANIMATIONS (AOS-style, pure CSS + JS triggers)
   ======================================================== */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.7s;
}
[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"]    { transform: scale(0.88); }
[data-aos="fade"]       { transform: none; }

[data-aos].aos-animate {
  opacity: 1;
  transform: none !important;
}

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 242, 254, 0.3); }
  50%       { box-shadow: 0 0 30px rgba(0, 242, 254, 0.7); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.float-anim  { animation: floatY 4s ease-in-out infinite; }
.pulse-glow  { animation: pulseGlow 2.5s ease-in-out infinite; }
.spin-slow   { animation: spinSlow 12s linear infinite; }

/* ========================================================
   BASE RESET & BODY
   ======================================================== */
* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: clip;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 107px; /* offset for fixed shipping banner (37px) + fixed navbar (70px) */
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}


/* ========================================================
   GLASSMORPHISM UTILITIES
   ======================================================== */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #4facfe 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.55);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

/* ========================================================
   FORMS
   ======================================================== */
.form-control {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.35rem 0.6rem 0.35rem 1.2rem;
  max-width: 320px;
  margin: 0 1.5rem;
  flex: 1;
  min-width: 180px;
  transition: all 0.3s ease;
}
.navbar-search:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  background: #ffffff;
}
.navbar-search input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}
.navbar-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-search button:hover {
  transform: scale(1.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar-brand span { color: var(--accent-cyan); }

/* Navbar Logo Styles */
.navbar-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  height: 44px;
  width: auto;
  filter: invert(1);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo-link:hover .navbar-logo {
  transform: scale(1.02);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text-primary); }

/* Cart Button & Badge Styles */
.nav-links .cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
  transition: all 0.3s ease;
  margin-left: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links .cart-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.nav-links .cart-btn.active {
  border-bottom: 1px solid var(--accent-cyan);
  padding-bottom: 0;
}

.nav-links .cart-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-links .cart-btn:hover .cart-icon {
  transform: scale(1.1);
}

.nav-links .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-emerald);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #0d0f14;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
}

/* ========================================================
   GRID SYSTEM
   ======================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.grid { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ========================================================
   PRODUCT CARDS (full list page — standard)
   ======================================================== */
.product-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 242, 254, 0.25);
}

.product-image {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #e2e8f0;
  overflow: hidden;
  display: block;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.product-price {
  font-size: 1.35rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

/* ========================================================
   COMPACT PRODUCT CARDS (homepage swiper)
   ======================================================== */
.product-card-compact {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 0; /* Prevents flex from stretching due to nowrap content */
}
.product-card-compact:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.15);
}
.product-card-compact .product-image-sm {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  margin-bottom: 0.75rem;
}
.product-card-compact .product-title-sm {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}
.product-card-compact .product-cat-sm {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-card-compact .product-price-sm {
  font-size: 1.3rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Ensure text truncation works inside swiper slides */
.swiper-slide {
  min-width: 0;
  height: auto; /* Allow height to stretch */
}

.featured-swiper {
  padding-bottom: 3.5rem !important;
}


/* ========================================================
   STATS BAR
   ======================================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent-cyan), #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  display: block;
}

/* ========================================================
   CATEGORY PILLS
   ======================================================== */
.category-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}
.category-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.12);
}
.category-pill .pill-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

/* ========================================================
   PAYMENT METHOD SELECTOR
   ======================================================== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
  user-select: none;
}
.payment-option:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.04);
}
.payment-option.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}
.payment-option input[type="radio"] {
  accent-color: var(--accent-cyan);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.payment-option-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.payment-option-label strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.payment-option-label small {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
.payment-icons {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.payment-icon-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Free shipping banner */
.shipping-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ========================================================
   AGE GATE MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  max-width: 500px;
  padding: 3rem;
  text-align: center;
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
  margin-top: auto;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.footer-col h4 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.2s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  background: #f8fafc;
}

/* ========================================================
   ALERTS
   ======================================================== */
.alert { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--accent-emerald); color: var(--accent-emerald); }
.alert-error   { background: rgba(239, 68, 68, 0.1);  border: 1px solid #ef4444; color: #ef4444; }

/* ========================================================
   ACTIVE NAV
   ======================================================== */
.nav-links a.active {
  color: var(--accent-cyan);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 4px;
}

/* ========================================================
   REVIEWS
   ======================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}
.review-rating { color: #facc15; font-size: 1.1rem; margin-bottom: 0.5rem; }
.review-text { font-style: italic; color: var(--text-primary); line-height: 1.65; margin-bottom: 1.25rem; font-size: 0.95rem; }
.review-author { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.review-product-name { color: var(--accent-cyan); font-size: 0.8rem; margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 1px; }

/* Swiper specific additions for testimonials */
.reviews-swiper {
  padding: 1.5rem 0.5rem 3.5rem 0.5rem !important;
}
.reviews-swiper .review-card {
  height: 100%;
  margin-bottom: 1px; /* prevents layout overlaps */
}
.reviews-swiper .swiper-pagination {
  bottom: 0.5rem !important;
}

/* ========================================================
   STEPS / HOW TO SHOP
   ======================================================== */
.steps-container { display: flex; flex-direction: column; gap: 2rem; margin: 2.5rem 0; }
.step-item { display: flex; gap: 2rem; align-items: flex-start; padding: 1.75rem; transition: background-color 0.3s; }
.step-item:hover { background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-md); }
.step-number {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #4facfe 100%);
  color: #000;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}
.step-content h3 { margin-top: 0; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.step-content p { color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ========================================================
   SHIPPING POLICY
   ======================================================== */
.shipping-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.shipping-box { padding: 2rem; text-align: center; }
.shipping-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.badge-cold { background: rgba(0, 242, 254, 0.15); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-top: 0.5rem; }

/* ========================================================
   TYPOGRAPHY UTILITIES
   ======================================================== */
.glow-text { text-shadow: 0 0 12px rgba(0, 242, 254, 0.4); }
.accent-color { color: var(--accent-cyan); }
.shimmer-text {
  background: linear-gradient(90deg, var(--accent-cyan) 0%, #fff 40%, var(--accent-cyan) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ========================================================
   TIMELINE (about page)
   ======================================================== */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-emerald));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.9rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}
.timeline-year {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.timeline-item h4 { margin: 0 0 0.4rem 0; color: var(--text-primary); font-size: 1.05rem; }
.timeline-item p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* ========================================================
   RESEARCH PAGE — TOPIC CARDS
   ======================================================== */
.topic-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: default;
}
.topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.topic-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.topic-card h4 { margin: 0 0 0.5rem 0; color: var(--text-primary); font-size: 1.05rem; }
.topic-card p { margin: 0; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1100px) {
  .navbar { flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .nav-links a { margin-left: 0.5rem; margin-right: 0.5rem; }
  .nav-links .cart-btn { margin-left: 0.5rem; margin-right: 0.5rem; }
}

/* Reusable Grids */
.grid-sidebar { grid-template-columns: 250px 1fr; }
.grid-cart { grid-template-columns: 2fr 1fr; }

@media (max-width: 768px) {
  .grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
  .grid-cart { grid-template-columns: minmax(0, 1fr); }
  .stats-bar   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item   { border-right: none; border-bottom: 1px solid var(--border-light); }
  .container { padding: 1.5rem; }
  .glass { padding: 1.5rem !important; }

  .nav-toggle {
    display: block;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
  .navbar {
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .navbar-logo {
    height: 32px;
  }
  .navbar-search {
    flex: 1;
    max-width: none;
    margin: 0 0.25rem;
    min-width: 0;
  }
  .navbar-search input {
    min-width: 0;
    width: 100%;
  }
  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-light);
    z-index: 1005;
  }
  .nav-links.active {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  .grid-cols-4 { grid-template-columns: 1fr; }
  .stats-bar   { grid-template-columns: 1fr; }
  .container { padding: 1rem; }
}

/* ========================================================
   FORM ERRORS (CRISPY / BOOTSTRAP5)
   ======================================================== */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #ef4444 !important;
    font-weight: 500;
}
.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 1rem;
    color: #ef4444; /* red */
    font-size: 0.85rem;
}
.alert-danger, .alert-error {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    margin-bottom: 1rem;
}

