/* =============================================
   KAGI – E-Commerce Stylesheet
   ============================================= */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #D0405A;
  --yellow-dark: #A63348;
  --navy: #0f1724;
  --navy-mid: #1a2537;
  --navy-light: #232f3e;
  --text-primary: #0f1724;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg: transparent;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --success: #38a169;
  --danger: #e53e3e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --transition: 0.22s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1340px;
  --spinner-bg: #e2e8f0;
  --spinner-color: #0f1724;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--navy);
  color: #e2e8f0;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.top-bar strong {
  color: var(--yellow);
}

/* =============================================
   NAVBAR
   ============================================= */
#nav-root {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.08);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  /* Default for dark navbar */
  letter-spacing: -0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.logo-text.logo-dark {
  color: var(--navy);
  /* For light backgrounds */
}

.logo-k {
  color: var(--yellow);
  /* Clay red */
}


/* Location pill – in navbar */
.location-pill {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.location-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.loc-label {
  display: block;
  font-size: 11px;
  color: #a0aec0;
}

.loc-city {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 42px;
  max-width: 680px;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.search-bar:focus-within {
  border-color: var(--yellow);
}

.search-category {
  padding: 0 12px;
  background: #e8e8e8;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  color: var(--text-primary);
}

.search-input {
  flex: 1;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.search-btn {
  padding: 0 16px;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--yellow-dark);
}

/* Right nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-account {
  padding: 6px 10px;
}

.cart-btn {
  position: relative;
  padding: 6px 10px;
  color: #e2e8f0;
}

.cart-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.hamburger {
  display: none;
  color: #fff;
  font-size: 22px;
  padding: 6px;
}

/* =============================================
   CATEGORY NAV
   ============================================= */
.cat-nav {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Inner wrapper so pill + list sit in one flex row */
.cat-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

/* Location pill inside the ribbon */
.cat-nav .location-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.cat-nav .location-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cat-nav .loc-icon {
  font-size: 15px;
}

.cat-nav .loc-label {
  font-size: 10.5px;
  color: #718096;
  line-height: 1.2;
}

.cat-nav .loc-city {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

.cat-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin: 0;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-list::-webkit-scrollbar {
  display: none;
}

.cat-link {
  display: block;
  padding: 10px 14px;
  color: #cbd5e0;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.cat-link:hover,
.cat-link.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}



/* =============================================
   DYNAMIC FLOATING BACKGROUND
   ============================================= */
#floating-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.floating-item {
  position: absolute;
  width: 180px;
  height: auto;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter: grayscale(0.2) brightness(1.1);
  will-change: transform, opacity;
}

.floating-item img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -40px) rotate(5deg);
  }

  50% {
    transform: translate(-20px, -80px) rotate(-5deg);
  }

  75% {
    transform: translate(-50px, -40px) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* ─── FLOATING BACKGROUND ISOLATION ─── */
#floating-bg-container {
  position: absolute;
  top: 72px;
  /* Below navbar */
  left: 0;
  width: 100%;
  height: 85vh;
  /* Match hero height */
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ─── LOCATION MODAL VISIBILITY FIX ─── */
.modal-overlay {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* ─── LOCATION MODAL STYLES ─── */
.location-modal-box {
  max-width: 580px;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
}

/* Map search input inside the location picker */
.loc-map-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.loc-map-search:focus {
  border-color: #D0405A;
  box-shadow: 0 0 0 3px rgba(169, 71, 71, 0.1);
}


.loc-modal-content {
  padding: 32px;
}

.loc-modal-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a2537;
  margin-bottom: 8px;
}

.loc-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.loc-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.loc-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: all 0.2s;
}

.loc-tab.active {
  color: #1a2537;
}

.loc-tab.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #D0405A;
}

.loc-tab-pane {
  display: none;
}

.loc-tab-pane.active {
  display: block;
}

/* Map Picker */
.map-container {
  width: 100%;
  height: 240px;
  background: #f0f4f8;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  margin-bottom: 16px;
  border: 1px solid #ddd;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker {
  position: absolute;
  font-size: 24px;
  transform: translate(-50%, -100%);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  left: 50%;
  top: 50%;
}

.map-hint {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #999;
  pointer-events: none;
}

.map-status {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2537;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

/* Manual Form */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  margin-bottom: 24px;
}

