/* ============================================
   AHMED Molty FOAM — FUTURISTIC CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* === DESIGN TOKENS === */
:root {
  /* Colors */
  --primary:          #00c9e8;
  --primary-dim:      #009db8;
  --primary-dark:     #00687e;
  --primary-glow:     rgba(0, 201, 232, 0.25);
  --primary-glow-sm:  rgba(0, 201, 232, 0.12);
  --secondary:        #72ddfd;
  --accent-teal:      #00e5d4;

  /* Surfaces */
  --bg:               #040c10;
  --bg-2:             #071219;
  --surface:          #0a1820;
  --surface-2:        #0e2030;
  --surface-3:        #132940;
  --surface-card:     rgba(10, 24, 32, 0.85);
  --surface-high:     rgba(19, 41, 64, 0.7);

  /* Text */
  --text:             #e8f4f8;
  --text-muted:       #7fadb8;
  --text-dim:         #4a7a8a;
  --on-primary:       #001c22;

  /* Borders */
  --border:           rgba(0, 201, 232, 0.12);
  --border-glow:      rgba(0, 201, 232, 0.3);

  /* Fonts */
  --font-headline:    'Manrope', sans-serif;
  --font-body:        'Inter', sans-serif;

  /* Radii */
  --radius-sm:        0.5rem;
  --radius:           1rem;
  --radius-lg:        1.5rem;
  --radius-xl:        2rem;
  --radius-2xl:       3rem;
  --radius-full:      9999px;

  /* Shadows */
  --shadow-glow:      0 0 30px rgba(0, 201, 232, 0.2);
  --shadow-card:      0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl:        0 20px 60px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === MATERIAL ICONS === */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: var(--radius-full); }

/* === SELECTION === */
::selection { background: rgba(0, 201, 232, 0.25); color: var(--secondary); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); line-height: 1.15; font-weight: 800; }

.display { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.03em; }
.h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; }
.label-xs { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.label-sm { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar.scrolled {
  background: rgba(4, 12, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.nav-brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-brand span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-btn:hover {
  background: var(--primary-glow-sm);
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 1rem; height: 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2rem;
  cursor: pointer;
  padding: 0.25rem;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(4, 12, 16, 0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 5rem 1.25rem 2rem;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  text-align: center;
}
.nav-mobile .btn { width: min(100%, 20rem); justify-content: center; }
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--on-primary);
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 35px var(--primary-glow), 0 6px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow-sm);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--secondary); }

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.0625rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px var(--primary-glow), var(--shadow-card);
  transform: translateY(-4px);
}

