/* ==========================================================================
   South Shore Shoes — stylesheet
   Layout mirrors the StockX sneakers category page (header + secondary category
   nav, left filter sidebar, sort control, auto-fill product grid, footer) while
   stripping all marketplace (bid/ask/sell) affordances.
   ========================================================================== */

:root {
  --ink: #14161c;
  --ink-2: #3a3f4a;
  --muted: #6b7280;
  --line: #e7e8eb;
  --line-2: #d9dbe0;
  --bg: #ffffff;
  --surface: #f5f6f7;
  --surface-2: #eef0f2;
  --accent: #0b7a4b;
  --accent-ink: #096b41;
  --accent-soft: #e7f4ee;
  --sale: #c22a2a;
  --focus: #1a73e8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .06), 0 1px 3px rgba(20, 22, 28, .04);
  --shadow-md: 0 6px 20px rgba(20, 22, 28, .10);
  --shadow-lg: 0 18px 50px rgba(20, 22, 28, .18);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 108px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------ reset ------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* keep the HTML hidden attr authoritative over display rules below */
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ buttons ---- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 14px;
  line-height: 1; transition: transform .06s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--accent-ink); }
.btn--soft { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--soft:hover { --btn-bg: var(--surface-2); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface); }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: none; background: transparent; color: var(--ink); border-radius: 10px;
  position: relative;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ header ----- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 16px; height: 66px; }
.hamburger { display: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand__name span { color: var(--accent); }

.search {
  flex: 1; max-width: 620px; margin-inline: auto; position: relative;
  display: flex; align-items: center;
}
.search__icon { position: absolute; left: 14px; color: var(--muted); display: grid; }
.search__icon svg { width: 18px; height: 18px; }
.search__input {
  width: 100%; height: 44px; border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 0 16px 0 42px; font-size: 14px; background: var(--surface); color: var(--ink);
}
.search__input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

.header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { display: flex; gap: 4px; height: 42px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* --------------------------------------------------------- mobile nav ---- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 17, 21, .45); z-index: 130;
  opacity: 0; transition: opacity .22s ease;
}
.overlay.is-open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 340px); background: #fff;
  z-index: 140; transform: translateX(-100%); visibility: hidden;
  transition: transform .24s ease, visibility 0s linear .24s;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .24s ease; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mobile-nav__list { padding: 8px; }
.mobile-nav__list a { display: block; padding: 14px 16px; font-size: 17px; font-weight: 600; border-radius: 10px; }
.mobile-nav__list a:hover, .mobile-nav__list a[aria-current="page"] { background: var(--surface); color: var(--accent); }

