:root {
  --navy: #0B1F4A;
  --blue: #163A8C;
  --ink: #10233F;
  --orange: #FF6A1A;
  --ember: #F05A12;
  --mist: #F4F6FB;
  --line: #E4E9F2;
  --sand: #FFF4EB;
  --bg: #F6F7FB;
  --muted: #667085;
  --shadow: 0 10px 30px rgba(16, 35, 63, .06);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.site-main { padding: 18px 18px 48px; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.15; }
h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 28px 0 14px; }
.muted { color: var(--muted); font-size: 13px; }

.btn, button.btn, input[type=submit].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font-weight: 800; font-size: 14px; cursor: pointer; color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); box-shadow: 0 8px 18px rgba(255,106,26,.28); }
.btn-primary:hover { background: var(--ember); }
.btn-navy { background: var(--navy); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.input, select, textarea {
  width: 100%; height: 46px; margin-top: 6px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: #c5d0ea; box-shadow: 0 0 0 4px rgba(22,58,140,.08); }
textarea.input { height: auto; padding: 10px 14px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.site-top {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 12px;
}
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue); flex-shrink: 0; }
.logo img { width: 42px; height: 42px; }
.logo span { line-height: 1.15; }
.logo small { display: block; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.logo span b { color: var(--orange); }
.search { flex: 1; position: relative; }
.search input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px 0 42px; background: var(--mist); outline: none;
}
.search:before {
  content: "";
  position: absolute; left: 16px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%);
  border: 2px solid #8b93a7; border-radius: 50%;
  box-shadow: 8px 8px 0 -6px #8b93a7;
  pointer-events: none;
}
.search input:focus { background: #fff; border-color: #c5d0ea; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-weight: 700; font-size: 14px; color: var(--navy);
  padding: 10px 12px; border-radius: 999px; background: transparent; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--mist); }
.cart-link {
  background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.cart-link:hover { background: #13275c; color: #fff; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; display: inline-grid; place-items: center;
}

.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background:
    radial-gradient(420px 180px at 90% 0%, rgba(255,106,26,.22), transparent 55%),
    linear-gradient(135deg, #0B1F4A 0%, #163A8C 70%);
  color: #fff; border-radius: 32px; padding: 36px 32px; margin: 8px 0 8px;
  box-shadow: 0 18px 40px rgba(11,31,74,.18);
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 10px; color: #fff; }
.hero-lead { margin: 0; max-width: 520px; color: rgba(255,255,255,.82); }
.kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pills span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
}
.hero-badge {
  width: 104px; height: 104px; border-radius: 28px;
  background: #fff; color: var(--navy);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 36px; line-height: .9; box-shadow: var(--shadow);
}
.hero-badge small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--blue); font-weight: 800; font-size: 13px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }

.aisle {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; min-height: 124px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.aisle:hover { transform: translateY(-3px); border-color: #d5def0; }
.aisle-emoji {
  width: 48px; height: 48px; border-radius: 16px; background: var(--sand);
  display: grid; place-items: center; font-size: 24px;
}

.product {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16,35,63,.1); }
.product-link { color: inherit; display: block; }
.product img, .product-fallback {
  height: 168px; width: 100%; object-fit: cover; background: var(--mist);
}
.product-fallback { display: grid; place-items: center; font-size: 52px; }
.product .pad { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product strong { font-size: 15px; line-height: 1.3; }
.eta {
  position: absolute; top: 10px; left: 10px;
  background: #fff; color: var(--navy); border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 4px 8px; box-shadow: var(--shadow);
}
.off {
  position: absolute; top: 10px; right: 10px;
  background: #ecfdf5; color: #047857; border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 4px 8px;
}
.price { font-weight: 800; color: var(--navy); }
.mrp { color: #98a2b3; text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 600; }
.add-btn {
  margin-top: 8px; height: 36px; border-radius: 12px; border: 1.5px solid #ffd2b8;
  background: var(--sand); color: var(--orange); font-weight: 800; font-size: 13px; cursor: pointer;
}
.add-btn:hover { background: #ffe7d4; }

.pdp-media { overflow: hidden; padding: 0; position: relative; }
.pdp-media img { width: 100%; height: min(420px, 56vw); object-fit: cover; background: var(--mist); }
.pdp-fallback {
  height: min(420px, 56vw); display: grid; place-items: center; font-size: 96px; background: var(--sand);
}
.pdp-buy { padding-top: 8px; }
.pdp-buy h1 { font-size: clamp(28px, 4vw, 40px); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--navy);
}
.pdp-price { font-size: 30px; margin: 0 0 8px; }
.save { color: #047857; font-weight: 800; font-size: 13px; }
.pdp-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pdp-actions .btn { min-width: 180px; }

.footer { margin-top: 48px; padding: 28px 0 88px; color: var(--muted); font-size: 14px; }
.footer a { font-weight: 700; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: 8px 0 env(safe-area-inset-bottom); z-index: 30;
}
.tabs a { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; padding: 4px 8px; }
.tabs a.active, .tabs a:hover { color: var(--navy); }

.modal { position: fixed; inset: 0; background: rgba(11,31,74,.46); display: none; align-items: flex-end; justify-content: center; z-index: 80; }
.modal.open { display: flex; }
.sheet { width: 100%; max-width: 420px; background: #fff; border-radius: 28px 28px 0 0; padding: 24px; box-shadow: var(--shadow); }
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 16px);
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; z-index: 90;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.cart-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 28px 12px; }
.empty-emoji { font-size: 42px; }

.admin { display: flex; min-height: 100vh; background: #eef1f8; }
.side { width: 240px; background: var(--navy); color: #fff; padding: 20px; }
.side a { display: block; color: #d7def0; padding: 10px 0; font-weight: 700; }
.main { flex: 1; padding: 24px; min-width: 0; }
.flash { background: #ecfdf5; color: #047857; padding: 12px 16px; border-radius: 16px; font-weight: 700; }
.err { background: #fef2f2; color: #b91c1c; padding: 12px 16px; border-radius: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
label { font-weight: 700; font-size: 14px; color: var(--navy); display: block; margin-top: 12px; }

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero-badge { display: none; }
  .logo small { display: none; }
  .header-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .sheet { border-radius: 28px; }
  .tabs { display: none; }
  .toast { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
