/* Northcart — storefront styles */

:root {
  --navy: #131921;
  --navy-2: #232f3e;
  --navy-3: #37475a;
  --navy-4: #485769;
  --orange: #ff9900;
  --yellow: #ffd814;
  --yellow-h: #f7ca00;
  --yellow-b: #fcd200;
  --cream: #fff8ee;
  --cream-2: #f3e6c8;
  --body: #eaeded;
  --card: #ffffff;
  --text: #0f1111;
  --muted: #565959;
  --muted-2: #888c8c;
  --line: #d5d9d9;
  --line-2: #bbb;
  --link: #007185;
  --link-h: #c7511f;
  --prime: #1a98ff;
  --prime-2: #00a8e1;
  --star: #de7921;
  --star-empty: #d5d9d9;
  --green: #067d62;
  --green-2: #007600;
  --red: #b12704;
  --danger: #d32f2f;
  --shadow: 0 2px 8px rgba(15, 17, 17, 0.12);
  --shadow-lg: 0 8px 28px rgba(15, 17, 17, 0.18);
  --radius: 8px;
  --header-h: 60px;
  --subnav-h: 40px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --wrap: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.skip {
  position: absolute; left: 8px; top: -40px; z-index: 80;
  background: var(--yellow); color: #111; padding: 8px 12px; font-weight: 700;
  border-radius: 0 0 6px 6px;
}
.skip:focus { top: 0; }
.wrap { width: min(var(--wrap), calc(100% - 24px)); margin-inline: auto; }
#app { flex: 1; min-height: 70vh; outline: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 20px; padding: 8px 16px;
  font-weight: 600; font-size: 13px; line-height: 1.2; text-decoration: none;
  color: var(--text); background: #fff;
}
.btn:hover { text-decoration: none; color: var(--text); filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn-yellow {
  background: linear-gradient(#ffe566, var(--yellow));
  border-color: #f0c14b; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.btn-yellow:hover { background: var(--yellow-h); }
.btn-orange {
  background: linear-gradient(#ffce7a, var(--orange));
  border-color: #c08500;
}
.btn-orange:hover { filter: brightness(0.98); }
.btn-ghost {
  background: #fff; border-color: var(--line-2);
}
.btn-dark {
  background: var(--navy-2); color: #fff; border-color: var(--navy);
}
.btn-dark:hover { color: #fff; background: var(--navy-3); }
.btn-block { width: 100%; }
.btn-lg { padding: 10px 18px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Header */
.hdr {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.hdr-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  min-height: var(--header-h);
}
.hdr-burger { display: none; color: #fff; }
.icon-btn {
  background: transparent; border: 1px solid transparent; color: inherit;
  border-radius: 4px; padding: 6px; line-height: 0;
}
.icon-btn:hover { border-color: #fff; }

.logo {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid transparent; border-radius: 3px;
  text-decoration: none; color: #fff; flex-shrink: 0;
}
.logo:hover { border-color: #fff; text-decoration: none; color: #fff; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--orange); color: var(--navy);
  font-weight: 800; font-size: 18px; letter-spacing: -0.04em;
  display: grid; place-items: center; font-family: var(--display);
}
.logo-word {
  font-weight: 800; font-size: 18px; letter-spacing: 0.04em;
  font-family: var(--display); line-height: 1;
}
.logo-word span { color: var(--orange); }

.loc {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; color: #fff;
  padding: 6px 8px; border-radius: 3px; text-align: left; flex-shrink: 0;
  max-width: 160px;
}
.loc:hover { border-color: #fff; }
.loc svg { opacity: 0.9; flex-shrink: 0; }
.loc-kicker { display: block; font-size: 12px; color: #ccc; line-height: 1.1; }
.loc-value { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }

.search {
  flex: 1; display: flex; align-items: stretch; min-width: 0;
  height: 40px; border-radius: 8px; overflow: visible; position: relative;
  background: var(--cream);
  box-shadow: 0 0 0 2px transparent;
}
.search:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.search select {
  border: 0; background: #f3e6c8; color: #111;
  padding: 0 8px; max-width: 118px;
  border-right: 1px solid #ddc9a0; border-radius: 8px 0 0 8px;
  font-size: 12px; font-weight: 500;
}
.search input {
  flex: 1; border: 0; background: var(--cream); min-width: 0;
  padding: 0 12px; font-size: 15px; color: #111;
}
.search input::placeholder { color: #8a8070; }
.search input:focus, .search select:focus { outline: none; }
.search-btn {
  width: 46px; border: 0; background: var(--yellow);
  border-radius: 0 8px 8px 0; display: grid; place-items: center;
}
.search-btn:hover { background: var(--yellow-h); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; color: var(--text); border-radius: 8px;
  box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden;
  border: 1px solid var(--line);
}
.suggest button, .suggest a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; background: #fff; text-align: left;
  color: var(--text); text-decoration: none; font-size: 13px;
}
.suggest button:hover, .suggest a:hover, .suggest .is-active {
  background: #f7fafa;
}
.suggest .sg-art { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.suggest .sg-meta { min-width: 0; }
.suggest .sg-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .sg-sub { color: var(--muted); font-size: 12px; }
.suggest .sg-more { font-weight: 700; color: var(--link); }

.hdr-right { display: flex; align-items: stretch; gap: 2px; flex-shrink: 0; }
.acct { position: relative; }
.acct-btn, .hdr-link {
  display: flex; flex-direction: column; justify-content: center;
  background: transparent; border: 1px solid transparent; color: #fff;
  padding: 6px 10px; border-radius: 3px; text-align: left; text-decoration: none;
  white-space: nowrap;
}
.acct-btn:hover, .hdr-link:hover { border-color: #fff; color: #fff; text-decoration: none; }
.acct-hello { font-size: 12px; line-height: 1.1; color: #ddd; }
.acct-strong { font-size: 14px; font-weight: 700; line-height: 1.15; color: #fff; }

.acct-menu {
  position: absolute; right: 0; top: calc(100% + 6px); width: 240px;
  background: #fff; color: var(--text); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 10px 0; z-index: 55;
  border: 1px solid var(--line);
}
.acct-menu::before {
  content: ""; position: absolute; top: -6px; right: 28px;
  border: 6px solid transparent; border-bottom-color: #fff; border-top: 0;
}
.acct-head { margin: 0; padding: 6px 14px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.acct-menu a, .acct-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 14px;
  background: none; border: 0; color: var(--text); font-size: 13px;
}
.acct-menu a:hover, .acct-menu button:hover { background: #f3f6f6; text-decoration: none; color: var(--text); }

.cart-btn {
  display: flex; align-items: flex-end; gap: 4px;
  background: transparent; border: 1px solid transparent; color: #fff;
  padding: 4px 10px 6px; border-radius: 3px;
}
.cart-btn:hover { border-color: #fff; }
.cart-icon { position: relative; display: block; }
.cart-badge {
  position: absolute; top: -2px; left: 16px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--orange); color: #111; border-radius: 9px;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
  line-height: 1;
}
.cart-badge.pop { animation: badge-pop 0.35s ease; }
@keyframes badge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-label { font-weight: 700; font-size: 14px; padding-bottom: 2px; }

/* Subnav */
.subnav {
  background: var(--navy-2);
  color: #fff;
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px; height: var(--subnav-h);
  position: sticky; top: var(--header-h); z-index: 30;
}
.subnav-all {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; color: #fff;
  font-weight: 700; padding: 6px 8px; border-radius: 3px; flex-shrink: 0;
}
.subnav-all:hover, .subnav a:hover { border-color: #fff; text-decoration: none; color: #fff; }
.subnav-scroller {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; flex: 1; min-width: 0;
  scrollbar-width: none;
}
.subnav-scroller::-webkit-scrollbar { display: none; }
.subnav-scroller a {
  color: #fff; padding: 7px 10px; border: 1px solid transparent;
  border-radius: 3px; white-space: nowrap; font-size: 14px; font-weight: 500;
}
.subnav-prime {
  flex-shrink: 0; color: #ffd814 !important; font-weight: 700;
  padding: 6px 10px; border: 1px solid transparent; border-radius: 3px;
  white-space: nowrap;
}

.all-panel {
  position: fixed; inset: 0 40% 0 0; z-index: 60;
  background: #fff; box-shadow: var(--shadow-lg);
  overflow: auto;
}
.all-panel-inner { padding: 18px 22px 40px; }
.all-hello {
  margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 18px; font-family: var(--display);
}
.all-panel a {
  display: block; padding: 8px 0; color: var(--text); font-size: 14px;
}
.all-panel h4 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.loc-pop {
  position: fixed; top: 68px; left: 170px; z-index: 55;
  width: 320px; background: #fff; color: var(--text);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 16px;
  border: 1px solid var(--line);
}
.loc-pop h2 { margin: 0 0 8px; font-size: 16px; font-family: var(--display); }
.loc-pop p { margin: 0 0 12px; color: var(--muted); }
.loc-pop label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.loc-pop input {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px;
}
.loc-actions { display: flex; gap: 8px; margin-top: 12px; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(15,17,17,.55); z-index: 45;
}
.mobile-nav {
  position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw);
  background: #fff; z-index: 70; overflow: auto;
}
.mobile-nav-head {
  background: var(--navy-2); color: #fff; display: flex; justify-content: space-between;
  align-items: center; padding: 14px 16px; font-size: 16px;
}
.mobile-nav nav a {
  display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--body);
}

/* Home */
.home { padding-bottom: 40px; }
.hero-band {
  background: linear-gradient(180deg, #d4e4ea 0%, var(--body) 100%);
  padding: 14px 0 8px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.7fr 0.9fr; gap: 14px;
}
.hero {
  position: relative; border-radius: 6px; overflow: hidden;
  min-height: 300px; background: var(--navy-2); color: #fff;
  box-shadow: var(--shadow);
}
.hero-track { display: flex; height: 100%; transition: transform 0.5s ease; }
.hero-slide {
  min-width: 100%; padding: 28px 36px 48px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; align-items: center;
  min-height: 300px;
}
.hero-kicker {
  display: inline-block; background: var(--yellow); color: #111;
  font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; margin-bottom: 10px;
}
.hero h2 {
  margin: 0 0 8px; font-family: var(--display); font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1; letter-spacing: -0.02em; max-width: 16ch;
}
.hero p { margin: 0 0 16px; font-size: 15px; color: #d6dde6; max-width: 42ch; }
.hero-art {
  height: 220px; display: grid; place-items: center;
}
.hero-dots {
  position: absolute; bottom: 12px; left: 36px; display: flex; gap: 6px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.4);
}
.hero-dots button.is-on { background: var(--yellow); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 56px; border: 0; background: rgba(255,255,255,.12);
  color: #fff; font-size: 22px; border-radius: 4px;
}
.hero-nav:hover { background: rgba(255,255,255,.22); }
.hero-prev { left: 8px; }
.hero-next { right: 8px; }

.deal-side {
  background: #fff; border-radius: 6px; padding: 14px 16px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.deal-side h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--display); }
.deal-side .pcard { box-shadow: none; border: 0; padding: 0; }
.deal-side .pcard-art { height: 150px; }

.section {
  margin: 16px auto;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 10px;
}
.section-head h2 {
  margin: 0; font-size: 21px; font-family: var(--display); font-weight: 700;
}
.section-head a { font-size: 13px; font-weight: 600; }

.deals-row, .carousel-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
@media (min-width: 1200px) {
  .deals-row {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: row;
    overflow: visible;
  }
  .deals-row .pcard:nth-child(n + 7) { display: none; }
}
.carousel-wrap { position: relative; }
.carousel-btn {
  position: absolute; top: 40%; z-index: 2;
  width: 38px; height: 64px; border: 1px solid var(--line);
  background: #fff; border-radius: 4px; box-shadow: var(--shadow);
  font-size: 20px; display: grid; place-items: center;
}
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }
.carousel-btn:hover { background: #f7fafa; }

.quad {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 8px auto 18px;
}
.quad-card {
  background: #fff; border-radius: 6px; padding: 14px;
  box-shadow: var(--shadow);
}
.quad-card h3 { margin: 0 0 10px; font-size: 18px; font-family: var(--display); }
.quad-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mini {
  display: grid; gap: 4px; text-align: left; background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer;
}
.mini:hover .mini-art { filter: brightness(0.97); }
.mini-art { height: 88px; border-radius: 6px; overflow: hidden; }
.mini span { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quad-card .see { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 13px; }

.cat-tiles {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.cat-tile {
  background: #fff; border-radius: 6px; overflow: hidden;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  display: grid; grid-template-rows: 88px auto;
}
.cat-tile:hover { text-decoration: none; color: var(--text); transform: translateY(-1px); }
.cat-tile-art { display: grid; place-items: center; }
.cat-tile h3 { margin: 0; padding: 8px 8px 10px; font-size: 13px; text-align: center; font-weight: 700; }

.recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 10px; overflow: auto; }

/* Product card */
.pcard {
  background: #fff; border-radius: 6px; padding: 10px 10px 12px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  scroll-snap-align: start; min-width: 0; text-decoration: none; color: inherit;
  position: relative;
}
.pcard:hover { text-decoration: none; color: inherit; }
.pcard-art {
  height: 168px; border-radius: 6px; overflow: hidden; position: relative;
}
.pcard a:hover h3 { color: var(--link-h); }
.pcard h3 {
  margin: 0; font-family: var(--display); font-size: 14px; font-weight: 600;
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.pcard .brand { color: var(--muted); font-size: 12px; }
.pcard-foot { margin-top: auto; display: grid; gap: 4px; }
.pcard .quick {
  opacity: 0; position: absolute; right: 14px; bottom: 14px;
}
.pcard:hover .quick, .pcard:focus-within .quick { opacity: 1; }
.deals-row .pcard, .carousel-row .pcard { min-width: 200px; }

.art {
  width: 100%; height: 100%; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.art svg { width: 78%; height: 78%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.18)); }
.art-emoji {
  position: absolute; right: 8px; bottom: 6px; font-size: 18px; opacity: 0.9;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; background: #cc0c39; color: #fff; letter-spacing: 0.02em;
}
.badge-deal { background: #cc0c39; }
.badge-best { background: #222; }
.badge-new { background: #067d62; }
.badge-lim { background: #7b2d8e; }
.art-badge { position: absolute; top: 8px; left: 8px; z-index: 1; }

.stars {
  --r: 0;
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: 1px;
  font-size: 14px; line-height: 1;
}
.stars-glyphs {
  background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--star-empty) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 15px; letter-spacing: 1px;
}
.stars-n { color: var(--link); font-size: 13px; letter-spacing: 0; font-weight: 500; }
.price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; vertical-align: top; margin-right: 1px; }
.price .was { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: line-through; margin-left: 6px; }
.save { color: var(--red); font-size: 12px; font-weight: 600; }
.prime {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--navy-2); font-weight: 700; font-size: 12px;
}
.prime i {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--prime), #005f99);
  display: inline-block; position: relative;
}
.prime i::after {
  content: ""; position: absolute; left: 4px; top: 2px;
  width: 4px; height: 7px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(40deg);
}
.muted { color: var(--muted); }
.ok { color: var(--green-2); font-weight: 600; }

/* Browse / search */
.browse {
  display: grid; grid-template-columns: 240px 1fr; gap: 18px;
  padding: 16px 0 40px;
}
.filters {
  background: #fff; border-radius: 6px; padding: 14px 16px 20px;
  box-shadow: var(--shadow); height: fit-content; position: sticky; top: 116px;
}
.filters h3 { margin: 0 0 8px; font-size: 14px; font-family: var(--display); }
.filters fieldset {
  border: 0; padding: 0; margin: 0 0 16px;
}
.filters legend { font-weight: 700; font-size: 13px; padding: 0 0 6px; }
.filters label {
  display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer;
}
.filters input[type="checkbox"], .filters input[type="radio"] { accent-color: var(--navy-2); }
.results-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.results-head h1 { margin: 0; font-size: 20px; font-family: var(--display); }
.results-head select {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; background: #fff;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.empty-state {
  background: #fff; border-radius: 8px; padding: 40px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.empty-state h2 { font-family: var(--display); margin: 0 0 8px; }

/* PDP */
.pdp { padding: 16px 0 48px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.pdp-grid {
  display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr; gap: 22px;
  align-items: start;
}
.gallery { background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.gallery-main { height: 380px; border-radius: 8px; overflow: hidden; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button {
  width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 6px;
  padding: 0; overflow: hidden; background: #fff;
}
.thumbs button.is-on { border-color: var(--orange); }
.pdp-info h1 {
  margin: 0 0 6px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.25;
}
.pdp-brand { color: var(--link); font-weight: 600; font-size: 13px; }
.pdp-info .stars { margin: 8px 0; }
.pdp-price-row { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 10px 0; }
.pdp-price-row .price { font-size: 26px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.swatch {
  border: 2px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600;
}
.swatch.is-on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.buybox {
  background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow);
  display: grid; gap: 10px; position: sticky; top: 116px;
}
.qty {
  display: flex; align-items: center; gap: 8px;
}
.stepper {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
}
.stepper button, .stepper span {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: #fff; font-weight: 700;
}
.stepper span { width: 28px; }
.accordion { margin-top: 22px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item summary {
  width: 100%; text-align: left; background: #fff; border: 0; padding: 14px 16px;
  font-weight: 700; font-size: 15px; font-family: var(--display);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-weight: 500; color: var(--muted); font-size: 18px; }
.acc-item[open] summary::after { content: "–"; }
.acc-item .acc-body { padding: 0 16px 16px; color: #222; }
.about-list { margin: 0; padding-left: 18px; }
.about-list li { margin: 8px 0; }
.hero-slide.s0 { background: linear-gradient(120deg, #0f2744, #1c4d7a 46%, #0b1b2e); }
.hero-slide.s1 { background: linear-gradient(120deg, #2c1810, #7a4a2a 50%, #1a120c); }
.hero-slide.s2 { background: linear-gradient(120deg, #10241a, #1e5c40 48%, #0c1a14); }
body.noscroll { overflow: hidden; }
.crumb-sep { margin: 0 6px; color: #aaa; }
.status-pill {
  display: inline-block; background: #e7f6ef; color: var(--green); font-weight: 700;
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
}
.status-pill.ship { background: #e8f3ff; color: #1259a5; }
.status-pill.done { background: #eef3f3; color: var(--muted); }
.gift-note { font-size: 12px; color: var(--muted); margin: 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--body); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 600; }
.review { padding: 12px 0; border-top: 1px solid var(--body); }
.review h4 { margin: 4px 0; font-size: 14px; }
.review .who { font-weight: 600; font-size: 13px; }
.related { margin-top: 28px; }

/* Cart page */
.cart-page { padding: 16px 0 48px; display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.cart-list { background: #fff; border-radius: 8px; padding: 16px 18px; box-shadow: var(--shadow); }
.cart-list h1 { margin: 0 0 4px; font-family: var(--display); font-size: 26px; }
.cart-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.cart-item .art-wrap { height: 110px; border-radius: 8px; overflow: hidden; }
.cart-item h3 { margin: 0 0 4px; font-size: 16px; font-family: var(--display); }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.linkish { background: none; border: 0; color: var(--link); padding: 0; font-size: 13px; }
.linkish:hover { color: var(--link-h); text-decoration: underline; }
.cart-sum {
  background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow);
  position: sticky; top: 116px; display: grid; gap: 10px;
}
.line { display: flex; justify-content: space-between; font-size: 14px; }
.line.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer::before {
  content: ""; position: absolute; inset: 0; background: rgba(15,17,17,.45);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92vw);
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--navy);
  color: #fff;
}
.drawer-head h2 { margin: 0; font-size: 18px; font-family: var(--display); }
.drawer-head .icon-btn { color: #fff; font-size: 24px; }
.drawer-body { padding: 12px 16px 20px; overflow: auto; flex: 1; }
.d-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--body); }
.d-item .art-mini { height: 72px; border-radius: 6px; overflow: hidden; }

/* Checkout */
.chk { padding: 18px 0 48px; max-width: 920px; margin: 0 auto; }
.steps {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 18px;
}
.step {
  background: #fff; border-radius: 8px; padding: 10px 12px; border: 2px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.step.is-on { border-color: var(--orange); background: #fff8ee; }
.step.is-done { border-color: var(--green); }
.chk-card {
  background: #fff; border-radius: 8px; padding: 18px; box-shadow: var(--shadow);
}
.chk-card h1 { margin: 0 0 14px; font-family: var(--display); font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label, .stack-label {
  display: grid; gap: 5px; font-size: 13px; font-weight: 600;
}
.form-grid label.full { grid-column: 1 / -1; }
input[type="text"], input[type="tel"], input[type="email"], textarea, select.field {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; background: #fff;
}
.pay-card {
  display: flex; gap: 12px; align-items: center;
  border: 2px solid var(--orange); border-radius: 8px; padding: 12px;
  background: #fffdf6;
}
.pay-chip {
  width: 48px; height: 32px; border-radius: 4px;
  background: linear-gradient(135deg, #1a3a8a, #3d6fd9); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.chk-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.confirm {
  background: #fff; border-radius: 8px; padding: 28px; box-shadow: var(--shadow);
  max-width: 760px; margin: 24px auto 48px;
}
.confirm h1 { font-family: var(--display); margin: 0 0 8px; color: var(--green); }
.order-card {
  background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.thumbs-row { display: flex; gap: 8px; margin-top: 10px; }
.thumbs-row .art { width: 64px; height: 64px; border-radius: 6px; }

/* Account */
.acct-page { padding: 18px 0 48px; }
.acct-hero {
  background: #fff; border-radius: 8px; padding: 20px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.acct-hero h1 { margin: 0; font-family: var(--display); }
.acct-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.acct-cards a {
  background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--shadow);
  color: inherit; display: block;
}
.acct-cards a:hover { text-decoration: none; color: inherit; outline: 2px solid var(--orange); }
.acct-cards h3 { margin: 0 0 6px; font-family: var(--display); }
.prime-banner {
  margin-top: 14px; background: linear-gradient(90deg, #14233a, #1d4e89);
  color: #fff; border-radius: 8px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.prime-banner h2 { margin: 0 0 4px; font-family: var(--display); }

/* Footer */
.ftr { margin-top: auto; background: var(--navy-3); color: #ddd; }
.ftr-top {
  display: block; width: 100%; text-align: center; background: var(--navy-4); color: #fff;
  padding: 14px; font-weight: 600; text-decoration: none; border: 0; font-size: 14px;
}
.ftr-top:hover { background: #54657a; color: #fff; text-decoration: none; }
.ftr-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 0 28px;
}
.ftr h3 { color: #fff; font-size: 16px; margin: 0 0 10px; font-family: var(--display); }
.ftr-cols a { display: block; color: #ddd; padding: 4px 0; font-size: 13px; }
.ftr-cols a:hover { color: #fff; }
.ftr-brand {
  border-top: 1px solid #4a5c70; padding: 18px; text-align: center;
}
.logo-foot { justify-content: center; margin-bottom: 6px; }
.ftr-brand p { margin: 0; font-size: 12px; color: #bbb; }

/* Toast */
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px;
  box-shadow: var(--shadow-lg); max-width: min(360px, calc(100% - 24px));
  display: flex; gap: 10px; align-items: center;
}
.toast a { color: var(--yellow); font-weight: 700; }

/* Misc pages */
.page-prose {
  background: #fff; border-radius: 8px; padding: 24px; margin: 18px auto 40px;
  box-shadow: var(--shadow); max-width: 800px;
}
.page-prose h1 { font-family: var(--display); margin-top: 0; }

.ship-note { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid, .quad, .pdp-grid { grid-template-columns: 1fr 1fr; }
  .pdp-grid { grid-template-columns: 1fr 1fr; }
  .buybox { position: static; grid-column: 1 / -1; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .loc { display: none; }
  .acct-hello { display: none; }
  .quad { grid-template-columns: 1fr 1fr; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .hero-slide { grid-template-columns: 1fr; min-height: 260px; }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .pcard .quick { opacity: 1; position: static; margin-top: 6px; }
  .hdr-burger { display: grid; }
  .hdr-link { display: none; }
  .search { order: 4; flex-basis: 100%; }
  .hdr-row { flex-wrap: wrap; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-page { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 88px 1fr; }
  .cart-item .price-col { grid-column: 2; }
  .form-grid, .acct-cards, .hero-grid { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .subnav-prime { display: none; }
  .carousel-btn { display: none; }
  .gallery-main { height: 260px; }
  .pdp-grid { grid-template-columns: 1fr; }
  .acct-hero, .prime-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .logo-word { display: none; }
  .cart-label { display: none; }
  .quad { grid-template-columns: 1fr; }
  .ftr-cols { grid-template-columns: 1fr; padding-left: 16px; }
  .deals-row, .carousel-row { grid-auto-columns: minmax(170px, 70vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
