/* ==========================================================================
   KULL QATAR - COMPLETE NATIVE APP PLATFORM DESIGN SYSTEM
   Supports Multi-Screen SPA Navigation (Home, Categories, Studio, Wishlist, Account)
   ========================================================================== */

:root, [data-theme="light"] {
  /* Apple Store Cupertino Light Canvas (Apple Grade 2026) */
  --bg-primary: #f5f5f7;       /* Apple Crisp Clean Canvas */
  --bg-secondary: #ffffff;     /* Pure White Card Surface */
  --bg-card: #ffffff;
  --bg-card-hover: #eaeaea;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-glass-nav: rgba(245, 245, 247, 0.85);

  /* Apple High Contrast Typography Engine */
  --text-main: #1d1d1f;        /* Apple Deep Carbon Ink */
  --text-muted: #424245;       /* Apple Slate Grey */
  --text-dim: #86868b;         /* Apple SF Pro Secondary Text */

  --accent-qatar: #8A1538;     /* Qatari Maroon / Burgundy Apple Accent */
  --accent-gold: #c68a2c;      /* Apple Champagne Gold */
  --accent-gold-light: rgba(198, 138, 44, 0.08);
  --accent-gold-glow: rgba(198, 138, 44, 0.22);
  --accent-yellow-noon: #ffcc00;
  --accent-pink-myntra: #ff2d55;
  --accent-blue-amazon: #0071e3;/* Apple Signature Blue */
  --accent-teal: #30b0c7;
  --accent-purple: #af52de;
  --accent-red: #ff3b30;       /* Apple System Red */
  --accent-green: #34c759;     /* Apple System Green */

  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(138, 21, 56, 0.22);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-apple: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 32px -6px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 8px 24px -4px rgba(138, 21, 56, 0.25);

  /* Apple SF Pro Display & Text Font Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-family: var(--font-sans);

  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --bottom-nav-height: 72px;
}

[data-theme="dark"] {
  /* Apple Pro OLED Obsidian Darkness (Apple Grade 2026) */
  --bg-primary: #000000;       /* Apple True OLED Pitch Black */
  --bg-secondary: #161617;     /* Translucent Frosted Dark Slate */
  --bg-card: #1c1c1e;          /* Apple iOS Dark Card */
  --bg-card-hover: #2c2c2e;
  --bg-glass: rgba(28, 28, 30, 0.75);
  --bg-glass-nav: rgba(0, 0, 0, 0.82);

  --text-main: #f5f5f7;        /* Crisp Luminous White */
  --text-muted: #d2d2d7;       /* Silver Pearl Muted */
  --text-dim: #86868b;         /* SF Pro Dimmed Subtext */

  --accent-qatar: #ff2d55;     /* Vibrant Apple Coral Burgundy */
  --accent-gold: #ffd60a;      /* Apple Vibrant Amber Gold */
  --accent-gold-light: rgba(255, 214, 10, 0.12);
  --accent-gold-glow: rgba(255, 214, 10, 0.3);

  --border-color: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 214, 10, 0.35);

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 40px -8px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 8px 32px -4px rgba(255, 45, 85, 0.4);
}

