/* ==========================================================================
   MEDICARE PHARMACY - COMPREHENSIVE DESIGN SYSTEM & STYLESHEET
   Aesthetics: Clean clinical healthcare, high-trust blue & emerald palette,
   accessible typography, fluid micro-interactions, responsive CSS grid.
   ========================================================================== */

:root {
  /* Brand Medical Color Palette */
  --primary: #0284c7;             /* Clinical Sky Blue */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  
  --emerald: #059669;             /* Health Emerald / Mint */
  --emerald-hover: #047857;
  --emerald-light: #d1fae5;
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --teal-accent: #0d9488;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #10b981 100%);

  /* Status Colors */
  --rx-red: #ef4444;
  --rx-bg: #fef2f2;
  --otc-green: #10b981;
  --otc-bg: #ecfdf5;
  --warning-amber: #f59e0b;
  --warning-bg: #fffbeb;

  /* Neutrals & Surfaces */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

  /* Typography Colors */
  --text-main: #0f172a;           /* Dark Slate */
  --text-muted: #64748b;          /* Cool Grey */
  --text-sub: #475569;
  --text-inverse: #ffffff;

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Base Typography scaling */
  --base-font-size: 16px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max-width: 1280px;
}

/* Accessible Font Sizing states */
body[data-font-size="small"] { --base-font-size: 14px; }
body[data-font-size="normal"] { --base-font-size: 16px; }
body[data-font-size="large"] { --base-font-size: 18px; }
body[data-font-size="xlarge"] { --base-font-size: 20px; }

/* Accessible High Contrast Mode */
body.high-contrast {
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --border-color: #000000;
  --text-main: #000000;
  --text-muted: #1e293b;
  --text-sub: #111827;
  --primary: #0056b3;
  --emerald: #046c4e;
  --shadow-md: 0 0 0 2px #000000;
  --shadow-lg: 0 0 0 3px #000000;
}

/* ================= RESET & BASICS ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hidden {
  display: none !important;
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-bar {
  background-color: #041f38;
  color: #f1f5f9;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.top-bar-left .separator {
  color: rgba(255, 255, 255, 0.25);
}

.support-text strong {
  color: #38bdf8;
}

/* Accessibility Buttons */
.a11y-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.a11y-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-right: 0.2rem;
}

.a11y-btn {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #cbd5e1;
  transition: all var(--transition-fast);
  background: transparent;
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.a11y-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.contrast-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.5rem;
}

/* ================= MAIN HEADER & NAVIGATION ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon-wrap {
  transform: scale(1.05);
}

.logo-icon-wrap.small {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.accent-dot {
  color: var(--emerald);
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Header Live Search */
.header-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 540px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-group input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  background-color: var(--bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  transition: all var(--transition-normal);
  color: var(--text-main);
}

.search-input-group input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  background: #cbd5e1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #334155;
}

/* Search Dropdown Panel */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 420px;
  overflow-y: auto;
  z-index: 150;
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.search-results-list {
  padding: 0.5rem 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--bg-subtle);
}

.search-result-item:hover, .search-result-item.highlighted {
  background-color: var(--primary-light);
}

.search-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.search-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-item-price {
  font-weight: 700;
  color: var(--emerald);
  font-size: 0.95rem;
}

.search-footer {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  text-align: right;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.prescription-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-sub);
  transition: all var(--transition-fast);
  background: var(--bg-subtle);
}

.action-icon-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.user-greeting {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Cart Trigger Button */
.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.38);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--rx-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.cart-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.1;
}

.cart-sublabel {
  font-size: 0.7rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-amount {
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
}

.mobile-menu-btn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Secondary Navigation Bar */
.nav-secondary {
  border-top: 1px solid var(--border-color);
  background-color: #ffffff;
}

.nav-secondary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  display: inline-block;
  padding: 0.75rem 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-sub);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px 2px 0 0;
}

.nav-link.highlight-link {
  color: var(--emerald);
}

.hot-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.quick-delivery-notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
}

/* ================= MOBILE DRAWER ================= */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

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

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

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-sub);
}

