/* The Vitamin Store – medicine & supplements ecommerce – blue & white theme */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #2563eb;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-section: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-blue: rgba(29, 78, 216, 0.18);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font: 'DM Sans', system-ui, sans-serif;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 24px rgba(29,78,216,0.22);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ---- Scroll-reveal animation utilities ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 0.45rem 1.5rem;
  font-size: 0.78rem;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-bar-text { opacity: 0.88; }
.top-bar-right { display: flex; gap: 1rem; align-items: center; }
.top-bar-link { color: rgba(255,255,255,0.82); transition: color var(--transition); }
.top-bar-link:hover { color: #fff; text-decoration: underline; }
.top-bar-promo { font-weight: 600; color: #93c5fd; }
.top-bar-promo:hover { color: #bfdbfe; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
  backdrop-filter: saturate(180%) blur(20px);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.header-search {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-subtle);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
  background: #fff;
}
.header-search input {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--text-light); }
.header-search-btn {
  padding: 0.55rem 1.1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0 999px 999px 0;
  transition: background var(--transition);
}
.header-search-btn:hover { background: var(--primary-dark); }
.nav-bar {
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-bar-link {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}
.nav-bar-link:hover { color: var(--primary); background: rgba(29,78,216,0.06); }
.nav-bar-cta { margin-left: auto; }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--bg-subtle); color: var(--primary); }
.cart-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
  color: var(--primary);
}
.logo:hover { opacity: 0.85; }
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--primary);
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text-wrap .logo-line1 {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.logo-text-wrap .logo-line2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--primary);
  background: rgba(29,78,216,0.06);
}
.nav-link:hover::after { width: calc(100% - 1.7rem); }

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.cart-link:hover .cart-icon-wrap {
  background: rgba(29,78,216,0.06);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,78,216,0.15);
}
.cart-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.cart-link:hover .cart-icon { color: var(--primary); }
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Main */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Each wrap is a flex column: card stretches, button always at bottom */
.product-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-wrap .product-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardReveal 0.55s ease backwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29,78,216,0.14);
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card-image {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.1rem 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.product-card-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  color: var(--text);
  transition: color var(--transition);
}
.product-card-title:hover { color: var(--primary); }
a.product-card-image {
  display: block;
  text-decoration: none;
}
.product-card-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  margin-top: auto;
}
.product-card-compare {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.product-card-select {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  pointer-events: none;
}
.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  pointer-events: none;
}
.product-badge.sold-out {
  background: rgba(100,116,139,0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.product-badge.sale {
  background: var(--primary);
  color: #fff;
}

/* Add to Cart / Sold Out button — inside card body, always at bottom */
.product-list-cart-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,78,216,0.22);
}
.product-list-cart-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(29,78,216,0.35);
}
.product-list-cart-btn--disabled {
  background: var(--bg-section);
  color: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid var(--border);
}
.popular-products .section-cta { margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
/* Hero — general purpose */
.hero {
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  animation: fadeUp 0.8s ease;
}
.hero-pharmacy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eff6ff 0%, #fff 60%, #f0f9ff 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(29,78,216,0.08);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-trust {
  font-size: 0.85rem;
  color: var(--text-light);
}
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero p:not(.hero-lead):not(.hero-trust) {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero .btn { animation: fadeUp 0.8s ease 0.2s backwards; }

/* Hero sale (blue hero + optional background image) — sober, no motion */
.hero-sale {
  position: relative;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2.75rem 1.5rem;
  animation: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-sale-with-bg .hero-sale-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 78, 216, 0.75);
  pointer-events: none;
}
.hero-sale-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-sale-badge {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}
.hero-sale-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.hero-sale-sub { font-size: 1rem; opacity: 0.95; margin-bottom: 1.5rem; }
.hero-sale .btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.hero-sale .btn-white:hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: #fff;
}

.hero-cta-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.hero-cta-inner { max-width: 700px; margin: 0 auto; }
.hero-cta-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hero-cta-text { color: var(--text-muted); margin-bottom: 1rem; }