.loc-tab-pane input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.loc-tab-pane input:focus {
  border-color: #D0405A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(169, 71, 71, 0.1);
}

.btn-save-loc {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
}

.hero-new {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background: transparent;
  overflow: hidden;
}

.hero-new-inner {
  max-width: 900px;
  z-index: 2;
  margin: 0 auto;
  padding-bottom: 120px;
}

.hero-mascot {
  margin-bottom: 24px;
}

.hero-mascot-emoji {
  font-size: 48px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.hero-new-title {
  font-size: clamp(34px, 5vw, 56px);
  /* Dropped from 42/6vw/72px */
  font-weight: 800;
  color: #0f1724;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-new-subtitle {
  font-size: 17px;
  /* Dropped from 20px */
  color: #4a5568;
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0.9;
}

/* Search bar in Hero */
.hero-search-wrap {
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hero-search-bar:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 10px 40px rgba(169, 71, 71, 0.15);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  color: #0f1724;
}

.hero-search-btn {
  background: var(--yellow);
  color: #fff;
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s;
}

.hero-search-btn:hover {
  background: #ff8800;
  transform: scale(1.05);
}

/* Explore Button */
.btn-explore {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  padding: 16px 40px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(169, 71, 71, 0.3);
  transition: all 0.3s cubic-bezier(.175, .885, .32, 1.275);
}

.btn-explore:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(169, 71, 71, 0.45);
}

.college-slider-wrap {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a0aec0;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.college-slider {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  background: transparent;
  padding: 20px 0;
}

.college-track {
  display: flex;
  width: max-content;
  animation: scroll-left 35s linear infinite;
  gap: 48px; /* Consistent gap between groups */
}

.college-group {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Precise loop point: - (Width of one group + Gap) */
    transform: translateX(calc(-50% - 24px));
  }
}

.institution-name {
  font-size: 18px;
  font-weight: 700;
  color: #cbd5e0;
  white-space: nowrap;
  transition: color 0.3s;
}

.institution-name:hover {
  color: #4a5568;
}

.institution-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.institution-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}

.institution-item:hover .institution-logo {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transform: scale(1.1);
}

/* TESTIMONIALS SIDEBAR (Right) */
.testimonials-sidebar {
  position: absolute;
  right: 10px; /* Shifted further right to provide more center breathing room */
  top: 40px;
  bottom: 180px; /* Clear the college slider at the bottom */
  width: 320px;
  max-height: 500px; /* Clearly bounded height */
  overflow: hidden; /* Hide scrollbars */
  background: transparent;
  padding: 20px 0;
  z-index: 5;
  /* Ensure no scrollbars appear in any browser */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-sidebar::-webkit-scrollbar {
  display: none;
}

/* GUIDE SECTION (Redesigned to match screenshot) */
.guide-section {
  padding: 100px 0;
  background: #1a2537;
  /* Restored Dark Blue */
  overflow: hidden;
  position: relative;
}

.guide-container {
  max-width: 1400px;
  margin: 0 auto;
}

.guide-header {
  text-align: center;
  margin-bottom: 60px;
}

.guide-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.guide-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.guide-slider-container {
  position: relative;
  width: 100%;
  padding: 0 50px;
}

.guide-slider-track {
  display: flex;
  align-items: center;
  gap: 30px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px 0;
}

.guide-card {
  flex: 0 0 350px;
  height: 480px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  transform: scale(0.9);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.guide-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
}

.guide-card-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Active Card Style (Split Image/Text) */
.guide-card.active {
  flex: 0 0 850px;
  opacity: 1;
  transform: scale(1);
  background: #ffffff;
  display: flex;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  border: none;
}

.guide-card.active .guide-card-image {
  position: relative;
  width: 55%;
  height: 100%;
}

.guide-card.active .guide-card-content {
  position: relative;
  width: 45%;
  height: 100%;
  background: #ffffff;
  color: #0f1724;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  text-align: left;
}

.guide-card.active .guide-card-content p {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 24px;
}

.guide-card.active .guide-card-title {
  font-size: 32px;
  color: #0f1724;
  margin-bottom: 20px;
}

.guide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}