.mobile-nav-list {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mobile-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.helpline-mobile {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.helpline-mobile strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ================= BUTTONS & COMMON UTILS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-outline-emerald {
  border: 1.5px solid var(--emerald);
  color: var(--emerald);
  background: transparent;
}

.btn-outline-emerald:hover {
  background: var(--emerald-light);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.text-primary { color: var(--primary); }
.text-emerald { color: var(--emerald); }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= SECTION BASICS ================= */
.section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(2, 132, 199, 0.08) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.shield-icon {
  display: flex;
  align-items: center;
}

.hero-headline {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
}

.hero-card-composition {
  position: relative;
  display: flex;
  justify-content: center;
}

.main-hero-img-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid #ffffff;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.main-hero-img-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-card-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: var(--shadow-md);
}

/* Floating Micro Cards */
.floating-stat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.card-rx {
  top: 15%;
  left: -25px;
}

.card-delivery {
  bottom: 15%;
  right: -25px;
  animation-delay: 2s;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.rx-icon {
  background: #fef2f2;
  color: var(--rx-red);
  font-size: 1.1rem;
}

.truck-icon {
  background: var(--primary-light);
}

.floating-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.floating-details strong {
  font-size: 0.875rem;
  color: var(--text-main);
}

.floating-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================= CATEGORIES SECTION ================= */
.categories-section {
  background-color: #ffffff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.1);
}

.category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.category-count {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================= PROMOTIONAL BANNER (OFFERS) ================= */
.offers-section {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.promo-banner-card {
  background: linear-gradient(135deg, #04223f 0%, #064e3b 100%);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
}

.promo-content {
  padding: 3.5rem;
}

.promo-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.promo-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.promo-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.promo-code-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.code-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.code-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #34d399;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: #f1f5f9;
}

.promo-timer {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.timer-countdown {
  font-weight: 700;
  color: #fbbf24;
  margin-left: 0.35rem;
}

.promo-visual {
  height: 100%;
  min-height: 320px;
}

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

/* ================= MEDICINES CATALOG SECTION ================= */
.catalog-section {
  background-color: var(--bg-body);
}

.catalog-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

.filter-select {
  padding: 0.55rem 1.25rem 0.55rem 0.85rem;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Category Filter Tabs */
.filter-tabs-wrapper {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-tabs {
  display: flex;
  gap: 0.65rem;
  min-width: max-content;
}

.filter-tab-btn {
  padding: 0.55rem 1.15rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.results-count {
  font-weight: 600;
}

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

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.product-badge-group {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-rx {
  background: var(--rx-bg);
  color: var(--rx-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-otc {
  background: var(--otc-bg);
  color: var(--otc-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-discount {
  background: #f97316;
  color: #ffffff;
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

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

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

.product-generic {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.rating-stars {
  color: #f59e0b;
}

.rating-count {
  color: var(--text-muted);
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.product-pricing {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.03);
}

/* Empty Catalog State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
  max-width: 500px;
  margin: 2rem auto;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ================= PRESCRIPTION UPLOAD SECTION ================= */
.prescription-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.prescription-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.rx-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 1.25rem;
}

.rx-badge {
  background: var(--emerald);
  color: #ffffff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.prescription-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.prescription-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.prescription-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-info strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prescription-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #d1fae5;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 500;
}

/* Prescription Form Card */
.prescription-form-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.form-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* Dropzone */
.dropzone {
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 1.5rem;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.file-input-hidden {
  display: none;
}

.dropzone-icon {
  margin-bottom: 0.75rem;
}

.dropzone-text {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.dropzone-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* File Preview Area inside dropzone */
.file-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.file-icon-type {
  font-size: 1.75rem;
}

.file-meta {
  flex: 1;
  text-align: left;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.remove-file-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-thumbnail-wrap {
  margin-top: 0.75rem;
  max-height: 140px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.thumb-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Form Controls */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.three-cols {
  grid-template-columns: 1.4fr 0.8fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  text-align: left;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

.required {
  color: var(--rx-red);
}

.form-field input, .form-field select, .form-field textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background-color: #ffffff;
  transition: border-color var(--transition-fast);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.form-checkbox input {
  margin-top: 0.15rem;
  cursor: pointer;
}

/* Prescription Status Panel */
.prescription-status-panel {
  padding: 1.75rem;
  background: #f0fdf4;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  animation: fadeIn 0.3s ease-out;
}

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

.status-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-id {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.track-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.track-step.completed .track-dot {
  background: #10b981;
  color: #ffffff;
}

.track-step.active .track-dot {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.track-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 0.5rem;
  margin-bottom: 1.2rem;
}

.track-line.active {
  background: #10b981;
}

.status-note {
  font-size: 0.85rem;
  color: #065f46;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ================= HEALTH DEVICES & WELLNESS ================= */
.health-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.health-device-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.device-img-wrap {
  width: 100%;
  height: 220px;
  background-color: #f8fafc;
  overflow: hidden;
}

.device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.health-device-card:hover .device-img {
  transform: scale(1.05);
}

.device-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.device-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.device-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.device-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ================= WHY CHOOSE US ================= */
.why-us-section {
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.25rem 1.75rem;
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-emerald { background: #d1fae5; color: #059669; }
.icon-sky { background: #e0f2fe; color: #0284c7; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-amber { background: #fef3c7; color: #d97706; }

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= REVIEWS SECTION ================= */
.reviews-section {
  background-color: #f8fafc;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.reviewer-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.verified-buyer {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
}

/* ================= FAQ SECTION ================= */
.faq-section {
  background-color: #ffffff;
}

.faq-container {
  max-width: 820px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  background: #ffffff;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ================= CONTACT SECTION ================= */
.contact-section {
  background-color: #f8fafc;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-card-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

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

.contact-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ================= MAIN FOOTER ================= */
.main-footer {
  background-color: #041423;
  color: #cbd5e1;
  padding-top: 4.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.brand-col .brand-name {
  color: #ffffff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-text {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

.footer-text.small {
  font-size: 0.825rem;
}

.license-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.newsletter-form {
  margin-bottom: 1.5rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.85rem;
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.payment-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ================= CART SLIDE-OUT DRAWER ================= */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 301;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-drawer.active {
  transform: translateX(0);
}

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

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-title-group h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-items-count-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Free Delivery Bar */
.shipping-progress-box {
  background: #f8fafc;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.shipping-text {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--text-sub);
}

.progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* Cart Items Container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-cart-view {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.cart-item-card {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  object-fit: contain;
  padding: 0.25rem;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-value {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-remove-item {
  color: #94a3b8;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.cart-remove-item:hover {
  color: var(--rx-red);
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.05);
}

.cart-coupon-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.cart-coupon-wrap input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cart-coupon-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}

.coupon-status-msg {
  font-size: 0.775rem;
  margin-bottom: 0.65rem;
}

.coupon-status-msg.success { color: var(--emerald); font-weight: 600; }
.coupon-status-msg.error { color: var(--rx-red); }

.cart-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.discount-row {
  color: var(--emerald);
  font-weight: 600;
}

.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* ================= MODAL BASE ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Product Detail Modal */
.modal-product {
  max-width: 840px;
  padding: 2.5rem;
}

.modal-product-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.modal-product-gallery {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-img {
  max-height: 320px;
  object-fit: contain;
}

.modal-product-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.modal-generic-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.modal-qty-cart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Checkout Modal */
.modal-checkout {
  max-width: 960px;
  padding: 2.5rem;
}

.checkout-header {
  margin-bottom: 1.75rem;
}

.checkout-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
}

.checkout-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
}

.checkout-section-box {
  margin-bottom: 1.75rem;
}

.box-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method-card:hover, .payment-method-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.method-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.method-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-order-summary {
  background: #f8fafc;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.checkout-items-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: 0.5rem;
}

.checkout-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.checkout-security-notice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.checkout-rx-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: #92400e;
  margin-bottom: 1.5rem;
}

/* Receipt Modal */
.modal-receipt {
  max-width: 540px;
  padding: 3rem 2rem;
  text-align: center;
}

.receipt-success-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.receipt-card {
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.875rem;
}

.receipt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Auth Modal */
.modal-auth {
  max-width: 440px;
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.auth-tab-btn.active {
  color: var(--primary);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.form-row-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-sub);
  cursor: pointer;
}

.forgot-pass-link {
  color: var(--primary);
  font-weight: 600;
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 280px;
  max-width: 380px;
  animation: toastSlideIn 0.3s ease-out;
}

.toast.toast-success { border-left-color: var(--emerald); }
.toast.toast-error { border-left-color: var(--rx-red); }
.toast.toast-info { border-left-color: var(--primary); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ================= RESPONSIVE DESIGN (MEDIA QUERIES) ================= */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .prescription-wrapper, .contact-wrapper, .promo-banner-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-secondary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-container {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .prescription-nav-btn span, .user-greeting, .cart-label-wrap {
    display: none;
  }

  .cart-trigger-btn {
    padding: 0.5rem;
    border-radius: 50%;
  }

  .action-icon-btn {
    padding: 0.5rem;
  }

  .header-search-wrapper {
    max-width: 100%;
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .modal-product-content, .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .form-row, .form-row.three-cols {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-stat-card {
    display: none;
  }

  .main-hero-img-card {
    height: 340px;
  }
}