/* Collections grid */
.collections-section { padding: 2.5rem 0; }
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.collection-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}
.collection-card:hover {
  border-color: var(--primary);
  background: rgba(29, 78, 216, 0.06);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.collection-card-title { font-size: 0.95rem; }

/* Made for you */
.made-for-you {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.made-for-you-inner { max-width: 640px; margin: 0 auto; }
.made-for-you-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.made-for-you-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.made-for-you-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.made-for-you .btn { margin-top: 0.5rem; }

/* Testimonials real (homepage) */
.testimonials-real .testimonials-inner { padding: 2rem 1.5rem; }
.testimonials-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Instagram section */
.instagram-section {
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.instagram-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.instagram-text { color: var(--text-muted); margin-bottom: 1rem; }
.instagram-placeholder {
  min-height: 120px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Store homepage layout (store-home) ---------- */
.store-home {
  overflow-x: hidden;
}

/* Hero — panel on soft band; image variant uses CSS var */
.sh-hero {
  position: relative;
  background: var(--bg-subtle);
  padding: 2.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
}
.sh-hero--image {
  background: var(--primary);
  background-image: var(--sh-hero-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 3rem 1.25rem;
}
.sh-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: none;
}
.sh-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.sh-hero__panel {
  max-width: 520px;
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.sh-hero--image .sh-hero__panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.5);
}
.sh-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.sh-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.sh-hero__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
/* Hero search — pharmacy-style catalogue search */
.sh-hero__search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.sh-hero__search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.sh-hero__search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}
.sh-hero__search .btn {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  white-space: nowrap;
}
.sh-hero--image .sh-hero__search input[type="search"] {
  background: #fff;
}
.sh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.sh-hero__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sh-hero__link:hover {
  color: var(--accent);
}

/* Trust row */
.sh-trust {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
}
.sh-trust__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.sh-trust__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sh-trust__icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(29,78,216,0.08);
  border: 1px solid rgba(29,78,216,0.15);
  flex-shrink: 0;
}
.sh-trust__icon--2 {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}
.sh-trust__icon--3 {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
}

/* Featured block wrapper — products first */
.sh-featured {
  padding: 2.5rem 0 1rem;
  background: var(--bg-subtle);
}
.sh-featured__main {
  padding-top: 0;
  padding-bottom: 0;
}
.sh-featured__main:not(:has(.featured-section)) {
  display: none;
}
.sh-featured .featured-section {
  margin-top: 0;
}
.sh-featured .section-title {
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Category grid — light band so cards read as raised panels */
.sh-categories {
  padding: 2.5rem 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.sh-categories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.sh-categories__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.sh-categories__all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.sh-categories__all:hover {
  text-decoration: underline;
}
.sh-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.sh-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.sh-cat-card:hover {
  border-color: var(--border-blue);
  background: rgba(29,78,216,0.03);
  color: var(--primary);
  transform: translateX(3px);
  box-shadow: var(--shadow);
}
.sh-cat-card__go {
  font-size: 1.1rem;
  opacity: 0.4;
  transition: transform var(--transition), opacity var(--transition);
}
.sh-cat-card:hover .sh-cat-card__go {
  transform: translateX(5px);
  opacity: 1;
}

/* About band */
.sh-about {
  padding: 2.75rem 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.sh-about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .sh-about__inner {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}
.sh-about__content {
  max-width: 540px;
}
.sh-about__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.sh-about__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.sh-about__text a {
  color: var(--primary);
  font-weight: 600;
}
.sh-about__aside-box {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .sh-about__aside-box { height: 180px; }
}

/* Testimonials tweak */
.sh-testimonials {
  background: var(--surface);
}
.sh-testimonials__title {
  margin-bottom: 0.5rem;
}

/* Bottom CTA band */
.sh-cta {
  background: var(--primary);
  color: #fff;
  padding: 2rem 1.25rem;
}
.sh-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.sh-cta__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.sh-cta__sub {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}
.sh-cta__btn {
  flex-shrink: 0;
}

/* Social / stay updated */
.sh-social {
  padding: 2rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.sh-social__inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.sh-social__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.sh-social__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Trust badges */
.trust-badges {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.5s ease 0.15s backwards;
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-icon { font-size: 1.25rem; }

/* Section titles */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
  line-height: 1.15;
  animation: fadeUp 0.5s ease;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(29,78,216,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.section-cta { text-align: center; margin-top: 1rem; }

/* Category strip */
.category-strip { margin: 2.5rem 0; }
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.category-card:hover {
  border-color: var(--border-blue);
  background: rgba(29,78,216,0.03);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card-icon {
  font-size: 2rem;
  transition: transform var(--transition);
}
.category-card:hover .category-card-icon { transform: scale(1.15); }
.category-card-name { font-weight: 600; font-size: 0.9rem; text-align: center; }

/* Testimonials */
.testimonials-section {
  margin-top: 3rem;
  padding: 3rem 0;
  background: var(--bg-subtle);
  border-radius: var(--radius);
}
.testimonials-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.testimonials-section .section-title { margin-bottom: 2rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}
.testimonial-quote {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
  font-style: italic;
  opacity: 0.9;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: 0.15rem;
}
.testimonial-author strong { color: var(--text); font-weight: 600; }

/* Page titles */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
  animation: fadeUp 0.5s ease;
}

/* Categories filter */
.categories-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.5s ease 0.1s backwards;
}
.cat-pill {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.02);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  animation: fadeUp 0.6s ease;
}
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.product-gallery #product-gallery-main {
  flex: 1;
  min-height: 0;
}
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(145deg, var(--bg-subtle) 0%, #f1f5f9 100%);
  color: var(--text-muted);
}
.product-detail-placeholder-icon {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}
.product-detail-placeholder-icon svg {
  width: 100%;
  height: 100%;
}
.product-detail-placeholder-text {
  font-size: 0.9rem;
  font-weight: 500;
}
.product-detail-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.product-detail-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.product-detail-compare {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}
.product-detail-desc {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.product-detail-desc .product-desc-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}
.product-detail-desc .product-desc-list li {
  margin-bottom: 0.25rem;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.product-detail-actions .product-in-cart {
  width: 100%;
  margin-top: 0.25rem;
}
.product-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-qty-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.product-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-qty-controls input {
  width: 3rem;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface);
  -moz-appearance: textfield;
}
.product-qty-controls input::-webkit-outer-spin-button,
.product-qty-controls input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--surface-hover);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}
.product-in-cart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.product-in-cart-label { font-weight: 500; color: var(--text); }
.product-in-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.product-in-cart-qty .qty-sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1rem;
}
.product-in-cart-qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

/* Cart */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  animation: fadeUp 0.4s ease backwards;
  backdrop-filter: blur(14px);
}
.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.1s; }
.cart-item:nth-child(3) { animation-delay: 0.15s; }
.cart-item-thumb { flex-shrink: 0; }
.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  object-fit: cover;
  display: block;
}
.cart-item-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; margin-bottom: 0.25rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-subtotal { font-weight: 700; color: var(--primary); min-width: 4rem; text-align: right; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-item-qty button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cart-item-qty button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cart-item-qty .remove-item {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.cart-item-qty .remove-item:hover { color: #dc2626; }
.cart-total {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  animation: fadeUp 0.5s ease;
}
.cart-empty h2 { color: var(--text); margin-bottom: 0.5rem; }

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.form-error { color: #dc2626; margin-bottom: 1rem; padding: 0.5rem 0; }
.form-success { color: #16a34a; margin-bottom: 1rem; padding: 0.5rem 0; }
.link-primary { color: var(--primary); font-weight: 500; }
.link-primary:hover { text-decoration: underline; }

/* Auth pages */
.auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  animation: fadeUp 0.5s ease;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-sub { color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Profile & orders */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.profile-section-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text); }
.order-list { display: flex; flex-direction: column; gap: 0.75rem; }
.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.order-card-main { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-id { font-weight: 600; }
.order-date { color: var(--text-muted); font-size: 0.9rem; }
.order-total { font-weight: 700; color: var(--primary); }
.order-detail-shipping, .order-detail-items { background: var(--bg-subtle); border-radius: var(--radius); padding: 1.25rem; }
.order-items-list { list-style: none; padding: 0; margin: 0; }
.order-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-link { display: flex; align-items: center; gap: 0.75rem; flex: 1; color: inherit; text-decoration: none; }
.order-item-link:hover { color: var(--primary); }
.order-item-img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-subtle); }
.order-item-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--text-muted); }
.order-item-qty { color: var(--text-muted); }
.order-item-price { font-weight: 600; color: var(--primary); }
.order-detail-total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Products toolbar & filters */
.products-page-header { margin-bottom: 0.5rem; }
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.products-count { font-size: 0.9rem; margin: 0; }
.products-filters { margin-top: 0; }
.products-empty { padding: 3rem 0; text-align: center; color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 2rem 0;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}
.pagination-btn:hover { background: var(--bg-subtle); border-color: var(--primary); color: var(--primary); }
.pagination-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Sale badge */
.product-badge.sale { background: var(--primary); color: #fff; }
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filter-form input[type="number"] { width: 5rem; padding: 0.5rem; }
.filter-form select { width: auto; min-width: 10rem; padding: 0.5rem 0.75rem; }
.filter-label { font-size: 0.9rem; color: var(--text-muted); margin-right: 0.25rem; }
.filter-sep { color: var(--text-muted); }

/* Homepage banners */
.banner-section { margin: 2rem 0; animation: fadeUp 0.6s ease 0.1s backwards; }
.banner-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.banner-card {
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.banner-card-blue { background: var(--primary); color: #fff; }
.banner-card-blue h3, .banner-card-light h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.banner-card-blue p, .banner-card-light p { opacity: 0.95; font-size: 0.95rem; margin-bottom: 1rem; }
.banner-card-light { background: var(--bg-subtle); border: 1px solid var(--border); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f8fafc; }

/* Promo section */
.promo-section { margin-top: 3rem; padding: 2.5rem 0; background: var(--bg-subtle); border-radius: var(--radius); animation: fadeUp 0.6s ease 0.2s backwards; }
.promo-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.promo-inner h2 { margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--text); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.promo-item { transition: transform 0.2s ease; }
.promo-item:hover { transform: translateY(-2px); }
.promo-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 0.75rem; }
.promo-item h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.promo-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Footer — dark premium */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.88rem;
}
.footer-trust-row {
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem 1.5rem;
}
.footer-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.footer-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.footer-trust-icon { font-size: 1.6rem; }
.footer-trust-item strong { color: #f1f5f9; font-size: 0.92rem; font-weight: 600; }
.footer-trust-item span { font-size: 0.82rem; color: #64748b; }
.footer-company .footer-address { font-size: 0.83rem; line-height: 1.55; margin-top: 0.3rem; color: #64748b; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .footer-store-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.footer-tagline { font-size: 0.83rem; line-height: 1.55; color: #64748b; }
.footer-links-block h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
.footer-links-block ul { list-style: none; padding: 0; margin: 0; }
.footer-links-block li { margin-bottom: 0.5rem; }
.footer-links-block a { color: #64748b; transition: color var(--transition); }
.footer-links-block a:hover { color: #93c5fd; }
.footer-newsletter h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  margin-bottom: 0.6rem;
}
.footer-newsletter p { font-size: 0.83rem; margin-bottom: 0.9rem; color: #64748b; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.88rem;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #f1f5f9;
  transition: border-color var(--transition), background var(--transition);
}
.newsletter-form input::placeholder { color: #475569; }
.newsletter-form input:focus {
  outline: none;
  border-color: rgba(147,197,253,0.5);
  background: rgba(255,255,255,0.1);
}
.newsletter-form .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  background: var(--primary);
  color: #fff;
}
.newsletter-form .btn:hover { background: var(--primary-dark); }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #475569; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: #475569; transition: color var(--transition); }
.footer-legal a:hover { color: #93c5fd; }
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a { color: #475569; transition: color var(--transition); }
.footer-links a:hover { color: #93c5fd; }

/* Newsletter page */
.newsletter-page { max-width: 420px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* Product card no image placeholder */
.product-card-noimg { color: var(--text-muted); font-size: 0.9rem; }

/* Toast / alerts (glass style) */
.toast-container {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 120;
}
.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.72);
  color: #f9fafb;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  animation: toastIn 0.25s ease-out, toastOut 0.3s ease-in forwards;
  animation-delay: 0s, 3.2s;
}
.toast-success { border-left: 3px solid #22c55e; }
.toast-error { border-left: 3px solid #ef4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.4s ease;
}
.breadcrumb a:hover { color: var(--primary); }

/* Success page */
.success-block {
  text-align: center;
  padding: 4rem 2rem;
  animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.success-block h1 { margin-bottom: 0.5rem; color: var(--text); }
.success-block p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Admin overrides */
.admin-layout .main { max-width: 1400px; }
.admin-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.4s ease;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .actions { display: flex; gap: 0.5rem; }
.admin-table .actions a,
.admin-table .actions button {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}
.badge-success { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.badge-muted { background: var(--surface-hover); color: var(--text-muted); }
.badge-warning { background: rgba(234, 179, 8, 0.2); color: #eab308; }

/* Admin sidebar */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: var(--primary);
  background: rgba(29, 78, 216, 0.08);
}
.admin-sidebar .sidebar-back { margin-top: auto; }
.admin-main { margin-left: 240px; padding: 2rem; }
@media (max-width: 768px) {
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main { margin-left: 0; }
}

/* Mobile menu */
.mobile-menu-btn {
  position: absolute;
  top: 0.875rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 101;
  transition: background 0.2s ease;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.menu-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
.site-header.menu-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — All breakpoints
   1024px  Tablet landscape
    768px  Tablet portrait / large mobile
    640px  Mobile landscape
    480px  Mobile portrait
    380px  Small mobile
═══════════════════════════════════════════════════════ */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .header-inner { padding: 0.75rem 1.25rem; }
  .header-search { max-width: 300px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .medico-product-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .medico-features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* ── 768px ── */
@media (max-width: 768px) {

  /* Top bar */
  .top-bar { padding: 0.4rem 1rem; }
  .top-bar-inner { flex-direction: column; gap: 0.2rem; text-align: center; }
  .top-bar-right { justify-content: center; }

  /* Header */
  .mobile-menu-btn { display: flex !important; }
  .site-header .header-inner .nav,
  .site-header .nav-bar { display: none; }
  .site-header.menu-open .header-inner .nav,
  .site-header.menu-open .nav-bar {
    display: flex;
    flex: 1 1 100%;
    order: 10;
  }
  .site-header .nav-bar {
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
    background: #fff;
  }
  .site-header .nav-bar-inner {
    flex-direction: column;
    width: 100%;
    gap: 0.15rem;
    padding: 0 0.75rem;
  }
  .site-header .nav-bar-link {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    display: block;
  }
  .site-header .header-inner .nav {
    flex-direction: column;
    width: 100%;
    order: 9;
    padding: 0.75rem 0.75rem;
    border-top: 1px solid var(--border);
    gap: 0.15rem;
  }
  .site-header .header-inner .nav .nav-link {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .site-header .header-inner .nav .cart-link {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    position: relative;
    padding: 0.75rem 1rem 0.75rem 1rem;
    padding-right: 4rem;
  }
  .header-search {
    max-width: none;
    order: 3;
    width: 100%;
    flex: 1 1 100%;
  }
  .cart-summary { display: none; }
  .nav-bar-cta { margin-left: 0; width: 100%; }
  .nav { gap: 0.15rem; flex-direction: column; align-items: stretch; }
  .nav-link::after { display: none; }

  /* Main content */
  .main { padding: 1.25rem 1rem 3rem; }

  /* Hero */
  .hero { min-height: 60vh; padding: 2.5rem 1rem; }
  .hero-pharmacy { padding: 2.5rem 1rem; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  /* Trust bar */
  .trust-inner { gap: 1rem; flex-direction: column; align-items: center; }
  .sh-trust__inner { gap: 0.75rem 1.5rem; }

  /* Product grids — 2 columns */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .medico-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }

  /* Categories */
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .sh-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .sh-categories__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Features */
  .medico-features__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Stats */
  .medico-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Banner */
  .medico-banner__inner { grid-template-columns: 1fr; }
  .medico-banner__art { display: none; }

  /* Blog */
  .medico-blog__grid { grid-template-columns: 1fr; }

  /* Section heads */
  .medico-section__head { flex-wrap: wrap; gap: 0.5rem; }
  .medico-section { padding: 2rem 0; }
  .medico-hero { min-height: 360px; }
  .medico-hero__inner { padding: 3rem 1.25rem; }
  .medico-hero__title { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .medico-hero__sub { font-size: 0.95rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Store hero panel */
  .sh-hero__panel { padding: 1.5rem 1.25rem; }
  .sh-hero__search { flex-direction: column; }
  .sh-hero__search .btn { width: 100%; }
  .sh-hero__actions { flex-direction: column; align-items: stretch; }
  .sh-hero__actions .btn { width: 100%; }
  .sh-cta__inner { flex-direction: column; text-align: center; }
  .sh-cta__btn { width: 100%; max-width: 280px; }
  .sh-featured .section-title { text-align: center; }

  /* Forms */
  .filter-form { flex-direction: column; align-items: flex-start; }
  .filter-form input[type="number"], .filter-form select { width: 100%; min-width: 0; }

  /* Cart page */
  .cart-item { flex-wrap: wrap; }
  .cart-item-qty { order: 3; width: 100%; }
  .cart-item-subtotal { order: 2; text-align: left; }

  /* Cart drawer — full screen on mobile */
  .cart-drawer__panel { width: 100%; max-width: 100%; border-radius: 0; }

  /* FAB + toast */
  .cart-fab { bottom: 1rem; right: 1rem; height: 46px; padding: 0 0.9rem; font-size: 0.82rem; }
  .cart-mini-toast { right: 1rem; left: 1rem; width: auto; bottom: 1rem; }

  /* Footer */
  .footer-trust-inner { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-newsletter .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }

  /* Profile */
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .top-bar { display: none; } /* hide promo bar on small phones */

  /* Product grid — 2 cols, tighter */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .medico-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .product-card-body { padding: 0.75rem 0.85rem 0.85rem; }
  .medico-product-card__body { padding: 0.75rem 0.85rem 0.85rem; }
  .product-card-title { font-size: 0.82rem; }
  .medico-product-card__name { font-size: 0.82rem; }
  .product-card-price,
  .medico-product-card__price { font-size: 0.95rem; }
  .card-atc-btn, .medico-product-card__btn { font-size: 0.75rem; padding: 0.55rem 0.75rem; }

  /* Section */
  .section-title { font-size: 1.2rem; }
  .medico-section__title { font-size: 1.1rem; }

  /* Stats — 2 cols */
  .medico-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .medico-stat strong { font-size: 1.5rem; }

  /* Hero */
  .medico-hero { min-height: 300px; }
  .medico-hero__inner { padding: 2.5rem 1rem; }
  .medico-hero__badge { font-size: 0.65rem; }
  .medico-hero__cta { padding: 0.75rem 1.5rem; font-size: 0.85rem; }

  /* Features — 2 cols tight */
  .medico-features__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .medico-feature { padding: 0.9rem 0.75rem; gap: 0.6rem; }
  .medico-feature__icon { width: 2rem; height: 2rem; font-size: 0.9rem; }
  .medico-feature strong { font-size: 0.82rem; }
  .medico-feature span { font-size: 0.72rem; }

  /* Categories */
  .sh-categories__grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .medico-blog__grid { grid-template-columns: 1fr; }

  /* Cart FAB */
  .cart-fab { height: 42px; padding: 0 0.85rem; font-size: 0.78rem; }
  .cart-fab svg { width: 18px; height: 18px; }

  /* Cart toast — full width at bottom */
  .cart-mini-toast { left: 0.75rem; right: 0.75rem; width: auto; bottom: 0.75rem; border-radius: 16px; }

  /* Footer */
  .footer-trust-inner { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
  .footer-links-block ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; }
  .footer-links-block li { margin-bottom: 0; }
  .footer-inner { padding: 2rem 1rem 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
  .footer-bottom p { font-size: 0.78rem; }

  /* Auth */
  .auth-page { padding: 1.5rem 0.75rem 3rem; }
  .auth-card { padding: 1.5rem 1.25rem; }

  /* Order cards */
  .order-card { flex-direction: column; align-items: flex-start; }
  .order-item-row { flex-wrap: wrap; }

  /* Cart drawer */
  .cart-drawer__panel { border-radius: 0; }
  .cart-drawer__header { padding: 1rem; }
  .cart-drawer__body { padding: 0.75rem 1rem; }
  .cart-drawer__footer { padding: 0.85rem 1rem 1.25rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  /* Single column products on very small screens */
  .product-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }

  /* Header tighter */
  .header-inner { padding: 0.65rem 0.75rem 0.65rem 0.75rem; padding-right: 3.5rem; gap: 0.5rem; }
  .logo-text-wrap .logo-line2 { font-size: 1rem; }
  .mobile-menu-btn { right: 0.75rem; }

  /* Medico product grid stays 2 cols — readable on small phones */
  .medico-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }

  /* Stats single col */
  .medico-stats__grid { grid-template-columns: 1fr 1fr; }

  /* Features single col */
  .medico-features__grid { grid-template-columns: 1fr 1fr; }

  /* Banner tighter */
  .medico-banner { padding: 2rem 0.85rem; }
  .medico-banner__title { font-size: 1.15rem; }

  /* Categories */
  .sh-categories__grid { grid-template-columns: 1fr 1fr; }

  /* Cart */
  .cart-item-image, .cart-item-image-placeholder { width: 60px; height: 60px; }
  .cart-item { gap: 0.85rem; padding: 0.85rem; }

  /* Pagination */
  .pagination-btn { min-width: 1.85rem; height: 1.85rem; font-size: 0.8rem; }

  /* Toast full width */
  .cart-mini-toast { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; border-radius: 14px; }
  .cart-fab { bottom: 0.75rem; right: 0.75rem; }
}

/* ── 380px (small phones) ── */
@media (max-width: 380px) {
  .medico-hero__title { font-size: 1.5rem; }
  .medico-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .medico-product-card__name { font-size: 0.78rem; }
  .medico-product-card__price { font-size: 0.88rem; }
  .medico-stat strong { font-size: 1.3rem; }
  .header-search-btn { padding: 0.55rem 0.65rem; font-size: 0.78rem; }
}

/* ========== Medico layout — Blue + White premium theme ========== */
.theme-medico .top-bar { background: var(--primary-dark); }
.theme-medico .top-bar a,
.theme-medico .top-bar-link { color: #fff; }
.theme-medico .site-header { background: rgba(255,255,255,0.97); }

.theme-medico-main {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.theme-medico-main .main {
  padding-top: 0;
  padding-bottom: 0;
}
.medico-features__grid.main {
  padding-top: 0;
  padding-bottom: 0;
}
body.theme-medico { background: #fff; }
.theme-medico .store-home-medico,
.store-home-medico { background: #fff; }

/* ── Hero ── */
.medico-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.medico-hero--bg { background-image: var(--medico-hero-bg); }
.medico-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,23,42,0.78) 0%,
    rgba(29,78,216,0.5) 60%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
}
.medico-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
}
.medico-hero__content { max-width: 580px; }
.medico-hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93c5fd;
  background: rgba(147,197,253,0.15);
  border: 1px solid rgba(147,197,253,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease;
}
.medico-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s ease 0.1s backwards;
}
.medico-hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.25rem;
  animation: fadeUp 0.7s ease 0.2s backwards;
}
.medico-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  background: #fff;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: all var(--transition);
  animation: fadeUp 0.7s ease 0.3s backwards;
}
.medico-hero__cta:hover {
  background: #eff6ff;
  color: var(--primary-dark);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .medico-hero { min-height: 360px; }
  .medico-hero__inner { padding: 3rem 1.25rem; }
  .medico-hero__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
}

/* Feature tiles */
.medico-features {
  padding: 2rem 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.medico-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.medico-feature {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.medico-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}
.medico-feature__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-xs);
  background: rgba(29,78,216,0.1);
  color: var(--primary);
}
.medico-feature__text { display: flex; flex-direction: column; gap: 0.15rem; }
.medico-feature strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.medico-feature span { font-size: 0.8rem; color: var(--text-muted); }

/* Product section rows */
.medico-section {
  padding: 3rem 0;
  background: #fff;
}
.medico-section:nth-child(even) { background: var(--bg-subtle); }
.medico-section__inner { background: transparent; }
.medico-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.medico-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin: 0;
}
.medico-section__all {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--border-blue);
  border-radius: 999px;
  transition: all var(--transition);
}
.medico-section__all:hover {
  background: rgba(29,78,216,0.06);
  border-color: var(--primary);
}

.medico-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.medico-product-card-wrap { position: relative; }
.medico-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.medico-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29,78,216,0.14);
}
.medico-product-card__image {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
  .medico-product-card__image,
  .product-card-image { aspect-ratio: 4/3; }
}
.medico-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}
.medico-product-card:hover .medico-product-card__image img { transform: scale(1.05); }
.medico-product-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.medico-product-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.medico-product-card__name:hover { color: var(--primary); }
a.medico-product-card__image { display: block; text-decoration: none; }
.medico-product-card__prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  margin-top: auto;
}
.medico-product-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}
/* .medico-product-card__btn replaced by .card-atc-btn / .card-qty-counter */

/* Stats band */
.medico-stats {
  padding: 2.5rem 1rem;
  background: var(--primary-dark);
}
.medico-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.medico-stat {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.medico-stat:hover { background: rgba(255,255,255,0.12); }
.medico-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.medico-stat span { font-size: 0.83rem; color: rgba(255,255,255,0.65); font-weight: 500; }

/* CTA banner */
.medico-banner {
  padding: 3rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
}
.medico-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .medico-banner__inner { grid-template-columns: 1.3fr 0.7fr; }
}
.medico-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
}
.medico-banner__sub { color: #334155; margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.6; }
.medico-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-blue);
  transition: all var(--transition);
}
.medico-banner__btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29,78,216,0.3);
}
.medico-banner__art {
  min-height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  opacity: 0.9;
}

/* Categories block */
.medico-categories {
  padding: 3rem 0;
  background: #fff;
}

/* Blog block */
.medico-blog {
  padding: 3rem 0 4rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.medico-blog__title { margin-bottom: 1.5rem; }
.medico-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .medico-blog__grid { grid-template-columns: 1.3fr 1fr; }
}
.medico-blog__stack { display: flex; flex-direction: column; gap: 1rem; }
.medico-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.medico-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}
.medico-blog-card--large { grid-row: span 2; }
.medico-blog-card__img {
  height: 150px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}
.medico-blog-card--large .medico-blog-card__img { height: 220px; }
.medico-blog-card__img--3 { background: linear-gradient(135deg, #fef3c7, #fcd34d); }
.medico-blog-card__body { padding: 1.1rem 1.25rem; }
.medico-blog-card__body h3 {
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
  line-height: 1.35;
}
.medico-blog-card__body p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.6rem; line-height: 1.55; }
.medico-blog-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.medico-blog-card__link:hover { color: var(--primary-dark); }


/* Utility */
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ═══════════════════════════════════════
   FLOATING CART BUTTON (bottom-right FAB)
═══════════════════════════════════════ */
.cart-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.1rem;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(29,78,216,0.38), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              background 0.2s ease;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cart-fab:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(29,78,216,0.45), 0 4px 12px rgba(0,0,0,0.14);
}
.cart-fab:active {
  transform: translateY(-1px) scale(0.98);
}
.cart-fab svg { flex-shrink: 0; }
.cart-fab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* entrance animation */
@keyframes fab-in {
  from { opacity: 0; transform: scale(0.6) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fab-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.7) translateY(10px); }
}
.cart-fab.fab-entering { animation: fab-in 0.38s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.cart-fab.fab-leaving  { animation: fab-out 0.25s ease forwards; }

/* push the mini-toast up when FAB is visible */
.cart-fab-visible ~ * #cart-mini-toast,
body.cart-fab-visible #cart-mini-toast {
  bottom: 5.5rem;
}