.guide-prev,
.guide-next {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #0f1724;
  font-size: 28px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guide-prev:hover,
.guide-next:hover {
  background: var(--yellow);
  color: #fff;
  transform: scale(1.15);
}

.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scroll-up 30s linear infinite;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
  border-color: var(--yellow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 18px;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  color: #0f1724;
  font-size: 15px;
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 12px;
}

.testimonial-quote {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  font-style: italic;
}

/* Annotation Arrow */
.arrow-annotation {
  position: absolute;
  top: 15px;
  left: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 100;
}

.arrow-text {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #e8613c;
  line-height: 1.1;
  transform: rotate(-10deg);
  margin-top: 5px;
}

.arrow-svg {
  width: 60px;
  height: 40px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .testimonials-sidebar {
    display: none;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* BESTSELLERS SECTION */
.bestsellers-section {
  padding: 60px 0;
  background: #ffffff;
}

.section-header.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 50px;
  width: 100%;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f1724;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-window {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.kit-card {
  flex: 0 0 calc(25% - 18px);
  /* Exactly 4 items */
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  text-align: center;
}

.kit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--yellow);
}

.kit-image {
  font-size: 64px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 20px;
}

.kit-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f1724;
}

.kit-rating {
  font-size: 13px;
  color: var(--yellow);
  /* Changed from #ffb800 to clay red */
  margin-bottom: 8px;
}

.kit-rating span {
  color: #a0aec0;
  margin-left: 4px;
}

.kit-price {
  font-size: 20px;
  font-weight: 800;
  color: #0f1724;
  margin-bottom: 16px;
}

.btn-add-kit {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-add-kit:hover {
  background: var(--yellow);
  color: #fff;
}

.carousel-prev,
.carousel-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 24px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #f8fafc;
  color: var(--yellow);
  border-color: var(--yellow);
}

@media (max-width: 1100px) {
  .kit-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .kit-card {
    flex: 0 0 calc(50% - 12px);
  }

  .guide-card.active {
    flex-direction: column;
    flex: 0 0 100%;
    height: auto;
  }

  .guide-card.active .guide-card-image,
  .guide-card.active .guide-card-content {
    width: 100%;
  }
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.stat span {
  color: #718096;
  font-size: 12px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
  flex: 0 0 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero-card-icon {
  font-size: 36px;
}

.hero-card-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.hero-card-text span {
  font-size: 13px;
  color: #a0aec0;
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: rgba(169, 71, 71, 0.12);
  top: -40px;
  right: -40px;
}

.orb-2 {
  width: 140px;
  height: 140px;
  background: rgba(99, 179, 237, 0.08);
  bottom: 10px;
  left: 10px;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: rgba(169, 71, 71, 0.08);
  top: 50%;
  right: 20px;
}

/* =============================================
   AI SECTION
   ============================================= */
.ai-section {
  padding: 60px 24px;
  display: flex;
  justify-content: center;
  background: transparent;
}

.ai-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 48px 40px;
  max-width: 720px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.ai-robot {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.ai-robot-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fef3cd, #fde68a);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.ai-robot-emoji {
  font-size: 42px;
}

.ai-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: #48bb78;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
  }
}

.ai-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.ai-subtitle {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.ai-input-row {
  display: flex;
  gap: 0;
  background: var(--navy-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 4px;
}

.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ai-input::placeholder {
  color: #718096;
}

.ai-send-btn {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.ai-send-btn:hover {
  background: var(--yellow-dark);
  transform: scale(1.03);
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.ai-chip {
  background: #f0f2f7;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.ai-chip:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: translateY(-2px);
}

/* =============================================
   SECTION WRAP
   ============================================= */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.countdown {
  color: var(--danger);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.view-all-link {
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color var(--transition);
}

.view-all-link:hover {
  color: var(--navy);
}

/* =============================================
   DEALS ROW
   ============================================= */
.deals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.deal-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 22px 18px 18px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.deal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
}

.deal-img {
  font-size: 52px;
  text-align: center;
  margin: 10px 0 14px;
}

.deal-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.deal-now {
  font-size: 18px;
  font-weight: 800;
  color: var(--danger);
}

.deal-was {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-bar-wrap {
  height: 6px;
  background: #e8e8e8;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.deal-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #f5a623);
  border-radius: 100px;
  transition: width 1s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--spinner-bg);
  border-top: 4px solid var(--spinner-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Review Form */
.review-form-wrap { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.review-form-wrap h3 { margin-bottom: 20px; font-size: 18px; font-weight: 800; color: #0f1724; }
.review-form-wrap label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #4a5568; }
.review-form-wrap textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; margin-bottom: 20px; resize: vertical; }
.review-form-wrap textarea:focus { outline: none; border-color: #0f1724; }

.star-rating-radio { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; margin-bottom: 20px; }
.star-rating-radio input { display: none; }
.star-rating-radio label { font-size: 24px; color: #cbd5e0; cursor: pointer; transition: color 0.1s; margin: 0; }
.star-rating-radio label:hover,
.star-rating-radio label:hover ~ label,
.star-rating-radio input:checked ~ label { color: #D0405A; }

.no-reviews { padding: 40px 0; color: #718096; text-align: center; font-style: italic; }
.link-btn { background: none; border: none; color: #007185; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; font-size: inherit; }

.silhouette-avatar {
  background: #e2e8f0 !important;
  color: #a0aec0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.silhouette-avatar::before {
  content: '👤';
  font-size: 1.2em;
}

.deal-left {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  background: var(--card-bg);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}

.badge-bestseller {
  background: #fed7aa;
  color: #c05621;
}

.badge-new {
  background: #bee3f8;
  color: #2b6cb0;
}

.badge-sale {
  background: #fed7d7;
  color: #9b2c2c;
}

.wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 2;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
  color: #a0aec0;
}

.wishlist-btn:hover,
.wishlist-btn.liked {
  color: #e53e3e;
  transform: scale(1.15);
}

.product-img-wrap {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef1f8 100%);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.product-img {
  font-size: 64px;
  transition: transform var(--transition);
}

.product-card:hover .product-img {
  transform: scale(1.1) rotate(-3deg);
}

.product-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: var(--yellow);
  font-size: 13px;
}

.rating-count {
  font-size: 12px;
  color: #0066c0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #b12704;
}

.product-was {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  background: #f0fff4;
  padding: 2px 7px;
  border-radius: 100px;
}

.product-delivery {
  font-size: 12.5px;
  color: var(--success);
  font-weight: 500;
}

.add-to-cart-btn {
  margin-top: auto;
  padding: 10px 0;
  width: 100%;
  background: var(--yellow);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(169, 71, 71, 0.4);
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

/* =============================================
   PROMO BANNER
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f50 100%);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 50%, rgba(169, 71, 71, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 1;
}

.promo-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.promo-banner p {
  color: #a0aec0;
  font-size: 16px;
  margin-bottom: 28px;
}

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.trust-item:hover {
  background: #f7f8fa;
}

.trust-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: #a0aec0;
}

.footer-top {
  display: flex;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 48px;
}

.footer-brand {
  flex: 0 0 260px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 40px;
  flex: 1;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: #718096;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-news-desc {
  font-size: 13px;
  margin-bottom: 14px;
}

.footer-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.footer-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.footer-form input::placeholder {
  color: #4a5568;
}

.footer-form button {
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition);
}

.footer-form button:hover {
  background: var(--yellow-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  color: #718096;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--yellow);
}

.payment-icons {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

/* =============================================
   CART TOAST
   ============================================= */
.cart-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--yellow);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  z-index: 9999;
  pointer-events: none;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =============================================
   MOBILE DRAWER
   ============================================= */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.mobile-drawer-header .logo-text {
  color: var(--navy);
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f2f7;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.mobile-drawer-close:hover {
  background: #e2e8f0;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0f1724;
  text-decoration: none;
  transition: background 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.mobile-drawer-link:hover {
  background: #f7f8fa;
}

.mobile-drawer-link.nav-active {
  color: var(--yellow);
  background: rgba(189, 90, 90, 0.06);
}

.mobile-drawer-badge {
  background: var(--yellow);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: auto;
}

.mobile-drawer-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 16px;
}

.mobile-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0aec0;
  padding: 12px 20px 4px;
}

.mobile-drawer-cats {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-cat {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-drawer-cat:hover {
  background: #f7f8fa;
  color: #0f1724;
}

/* Hide drawer on desktop */
@media (min-width: 769px) {

  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ── 1100px Tablet-ish ── */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .deals-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    flex: none;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 28px;
  }

  .hero-visual {
    display: none;
  }
}

/* ── 768px Mobile ── */
@media (max-width: 768px) {

  /* Top Bar */
  .top-bar {
    font-size: 11px;
    padding: 6px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .top-bar .theme-customizer {
    display: none !important;
  }

  /* Navbar */
  .navbar {
    padding: 0 12px;
    height: 56px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    height: 38px;
  }

  .search-category {
    display: none;
  }

  .search-input {
    font-size: 14px;
    padding: 0 12px;
  }

  .nav-right .nav-link:not(.cart-btn):not(.nav-account) {
    display: none;
  }

  .hamburger {
    display: block;
    order: -1;
  }

  .nav-right {
    gap: 2px;
  }

  /* Category nav ribbon */
  .cat-nav {
    display: none;
  }

  /* Product grids */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .deals-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Hero */
  .hero {
    padding: 36px 20px;
    min-height: 340px;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat strong {
    font-size: 18px;
  }

  /* AI Section */
  .ai-card {
    padding: 28px 16px 24px;
  }

  .ai-title {
    font-size: 22px;
  }

  .ai-input-row {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .ai-send-btn {
    width: 100%;
    text-align: center;
  }

  /* Section */
  .section-wrap {
    padding: 32px 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Footer */
  .footer-top {
    padding: 40px 16px 32px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-col {
    min-width: 130px;
  }

  /* Promo */
  .promo-banner {
    padding: 40px 20px;
  }

  .promo-banner h2 {
    font-size: 24px;
  }

  .promo-banner p {
    font-size: 14px;
  }

  /* Filter bar */
  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }
}

/* ── 480px Small Mobile ── */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .deals-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 24px 16px;
  }

  .hero {
    padding: 28px 16px;
    min-height: auto;
  }

  .hero-eyebrow {
    font-size: 10px;
    padding: 3px 10px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider {
    height: 24px;
  }

  .ai-chips {
    gap: 6px;
  }

  .ai-chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Section */
  .section-wrap {
    padding: 24px 12px;
  }

  .section-title {
    font-size: 18px;
  }

  /* Footer */
  .footer-top {
    padding: 32px 12px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Cards */
  .product-info {
    padding: 10px 10px 14px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price {
    font-size: 16px;
  }

  .deal-card {
    padding: 16px 14px 14px;
  }

  .deal-name {
    font-size: 13px;
  }

  /* Promo */
  .promo-banner {
    padding: 32px 16px;
  }

  .promo-banner h2 {
    font-size: 20px;
  }
}

/* =============================================
   ACCOUNT PAGE
   ============================================= */
.account-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-pic {
  width: 80px;
  height: 80px;
  background: var(--yellow);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
}

.profile-info p {
  color: var(--text-muted);
  margin: 4px 0 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-nav-btn {
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.account-nav-btn:hover {
  background: var(--bg);
  color: var(--navy);
}

.account-nav-btn.active {
  background: #edf2f7;
  color: var(--yellow);
}

.account-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.order-card-header {
  background: #f8fafc;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.order-meta {
  display: flex;
  gap: 32px;
}

.order-meta div span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #a0aec0;
  margin-bottom: 2px;
}

.order-meta div p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.order-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  background: #f0fff4;
  padding: 4px 12px;
  border-radius: 100px;
}

.order-items {
  padding: 24px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.order-item:last-child {
  margin-bottom: 0;
}

.order-item-img {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.order-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.order-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.empty-orders {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.empty-orders-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-nav {
    display: none;
  }
}

/* =============================================
   FLOATING BACKGROUND
   ============================================= */
#floating-bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
}

.floating-item {
  position: absolute;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: -1;
}

.floating-item img {
  width: 140px;
  /* Slightly larger for impact */
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(50px, -30px) rotate(10deg);
  }

  50% {
    transform: translate(-30px, 60px) rotate(-5deg);
  }

  75% {
    transform: translate(40px, 20px) rotate(8deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* ─── AUTH MODAL REFACTOR (Dual Email/Phone) ─── */
.auth-box {
  padding: 24px;
}

.auth-tabs-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 32px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-tab:not(.active):hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--navy);
}


.auth-intro {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 20px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--yellow);
}

.auth-toggle-group {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
}

.auth-toggle-group label {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  text-transform: none;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 36, 0.15);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 36, 0.2);
}

.auth-submit:active {
  transform: translateY(0);
}


.auth-error {
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.auth-success {
  color: #38a169;
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #4a5568;
}

.btn-outline:hover {
  background: #f7fafc;
}

/* FIX: Featured Brands Section (Task 2) */
.brands-section { padding: 80px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.brand-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--yellow);
}
.brand-item img {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.brand-fallback {
    display: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}
.brand-name {
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