/* ------------------------------------------------------------ hero ------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-block: clamp(32px, 6vw, 72px); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.hero__title { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
.hero__sub { margin-top: 18px; font-size: clamp(15px, 2vw, 18px); color: var(--ink-2); max-width: 46ch; }
.hero__cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 220px; }
.hero__blob { position: absolute; inset: 0; margin: auto; width: 78%; aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, var(--accent-soft), transparent 70%); filter: blur(6px); }
.hero__sneaker { position: relative; width: min(100%, 460px); }

/* -------------------------------------------------------- category tiles - */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 40px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 168px; padding: 20px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .12s ease, box-shadow .12s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tile::before { content: ""; position: absolute; inset: 0; opacity: .9; }
.cat-tile--men::before { background: linear-gradient(135deg, #dfe7ee, #f4f6f8); }
.cat-tile--women::before { background: linear-gradient(135deg, #f0e4ea, #f8f4f6); }
.cat-tile--kids::before { background: linear-gradient(135deg, #e2eee4, #f4f8f4); }
.cat-tile--deals::before { background: linear-gradient(135deg, #f6e6de, #fbf4f0); }
.cat-tile__label { position: relative; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cat-tile__go { position: relative; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: 4px; }

/* ------------------------------------------------------------ rails ------ */
.rail, .home-brands { padding-block: 26px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.row-head h2 { font-size: clamp(20px, 3vw, 26px); letter-spacing: -.02em; }
.row-head__link { font-size: 14px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.rail__track > .card { scroll-snap-align: start; }

.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill { padding: 9px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 14px; transition: border-color .12s, background .12s; }
.brand-pill:hover { border-color: var(--ink); background: var(--surface); }

/* ------------------------------------------------------------ card ------- */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); position: relative; }
.card__media {
  display: block; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1;
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__img { transform: scale(1.04); }
.card__body { padding: 12px 2px 8px; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__title:hover { color: var(--accent-ink); }
.card__sub { font-size: 13px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price { font-size: 15px; font-weight: 800; }
.price--was { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 600; }
.card__add { margin-top: 10px; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }

.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }

/* touch devices: reveal add-to-cart (no hover) */
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

/* ------------------------------------------------------- collection ------ */
.collection { padding-block: 24px 60px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.collection__head { margin-bottom: 20px; }
.collection__title { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; font-weight: 800; }
.collection__intro { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.section-subtitle { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 12px; }

.collection__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); background: var(--bg); z-index: 20; }
.collection__count { font-size: 14px; color: var(--muted); font-weight: 600; margin-right: auto; }
.sortby select { max-width: 100%; }
.filters-toggle { display: none; }
.sortby { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sortby select { border: 1.5px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; background: #fff; color: var(--ink); }

.collection__layout { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
@media (min-width: 900px) { .collection__layout { grid-template-columns: 244px 1fr; gap: 32px; } }

/* filters sidebar */
.filters { align-self: start; }
.filters__head { display: none; }
.filter { border: none; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin: 0 0 16px; }
.filter legend { font-size: 14px; font-weight: 800; padding: 0; margin-bottom: 10px; }
.filter__list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.check span:first-of-type { flex: 1; }
.check__count { color: var(--muted); font-size: 12px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.size-chip { position: relative; }
.size-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-chip span { display: grid; place-items: center; height: 38px; border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 13px; font-weight: 600; }
.size-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (min-width: 900px) { .filters { position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 4px; } }

/* product grid — auto-fill mirrors StockX (2 cols mobile → 3–4 tablet → 5 wide) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); } }

.grid-empty { text-align: center; padding: 60px 0; display: grid; gap: 14px; place-items: center; }
.loadmore { display: grid; place-items: center; margin-top: 32px; }

/* mobile off-canvas filters */
@media (max-width: 899px) {
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 360px); background: #fff;
    z-index: 140; transform: translateX(-100%); visibility: hidden;
    transition: transform .24s ease, visibility 0s linear .24s;
    padding: 16px; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: translateX(0); visibility: visible; transition: transform .24s ease; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .filters__head h2 { font-size: 18px; }
}

/* --------------------------------------------------------- brand tiles --- */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 8px; }
.brand-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; text-align: left; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.brand-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.brand-tile__mono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.brand-tile__name { font-weight: 700; font-size: 15px; }
.brand-tile__count { display: block; font-size: 12px; color: var(--muted); }
.brand-tile > span:nth-child(2) { display: flex; flex-direction: column; }

/* ------------------------------------------------------------ PDP -------- */
.pdp { padding-block: 24px 60px; }
.pdp__grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 12px; }
@media (min-width: 860px) { .pdp__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.pdp__media { position: sticky; top: calc(var(--header-h) + 12px); align-self: start; }
.pdp__img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pdp__brand { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--muted); }
.pdp__title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; font-weight: 800; margin-top: 6px; }
.pdp__colorway { color: var(--ink-2); margin-top: 4px; }
.pdp__price { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.price--lg { font-size: 26px; }
.price--was-lg { font-size: 17px; }
.pdp__sizes { border-top: 1px solid var(--line); padding-top: 20px; }
.pdp__sizes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.pdp__sizeguide { font-weight: 600; color: var(--accent-ink); font-size: 13px; }
.size-grid--lg { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.size-opt { height: 46px; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.size-opt:hover { border-color: var(--ink); }
.size-opt.is-selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.pdp__size-hint { color: var(--sale); font-size: 13px; font-weight: 600; margin-top: 10px; }
.pdp [data-add] { margin-top: 22px; }
.pdp__perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13px; color: var(--ink-2); }
.pdp__perks li { position: relative; padding-left: 18px; }
.pdp__perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pdp__details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.pdp__details summary { font-weight: 800; cursor: pointer; font-size: 15px; }
.pdp__specs { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.pdp__specs > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.pdp__specs dt { color: var(--muted); font-size: 13px; }
.pdp__specs dd { font-weight: 600; font-size: 13px; text-align: right; }

/* ------------------------------------------------------- cart drawer ----- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(94vw, 420px); background: #fff;
  z-index: 140; transform: translateX(100%); visibility: hidden;
  transition: transform .24s ease, visibility 0s linear .24s;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .24s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 18px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px; display: grid; gap: 12px; }
.drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.drawer__subtotal strong { font-size: 20px; }
.drawer__note { font-size: 12px; color: var(--muted); text-align: center; }

.cart-empty { text-align: center; padding: 60px 12px; display: grid; gap: 8px; place-items: center; }
.cart-empty__title { font-size: 18px; font-weight: 800; }
.cart-empty__sub { color: var(--muted); margin-bottom: 8px; }

.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 72px; height: 72px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); object-fit: cover; }
.line__info { min-width: 0; }
.line__title { font-weight: 700; font-size: 14px; display: block; line-height: 1.3; }
.line__title:hover { color: var(--accent-ink); }
.line__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; }
.line__price { font-weight: 800; font-size: 15px; }
.line__remove { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 6px 0 0; }
.line__remove:hover { color: var(--sale); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty__btn { width: 30px; height: 30px; border: none; background: #fff; font-size: 16px; line-height: 1; color: var(--ink); }
.qty__btn:hover { background: var(--surface); }
.qty__val { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------ footer ----- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr; gap: 28px; padding-block: 44px; }
.footer__tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.brand--footer { margin-bottom: 4px; }
.footer__col h3, .footer__signup h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { color: var(--ink-2); font-size: 14px; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__signup p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.footer__signup-row { display: flex; gap: 8px; }
.footer__signup-row input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; font: inherit; background: #fff; }
.footer__signup-msg { color: var(--accent-ink); font-weight: 600; min-height: 18px; }
.footer__legal { border-top: 1px solid var(--line); padding-block: 18px; }
.footer__legal p { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ toast ------ */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.is-shown { opacity: 1; transform: none; }

/* ------------------------------------------------------------ misc ------- */
.state-msg { padding: 80px 0; text-align: center; display: grid; gap: 12px; place-items: center; }
.state-msg h1 { font-size: 26px; }
.checkout { padding-block: 60px 80px; }
.checkout__card { max-width: 620px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 44px 28px; }
.checkout__icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent-ink); }
.checkout__icon svg { width: 32px; height: 32px; }
.checkout h1 { font-size: 28px; letter-spacing: -.02em; }
.checkout p { color: var(--ink-2); margin-top: 12px; }
.checkout__actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.checkout__summary { margin-top: 24px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.checkout__ship-to { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* checkout form (contact + shipping) */
.checkout__title { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.02em; font-weight: 800; margin: 6px 0 20px; }
.checkout__layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 880px) { .checkout__layout { grid-template-columns: 1.5fr .9fr; gap: 40px; } }

.form-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; }
.form-group legend { font-size: 15px; font-weight: 800; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 11px 12px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.field--invalid input, .field--invalid select { border-color: var(--sale); }
.field__err { font-size: 12px; color: var(--sale); font-weight: 600; min-height: 0; }
.field--invalid .field__err { min-height: 14px; }
.form-error { background: #fdecec; color: var(--sale); border: 1px solid #f3c7c7; border-radius: 9px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.checkout__reassure { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

.checkout__summary-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 880px) { .checkout__summary-panel { position: sticky; top: calc(var(--header-h) + 16px); } }
.checkout__summary-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.checkout__lines { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.sum-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.sum-line__img { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.sum-line__title { font-weight: 700; font-size: 13px; display: block; line-height: 1.3; }
.sum-line__title:hover { color: var(--accent-ink); }
.sum-line__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sum-line__price { font-weight: 800; font-size: 14px; }
.checkout__totals { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.checkout__totals > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.checkout__totals dt { margin: 0; }
.checkout__totals dd { margin: 0; font-weight: 600; }
.checkout__grand { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.checkout__grand dt, .checkout__grand dd { font-size: 17px; font-weight: 800; color: var(--ink); }
.checkout__edit { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.checkout__edit:hover { text-decoration: underline; }

/* ------------------------------------------------------- responsive ------ */
@media (max-width: 900px) {
  :root { --header-h: 108px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 160px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__signup { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header__bar { gap: 10px; height: 60px; }
  .hamburger { display: inline-grid; }
  .brand__name { font-size: 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 12px; }
  .site-header .header__bar { flex-wrap: wrap; height: auto; padding-top: 12px; }
  :root { --header-h: 150px; }
  .pdp__media { position: static; }
}
@media (max-width: 480px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pdp__specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Footer business/contact block */
.footer__contact{
  font-style: normal;
  margin-top: .75rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted, #6b7280);
}
.footer__contact a{ color: inherit; text-decoration: none; }
.footer__contact a:hover{ text-decoration: underline; }

/* Static info pages (Shipping, Returns, Size guide, Contact, About) */
.info-page{ max-width: 760px; margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.info-page h1{ margin: 0 0 .35rem; }
.info-page h2{ margin: 1.9rem 0 .5rem; font-size: 1.15rem; }
.info-page p, .info-page li{ line-height: 1.65; }
.info-page ul, .info-page ol{ padding-left: 1.25rem; }
.info-table{ width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
.info-table th, .info-table td{ text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line, #e5e7eb); }
.info-table th{ font-weight: 700; }