/* ═══════════════════════════════════════
   CART DRAWER (slide-in sidebar)
═══════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.cart-drawer.is-open {
  pointer-events: all;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 95vw;
  height: 100%;
  background: #fff;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.16);
}
.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}
/* On mobile — slide up from bottom */
@media (max-width: 640px) {
  .cart-drawer__panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    transform: translateY(105%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  }
  .cart-drawer.is-open .cart-drawer__panel { transform: translateY(0); }
}

/* Header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}
.cart-drawer__header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.cart-drawer__header-left svg { color: var(--primary); }
.cart-drawer__header-left em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 0.15rem;
}
.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.cart-drawer__close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Items area */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}
.cart-drawer__empty-icon {
  font-size: 3.5rem;
  opacity: 0.4;
}
.cart-drawer__empty p { font-size: 0.92rem; }
.cart-drawer__empty a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: background var(--transition);
}
.cart-drawer__empty a:hover { background: var(--primary-dark); }

/* Drawer item */
.cart-drawer__item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.3s ease;
}
.cart-drawer__item:last-child { border-bottom: none; }
.cart-drawer__item-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.cart-drawer__item-img-placeholder {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cart-drawer__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-drawer__item-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer__item-price {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.cart-drawer__item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.cart-drawer__item-controls .dqty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-weight: 600;
}
.cart-drawer__item-controls .dqty-btn:hover {
  border-color: var(--primary);
  background: rgba(29,78,216,0.07);
  color: var(--primary);
}
.cart-drawer__item-controls .dqty-btn.dqty-remove:hover {
  border-color: #ef4444;
  background: #fee2e2;
  color: #dc2626;
}
.cart-drawer__item-qty {
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.cart-drawer__item-subtotal {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.1rem;
}
.cart-drawer__item-subtotal span {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
.cart-drawer__footer {
  padding: 1.1rem 1.25rem 1.5rem;
  border-top: 1.5px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cart-drawer__subtotal strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.cart-drawer__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29,78,216,0.3);
  transition: all var(--transition);
}
.cart-drawer__checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29,78,216,0.38);
}
.cart-drawer__view-cart {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.cart-drawer__view-cart:hover { color: var(--primary); }

/* ═══════════════════════════════════════
   INLINE QUANTITY COUNTER (on cards)
═══════════════════════════════════════ */
.card-cart-area {
  margin-top: 0.5rem;
  position: relative;
}
.card-atc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.68rem 1rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(29,78,216,0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.card-atc-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(29,78,216,0.38);
  transform: translateY(-1px);
}
.card-atc-btn.atc-added {
  background: #16a34a;
  box-shadow: 0 2px 10px rgba(22,163,74,0.28);
  animation: atcPulse 0.35s ease;
}
@keyframes atcPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.card-qty-counter {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 2px solid var(--primary);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  animation: fadeUp 0.25s ease;
}
.card-qty-counter.is-active { display: flex; }
.cqty-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.cqty-btn:hover { background: rgba(29,78,216,0.08); }
.cqty-btn.cqty-remove { color: #ef4444; }
.cqty-btn.cqty-remove:hover { background: #fee2e2; }
.cqty-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 2rem;
  text-align: center;
  pointer-events: none;
}

/* Cart icon badge animation */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
}

/* ═══════════════════════════════════════
   MINI CART ALERT — fixed, themed
═══════════════════════════════════════ */
.cart-mini-toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1100;
  width: 300px;
  background: #fff;
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(29,78,216,0.15), 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  pointer-events: all;
}
.cart-mini-toast--in {
  animation: cmt-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.cart-mini-toast--out {
  animation: cmt-out 0.28s ease forwards;
}
@keyframes cmt-in {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cmt-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(14px) scale(0.95); }
}

/* Blue top accent bar */
.cart-mini-toast::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Header row */
.cmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem 0.5rem;
  gap: 0.5rem;
}
.cmt-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cmt-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #dcfce7;
  border-radius: 50%;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cmt-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cmt-close:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #dc2626;
}

/* Product row */
.cmt-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.85rem 0.75rem;
}
.cmt-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.cmt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmt-body {
  flex: 1;
  min-width: 0;
}
.cmt-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.cmt-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action footer */
.cmt-footer {
  padding: 0 0.85rem 0.9rem;
}
.cmt-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cmt-view:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(29,78,216,0.35);
  transform: translateY(-1px);
}