.card-glow {
  box-shadow: 0 0 0 1px var(--border), inset 0 0 20px rgba(0, 201, 232, 0.03);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px var(--primary-glow), var(--shadow-xl);
  transform: translateY(-6px);
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card__img { transform: scale(1.07); }
.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-sale { background: rgba(255,80,80,0.85); color: #fff; backdrop-filter: blur(8px); }
.badge-best { background: rgba(0, 201, 232, 0.85); color: var(--on-primary); backdrop-filter: blur(8px); }
.badge-new { background: rgba(0,229,212,0.85); color: var(--on-primary); backdrop-filter: blur(8px); }

.product-card__quick-add {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: rgba(4, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover .product-card__quick-add {
  opacity: 1;
  transform: translateY(0);
}
.product-card__quick-add:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.product-card__body { padding: 1.25rem; }
.product-card__brand { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.375rem; }
.product-card__title { font-family: var(--font-headline); font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; transition: color 0.2s; }
.product-card:hover .product-card__title { color: var(--primary); }
.product-card__price { display: flex; align-items: baseline; gap: 0.5rem; }
.product-card__price-curr { font-family: var(--font-headline); font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.product-card__price-orig { font-size: 0.875rem; color: var(--text-dim); text-decoration: line-through; }
.product-card__price-label { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================
   FORMS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow-sm);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; }

/* ============================================
   HERO
   ============================================ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,104,126,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(0,229,212,0.08) 0%, transparent 50%),
              linear-gradient(to right, rgba(4,12,16,0.9) 40%, rgba(4,12,16,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; }

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.trust-item .material-symbols-outlined { color: var(--primary); }
.trust-item span:last-child { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================
   STAT COUNTERS
   ============================================ */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat-number {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.375rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
}
.review-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px var(--primary-glow-sm);
}
.review-stars { display: flex; gap: 0.125rem; color: var(--primary); margin-bottom: 1rem; }
.review-text { color: var(--text-muted); font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; }
.reviewer-name { font-weight: 700; font-size: 0.9375rem; }
.reviewer-loc { font-size: 0.8125rem; color: var(--text-dim); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 3rem;
}
.footer-grid > * { min-width: 0; }
.footer-brand { font-family: var(--font-headline); font-size: 1.125rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.footer-desc { color: var(--text-dim); font-size: 0.875rem; line-height: 1.7; max-width: 260px; margin-bottom: 1.5rem; }
.footer-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { color: var(--text-dim); font-size: 0.875rem; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.footer-copy { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.05em; text-align: center; }
.social-links { display: flex; gap: 0.75rem; }
.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary-glow-sm); border-color: var(--border-glow); color: var(--primary); }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-form { display: flex; gap: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.newsletter-form input { background: transparent; border: none; outline: none; padding: 0.75rem 1.25rem; color: var(--text); flex: 1; font-family: var(--font-body); font-size: 0.875rem; }
.newsletter-form input::placeholder { color: var(--text-dim); }
.newsletter-form button { padding: 0.75rem 1.25rem; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; transition: var(--transition); }
.newsletter-form button:hover { background: var(--primary-dim); }

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.chatbot-fab__tooltip {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
  margin-right: -0.5rem;
}
.chatbot-fab:hover .chatbot-fab__tooltip { opacity: 1; transform: translateX(-16px); }
.chatbot-fab__btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.4);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.chatbot-fab:hover .chatbot-fab__btn { transform: scale(1.1); box-shadow: 0 0 35px var(--primary-glow); }

.chatbot-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 340px;
  height: 480px;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow-sm);
  z-index: 501;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media(max-width: 480px) {
  .chatbot-window { bottom: 0; right: 0; width: 100%; height: 100vh; border-radius: 0; }
}

.chatbot-header {
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.chatbot-header button:hover { color: var(--primary); }

.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}
.chatbot-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  line-height: 1.5;
}
.chatbot-msg strong { color: var(--primary); }
.chatbot-msg.bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  background: var(--primary-dark);
  color: var(--on-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-msg.typing .dots {
  display: inline-block;
}
.chatbot-msg.typing .dots span {
  animation: typing 1.4s infinite ease-in-out both;
  font-size: 1.25rem;
  line-height: 1;
}
.chatbot-msg.typing .dots span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-msg.typing .dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

.chatbot-input {
  display: flex;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}
.chatbot-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
}
.chatbot-input button {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.chatbot-input button:hover { transform: scale(1.1); box-shadow: 0 0 10px var(--primary-glow); }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 1.25rem 1.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface-2); font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; }
.compare-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.compare-table tbody tr:hover { background: var(--primary-glow-sm); }
.compare-table tbody td:first-child { font-weight: 600; }
.compare-table tfoot td { border-bottom: none; padding-top: 1.5rem; }

/* ============================================
   CART
   ============================================ */
.cart-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--border-glow); }
.cart-item__img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__brand { font-size: 0.6875rem; color: var(--primary); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-item__name { font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; margin: 0.25rem 0; }
.cart-item__meta { font-size: 0.8125rem; color: var(--text-dim); }
.cart-item__price { font-family: var(--font-headline); font-size: 1.25rem; font-weight: 800; color: var(--primary); flex-shrink: 0; text-align: right; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem;
}
.qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.875rem;
}
.qty-btn:hover { background: var(--primary-glow-sm); color: var(--primary); }
.qty-value { padding: 0 0.75rem; font-weight: 700; font-size: 0.9375rem; }

.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}
.order-row { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0; }
.order-row + .order-row { border-top: 1px solid var(--border); }
.order-total { font-family: var(--font-headline); font-size: 1.75rem; font-weight: 800; color: var(--primary); }

/* ============================================
   CHECKOUT STEPS
   ============================================ */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 3rem; }
