/* ============================================================
   Doctors Pharma — Blue & White design system
   Skill rules baked in: one dominant blue, tinted shadows,
   consistent radii, 1px dividers, left-aligned editorial grid,
   no gradient text, no purple, generous whitespace.
   ============================================================ */

:root {
  /* Color — one dominant blue direction */
  --blue-900: #062B60;
  --blue-800: #093E85;
  --blue-700: #0B4DA2;
  --blue-600: #125FCC;
  --blue-500: #2B72E0;
  --blue-100: #DCE9FB;
  --blue-50: #EFF5FE;
  --ink: #0B1B33;
  --ink-2: #33415C;
  --muted: #5B6B85;
  --line: #DCE4F0;
  --line-soft: #E9EEF7;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FE;
  --white: #FFFFFF;
  --green: #0E7A5F;
  --green-soft: #E3F4EF;
  --amber: #B45309;
  --amber-soft: #FEF3E2;
  --red: #B42318;
  --red-soft: #FDECEA;

  /* Type */
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Shape + elevation (blue-tinted, soft, restrained) */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 14px 34px -18px rgba(11, 77, 162, 0.35);
  --shadow-lg: 0 26px 60px -30px rgba(9, 62, 133, 0.45);
  --ring: 0 0 0 3px rgba(18, 95, 204, 0.22);

  --container: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.hide { display: none !important; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------------- Top strip ---------------- */
.topbar {
  background: var(--blue-900);
  color: #C9DBF6;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
}
.topbar strong { color: #fff; font-weight: 600; }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; background: var(--blue-700); border-radius: 9px; display: grid; place-items: center; box-shadow: var(--shadow); }
.brand .mark svg { width: 18px; height: 18px; }
.brand em { font-style: normal; color: var(--blue-700); }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.nav a:hover, .nav a.active { color: var(--blue-800); background: var(--blue-50); text-decoration: none; }
.header .search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.header .search:focus-within { border-color: var(--blue-500); box-shadow: var(--ring); background: #fff; }
.header .search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; color: var(--ink); }
.header .search svg { flex: none; opacity: 0.55; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--blue-500); color: var(--blue-800); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.burger { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-800); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #15294a; }
.btn-ghost { background: #fff; color: var(--blue-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); background: var(--blue-50); }
.btn-soft { background: var(--blue-50); color: var(--blue-800); }
.btn-soft:hover { background: var(--blue-100); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #FBD9D5; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff 70%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 58px;
}
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 52ch; margin: 18px 0 8px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-search {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  max-width: 540px;
}
.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15.5px;
  outline: none;
  background: #fff;
}
.hero-search input:focus { border-color: var(--blue-500); box-shadow: var(--ring); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-row .item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust-row .item svg { color: var(--blue-600); flex: none; }

/* Hero illustration (pure SVG/CSS — no stock decoration) */
.hero-art { position: relative; }
.hero-art .crate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-art .crate-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pack {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pack:last-child { margin-bottom: 0; }
.pack .thumb { width: 42px; height: 42px; border-radius: 9px; background: var(--blue-100); display: grid; place-items: center; color: var(--blue-700); flex: none; }
.pack .meta { flex: 1; min-width: 0; }
.pack .meta b { display: block; font-size: 14.5px; }
.pack .meta span { font-size: 12.5px; color: var(--muted); }
.pack .price { font-weight: 800; color: var(--blue-800); font-size: 14.5px; white-space: nowrap; }
.hero-badge {
  position: absolute;
  right: -8px;
  bottom: -16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-badge em { font-style: normal; color: #8FB8FF; }

/* ---------------- Slab strip ---------------- */
.slab-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  background: var(--ink);
  color: #E8EFFB;
  border-radius: var(--r-lg);
  padding: 22px 28px;
}
.slab-strip b { color: #fff; font-size: 17px; }
.slab-strip .tier { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.slab-strip .tier strong { color: #7FE3C8; font-size: 21px; font-weight: 800; }
.slab-strip .note { margin-left: auto; font-size: 13px; color: #9FB4D8; }

/* ---------------- Chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none !important;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-800); }
.chip.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.chip .count { font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 7px; }
.chip.active .count { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------------- Product cards ---------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.p-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.p-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.p-card .visual {
  height: 118px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100));
  display: grid;
  place-items: center;
  color: var(--blue-700);
  position: relative;
  overflow: hidden;
}
.p-card .visual .strength {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--blue-100);
  padding: 2px 8px;
  border-radius: 999px;
}
.p-card .cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.p-card h3 { font-size: 16.5px; }
.p-card h3 a { color: inherit; }
.p-card .generic { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.p-card .stock { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--green); }
.p-card .stock.low { color: var(--amber); }
.p-card .stock.out { color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.p-card .prices { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.p-card .prices .trade { font-size: 19px; font-weight: 800; color: var(--blue-800); }
.p-card .prices .mrp { font-size: 13.5px; color: var(--muted); text-decoration: line-through; }
.p-card .row { display: flex; gap: 8px; }
.p-card .row .btn { flex: 1; }

/* ---------------- Steps (numbered line, NOT 3 identical cards) ------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.step { padding: 26px 24px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .n {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------------- Split feature ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.split li svg { color: var(--blue-600); flex: none; margin-top: 3px; }
.panel {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: 26px;
}
.panel h3 { margin-bottom: 8px; }

/* ---------------- Cities ---------------- */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city { padding: 8px 15px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink-2); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--blue-700);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #CFE0FA; margin: 8px 0 0; }
.cta-band .btn { background: #fff; color: var(--blue-800); }
.cta-band .btn:hover { background: var(--blue-50); }

/* ---------------- Page head / breadcrumbs ---------------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); padding: 34px 0; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-700); }

/* ---------------- Shop layout ---------------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); background: #fff; }
.filters h3 { font-size: 15px; margin-bottom: 12px; }
.filters .group { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.filters .group:first-of-type { border-top: 0; padding-top: 0; }
.filters label.check { display: flex; gap: 9px; align-items: center; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; cursor: pointer; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar select, .field select, .field input, .field textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.toolbar select:focus, .field select:focus, .field input:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: var(--ring); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }

/* ---------------- Product detail ---------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pdp .visual {
  height: 380px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-100);
  display: grid;
  place-items: center;
  color: var(--blue-700);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.pdp .meta .cat { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); }
.pdp h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 6px; }
.pdp .generic { color: var(--muted); font-size: 16.5px; }
.pdp .pricebox {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pdp .pricebox .line { display: flex; justify-content: space-between; padding: 14px 18px; font-size: 15.5px; }
.pdp .pricebox .line + .line { border-top: 1px solid var(--line-soft); }
.pdp .pricebox .trade b { color: var(--blue-800); font-size: 24px; font-weight: 800; }
.pdp .pricebox .you-save { background: var(--green-soft); color: var(--green); font-weight: 700; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: var(--bg-soft); font-size: 18px; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--blue-100); color: var(--blue-800); }
.qty input { width: 64px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; font-weight: 700; outline: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.slab-note { margin-top: 16px; background: var(--blue-50); border: 1px dashed var(--blue-100); border-radius: var(--r); padding: 13px 16px; font-size: 14.5px; color: var(--blue-800); }

/* ---------------- Tables ---------------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--blue-50); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.placed { background: var(--blue-50); color: var(--blue-800); }
.badge.packed { background: var(--amber-soft); color: var(--amber); }
.badge.shipped { background: #EAF3FF; color: var(--blue-600); }
.badge.delivered, .badge.ok { background: var(--green-soft); color: var(--green); }
.badge.cancelled { background: var(--red-soft); color: var(--red); }

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); display: grid; place-items: center; color: var(--blue-700); }
.cart-item b { font-size: 15.5px; }
.cart-item .sub { font-size: 13.5px; color: var(--muted); }
.cart-item .line-total { font-weight: 800; font-size: 16.5px; color: var(--blue-800); text-align: right; }
.summary { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); background: #fff; }
.summary h3 { margin-bottom: 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.summary .line .save { color: var(--green); font-weight: 700; }
.slab-progress { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.slab-progress .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 9px; }
.slab-progress .bar i { display: block; height: 100%; background: var(--blue-600); border-radius: 999px; transition: width 0.3s; }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.empty-state svg { margin: 0 auto 14px; color: var(--blue-500); }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); }

/* ---------------- Forms ---------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.auth-wrap { max-width: 460px; margin: 56px auto; }
.auth-wrap .brand-row { display: flex; justify-content: center; margin-bottom: 22px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-card:hover { border-color: var(--blue-500); }
.radio-card input { margin-top: 4px; accent-color: var(--blue-700); }
.radio-card:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { font-size: 13.5px; color: var(--muted); }

/* ---------------- Timeline ---------------- */
.timeline { display: flex; align-items: flex-start; margin: 18px 0 6px; }
.timeline .t-step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--muted); }
.timeline .t-step::before {
  content: "";
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto 8px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
  position: relative;
  z-index: 2;
}
.timeline .t-step::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 100%; height: 3px;
  background: var(--line);
  z-index: 1;
}
.timeline .t-step:last-child::after { display: none; }
.timeline .t-step.done { color: var(--green); font-weight: 700; }
.timeline .t-step.done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline .t-step.done::after { background: var(--green); }
.timeline .t-step.current { color: var(--blue-700); font-weight: 700; }
.timeline .t-step.current::before { background: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-600); }

/* ---------------- Admin ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: #fff; }
.stat .k { font-size: 12.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.stat .v.blue { color: var(--blue-700); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-tabs .tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-2);
}
.admin-tabs .tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Modal ---------------- */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(11, 27, 51, 0.55);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 100;
}
.modal {
  background: #fff;
  border-radius: var(--r-lg);
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 16px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------------- Toast ---------------- */
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 200;
  max-width: min(92vw, 560px);
  text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.err { background: var(--red); }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: #AABAD4; margin-top: 70px; padding: 54px 0 26px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #AABAD4; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid #22344F; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #7D90B0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header .search { display: none; }
  .burger { display: inline-flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 16px;
    box-shadow: var(--shadow);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 0; }
  .split, .pdp, .cart-layout, .shop-layout { grid-template-columns: 1fr; }
  .pdp .visual { position: static; height: 260px; }
  .filters { position: static; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 540px) {
  .grid-products { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   Mobile refinements (applied after base + earlier queries)
   ============================================================ */

@media (max-width: 860px) {
  /* iOS Safari zooms into focused inputs below 16px — prevent it */
  input, select, textarea { font-size: 16px; }

  .header-inner { gap: 12px; }
  .header-actions { gap: 6px; }
  .nav .only-mobile { display: block; background: var(--blue-50); margin-top: 6px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .btn { align-self: flex-start; }

  .slab-strip { padding: 18px; gap: 10px 18px; }
  .slab-strip .note { margin-left: 0; }
  .slab-strip .tier strong { font-size: 19px; }

  /* Product page: keep the strength pill anchored to its tile
     (sticky→static would make it position against the viewport) */
  .pdp .visual { position: relative; }
  .buy-row .btn { flex: 1 1 150px; }

  .card { padding: 22px 18px; }
  .modal { padding: 20px 16px; }
  .cta-band { padding: 28px 22px; }
  .panel { padding: 20px; }

  .timeline .t-step { font-size: 11.5px; }

  table.data th, table.data td { padding: 10px 12px; }
}

@media (max-width: 600px) {
  .topbar { font-size: 11.5px; letter-spacing: 0.03em; padding: 6px 12px; }
  .topbar-cities { display: none; }

  .brand { font-size: 17px; gap: 8px; }
  .brand .mark { width: 30px; height: 30px; border-radius: 8px; }
  #account-label, #cart-total-hint { display: none; }
  .icon-btn { padding: 9px 11px; }

  .hero-grid { padding: 36px 0 32px; gap: 26px; }
  .hero .lede { font-size: 16.5px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-badge { display: none; }
  .trust-row { gap: 10px 16px; margin-top: 20px; padding-top: 18px; }
  .trust-row .item { font-size: 13.5px; }

  .cart-item { grid-template-columns: 52px 1fr; column-gap: 12px; }
  .cart-item .thumb { width: 52px; height: 52px; }
  .cart-item .line-total { grid-column: 2; text-align: left; margin-top: 4px; }

  .pdp .visual { height: 210px; }
  .pdp .pricebox .line { padding: 12px 14px; }

  .auth-wrap { margin: 34px auto; }
  .section { padding: 44px 0; }

  .stat .v { font-size: 24px; }
  .summary { position: static; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .topbar { display: none; }

  .qty button { width: 40px; height: 44px; }
  .qty input { width: 52px; font-size: 16px; }

  .btn { padding: 12px 18px; }
  .btn-lg { padding: 14px 20px; font-size: 15.5px; }

  .hero h1 { font-size: 31px; }
  .p-card { padding: 14px; }
  .slab-strip { padding: 16px 14px; }
  .cta-band { padding: 24px 18px; }
}

/* mobile-only nav entry (hidden on desktop) */
.nav .only-mobile { display: none; }