[data-theme="dark"] .search-bar-inner {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .add-cart-btn {
  background: rgba(225, 29, 72, 0.12);
  border-color: var(--accent-qatar);
  color: #fb7185;
}

[data-theme="dark"] .add-cart-btn:active {
  background: var(--accent-qatar);
  color: #ffffff;
}

[data-theme="dark"] .pill-btn {
  background: #161f2e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .pill-btn.active {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: #e11d48;
  color: #ffffff;
}

/* Reset & Apple Subpixel Antialiasing Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(122, 18, 48, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(180, 83, 9, 0.03) 0%, transparent 35%);
  color: var(--text-main);
  line-height: 1.45;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { display: none; }

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .app-container { max-width: 768px; }
}

@media (min-width: 1200px) {
  .app-container {
    max-width: 1280px;
    box-shadow: none;
  }
}

/* SPA Screen Viewport */
.app-screen {
  display: none;
  min-height: calc(100vh - var(--bottom-nav-height));
  animation: fadeInScreen 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screen.active {
  display: block;
}

@keyframes fadeInScreen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-top-header {
  padding: 14px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   MOBILE-FIRST HEADER ARCHITECTURE & DYNAMIC SCROLL COLLAPSE
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Dynamic Collapsed State on Scroll (60fps Hardware Accelerated) */
.header-row-primary,
.location-delivery-strip {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              margin 0.3s ease, 
              padding 0.3s ease;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  will-change: max-height, opacity;
  transform: translateZ(0);
}

.live-ticker-bar {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.3s ease;
  max-height: 40px;
  opacity: 1;
  will-change: max-height, opacity;
  transform: translateZ(0);
}

/* When Scrolled Down: Instantly & cleanly hide Logo, Ticker & Location strip with ZERO text slicing */
body.header-scrolled .live-ticker-bar,
body.header-scrolled .header-row-primary,
body.header-scrolled .location-delivery-strip {
  display: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.header-scrolled .sticky-header {
  padding: 8px 12px;
  gap: 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

/* Row 1: Brand Logo (Left) + Utility Action Icons (Right) */
.header-row-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-qatar);
  flex-shrink: 0;
}

.brand-badge span {
  color: var(--accent-gold);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.icon-btn:active { transform: scale(0.92); }

.badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-pink-myntra);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* Row 2: Location Delivery Strip */
.location-delivery-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(138, 21, 56, 0.04);
  border: 1px solid var(--border-accent);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  cursor: pointer;
  width: 100%;
}

.location-left-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 80%;
}

.location-left-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.express-badge-mini {
  background: var(--accent-yellow-noon);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Row 3: Search Box */
.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 42px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 76px 0 38px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  box-shadow: var(--shadow-sm);
  text-overflow: ellipsis;
  -webkit-font-smoothing: antialiased;
}

.search-input:focus {
  border-color: var(--accent-qatar);
  box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.12);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-actions-right {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cam-btn, .mic-btn {
  background: transparent;
  border: none;
  color: var(--accent-qatar);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.search-suggestions-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-top: 6px;
  padding: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 105;
}

.search-suggestions-overlay.active { display: block; }

.suggestion-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   LIVE DRIVER TICKER BAR (Single-line Truncated Marquee Text)
   ========================================================================== */
.live-ticker-bar {
  background: linear-gradient(90deg, #8a1538 0%, #4a0017 100%);
  color: white;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  width: 100%;
}

.live-ticker-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.live-ticker-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-ticker-right {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  opacity: 0.85;
  white-space: nowrap;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Stories Rail */
.stories-rail-section {
  padding: 10px 0 4px;
  overflow-x: auto;
}

.stories-track {
  display: flex;
  gap: 12px;
  padding: 0 12px;
  width: max-content;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 60px;
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  padding: 2.5px;
  background: linear-gradient(135deg, var(--accent-qatar), var(--accent-gold), var(--accent-pink-myntra));
  position: relative;
  transition: transform 0.2s ease;
}

.story-ring:active { transform: scale(0.94); }

.story-ring.live {
  animation: pulseGlowRing 2s infinite ease-in-out;
}

@keyframes pulseGlowRing {
  0% { box-shadow: 0 0 0 0 rgba(122, 18, 48, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(122, 18, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 18, 48, 0); }
}

.story-ring.live::after {
  content: 'LIVE';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: white;
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1.5px solid var(--bg-primary);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.story-ring.express::after {
  content: '15m';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow-noon);
  color: black;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

.story-img-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}

.story-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* Brand Vault Horizontal Scroll */
.brand-vault-section { padding: 10px 12px; }

.brand-vault-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.brand-chip-card {
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.brand-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(138, 21, 56, 0.08);
  color: var(--accent-qatar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.brand-chip-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

/* Curated Bundles */
.bundles-section { margin: 14px 12px; }

.bundles-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.bundle-card {
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bundle-media { position: relative; height: 120px; }
.bundle-media img { width: 100%; height: 100%; object-fit: cover; }

.bundle-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent-gold);
  color: white;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.bundle-body { padding: 10px; }
.bundle-title { font-size: 0.85rem; font-weight: 800; margin-bottom: 2px; }
.bundle-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* Price Bento Grid */
.price-bento-grid {
  margin: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-qatar);
  border-radius: 4px 0 0 4px;
}

.price-card:nth-child(2)::before {
  background: var(--accent-gold);
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.price-card h4 { font-size: 0.92rem; font-weight: 900; color: var(--text-main); }
.price-card p { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }

/* VIP Testimonials Strip */
.testimonials-section {
  margin: 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.testimonial-item { display: flex; align-items: center; gap: 10px; }

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  flex-shrink: 0;
}

/* Bento Showcase */
.bento-showcase {
  margin: 10px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.bento-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(138, 21, 56, 0.08);
  color: var(--accent-qatar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.bento-title { font-size: 0.74rem; font-weight: 800; color: var(--text-main); }
.bento-sub { font-size: 0.62rem; color: var(--text-dim); }

/* Hero Carousel */
.hero-banner-slider {
  margin: 10px 12px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.banner-track { display: flex; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.banner-slide {
  min-width: 100%;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.6) 60%, rgba(15,23,42,0.1) 100%);
  z-index: 1;
}

.banner-content { position: relative; z-index: 2; max-width: 72%; }

.banner-badge {
  display: inline-block;
  background: rgba(138, 21, 56, 0.5);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.banner-title { font-size: 1.15rem; font-weight: 900; line-height: 1.2; color: #ffffff; margin-bottom: 4px; }
.banner-subtitle { font-size: 0.72rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; }

.banner-btn {
  background: linear-gradient(135deg, var(--accent-qatar) 0%, #5c0b24 100%);
  color: #ffffff;
  border: 1px solid var(--accent-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.4); }
.dot.active { width: 16px; background: var(--accent-gold); }

/* Flash Sales Strip */
.flash-deal-strip {
  margin: 10px 12px;
  background: linear-gradient(135deg, #8a1538 0%, #4a0017 100%);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flash-left { display: flex; align-items: center; gap: 8px; }

.flash-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 184, 0, 0.2);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.flash-info h4 { font-size: 0.8rem; font-weight: 900; color: white; }
.flash-info p { font-size: 0.65rem; color: rgba(255, 255, 255, 0.8); }

.timer-box { display: flex; align-items: center; gap: 3px; }

.timer-digit {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 5px;
  border-radius: 5px;
  min-width: 24px;
  text-align: center;
}

.timer-colon { color: white; font-weight: 800; }

/* Filter Pills Bar */
.filter-pills-bar {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.pill-btn.active, .pill-btn:hover {
  background: var(--accent-qatar);
  border-color: var(--accent-qatar);
  color: #ffffff;
}

/* Section Header */
.section-header {
  padding: 8px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.see-all-link {
  font-size: 0.75rem;
  color: var(--accent-qatar);
  font-weight: 800;
  cursor: pointer;
}

/* Product Feed Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px 12px;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  padding-top: 105%;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-stack {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.tag-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-express { background: var(--accent-yellow-noon); color: #000; }
.tag-discount { background: var(--accent-pink-myntra); color: white; }

.wishlist-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.wishlist-btn.active {
  background: rgba(255, 63, 108, 0.15);
  color: var(--accent-pink-myntra);
  border-color: var(--accent-pink-myntra);
}

.card-details {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-qatar);
}

.product-title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 3px 0 5px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.rating-row { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }

.rating-badge {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-green);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.review-count { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.current-price { 
  font-family: var(--font-display); 
  font-size: 1.05rem; 
  font-weight: 800; 
  font-variant-numeric: tabular-nums; 
  letter-spacing: -0.02em; 
  color: var(--text-main); 
}
.original-price { 
  font-size: 0.72rem; 
  color: var(--text-dim); 
  text-decoration: line-through; 
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.supercoin-tag {
  font-size: 0.6rem;
  color: var(--accent-qatar);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}

.add-cart-btn {
  margin-top: 6px;
  width: 100%;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  background: rgba(138, 21, 56, 0.06);
  border: 1px solid var(--accent-qatar);
  color: var(--accent-qatar);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.add-cart-btn:active {
  transform: scale(0.97);
  background: var(--accent-qatar);
  color: white;
}

.cart-qty-stepper {
  margin-top: 6px;
  width: 100%;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-qatar);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(138, 21, 56, 0.25);
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.qty-step-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-step-btn:active {
  background: rgba(255, 255, 255, 0.4);
}

.qty-step-val {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
}

/* Studio Section */
.studio-section {
  margin: 16px 12px;
  background: linear-gradient(180deg, rgba(138,21,56,0.06) 0%, rgba(248,250,252,0) 100%);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid rgba(138, 21, 56, 0.15);
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.studio-badge {
  background: var(--accent-qatar);
  color: white;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.lookbook-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.lookbook-card {
  min-width: 190px;
  height: 260px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.lookbook-card img { width: 100%; height: 100%; object-fit: cover; }

.lookbook-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lookbook-tag { font-size: 0.62rem; font-weight: 700; color: var(--accent-gold); }
.lookbook-title { font-size: 0.85rem; font-weight: 800; color: white; margin: 2px 0 5px; }

.shop-look-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Category Dual Pane */
.categories-layout { display: flex; min-height: calc(100vh - 120px); }

.cat-sidebar {
  width: 92px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.cat-side-btn {
  padding: 12px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cat-side-btn i { font-size: 1.1rem; }

.cat-side-btn.active {
  background: rgba(138, 21, 56, 0.08);
  color: var(--accent-qatar);
  border-left: 3px solid var(--accent-qatar);
}

.cat-main-content { flex-grow: 1; padding: 14px; overflow-y: auto; }

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.subcat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.subcat-card img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.subcat-title { font-size: 0.75rem; font-weight: 800; color: var(--text-main); }

/* Reels Stream */
.reels-container {
  height: calc(100vh - var(--bottom-nav-height));
  position: relative;
  background: #000;
  overflow: hidden;
}

.reel-card { width: 100%; height: 100%; position: relative; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }

.reel-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reel-actions-side {
  position: absolute;
  right: 14px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 10;
}

.reel-action-btn {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.reel-product-chip {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

/* User Account Profile */
.user-profile-card {
  background: linear-gradient(135deg, #8a1538 0%, #4a0017 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-gold);
  object-fit: cover;
}

.user-info h3 { font-size: 1.05rem; font-weight: 900; }

.user-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 184, 0, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}

.active-order-card {
  margin: 0 12px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  position: relative;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.step-node.active .step-circle {
  background: var(--accent-qatar);
  border-color: var(--accent-qatar);
  color: white;
}

.account-menu-list {
  margin: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.account-menu-item {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.account-menu-item:last-child { border-bottom: none; }

.account-menu-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu-left i {
  font-size: 1rem;
  color: var(--accent-qatar);
  width: 22px;
  text-align: center;
}

/* Bottom Drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active { opacity: 1; pointer-events: auto; }

.bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) { .bottom-drawer { max-width: 540px; } }

.bottom-drawer.active { transform: translateY(0); }

.drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: 8px auto 4px;
}

.drawer-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 { font-size: 1rem; font-weight: 800; }

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

.drawer-body {
  padding: 14px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-secondary);
}

.cart-details { flex-grow: 1; }
.cart-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.cart-price { font-size: 0.82rem; font-weight: 800; color: var(--accent-qatar); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 6px;
  border-top: 1px dashed var(--border-color);
  padding-top: 6px;
}

.checkout-main-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-qatar) 0%, #5c0b24 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.center-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.center-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-primary);
  border: none;
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-viewport {
  width: 100%;
  height: 200px;
  background: #000;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-qatar);
  box-shadow: 0 0 15px var(--accent-qatar);
  animation: scan-move 2s ease-in-out infinite alternate;
}

@keyframes scan-move {
  0% { top: 10%; }
  100% { top: 90%; }
}

.bottom-nav-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: var(--bottom-nav-height);
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 150;
  padding: 0 4px;
}

@media (min-width: 768px) { .bottom-nav-dock { max-width: 768px; } }
@media (min-width: 1200px) { .bottom-nav-dock { max-width: 1280px; } }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-item i { font-size: 1.2rem; }

.nav-item.active { color: var(--accent-qatar); }
.nav-item.active i { transform: translateY(-2px); }

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 12px;
  height: 3px;
  background: var(--accent-qatar);
  border-radius: var(--radius-full);
}

.toast-container {
  position: fixed;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

/* Dedicated Full-Screen Mobile Search Overlay */
.dedicated-search-page {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-primary);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) { .dedicated-search-page { max-width: 768px; } }
@media (min-width: 1200px) { .dedicated-search-page { max-width: 1280px; } }

.dedicated-search-page.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dedicated-search-page.active ~ .bottom-nav-dock {
  display: none !important;
}

.search-page-header {
  padding: 12px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.search-page-input-wrapper {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-page-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.search-page-input {
  width: 100%;
  padding: 10px 34px 10px 36px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--accent-qatar);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: var(--text-dim);
  color: var(--bg-primary);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-page-body {
  padding: 14px;
  overflow-y: auto;
  flex-grow: 1;
}

.search-section-box {
  margin-bottom: 20px;
}

.search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.clear-all-link {
  background: none;
  border: none;
  color: var(--accent-qatar);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.recent-history-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-chip {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.trending-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.trend-rank {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-qatar);
  width: 20px;
  text-align: center;
}

.trend-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.trend-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.trend-badge {
  margin-left: auto;
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-pink-myntra);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.brand-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brand-shortcut-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.toast {
  background: var(--text-main);
  color: var(--bg-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
