/* ============================================================
   Indiana Pharmacy — Design System
   Apple + SAP Fiori + Shopify + Stripe + Nike influences
   Glassmorphism · Mobile-first · Dark/Light
   ============================================================ */

:root {
  --brand: #0a7c66;
  --brand-dark: #065f4f;
  --brand-light: #e6f7f3;
  --accent: #2563eb;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
  --bg: #f5f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 88px;
  --logo-h: 58px;
  --logo-h-mobile: 44px;
  --glass: blur(16px) saturate(180%);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --brand: #2dd4bf;
  --brand-dark: #14b8a6;
  --brand-light: #134e4a;
  --bg: #0b1220;
  --bg-elevated: rgba(15, 23, 42, 0.75);
  --surface: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* Glass surfaces */
.glass {
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Sticky nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  height: auto;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}
.site-header .inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Full brand logo — wide asset (icon + Indiana Pharmacy text) */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition);
}
.logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(10, 124, 102, 0.18));
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  line-height: 0;
}
.logo-mark img,
.logo > img,
.logo img.brand-logo {
  width: auto !important;
  height: var(--logo-h) !important;
  max-width: min(280px, 42vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.logo-text {
  display: none; /* Logo image already includes name + unit line */
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}
.logo-name {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.logo-tagline {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: normal;
  max-width: 200px;
  line-height: 1.25;
}
/* Footer logo block */
.site-footer .logo {
  margin-bottom: 0.85rem;
  white-space: normal;
}
.site-footer .logo-mark {
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
}
.site-footer .logo img.brand-logo,
.site-footer .logo-mark img {
  height: 64px !important;
  max-width: min(320px, 90vw);
}
.site-footer .logo-tagline { max-width: 280px; font-size: 0.75rem; }

@media (max-width: 767px) {
  :root { --nav-h: 72px; }
  .logo-mark { padding: 0.28rem 0.4rem; border-radius: 10px; }
  .logo-mark img,
  .logo > img,
  .logo img.brand-logo {
    height: var(--logo-h-mobile) !important;
    max-width: min(168px, 46vw);
  }
  .site-header .inner { gap: 0.55rem; padding: 0.45rem 0.75rem; }
  .search-wrap { max-width: none; }
}

.search-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 124, 102, 0.15);
}
.search-wrap .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  z-index: 50;
}
.search-dropdown.show { display: block; }
.search-dropdown a {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.search-dropdown a:hover { background: var(--brand-light); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.badge-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Mega menu bar */
/* Motto strip */
.motto-strip {
  background: linear-gradient(90deg, #065f4f, #0a7c66 40%, #0e4d7a);
  color: #fff;
  font-size: 0.82rem;
}
.motto-strip .inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.motto-label {
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}
.motto-text {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.motto-sub { opacity: 0.88; font-size: 0.78rem; }
.footer-motto {
  margin: 0.5rem 0 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-motto {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.mega-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
}
.mega-bar .inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.mega-bar a {
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.mega-bar a:hover, .mega-bar a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Layout */
.container-op {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

/* Hero */
.hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, #0a7c66 0%, #0e4d7a 50%, #1e1b4b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-with-logo {
  min-height: 300px;
  padding: 2rem 2.25rem;
}
.hero-logo-badge {
  background: #fff;
  border-radius: 18px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
  max-width: min(360px, 100%);
  line-height: 0;
}
.hero-logo-badge img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  line-height: 1.1;
}
.hero p { opacity: 0.9; max-width: 40ch; margin: 0 0 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 640px) {
  .hero-with-logo { padding: 1.35rem; }
  .hero-logo-badge { max-width: 100%; width: 100%; padding: 0.7rem 0.9rem; }
  .hero-logo-badge img { max-height: 78px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10,124,102,.3); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Cards & grids */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 2rem 0 1rem;
}
.section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card .thumb {
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--brand-light), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .thumb-fallback {
  font-size: 2.5rem;
  line-height: 1;
}
.product-card .badge-off {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.product-card .rx-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--warning);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.product-card .body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; }
.product-card .name {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card .generic { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
}
.product-card .price { font-weight: 750; font-size: 1.05rem; color: var(--brand); }
.product-card .mrp { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.product-card .actions { padding: 0 0.85rem 0.85rem; }

/* Category chips */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: var(--transition);
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-card .emoji { font-size: 1.6rem; margin-bottom: 0.4rem; }
.cat-card .label { font-size: 0.8rem; font-weight: 600; }

/* Brand row */
.brand-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.brand-pill {
  flex: 0 0 auto;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.brand-pill:hover { border-color: var(--brand); color: var(--brand); }

/* Blog cards */
.blog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .blog-grid { grid-template-columns: repeat(4, 1fr); }
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card .type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-weight: 700;
}
.blog-card h3 { font-size: 1rem; margin: 0.4rem 0; letter-spacing: -0.02em; }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, transparent 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating widgets */
.float-cart, .float-chat {
  position: fixed;
  right: 1.1rem;
  z-index: 1100;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
  font-size: 1.35rem;
}
.float-cart { bottom: 5.5rem; background: var(--brand); }
.float-chat { bottom: 1.5rem; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.float-cart:hover, .float-chat:hover { transform: scale(1.08); }

/* Chat panel */
.chat-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, 70vh);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-panel .head {
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #0a7c66, #2563eb);
  color: #fff;
  font-weight: 700;
}
.chat-panel .messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.chat-msg {
  max-width: 90%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  white-space: pre-wrap;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg .disclaimer {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  opacity: 0.75;
  font-style: italic;
}
.chat-panel .foot {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}
.chat-panel .foot input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 124, 102, 0.12);
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="dark"] .alert-success { background: #064e3b; color: #a7f3d0; }
[data-theme="dark"] .alert-error { background: #7f1d1d; color: #fecaca; }

/* Cart table */
.cart-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1fr 340px; }
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  align-items: center;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.summary-row.total {
  font-weight: 750;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Product detail */
.pdp {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1fr 1fr; }
}
/* Professional PDP */
.pdp-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pdp-breadcrumb a:hover { color: var(--brand); }
.pdp-breadcrumb .current { color: var(--text); font-weight: 600; }
.pdp-motto-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10,124,102,0.1), rgba(14,77,122,0.08));
  border: 1px solid rgba(10,124,102,0.18);
  font-size: 0.88rem;
}
.pdp-motto-bar strong { color: var(--brand); font-size: 0.95rem; }
.pdp-motto-mark { color: var(--brand); }
.pdp-motto-sep { opacity: 0.4; }
.pdp-pro { gap: 2rem; }
.pdp-gallery-wrap { display: flex; flex-direction: column; gap: 0.65rem; }
.pdp-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.pdp-gallery img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 0.5rem;
}
.pdp-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  padding: 3rem;
}
.pdp-placeholder span { font-size: 4rem; }
.pdp-save-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}
.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.pdp-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.pdp-thumb:hover { border-color: var(--brand); }
.pdp-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,124,102,.18); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.pdp-trust-row span { color: var(--brand); margin-right: 0.25rem; }
.pdp-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem; }
.pdp-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pdp-badge.rx { background: #fef3c7; color: #92400e; }
.pdp-badge.otc { background: #d1fae5; color: #065f46; }
.pdp-badge.feat { background: #e0e7ff; color: #3730a3; }
.pdp-badge.stock.in { background: #ecfdf5; color: #047857; }
.pdp-badge.stock.out { background: #fee2e2; color: #b91c1c; }
.pdp-title {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.pdp-generic { color: var(--text-muted); margin: 0 0 0.65rem; font-size: 0.95rem; }
.pdp-rating { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.pdp-rating .stars { color: #f59e0b; letter-spacing: 0.05em; margin-right: 0.35rem; }
.pdp-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.pdp-price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.pdp-price-main .big { font-size: 1.85rem; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; }
.pdp-price-main .mrp { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; }
.pdp-price-main .off { color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.pdp-price-note { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.pdp-rx-panel {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.pdp-rx-panel strong { color: #92400e; display: block; margin-bottom: 0.35rem; }
.pdp-rx-panel p { margin: 0 0 0.65rem; color: #78350f; }
.pdp-lead { font-size: 0.95rem; line-height: 1.55; margin: 0 0 1rem; }
.pdp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}
@media (max-width: 560px) { .pdp-specs { grid-template-columns: 1fr; } }
.pdp-spec {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pdp-spec .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.pdp-spec .v { font-size: 0.88rem; font-weight: 600; }
.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1.15rem;
}
.pdp-qty label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.25rem; }
.pdp-qty input {
  width: 72px;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: var(--surface);
  color: var(--text);
}
.btn-lg { padding: 0.85rem 1.35rem; font-size: 0.95rem; }
.pdp-promise {
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1rem;
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pdp-promise h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.pdp-promise p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.pdp-tabs-wrap { margin-top: 2rem; }
.pdp-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.35rem 1.5rem;
  line-height: 1.65;
  box-shadow: var(--shadow);
}
.pdp-safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.pdp-safety-grid > div {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.pdp-safety-grid .k { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.pdp-faq { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.pdp-faq p { margin: 0.35rem 0 0; color: var(--text-muted); }
.pdp-alt-section { margin-top: 2.5rem; }
.pdp-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Search dropdown with product image */
.search-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}
.search-dropdown .s-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--brand-light);
  flex-shrink: 0;
}
.search-dropdown .s-meta { flex: 1; min-width: 0; }
.search-dropdown .s-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown .s-price { font-weight: 700; color: var(--brand); margin-left: auto; flex-shrink: 0; }
.pdp-info h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.price-block { margin: 1rem 0; }
.price-block .big { font-size: 1.8rem; font-weight: 750; color: var(--brand); }
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0 1rem;
}
.tabs button {
  background: none;
  border: none;
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer h4 { margin: 0 0 0.75rem; font-size: 0.9rem; }
.site-footer a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  width: min(1280px, 100%);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* 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-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden-mobile { display: none; }
@media (min-width: 768px) {
  .hidden-mobile { display: inline-flex; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.45s ease both; }

/* PWA install bar */
.pwa-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: none;
  z-index: 1300;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.pwa-bar.show { display: flex; }

/* ============================================================
   Auth / Register / Login
   ============================================================ */
.auth-page {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 180px);
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.auth-brand.auth-brand-logo {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.auth-logo-mark {
  width: 100%;
  max-width: 340px;
  padding: 0.75rem 1rem !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1) !important;
}
.auth-logo-mark img.brand-logo {
  width: 100% !important;
  height: auto !important;
  max-height: 96px !important;
  max-width: 100% !important;
  margin: 0 auto;
}
.auth-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.auth-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 32ch;
}
.auth-tagline span {
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
}

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.5rem;
  gap: 0.25rem;
}
.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  opacity: 0.45;
  transition: var(--transition);
}
.auth-step.is-active,
.auth-step.is-done {
  opacity: 1;
}
.auth-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-muted);
}
.auth-step.is-active .auth-step-num {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10, 124, 102, 0.15);
}
.auth-step.is-done .auth-step-num {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}
.auth-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-step.is-active .auth-step-label {
  color: var(--brand);
}
.auth-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 1.1rem;
}

.auth-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-panel-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.auth-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  transition: var(--transition);
}
.auth-input-row:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 124, 102, 0.12);
}
.auth-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.auth-mobile-input,
.auth-input-row .form-control {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.auth-otp-input {
  letter-spacing: 0.35em;
  font-size: 1.35rem !important;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem !important;
}
.auth-btn {
  margin-top: 0.35rem;
  min-height: 48px;
  font-size: 0.95rem;
}
.auth-timer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}
.auth-verified {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
[data-theme="dark"] .auth-verified {
  background: #064e3b;
  color: #a7f3d0;
}
.auth-footer {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--brand);
  font-weight: 700;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--bg);
}
.auth-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.auth-details summary::-webkit-details-marker { display: none; }
.auth-link-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.35rem;
  text-decoration: underline;
}
.req { color: var(--danger); }
.optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.field-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--danger);
}
.auth-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-check input { margin-top: 0.2rem; }
.auth-check a { color: var(--brand); font-weight: 600; }
.auth-spinner { font-size: 0.9rem; }

.auth-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.auth-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.auth-toast.is-error { background: #dc2626; }

@media (max-width: 480px) {
  .auth-card { padding: 1.35rem 1.1rem 1.25rem; }
  .auth-step-label { font-size: 0.65rem; }
}
