/* ==========================================================================
   KAMAL MEDICAL & GENERAL STORE - CORE STYLES & DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette - Medical Teal & Emerald */
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;

  /* Secondary Palette - Ocean Cyan / Blue */
  --secondary-50: #f0f9ff;
  --secondary-100: #e0f2fe;
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;

  /* Accent & Status Colors */
  --accent-orange: #ea580c;
  --accent-orange-light: #ffedd5;
  --danger-500: #ef4444;
  --danger-50: #fef2f2;
  --warning-500: #f59e0b;
  --warning-50: #fffbeb;
  --success-500: #10b981;
  --rx-red: #dc2626;
  --rx-bg: #fee2e2;

  /* Neutrals & Surfaces (Light Theme) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Shadows & Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-main: #0b1120;
  --bg-card: #131d31;
  --bg-subtle: #1e293b;
  --bg-glass: rgba(19, 29, 49, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-light: #25334d;
  --border-medium: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, var(--primary-700), var(--secondary-700));
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  font-weight: 500;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.top-link-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-link-item svg {
  width: 14px;
  height: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.brand-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text h1 span.highlight {
  color: var(--primary-600);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header Search */
.header-search-container {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.header-search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.header-search-box:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.header-search-box svg.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.header-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-main);
}

.header-search-box input::placeholder {
  color: var(--text-subtle);
}

.search-clear-btn {
  display: none;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
}

.search-clear-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* Quick Search Suggestion Tags */
.quick-search-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.quick-search-tags::-webkit-scrollbar {
  display: none;
}
.quick-tag-chip {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}
.quick-tag-chip:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
}
[data-theme="dark"] .quick-tag-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-200);
}

/* When searching: hide clutter so search results sit right at top! */
body.is-searching .hero-section,
body.is-searching .trust-badges-bar,
body.is-searching .health-services-section,
body.is-searching .store-info-section {
  display: none !important;
}

/* Active Search Status Banner */
.active-search-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.12));
  border: 1.5px solid var(--primary-500);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.25s ease;
}
.search-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  flex-wrap: wrap;
}
.active-search-badge {
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.btn-clear-search-banner {
  background: var(--bg-card);
  color: var(--danger-500);
  border: 1px solid var(--danger-500);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-clear-search-banner:hover {
  background: var(--danger-500);
  color: #ffffff;
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.action-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.btn-upload-rx {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-upload-rx:hover {
  background: linear-gradient(135deg, var(--secondary-700), #075985);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.cart-button {
  position: relative;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cart-btn-text {
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease;
}

.cart-button:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px) scale(1.05);
}

.cart-button:active {
  transform: translateY(0) scale(0.98);
}

.cart-badge {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(234, 88, 12, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.cart-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 8px var(--accent-orange);
  opacity: 0.6;
}

.cart-badge.bump {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Language & Theme Controls */
.util-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
  font-weight: 700;
  font-size: 0.85rem;
}

.util-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-medium);
}

.util-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
}

/* ==========================================================================
   Hero Banner Carousel & Quick Action Ribbon
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0d9488 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
}

.hero-banner-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-banner-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-banner-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: #ffffff;
  color: var(--primary-700);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background-color: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Side Prescription Card */
.hero-side-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-subtle));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-side-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-500), var(--primary-500));
}

.side-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 12px;
}

[data-theme="dark"] .side-card-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-200);
}

.side-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.side-card-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.side-upload-trigger {
  border: 2px dashed var(--secondary-500);
  background: var(--secondary-50);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .side-upload-trigger {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--secondary-600);
}

.side-upload-trigger:hover {
  background: var(--secondary-100);
  border-color: var(--secondary-600);
}

.side-upload-trigger svg {
  width: 32px;
  height: 32px;
  color: var(--secondary-600);
}

.side-upload-trigger span.main-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.side-upload-trigger span.sub-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Trust Badges Bar
   ========================================================================== */
.trust-badges-bar {
  padding: 16px 0 24px;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-badge-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-badge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .trust-icon-box {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-200);
}

.trust-icon-box svg {
  width: 22px;
  height: 22px;
}

.trust-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Categories Nav Bar
   ========================================================================== */
.categories-nav-section {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background-color: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.category-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary-600);
}

.category-pill:hover {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  color: var(--primary-700);
}