.step { display: flex; align-items: center; }
.step-num {
  width: 2rem; height: 2rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--text-dim);
  transition: var(--transition);
}
.step.active .step-num { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.step.done .step-num { background: var(--primary-dark); color: var(--on-primary); border-color: var(--primary-dark); }
.step-label { font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem; color: var(--text-dim); }
.step.active .step-label { color: var(--primary); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 0.75rem; }

/* ============================================
   PAYMENT OPTIONS
   ============================================ */
.payment-option { position: relative; }
.payment-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-option label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.payment-option input:checked + label {
  border-color: var(--primary);
  background: var(--primary-glow-sm);
  box-shadow: 0 0 16px var(--primary-glow-sm);
}
.payment-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.payment-check { margin-left: auto; color: var(--primary); opacity: 0; transition: var(--transition); }
.payment-option input:checked ~ .payment-check { opacity: 1; }
.payment-option input:checked + label .payment-check { opacity: 1; }

/* ============================================
   GLOW EFFECTS & DECORATIONS
   ============================================ */
.glow-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--primary); }
  50% { opacity: 0.5; box-shadow: 0 0 20px var(--primary); }
}

.aurora-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 10% 50%,  rgba(0,104,126,0.2)  0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 90% 20%, rgba(0,229,212,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: scan 8s linear infinite;
  opacity: 0.4;
}
@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   PAGE HERO BANNER
   ============================================ */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,104,126,0.2) 0%, transparent 60%);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.8125rem; }
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { font-size: 0.75rem; }

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab-btn {
  padding: 0.75rem 1.25rem;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  flex: 0 0 auto;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================
   SIZE SELECTOR
   ============================================ */
.size-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.size-btn {
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); }
.size-btn.active {
  background: var(--primary-glow-sm);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow-sm);
}

/* ============================================
   GALLERY THUMBNAILS
   ============================================ */
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb:hover { border-color: var(--border-glow); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 16px var(--primary-glow-sm); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   TRUST BADGES (Bento)
   ============================================ */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.trust-badge:hover { border-color: var(--border-glow); }
.trust-badge .material-symbols-outlined { color: var(--primary); font-size: 1.75rem; }
.trust-badge span:last-child { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ============================================
   ABOUT VALUES CARDS
   ============================================ */
.value-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--border-glow); transform: translateY(-6px); box-shadow: 0 0 30px var(--primary-glow-sm); }
.value-card.featured {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dim) 100%);
  color: var(--on-primary);
  border-color: transparent;
}
.value-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary-glow-sm);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.value-card.featured .value-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
  color: var(--on-primary);
}

/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.contact-info-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--border-glow); box-shadow: 0 0 20px var(--primary-glow-sm); }
.contact-info-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.contact-info-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 700; margin-bottom: 0.375rem; }
.contact-info-value { font-family: var(--font-headline); font-size: 1rem; font-weight: 700; }
.contact-info-sub { font-size: 0.8125rem; color: var(--text-dim); margin-top: 0.25rem; }
.contact-info-sub-2 { font-size: 0.8125rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ============================================
   INCENTIVE BANNER
   ============================================ */
.incentive-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 201, 232, 0.06);
  border: 1px solid rgba(0, 201, 232, 0.15);
  border-radius: var(--radius-lg);
}
.incentive-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--primary-glow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   SPEC TABLE
   ============================================ */
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.spec-table tr:nth-child(even) { background: var(--surface-2); }
.spec-table th, .spec-table td { padding: 1rem 1.25rem; }
.spec-table th { font-weight: 700; width: 35%; color: var(--text); border-right: 1px solid var(--border); }
.spec-table td { color: var(--text-muted); }

/* ============================================
   GUARANTEE CARD
   ============================================ */
.guarantee-card {
  background: linear-gradient(135deg, rgba(0,104,126,0.1), rgba(0,201,232,0.05));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.guarantee-item { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.875rem 0; }
.guarantee-item + .guarantee-item { border-top: 1px solid var(--border); }
.guarantee-item .material-symbols-outlined { color: var(--primary); margin-top: 2px; }

/* ============================================
   SHOP FILTERS
   ============================================ */
.filter-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
}
.filter-title { font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; color: var(--primary); margin-bottom: 1.5rem; }
.filter-section { margin-bottom: 2rem; }
.filter-section-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.875rem; }
.filter-checkbox { display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0; cursor: pointer; }
.filter-checkbox input[type="checkbox"] { accent-color: var(--primary); width: 1.0625rem; height: 1.0625rem; cursor: pointer; }
.filter-checkbox span { font-size: 0.9375rem; color: var(--text-muted); transition: color 0.2s; }
.filter-checkbox:hover span { color: var(--primary); }

