/* ============================================================
   MedStoreUSA — storefront stylesheet
   ============================================================ */

:root {
  --navy: #0b1f4d;
  --navy-soft: #132a5e;
  --navy-line: #1e3a72;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-soft: #ecfdf5;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5eaf1;
  --bg: #f8fafc;
  --card: #ffffff;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 77, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

.shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
}

.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { max-height: 42px; width: auto; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy) 0%, #1b3d7d 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 31, 77, 0.25);
}
.brand-mark .ico { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--navy); }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.2px; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.nav-link:hover { background: #f1f5f9; color: var(--navy); }
.nav-link.active { color: var(--navy); background: #eef2f9; }

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

.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.phone-pill .ico { width: 15px; height: 15px; color: var(--emerald-dark); }
.phone-pill:hover { border-color: var(--emerald); background: var(--emerald-soft); }

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart-btn:hover { background: var(--navy-soft); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--emerald);
  color: #04261a;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  color: var(--navy);
  place-items: center;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #04261a; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28); }
.btn-primary:hover { background: #0ea371; box-shadow: 0 12px 26px rgba(16, 185, 129, 0.34); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-outline { background: #fff; border-color: #cbd5e1; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: #f8fafc; }
.btn-ghost { background: #f1f5f9; color: var(--navy); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2f9; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 520px at 80% -10%, #1b3d7d 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #0d2a63 0%, transparent 55%),
              linear-gradient(135deg, #081736 0%, #0b1f4d 55%, #10295c 100%);
  color: #fff;
  overflow: hidden;
  padding: 70px 0 76px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .ico { width: 13px; height: 13px; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: #34d399; }
.hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #c3d2ea;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-point { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: #d5e1f5; }
.hero-point .ico { width: 17px; height: 17px; color: #34d399; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.hero-card-inner {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hero-card-top span { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--emerald-dark); }
.hero-card-top .badge { font-size: 10.5px; }
.hero-photo {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 210px;
}
.hero-photo img { max-height: 200px; width: auto; object-fit: contain; }
.hero-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.hero-card-bottom h3 { font-size: 17px; margin-bottom: 3px; }
.hero-card-bottom small { color: var(--muted); font-size: 12.5px; }
.hero-price { text-align: right; }
.hero-price strong { display: block; font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -0.6px; }
.hero-price small { font-size: 11px; color: var(--muted); }
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}
.hero-float .ico { width: 18px; height: 18px; color: var(--emerald-dark); }
.hero-float small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.hero-float.top { top: -18px; right: -10px; }
.hero-float.bottom { bottom: -20px; left: -14px; }

/* ---------------- Trust strip ---------------- */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item .ico { width: 24px; height: 24px; color: var(--emerald-dark); }
.trust-item strong { display: block; font-size: 13.5px; color: var(--navy); }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: 66px 0; }
.section-tight { padding: 46px 0; }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { background: #eef6ff; border-color: #dbeafe; color: #1d4ed8; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------------- Category cards ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.cat-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #eef6ff, #e0f2fe);
  color: #1d4ed8;
}
.cat-icon .ico { width: 24px; height: 24px; }
.cat-card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 5px; }
.cat-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.cat-count { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--emerald-dark); background: var(--emerald-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------------- Product grid ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7e3f2; }
.product-thumb {
  position: relative;
  background: linear-gradient(160deg, #f8fafc, #eef2f7);
  padding: 20px;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.product-thumb img { max-height: 160px; width: auto; object-fit: contain; transition: transform 0.25s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.thumb-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: #eef2f7;
  color: #334155;
}
.badge-green { background: var(--emerald-soft); color: #047857; }
.badge-navy { background: #e8eefb; color: var(--navy); }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-sky { background: #eff6ff; color: #1d4ed8; }

.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.product-body h3 a:hover { color: var(--emerald-dark); }
.product-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product-tags .badge { font-size: 10px; padding: 3px 7px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.price-now { font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: -0.6px; line-height: 1; }
.price-now small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; border-radius: 10px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background: linear-gradient(135deg, #081736 0%, #0b1f4d 60%, #10295c 100%);
  color: #fff;
  padding: 46px 0 44px;
}
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -1.2px; margin-bottom: 10px; }
.page-hero p { color: #bfd0e9; font-size: 15.5px; max-width: 680px; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #9fb3d1; margin-bottom: 14px; }
.breadcrumb a { color: #cfe0f5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .ico { width: 12px; height: 12px; }

/* ---------------- Product detail ---------------- */
.product-detail { padding: 40px 0 70px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}
.gallery { position: sticky; top: 96px; }
.gallery-main {
  background: linear-gradient(160deg, #ffffff, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.gallery-main img { max-height: 360px; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.gallery-thumb img { height: 62px; width: auto; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--emerald); }

.detail-info .badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.detail-generic { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.detail-price {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 18px;
  background: var(--emerald-soft);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  margin-bottom: 22px;
}
.detail-price strong { font-size: 30px; font-weight: 900; color: #065f46; letter-spacing: -1px; }
.detail-price span { font-size: 13px; color: #047857; font-weight: 600; }

.tier-list { display: grid; gap: 10px; margin-bottom: 20px; }
.tier {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tier:hover { border-color: #a7f3d0; background: #fafffc; }
.tier.selected { border-color: var(--emerald); background: var(--emerald-soft); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12); }
.tier input { accent-color: var(--emerald-dark); width: 17px; height: 17px; }
.tier-label { font-weight: 700; font-size: 14px; flex: 1; }
.tier-price { font-weight: 800; font-size: 17px; color: var(--navy); }
.tier-save { font-size: 11px; font-weight: 700; color: var(--emerald-dark); background: #fff; border: 1px solid #bbf7d0; padding: 3px 8px; border-radius: 999px; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 16px; }
.qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.qty button { width: 40px; height: 100%; min-height: 48px; border: 0; background: #fff; font-size: 18px; font-weight: 700; color: var(--navy); }
.qty button:hover { background: #f1f5f9; }
.qty input { width: 46px; border: 0; text-align: center; font-size: 15px; font-weight: 700; font-family: inherit; }
.qty input:focus { outline: none; }
.buy-row .btn { flex: 1; }

.buy-meta { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-meta-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #334155; }
.buy-meta-item .ico { width: 17px; height: 17px; color: var(--emerald-dark); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 0; }
.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
}
.spec span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.spec strong { font-size: 13.5px; font-weight: 600; color: var(--navy); }

.info-tabs { padding: 60px 0; background: #fff; border-top: 1px solid var(--line); }
.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-block h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.info-block p { font-size: 14px; color: #475569; line-height: 1.75; }
.warning-box {
  background: #fffbeb;
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: #92400e;
  line-height: 1.65;
}

/* ---------------- Cart ---------------- */
.page-title-bar { padding: 38px 0 8px; }
.page-title-bar h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.8px; }
.page-title-bar p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.cart-layout { display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 28px; align-items: start; padding: 22px 0 70px; }
.cart-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 18px; border-bottom: 1px solid #f1f5f9; align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 92px; height: 84px; object-fit: contain; background: #f8fafc; border-radius: 10px; border: 1px solid var(--line); padding: 6px; }
.cart-row h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.cart-row .meta { font-size: 12.5px; color: var(--muted); }
.cart-row .row-price { text-align: right; font-weight: 800; font-size: 16px; color: var(--navy); }
.cart-row .row-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.cart-row .row-actions a { font-size: 12px; color: var(--red); font-weight: 600; }
.cart-row .row-actions a:hover { text-decoration: underline; }

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; color: #475569; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 16px; font-weight: 800; color: var(--navy); }
.summary-row.total .amount { font-size: 22px; color: var(--emerald-dark); }
.summary .btn { margin-top: 16px; }
.summary-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
}
.empty-state .ico { width: 46px; height: 46px; color: #cbd5e1; margin: 0 auto 16px; }
.empty-state h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; padding: 22px 0 70px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.form-card h2 .step {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.form-card .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dbe3ec;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}
.field textarea { min-height: 92px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 14px; }
.field .error-text { color: var(--red); font-size: 12px; margin-top: 5px; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }

.pay-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border: 1.5px solid var(--emerald);
  background: var(--emerald-soft);
  border-radius: 12px;
}
.pay-option input { margin-top: 3px; accent-color: var(--emerald-dark); }
.pay-option strong { display: block; font-size: 14px; color: #065f46; margin-bottom: 3px; }
.pay-option span { font-size: 12.5px; color: #047857; line-height: 1.5; }

.mini-items { border-top: 1px solid var(--line); margin: 14px 0 0; padding-top: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.mini-item img { width: 52px; height: 52px; object-fit: contain; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 4px; }
.mini-item .mi-name { font-size: 13px; font-weight: 700; line-height: 1.35; }
.mini-item .mi-meta { font-size: 11.5px; color: var(--muted); }
.mini-item .mi-price { margin-left: auto; font-size: 13.5px; font-weight: 800; color: var(--navy); }

.alert { border-radius: 12px; padding: 14px 16px; font-size: 13.5px; margin-bottom: 18px; line-height: 1.6; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: var(--emerald-soft); border: 1px solid #a7f3d0; color: #065f46; }

/* ---------------- Thank you ---------------- */
.thankyou-wrap { padding: 60px 0 80px; }
.thankyou-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.thankyou-head {
  background: linear-gradient(135deg, #065f46, #10b981);
  color: #fff;
  padding: 38px 30px;
  text-align: center;
}
.thankyou-head .tick {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.thankyou-head .tick .ico { width: 32px; height: 32px; }
.thankyou-head h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 8px; }
.thankyou-head p { color: #d1fae5; margin: 0; font-size: 14.5px; }
.thankyou-body { padding: 30px; }
.order-ref {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 24px;
}
.order-ref span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; }
.order-ref strong { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: 0.5px; }
.steps-list { list-style: none; padding: 0; margin: 0 0 26px; }
.steps-list li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.steps-list li:last-child { border-bottom: 0; }
.steps-list .n {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--emerald-soft); color: var(--emerald-dark);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center; flex: 0 0 auto;
}
.steps-list strong { display: block; font-size: 13.5px; color: var(--navy); }
.steps-list span { font-size: 12.5px; color: var(--muted); }

/* ---------------- Content pages ---------------- */
.content-page { padding: 48px 0 76px; }
.content-wrap { max-width: 820px; }
.content-page h2 { font-size: 24px; font-weight: 900; margin: 32px 0 12px; letter-spacing: -0.6px; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.content-page p, .content-page li { font-size: 14.5px; color: #3f4b5b; line-height: 1.8; }
.content-page ul, .content-page ol { margin-bottom: 18px; }
.content-page .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 30px; }
.content-page .info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.content-page .info-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 8px; }
.content-page .info-card p { font-size: 13.5px; margin: 0 0 6px; }
.content-page .info-card p.big { font-size: 19px; font-weight: 900; color: var(--navy); letter-spacing: -0.5px; }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 8px; }

/* ---------------- Flash ---------------- */
.flash-stack { position: fixed; top: 88px; right: 20px; z-index: 90; display: grid; gap: 8px; max-width: 360px; }
.flash {
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  background: #065f46;
  color: #fff;
}
.flash-error { background: #991b1b; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #cbd8ea; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 22px 44px;
}
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #8fa6c6; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #9db0cc; margin: 16px 0 14px; max-width: 320px; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #6ee7b7; }
.footer-phone .ico { width: 16px; height: 16px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 14px; font-weight: 800; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: #9db0cc; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--navy-line); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p { margin: 0; font-size: 11.5px; color: #8299ba; }
.footer-bottom .disclaimer { max-width: 620px; text-align: right; line-height: 1.55; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill-free { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--emerald-dark); background: var(--emerald-soft); padding: 4px 10px; border-radius: 999px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .phone-pill span { display: none; }
  .phone-pill { padding: 9px 11px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .gallery-main { min-height: 320px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .info-grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .content-page .info-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    gap: 2px;
    max-height: calc(100vh - 76px);
    overflow: auto;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 12px; font-size: 15px; border-radius: 10px; }
  .menu-btn { display: grid; }
  .header-inner { min-height: 68px; }
  .main-nav { inset: 68px 0 auto 0; }
  .section { padding: 46px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 46px 0 54px; }
  .hero-float { display: none; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom .disclaimer { text-align: center; }
  .spec-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 34px 0; }
  .brand-text small { display: none; }
}

@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row img { width: 70px; height: 66px; }
  .cart-row .row-price { grid-column: 2; text-align: left; }
  .buy-row { flex-wrap: wrap; }
  .qty { width: 100%; justify-content: space-between; }
  .thankyou-body { padding: 22px; }
  .order-ref { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero h1 { font-size: 32px; }
}