[data-theme="dark"] .category-pill:hover {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-200);
}

.category-pill.active {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.category-pill.active svg {
  color: #ffffff;
}

/* ==========================================================================
   Main Store Layout (Filters + Catalog Grid)
   ========================================================================== */
.main-catalog-section {
  padding: 28px 0 40px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-header-title h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.catalog-header-title p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sort-select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

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

[data-theme="dark"] .product-card:hover {
  border-color: var(--primary-700);
}

/* Product Card Badges */
.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.badge-discount {
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

.badge-rx {
  background: var(--rx-bg);
  color: var(--rx-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(220, 38, 38, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-boosted {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.45);
  animation: boostPulse 2s ease-in-out infinite;
}

@keyframes boostPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}


/* Product Image Preview — Blinkit-style clean display */
.product-image-container {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.04);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.product-card:hover .quick-view-overlay-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product Meta Info */
.product-category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-600);
  font-weight: 700;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary-600);
}

.product-salt {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-sold {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f97316;
  margin: 2px 0 6px;
}


.product-pack-size {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

/* Product Price & Add Action */
.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
}

.mrp-price {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.btn-add-cart {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1.5px solid var(--primary-500);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-add-cart {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-200);
}

.btn-add-cart:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.qty-stepper-wrap {
  display: flex;
  align-items: center;
  background: var(--primary-600);
  color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.qty-stepper-wrap button {
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-stepper-wrap button:hover {
  background: rgba(0, 0, 0, 0.15);
}

.qty-stepper-wrap span.qty-val {
  padding: 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* Empty State */
.empty-catalog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-medium);
}

.empty-catalog-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.empty-catalog-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-catalog-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Health Tools & Services Section
   ========================================================================== */
.health-services-section {
  padding: 40px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon.bmi {
  background: var(--secondary-50);
  color: var(--secondary-600);
}

.service-card-icon.pill {
  background: var(--primary-50);
  color: var(--primary-600);
}

.service-card-icon.call {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.service-card button {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card button:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Store Location & Info Section
   ========================================================================== */
.store-info-section {
  padding: 40px 0;
}

.store-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.store-info-left h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.store-info-left p.lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.store-contact-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-row-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  flex-shrink: 0;
}

.contact-row-icon svg {
  width: 18px;
  height: 18px;
}

.contact-row-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-row-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.store-features-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.store-features-box h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-features-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-features-box ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.store-features-box ul li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-600);
  flex-shrink: 0;
}

/* ==========================================================================
   Blinkit-Style Category Grid (Desktop)
   ========================================================================== */
.category-browse-section {
  padding: 24px 0;
  background-color: var(--bg-main);
}

.category-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.category-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.category-grid-item:hover {
  transform: translateY(-5px);
}

.category-grid-img-wrap {
  width: 90px;
  height: 90px;
  background: var(--bg-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.category-grid-item:hover .category-grid-img-wrap {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.category-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-grid-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  max-width: 110px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0b1322;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-whatsapp-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
}

.footer-whatsapp-card h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-whatsapp-card p {
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.btn-footer-wa {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-footer-wa:hover {
  background: #1ebc59;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.owner-admin-link {
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.owner-admin-link:hover {
  color: #94a3b8;
  text-decoration: underline;
}

/* ==========================================================================
   Blinkit-Style Responsive Design System (Desktop & Mobile Pixel-Perfect)
   ========================================================================== */

/* --- Tablet / Medium Screen (769px to 1024px) --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-side-card {
    display: none;
  }
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
  }
}

/* --- Mobile Phone (up to 768px) - Full Blinkit App Experience --- */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  /* Hide top announcement bar to save screen space */
  .top-announcement-bar {
    display: none !important;
  }

  /* Compact Sticky Header */
  .site-header {
    padding: 8px 0 10px 0;
  }
  .header-inner {
    height: auto;
    flex-direction: column;
    gap: 8px;
  }

  /* Row 1: Logo and Action Buttons */
  .brand-logo-group {
    width: auto;
    gap: 8px;
  }
  .brand-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .brand-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text p {
    font-size: 0.62rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Compact Upload Rx Button */
  .action-btn.btn-upload-rx {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
  }
  .action-btn.btn-upload-rx span {
    display: inline-block;
    font-size: 0.72rem;
  }
  .action-btn.btn-upload-rx svg {
    width: 14px;
    height: 14px;
  }

  .util-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
    min-width: 34px;
    height: 34px;
  }

  .cart-button {
    padding: 6px 10px;
    height: 34px;
    gap: 6px;
  }
  .cart-btn-text {
    font-size: 0.75rem;
  }

  /* Header Search - Full Width Row 2 */
  .header-search-container {
    width: 100%;
    max-width: 100%;
  }
  .header-search-box {
    padding: 6px 14px;
    height: 40px;
  }
  .header-search-box input {
    font-size: 0.84rem;
  }
  .header-search-box input::placeholder {
    font-size: 0.8rem;
  }

  /* Category Scroll (Clean horizontal chips below header) */
  .categories-nav-section {
    padding: 8px 0;
    position: relative;
    top: auto;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
  }
  .category-scroll-container {
    gap: 6px;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-scroll-container::-webkit-scrollbar {
    display: none;
  }
  .category-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-full);
  }
  .category-pill svg {
    width: 14px;
    height: 14px;
  }

  /* Hero Banner - Compact Mobile Card */
  .hero-section {
    padding: 12px 0 8px 0;
  }
  .hero-banner-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .hero-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .hero-banner-card h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .hero-banner-card p {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .hero-btn-group {
    display: flex;
    gap: 8px;
  }
  .btn-hero-primary, .btn-hero-secondary {
    padding: 8px 14px;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
  }

  /* Catalog Section */
  .main-catalog-section {
    padding: 16px 0 90px; /* Extra bottom padding so floating cart bar doesn't overlap last row */
  }
  .catalog-header {
    margin-bottom: 12px;
    align-items: flex-start;
  }
  .catalog-header-title h2 {
    font-size: 1.15rem;
  }
  .catalog-header-title p {
    font-size: 0.75rem;
  }
  .sort-dropdown-wrap {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Blinkit Style 2-Column Product Grid on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }

  .card-badges-top {
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .badge-discount, .badge-rx {
    font-size: 0.62rem;
    padding: 1px 6px;
  }

  .product-image-container {
    height: 116px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-category-tag {
    font-size: 0.62rem;
    margin-bottom: 2px;
  }

  .product-title {
    font-size: 0.84rem;
    line-height: 1.25;
    margin-bottom: 2px;
    min-height: 2.1em;
  }

  .product-salt {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .product-pack-size {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .product-card-footer {
    padding-top: 6px;
  }

  .current-price {
    font-size: 0.98rem;
  }
  .mrp-price {
    font-size: 0.68rem;
  }

  .btn-add-cart {
    min-height: 34px;
    min-width: 68px;
    padding: 6px 11px;
    font-size: 0.76rem;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .qty-stepper-wrap button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  .qty-stepper-wrap span.qty-val {
    padding: 0 4px;
    font-size: 0.78rem;
    min-width: 18px;
  }

  /* Floating Bottom Cart Bar (Blinkit / Zepto Style) */
  .floating-bottom-cart-bar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(100px);
    max-width: none;
    margin: 0 auto;
    border-radius: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, visibility 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .floating-bottom-cart-bar.visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .floating-bar-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.78rem;
  }
  .floating-bar-left {
    min-width: 0;
    gap: 8px;
  }
  .floating-bar-details {
    min-width: 0;
  }
  .floating-bar-amount {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
  }
  .floating-bar-note {
    font-size: 0.68rem;
    color: #d1fae5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-floating-view-cart {
    background: #ffffff;
    color: #047857;
    font-weight: 800;
    border-radius: var(--radius-full);
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* Modals Full-Width on Mobile */
  .modal-card {
    max-width: 95vw !important;
    margin: 10px auto !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }
  .cart-drawer {
    max-width: 100vw !important;
    width: 100vw !important;
  }

  /* Health Services & Trust Badges */
  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .trust-badge-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .trust-icon-box {
    width: 36px;
    height: 36px;
  }
  .trust-text h4 {
    font-size: 0.84rem;
  }
  .trust-text p {
    font-size: 0.72rem;
  }

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

  .store-info-grid {
    grid-template-columns: 1fr;
    padding: 18px 12px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Extra Small Phones (<= 380px) --- */
@media (max-width: 380px) {
  .products-grid {
    gap: 6px !important;
  }
  .product-card {
    padding: 8px;
  }
  .product-image-container {
    height: 95px;
  }
  .brand-text h1 {
    font-size: 0.92rem;
  }
  .btn-hero-primary, .btn-hero-secondary {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
}

/* Search Suggestions Styling */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card, #fff);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light, #e2e8f0);
  z-index: 2000;
  max-height: 520px;
  overflow-y: auto;
  padding: 8px 0;
}

.suggestion-header {
  padding: 10px 16px 8px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.suggestion-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.suggestion-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.suggestion-discount {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.suggestion-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.suggestion-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-badges {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.suggestion-salt {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-details-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.suggestion-firm,
.suggestion-category,
.suggestion-dosage,
.suggestion-pack {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

.suggestion-firm {
  background: #eff6ff;
  color: #3b82f6;
}

.suggestion-category {
  background: #faf5ff;
  color: #8b5cf6;
}

.suggestion-dosage {
  background: #fff7ed;
  color: #ea580c;
}

.suggestion-pack {
  background: #f0fdf4;
  color: #16a34a;
}

.suggestion-desc {
  font-size: 0.68rem;
  color: var(--text-subtle, #64748b);
  line-height: 1.3;
  margin-top: 1px;
}

.suggestion-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
}

.suggestion-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-600, #059669);
}

.suggestion-mrp {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.suggestion-save {
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.suggestion-stock {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.suggestion-stock.available {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.suggestion-stock.low {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.suggestion-stock.out {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.suggestion-rx {
  font-size: 0.58rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
}

.suggestion-action {
  flex-shrink: 0;
  color: var(--primary-400, #34d399);
  opacity: 0.4;
  transition: all 0.2s;
  margin-top: 4px;
}

.suggestion-item:hover .suggestion-action {
  opacity: 1;
  transform: translateX(2px);
}

/* Dark mode suggestions */
[data-theme="dark"] .search-suggestions-dropdown {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .suggestion-header {
  color: var(--text-muted);
  border-bottom-color: var(--border-light);
}

[data-theme="dark"] .suggestion-item {
  border-bottom-color: var(--border-light);
}

[data-theme="dark"] .suggestion-item:hover {
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(5,150,105,0.04));
}

[data-theme="dark"] .suggestion-img {
  border-color: var(--border-light);
  background: var(--bg-subtle);
}

[data-theme="dark"] .suggestion-name {
  color: var(--text-main);
}

[data-theme="dark"] .suggestion-salt,
[data-theme="dark"] .suggestion-desc {
  color: var(--text-muted);
}

[data-theme="dark"] .suggestion-mrp {
  color: var(--text-subtle);
}

[data-theme="dark"] .suggestion-pack {
  background: rgba(22,163,74,0.15);
}

[data-theme="dark"] .suggestion-firm {
  background: rgba(59,130,246,0.15);
}

[data-theme="dark"] .suggestion-category {
  background: rgba(139,92,246,0.15);
}

[data-theme="dark"] .suggestion-dosage {
  background: rgba(234,88,12,0.15);
}

/* Mobile search suggestions */
@media (max-width: 768px) {
  .search-suggestions-dropdown {
    position: fixed;
    top: 110px;
    left: 12px;
    right: 12px;
    max-height: 65vh;
    border-radius: 14px;
  }

  .suggestion-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .suggestion-img {
    width: 50px;
    height: 50px;
  }

  .suggestion-name {
    font-size: 0.84rem;
  }

  .suggestion-details-row {
    display: none;
  }

  .suggestion-desc {
    display: none;
  }
}

/* ==========================================================================
   Right Side Floating Cart & Wishlist Buttons
   ========================================================================== */
.right-floating-actions {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.rf-wishlist-btn,
.rf-cart-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rf-wishlist-btn {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #ec4899;
  border: 2px solid rgba(236, 72, 153, 0.2);
}

.rf-wishlist-btn:hover {
  background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.rf-cart-btn {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border: 2px solid rgba(5, 150, 105, 0.2);
}

.rf-cart-btn:hover {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.rf-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rf-wishlist-badge {
  background: #ec4899;
}

.rf-cart-badge {
  background: #059669;
}

/* Dark mode */
[data-theme="dark"] .rf-wishlist-btn {
  background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(236,72,153,0.1));
  border-color: rgba(236, 72, 153, 0.3);
}

[data-theme="dark"] .rf-wishlist-btn:hover {
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(236,72,153,0.15));
}

[data-theme="dark"] .rf-cart-btn {
  background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(5,150,105,0.1));
  border-color: rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .rf-cart-btn:hover {
  background: linear-gradient(135deg, rgba(5,150,105,0.25), rgba(5,150,105,0.15));
}

/* Mobile: bottom-right corner */
@media (max-width: 768px) {
  .right-floating-actions {
    right: 14px;
    top: auto;
    bottom: 140px;
    transform: none;
    flex-direction: column;
    gap: 10px;
  }

  .rf-wishlist-btn,
  .rf-cart-btn {
    width: 46px;
    height: 46px;
  }

  .rf-wishlist-btn svg,
  .rf-cart-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Card Image Carousel
   ========================================================================== */
.card-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

.carousel-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Variant Chips (Product Card)
   ========================================================================== */
.variant-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 4px 0 6px;
}

.variant-chip {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1.5px solid var(--border-light, #e2e8f0);
  background: var(--bg-card, #fff);
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.variant-chip:hover {
  border-color: var(--primary-400, #34d399);
  color: var(--primary-600, #059669);
}

.variant-chip.active {
  background: var(--primary-50, #ecfdf5);
  border-color: var(--primary-500, #10b981);
  color: var(--primary-700, #047857);
}

[data-theme="dark"] .variant-chip {
  background: var(--bg-subtle, #1e293b);
  border-color: var(--border-light, #25334d);
  color: var(--text-main, #f8fafc);
}

[data-theme="dark"] .variant-chip.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #34d399;
  color: #34d399;
}

/* ==========================================================================
   Quick View Gallery
   ========================================================================== */
.qv-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qv-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.qv-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.qv-thumb:hover {
  border-color: var(--primary-400, #34d399);
}

.qv-thumb.active {
  border-color: var(--primary-500, #10b981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.qv-variant-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qv-variant-chips .variant-chip {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Mobile Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .carousel-dot {
    width: 5px;
    height: 5px;
  }

  .carousel-dot.active {
    width: 14px;
  }

  .variant-chip {
    font-size: 0.64rem;
    padding: 2px 8px;
  }

  .qv-thumb {
    width: 48px;
    height: 48px;
  }

  .qv-variant-chips .variant-chip {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   All Categories Modal
   ========================================================================== */
.all-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 8px 0;
}

.all-cat-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.all-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-400, #34d399);
}

.all-cat-img {
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #f1f5f9;
}

.all-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.all-cat-card:hover .all-cat-img img {
  transform: scale(1.05);
}

.all-cat-info {
  padding: 10px 12px;
}

.all-cat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin-bottom: 2px;
}

.all-cat-count {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

/* Dark mode */
[data-theme="dark"] .all-cat-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .all-cat-card:hover {
  border-color: #34d399;
}

[data-theme="dark"] .all-cat-img {
  background: var(--bg-subtle);
}

[data-theme="dark"] .all-cat-name {
  color: var(--text-main);
}

/* Mobile */
@media (max-width: 768px) {
  .all-cats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .all-cat-img {
    height: 90px;
  }
}

/* ==========================================================================
   Blinkit-Style Bestsellers & Deals Section
   ========================================================================== */
.bestseller-section, .deals-section {
  padding: 20px 0 8px;
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.deals-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 6px 14px;
}

.timer-label {
  font-size: 0.75rem;
  color: #991b1b;
  font-weight: 600;
}

.timer-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

.bestseller-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.bestseller-scroll::-webkit-scrollbar {
  display: none;
}

.bs-card {
  flex: 0 0 155px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.bs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bs-card-img-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #ffffff;
}

.bs-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bs-card:hover .bs-card-img-wrap img {
  transform: scale(1.05);
}

.bs-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bs-badge.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.bs-badge.rx {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bs-discount-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fecaca;
}

.bs-card-body {
  padding: 10px 12px 12px;
}

.bs-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bs-card-price {
  display: flex;
  flex-direction: column;
}

.bs-price-current {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.bs-price-mrp {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.bs-card-add {
  background: #fff;
  border: 2px solid var(--primary-600, #059669);
  color: var(--primary-600, #059669);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.bs-card-add:hover {
  background: var(--primary-600, #059669);
  color: #fff;
}

.bs-card-add.in-cart {
  background: var(--primary-600, #059669);
  color: #fff;
  border-color: var(--primary-600, #059669);
}

/* Blinkit-style Quantity Stepper */
.bs-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--primary-600, #059669);
  border-radius: 8px;
  overflow: hidden;
}

.bs-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.bs-qty-btn:hover {
  background: rgba(255,255,255,0.2);
}

.bs-qty-btn:active {
  background: rgba(255,255,255,0.35);
}

.bs-qty-count {
  min-width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

/* Delivery tag on card */
.bs-delivery-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary-700);
  padding: 3px 0;
  border-top: 1px solid var(--border-light);
}

/* Dark mode */
[data-theme="dark"] .bs-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .bs-card-img-wrap {
  background: var(--bg-subtle);
}

[data-theme="dark"] .bs-card-add {
  background: transparent;
  border-color: #34d399;
  color: #34d399;
}

[data-theme="dark"] .bs-card-add:hover,
[data-theme="dark"] .bs-card-add.in-cart {
  background: #34d399;
  color: #000;
}

[data-theme="dark"] .bs-delivery-tag {
  background: rgba(30, 41, 59, 0.95);
  border-top-color: var(--border-light);
}

/* Mobile */
@media (max-width: 768px) {
  .bs-card {
    flex: 0 0 140px;
  }

  .bs-card-img-wrap {
    height: 110px;
  }

  .bs-card-title {
    font-size: 0.78rem;
  }

  .bs-card-add {
    padding: 4px 10px;
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .bs-card {
    flex: 0 0 130px;
  }

  .bs-card-img-wrap {
    height: 100px;
  }
}

/* ==========================================================================
   DELIVERY SERVICEABILITY BAR (Blinkit/Zepto "Deliver to")
   ========================================================================== */
.serviceability-bar {
  position: relative;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid var(--primary-100);
  padding: 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.serviceability-bar .serviceability-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.serviceability-bar .svc-icon {
  font-size: 1.1rem;
}
.serviceability-bar .svc-text {
  flex: 1;
  min-width: 0;
}
.serviceability-bar .svc-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.serviceability-bar .svc-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.serviceability-bar .svc-change-btn {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.serviceability-bar .svc-change-btn:hover {
  background: var(--primary-100);
}

/* ==========================================================================
   SERVICEABILITY CHECK MODAL
   ========================================================================== */
.svc-modal-overlay {
  z-index: 1000;
}
.svc-modal {
  max-width: 440px;
  width: 92%;
}
.svc-modal .modal-card.svc-modal {
  border-radius: 16px;
}
.svc-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.svc-modal-icon {
  font-size: 1.8rem;
}
.svc-modal-head h3 {
  font-size: 1.05rem;
  margin: 0 0 2px;
}
.svc-modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.svc-modal-head .drawer-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}
.svc-field {
  margin-bottom: 14px;
}
.svc-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.svc-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.svc-field-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  font-size: 1.05rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-card);
}
.svc-field-row input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.svc-check-btn {
  background: var(--primary-600);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.svc-check-btn:hover {
  background: var(--primary-700);
}
.svc-quick {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.svc-quick-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.svc-quick-chip {
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--primary-700);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.svc-quick-chip:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

/* Result boxes */
.svc-result {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  align-items: flex-start;
}
.svc-result-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.svc-result-text {
  flex: 1;
}
.svc-result-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.svc-result-body {
  font-size: 0.82rem;
  margin-top: 3px;
  line-height: 1.5;
  opacity: 0.9;
}
.svc-result.svc-pending {
  background: #f8fafc;
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
}
.svc-result.svc-pending .svc-result-title {
  color: var(--text-main);
  font-size: 0.88rem;
}
.svc-result.svc-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.svc-result.svc-coming {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #713f12;
  flex-direction: column;
}
.svc-result.svc-coming .svc-result-emoji {
  font-size: 2rem;
}
.svc-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.svc-call-link {
  background: #fff;
  color: #713f12;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.svc-call-link:hover {
  background: #fffbeb;
}
.svc-try-btn {
  background: var(--primary-600);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.svc-try-btn:hover {
  background: var(--primary-700);
}
.svc-note-close {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
}


/* ==========================================================================
   ORDER STATUS TIMELINE (Blinkit-style)
   ========================================================================== */
.ost-container {
  display: flex;
  width: 100%;
  padding: 18px 6px;
}
.ost-timeline-horizontal {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.ost-timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: #e2e8f0;
  border-radius: 4px;
}
.ost-timeline-horizontal .ost-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ost-timeline-horizontal .ost-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.ost-timeline-horizontal .ost-step.reached .ost-icon {
  background: var(--primary-500);
  border-color: var(--primary-600);
  box-shadow: 0 4px 10px rgba(16,185,129,0.3);
}
.ost-timeline-horizontal .ost-step.current .ost-icon {
  animation: ost-pulse 1.6s infinite;
}
.ost-timeline-horizontal .ost-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}
.ost-timeline-horizontal .ost-step.reached .ost-label {
  color: var(--text-main);
}
.ost-timeline-horizontal .ost-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Vertical variant (used in order details / track page) */
.ost-timeline-vertical {
  flex-direction: column;
  position: relative;
  max-width: 420px;
}
.ost-timeline-vertical::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 24px;
  width: 3px;
  background: #e2e8f0;
  border-radius: 4px;
}
.ost-timeline-vertical .ost-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}
.ost-timeline-vertical .ost-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f1f5f9;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.ost-timeline-vertical .ost-step.reached .ost-icon {
  background: var(--primary-500);
  border-color: var(--primary-600);
}
.ost-timeline-vertical .ost-step.current .ost-icon {
  animation: ost-pulse 1.6s infinite;
}
.ost-timeline-vertical .ost-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 11px;
}
.ost-timeline-vertical .ost-step.reached .ost-label {
  color: var(--text-main);
}
.ost-timeline-vertical .ost-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -2px;
}

@keyframes ost-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.ost-cancelled {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Compact timeline inside profile order cards */
.profile-order-card .ost-container {
  padding: 12px 4px 4px;
  margin: 10px 0 4px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.profile-order-card .ost-timeline-horizontal::before {
  top: 26px;
  left: 8%;
  right: 8%;
}
.profile-order-card .ost-timeline-horizontal .ost-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}
.profile-order-card .ost-timeline-horizontal .ost-label {
  font-size: 0.62rem;
}
.profile-order-card .ost-timeline-horizontal .ost-time {
  font-size: 0.6rem;
}

/* ==========================================================================
   PRODUCT RATINGS & REVIEWS
   ========================================================================== */
.rt-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  margin: 2px 0;
  font-size: inherit;
}
.rt-star {
  color: #d1d5db;
  font-size: 0.9rem;
}
.rt-star.filled {
  color: #f59e0b;
}
.rt-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-left: 3px;
}
.rt-count {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 3px;
}
.rt-stars:hover .rt-count {
  color: var(--primary-600);
}

/* Reviews modal */
.rt-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rt-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.rt-big-star {
  color: #f59e0b;
  font-size: 1.6rem;
}
.rt-stars-lg .rt-star {
  font-size: 1.1rem;
}
.rt-count-lg {
  font-size: 0.8rem;
  color: #64748b;
}
.rt-product {
  font-size: 0.8rem;
  color: var(--primary-700);
  font-weight: 700;
  margin-top: 2px;
}
.rt-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.rt-input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}
.rt-input:focus {
  outline: none;
  border-color: var(--primary-500);
}
.rt-picker {
  display: inline-flex;
  gap: 2px;
}
.rt-pick-star {
  cursor: pointer;
  font-size: 1.6rem;
  color: #d1d5db;
  transition: color 0.15s ease;
}
.rt-pick-star.active {
  color: #f59e0b;
}
.rt-review {
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fafcfd;
}
.rt-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.rt-review-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}
.rt-review-meta .rt-star {
  font-size: 0.8rem;
}
.rt-review-text {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
}
.rt-no-reviews {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

[data-theme="dark"] .rt-input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
[data-theme="dark"] .rt-review {
  background: #0f172a;
  border-color: #1e293b;
}
[data-theme="dark"] .rt-avatar {
  background: #134e4a;
  color: #5eead4;
}
[data-theme="dark"] .rt-num,
[data-theme="dark"] .rt-big {
  color: #e2e8f0;
}
[data-theme="dark"] .rt-review-name {
  color: #f1f5f9;
}
[data-theme="dark"] .rt-review-text {
  color: #cbd5e1;
}