/* Price range slider */
.range-slider { width: 100%; accent-color: var(--primary); cursor: pointer; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.page-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: 0 0 16px var(--primary-glow); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem !important; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions { gap: 0.25rem; }
  .nav-btn { width: 2.25rem; height: 2.25rem; }
  .nav-mobile { justify-content: flex-start; }
  .hero { min-height: 100svh; }
  .display { font-size: 2.5rem; }
  .h1 { font-size: 2rem; }
  .h2 { font-size: 1.75rem; }
  .page-hero { padding: 8rem 0 3.5rem; }
  .breadcrumb { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .footer .container > div[style*="display:flex;justify-content:space-between"] {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .newsletter-form input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
  }
  .newsletter-form button {
    width: 100%;
    min-height: 3rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--on-primary);
  }
  .shop-layout { flex-direction: column; }
  .shop-layout > aside { width: 100% !important; }
  .sort-bar { align-items: stretch; }
  .sort-bar > * { width: 100%; }
  .sort-bar > div {
    width: 100%;
    justify-content: space-between;
  }
  .sort-bar > div > * { flex: 1 1 auto; }
  .sort-bar > div > div[style*="position:relative"] { flex: 1 1 100%; }
  .sort-bar input,
  .sort-bar select { width: 100% !important; }
  .list-view .product-card { flex-direction: column; max-height: none; }
  .list-view .product-card__img-wrap { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .cart-item { flex-wrap: wrap; }
  .cart-item { gap: 1rem; padding: 1rem; }
  .cart-item__img { width: 5rem; height: 5rem; }
  .cart-item__price { width: 100%; text-align: left; }
  .order-summary { position: static; top: auto; }
  .promo-row { flex-direction: column; }
  .compare-table { font-size: 0.875rem; }
  .compare-table th, .compare-table td { padding: 0.75rem 1rem; }
  .compare-table,
  .spec-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table th,
  .compare-table td,
  .spec-table th,
  .spec-table td { white-space: nowrap; }
  .spec-table th { width: auto; min-width: 10rem; }
  .step-indicator { flex-wrap: wrap; row-gap: 0.75rem; }
  .step-label { display: none; }
  .step-line { flex: 1 0 1.5rem; min-width: 1.5rem; margin: 0 0.25rem; }
  .payment-option label { align-items: flex-start; }
  .payment-check { margin-left: 0; }
  .filter-sidebar { position: static; }
  .trust-item { align-items: flex-start; }
  .incentive-banner { flex-direction: column; align-items: flex-start; }
  .contact-info-card,
  .review-card,
  .value-card,
  .guarantee-card { padding: 1.5rem; }
  .contact-info-value,
  .footer-desc,
  .product-card__title { overflow-wrap: anywhere; }
  body [style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  body [style*="display:grid"][style*="grid-template-columns:1fr 360px"],
  body [style*="display:grid"][style*="grid-template-columns:repeat(2,1fr)"],
  body [style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"],
  body [style*="display:grid"][style*="grid-template-columns:repeat(4,1fr)"],
  body [style*="display:grid"][style*="grid-template-columns:repeat(3, 1fr)"],
  body [style*="display:grid"][style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  body [style*="display:flex"][style*="justify-content:space-between"][style*="align-items:center"] {
    flex-wrap: wrap;
  }
  #productPage [style*="display:flex;gap:1rem;align-items:center;margin-bottom:1rem;"] { flex-wrap: wrap; }
  #productPage #addToCartBtn,
  #productPage #buyNowBtn { flex: 1 1 100%; width: 100%; }
  #tab-delivery > div { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }
  .display { font-size: 2rem; }
  .product-card__body { padding: 1rem; }
  .pagination { flex-wrap: wrap; }
  .page-btn { width: 2.5rem; height: 2.5rem; }
  #productPage .thumb-row { grid-template-columns: repeat(2, 1fr); }
  .sort-bar > div { flex-direction: column; align-items: stretch !important; }
  .nav-mobile { padding-left: 1rem; padding-right: 1rem; }
}

/* ============================================
   UTILITY HELPERS
   ============================================ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.sticky-top { position: sticky; top: 6rem; }
.mt-auto { margin-top: auto; }
.line-through { text-decoration: line-through; }
.italic { font-style: italic; }
.rounded-full { border-radius: var(--radius-full); }
