@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 500 650;
  font-display: swap;
}

/* Tokens (brand colors come from content/site.json via theme_css_vars) */
:root {
  --primary: #7a2e1f;
  --primary-dark: #5a1f14;
  --sand: #e9d8bf;
  --sage: #7d9a7e;
  --ink: #16181b;
  --paper: #fbf8f3;
  --deal: #ff6a2b;
  --deal-ink: #b23f0c;
  --white: #fff;
  --muted: #5d5a55;
  --line: #e6ddd0;
  --surface: #fff;
  --surface-2: #f5efe5;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(22 24 27 / 6%), 0 6px 20px rgb(22 24 27 / 6%);
  --shadow-lg: 0 20px 60px rgb(22 24 27 / 18%);
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 3vw, 32px);

  /* Engine components (assets/engine/sw.css) in this theme */
  --sw-ink: var(--ink);
  --sw-paper: var(--white);
  --sw-muted: var(--muted);
  --sw-line: var(--line);
  --sw-accent: var(--primary);
  --sw-accent-ink: var(--white);
  --sw-notice-bg: var(--ink);
  --sw-notice-ink: var(--white);
  --sw-radius: var(--radius);
  --sw-display: var(--font-display);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  font: 500 15px/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--deal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; padding-bottom: 56px; }
.display { font: 650 clamp(30px, 4.6vw, 52px)/1.05 var(--font-display); letter-spacing: -.02em; }
.display--sm { font-size: clamp(26px, 3.4vw, 40px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-head__title { font: 650 clamp(22px, 2.6vw, 30px)/1.1 var(--font-display); letter-spacing: -.01em; margin: 0; }
.section-head__text { margin: 6px 0 0; color: var(--muted); }

/* Buttons and small components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); }
.btn--deal { background: var(--deal); color: var(--ink); }
.btn--deal:hover { background: #ff8550; color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sand); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--add { min-height: 38px; padding: 6px 14px 6px 10px; background: var(--ink); color: var(--white); font-size: 14px; }
.btn--add:hover { background: var(--primary); }
.btn--add .icon { width: 16px; height: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgb(0 0 0 / 7%); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--primary); font-weight: 700; cursor: pointer; }
.link-btn .icon { width: 18px; height: 18px; }
.link-btn.is-on .icon { fill: var(--deal); stroke: var(--deal); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--deal); color: var(--ink); font: 800 12px/20px var(--font-ui); text-align: center;
}
.chip { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.chip .icon { width: 14px; height: 14px; }
.chip--pickup { background: #e6efe5; color: #35553a; }
.chip--out { background: #f1e9e5; color: var(--muted); }
.chip--filter { background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: 6px 10px 6px 12px; font-size: 13px; }
.chip--filter:hover { border-color: var(--ink); color: var(--ink); }
.stars { display: inline-flex; gap: 1px; color: #d98a1c; vertical-align: -2px; }
.star { width: 14px; height: 14px; }
.flash { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: #e6efe5; color: #2d4a31; font-weight: 700; }
.alert { padding: 12px 16px; border-radius: var(--radius); background: #fbe6de; color: #7a2410; font-weight: 600; }
.alert ul { margin: 0; padding-left: 18px; }
.notice { padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); }
.empty-note { padding: 32px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.form-msg { margin: 8px 0 0; font-weight: 700; color: #2d4a31; }
.form-msg.is-error { color: #a12d10; }

/* Price */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.price__now { font: 800 20px/1 var(--font-ui); letter-spacing: -.01em; }
.price__now sup { font-size: .55em; top: -.65em; margin-left: 1px; }
.price__cur { font-size: .62em; vertical-align: .55em; margin-right: 1px; }
.price--deal .price__now { color: var(--deal-ink); }
.price__was { color: var(--muted); font-size: 13px; }
.price__now--lg { font-size: 36px; }
.save-badge { padding: 3px 10px; border-radius: 6px; background: var(--deal); color: var(--ink); font-size: 13px; font-weight: 800; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--primary); color: var(--white); }
.masthead__bar { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "menu logo account cart" "search search search search"; align-items: center; gap: 6px 8px; padding-block: 10px; }
.masthead__menu { grid-area: menu; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo__mark { width: 34px; height: 24px; fill: var(--sand); }
.logo__mark circle { fill: var(--deal); }
.logo__word { font: 650 21px/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.masthead__link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; color: var(--white); text-decoration: none; font-weight: 700; border-radius: 10px; }
.masthead__link:hover { color: var(--white); background: rgb(255 255 255 / 10%); }
.masthead__link .icon { width: 24px; height: 24px; }
.masthead__link:not(.masthead__cart) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.masthead__cart { grid-area: cart; padding-right: 14px; }
.masthead__link:not(.masthead__cart) { grid-area: account; }
.pickup { display: none; position: relative; }

.search { grid-area: search; position: relative; display: flex; }
.search__input {
  width: 100%; height: 46px; padding: 0 56px 0 20px; border: 2px solid transparent; border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 600; appearance: none;
}
.search__input::placeholder { color: #7b766f; font-weight: 500; }
.search__input:focus { outline: none; border-color: var(--deal); }
.search__go { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--deal); color: var(--ink); cursor: pointer; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; overflow: hidden;
  border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--surface-2); }
.suggest__cat span { color: var(--muted); font-size: 13px; }
.suggest__item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.suggest__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__price { font-weight: 800; }
.suggest .suggest__all { justify-content: center; border-top: 1px solid var(--line); font-weight: 700; color: var(--primary); }

.pickup__toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.15; }
.pickup__toggle::-webkit-details-marker { display: none; }
.pickup__toggle:hover { background: rgb(255 255 255 / 10%); }
.pickup__toggle small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.pickup__toggle .icon { width: 22px; height: 22px; color: var(--sand); }
.pickup__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 300px; padding: 18px; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); font-size: 14px; }
.pickup__name { font-weight: 800; }
.pickup__panel p:last-of-type { margin-bottom: 10px; }

.deptbar { background: var(--primary-dark); }
.deptbar__inner { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.deptbar__all { display: none; }
.deptbar__links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.deptbar__links::-webkit-scrollbar { display: none; }
.deptbar__links a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: rgb(255 255 255 / 90%); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 8px; }
.deptbar__links a:hover { color: var(--white); background: rgb(255 255 255 / 10%); }
.deptbar__links .icon { width: 16px; height: 16px; }
.deptbar__links .deptbar__deal { color: var(--deal); font-weight: 800; }

/* Mega menu (full-screen sheet on phones, two-pane panel on desktop) */
.mega { position: fixed; inset: 0; z-index: 70; background: rgb(22 24 27 / 45%); }
.mega__sheet { height: 100%; max-width: 440px; margin: 0; padding: 0; overflow-y: auto; background: var(--paper); color: var(--ink); }
.mega__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mega__title { margin: 0; font: 650 20px/1 var(--font-display); }
.mega__depts { margin: 0; padding: 8px; list-style: none; }
.mega.has-panel .mega__depts { display: none; }
.mega__dept { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 700; cursor: pointer; }
.mega__dept:hover, .mega__dept[aria-current="true"] { background: var(--surface-2); color: var(--primary); }
.mega__dept .icon { color: var(--primary); }
.mega__chev { margin-left: auto; width: 16px; height: 16px; opacity: .5; }
.mega__panel { padding: 12px 16px 24px; }
.mega__panel-head { margin-bottom: 12px; }
.mega__back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.mega__panel-title { margin: 6px 0 0; font: 650 24px/1.1 var(--font-display); }
.mega__panel-title a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.mega__cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mega__cats a { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); }
.mega__cats a:hover { color: var(--primary); }
.mega__cats img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2); }

/* Mini-cart drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(22 24 27 / 45%); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--paper); box-shadow: var(--shadow-lg); outline: none; }
.drawer.is-open .drawer__panel { animation: slide-in .25s ease-out; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 650 22px/1 var(--font-display); }
.drawer__count { font: 600 15px var(--font-ui); color: var(--muted); }
.drawer__note { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 10px; background: #e6efe5; color: #2d4a31; font-weight: 700; }
.drawer__items { flex: 1; margin: 0; padding: 8px 20px; overflow-y: auto; list-style: none; }
.drawer__empty { padding: 24px 20px; color: var(--muted); }
.drawer__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--white); }
.drawer__sub { display: flex; justify-content: space-between; margin: 0; font-size: 17px; }
.mini { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.mini__info { flex: 1; min-width: 0; }
.mini__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.mini__row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mini__qty { min-width: 18px; text-align: center; font-weight: 800; }
.mini__line { margin-left: auto; }
.mini .qty__btn { width: 30px; height: 30px; }

/* Product card */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 2px 4px rgb(22 24 27 / 6%), 0 14px 32px rgb(22 24 27 / 10%); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #f3f3f1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__save { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px; background: var(--deal); color: var(--ink); font-size: 12px; font-weight: 800; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.card__brand { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card__title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--primary); text-decoration: underline; }
.card__title a::after { content: ""; position: absolute; inset: 0 0 60px; }
.card__rating { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; }
.card__add { position: relative; z-index: 1; margin-top: auto; padding-top: 4px; }

/* Rails (horizontal scrollers) */
.rail { margin-top: 48px; }
.rail__track, .recent { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); gap: 14px; margin: 0; padding: 4px 4px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; list-style: none; }
.rail__track > *, .recent > * { scroll-snap-align: start; }
.recent__item { display: grid; gap: 6px; padding: 10px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: var(--shadow); }
.recent__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3f3f1; }
.recent__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Home */
.home-h1 { margin-top: 18px; margin-bottom: 14px; font: 700 15px/1.3 var(--font-ui); color: var(--muted); }
.hero { position: relative; }
.promo {
  position: relative; display: grid; align-items: center; min-height: 360px; overflow: hidden;
  padding: 32px 24px 72px; border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(120% 140% at 100% 0%, #a5452c 0%, var(--primary) 45%, var(--primary-dark) 100%);
}
.promo::after {
  content: ""; position: absolute; inset: auto -5% -2px; height: 46%;
  background: rgb(255 255 255 / 7%);
  clip-path: polygon(0 70%, 12% 52%, 22% 60%, 34% 30%, 52% 30%, 60% 48%, 74% 42%, 86% 58%, 100% 44%, 100% 100%, 0 100%);
}
.promo--sunset { color: var(--ink); background: radial-gradient(120% 140% at 100% 0%, #ffc59a 0%, #ff8a4c 50%, var(--deal) 100%); }
.promo--sunset::after { background: rgb(122 46 31 / 12%); }
.promo--sage { background: radial-gradient(120% 140% at 100% 0%, #9cb79d 0%, var(--sage) 45%, #4b654c 100%); }
.promo__copy { position: relative; z-index: 1; max-width: 560px; }
.promo__kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 16%); font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.promo--sunset .promo__kicker { background: rgb(22 24 27 / 10%); }
.promo__title { font: 650 clamp(32px, 5vw, 60px)/1.02 var(--font-display); letter-spacing: -.02em; }
.promo__text { max-width: 44ch; font-size: 17px; opacity: .92; }
.promo__art { display: none; }
.promo__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; margin-top: 22px; border-radius: var(--radius); object-fit: cover; }
.promo--photo::after { display: none; }
.hero__controls { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 4px; transform: translateX(-50%); padding: 2px; border-radius: 999px; background: rgb(255 255 255 / 92%); color: var(--ink); box-shadow: var(--shadow); }
.hero__controls .icon-btn { width: 36px; height: 36px; }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { width: 24px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: #c9bfb1; transition: width .2s; }
.hero__dot[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--primary); }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; margin-bottom: 0; list-style: none; }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust__item p { margin: 0; font-size: 13px; line-height: 1.35; }
.trust__item strong { display: block; font-size: 14px; }
.trust__item span { color: var(--muted); }
.trust__icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--sand); color: var(--primary); }

.depts { margin-top: 48px; }
.depts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dept-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.dept-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.dept-tile:hover img { transform: scale(1.04); }
.dept-tile__name { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; border-radius: 10px; background: rgb(255 255 255 / 92%); font-size: 13px; font-weight: 800; line-height: 1.2; text-align: center; }
.dept-tile:hover .dept-tile__name { color: var(--primary); }

.collections { margin-top: 56px; }
.collections__grid { display: grid; gap: 14px; }
.collection { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--sand); }
.collection:nth-child(2) { background: #dfe7dc; }
.collection:nth-child(3) { background: #f6d9c4; }
.collection__icon { width: 40px; height: 40px; margin-bottom: 8px; color: var(--primary); }
.collection__title { font: 650 26px/1.1 var(--font-display); }
.collection__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.collection__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--white); }

.brands-strip { margin-top: 56px; }
.brand-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.brand-chips a { display: flex; flex-direction: column; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; }
.brand-chips a:hover { border-color: var(--primary); }
.brand-chips span { font: 650 18px/1.2 var(--font-display); }
.brand-chips small { color: var(--muted); font-weight: 600; }

.newsletter { margin-top: 64px; margin-bottom: -56px; padding: 44px 0; background: var(--ink); color: var(--white); }
.newsletter__inner { display: grid; gap: 20px; align-items: center; }
.newsletter__title { font: 650 clamp(24px, 3vw, 34px)/1.1 var(--font-display); }
.newsletter__inner p { color: rgb(255 255 255 / 75%); margin: 0; }
.newsletter__form { display: grid; gap: 10px; }
.newsletter__field { display: grid; gap: 4px; margin: 0; font-size: 13px; font-weight: 700; }
.newsletter__field input { width: 100%; height: 48px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; background: var(--white); color: var(--ink); }
.newsletter__form .sw-agree { margin: 2px 0; color: rgb(255 255 255 / 85%); }
.newsletter__form .sw-agree a { color: var(--white); }
.newsletter__form .btn { justify-self: start; }
.newsletter__form .form-msg { margin: 0; color: #b9e0bc; }
.newsletter__form .form-msg.is-error { color: #ffb59a; }

/* Catalog pages */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.crumbs a { color: var(--muted); }
.page-head { margin-top: 18px; margin-bottom: 20px; }
.page-head p { max-width: 70ch; color: var(--muted); font-size: 16px; }
.page-head--deal .display { color: var(--deal-ink); }
.banner { position: relative; display: grid; align-items: end; min-height: 240px; margin-top: 16px; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(22 24 27 / 72%), rgb(22 24 27 / 5%) 70%); }
.banner__copy { position: relative; z-index: 1; }
.banner__copy p { margin: 0; font-size: 17px; opacity: .9; }
.banner--tile { background: var(--sand); color: var(--ink); }
.banner--tile::after { display: none; }
.banner--tile .banner__img { left: auto; width: 58%; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.banner--slim { min-height: 170px; margin: 0 0 14px; }
.cat-tiles { margin-top: 20px; }
.cat-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cat-tile { display: grid; gap: 8px; padding: 8px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-align: center; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.25; box-shadow: var(--shadow); }
.cat-tile:hover { color: var(--primary); }
.cat-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.sibling-cats { display: flex; gap: 8px; margin-top: 4px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.sibling-cats a { flex: none; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.sibling-cats a:hover, .sibling-cats a[aria-current="page"] { border-color: var(--primary); color: var(--primary); }
.sibling-cats a[aria-current="page"] { background: var(--primary); color: var(--white); }

.listing { display: grid; gap: 24px; margin-top: 24px; }
.filters {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; max-height: 85vh; overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateY(105%); transition: transform .28s ease; visibility: hidden;
}
.filters.is-open { transform: none; visibility: visible; }
.filters__scrim { position: fixed; inset: 0; z-index: 74; background: rgb(22 24 27 / 45%); }
.filters__form { padding: 0 20px 20px; }
.filters__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; background: var(--paper); }
.filters__title { margin: 0; font: 650 22px/1 var(--font-display); }
.filters__actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 4px; background: var(--paper); }
.filters__actions .btn { flex: 1; }
.facet { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); }
.facet legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 800; }
.facet legend + * { clear: left; }
.facet--brands { max-height: 320px; overflow-y: auto; }
.facet__link { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.facet__link:hover, .facet__link.is-on { color: var(--primary); font-weight: 800; }
.facet__range { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.facet__range input { width: 100%; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; }
.check small { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar__count { margin: 0 auto 0 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.toolbar__sort select, .line__qty select, .field select {
  height: 40px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; appearance: none; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
}
.toolbar__filters { min-height: 40px; padding: 6px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip--filter .icon { width: 13px; height: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.pager--left { justify-content: flex-start; margin-top: 16px; }
.pager__num, .pager__step { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); }
.pager__num:hover, .pager__step:hover { color: var(--primary); }
.pager__num.is-current { background: var(--ink); color: var(--white); }
.pager__gap { color: var(--muted); }

/* Product detail */
.pdp { display: grid; gap: 24px; margin-top: 18px; }
.pdp__gallery { display: grid; gap: 10px; align-content: start; }
.pdp__main { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-lg); background: #f3f3f1; }
.pdp__thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--primary); }
.pdp__thumbs img { width: 72px; height: 72px; object-fit: cover; }
.pdp__brand { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; text-decoration: none; }
.pdp__title { margin: 6px 0 10px; font: 650 clamp(24px, 3vw, 36px)/1.12 var(--font-display); letter-spacing: -.01em; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.pdp__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; }
.pdp__price { gap: 8px 12px; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 12px; }
.stock { font-weight: 800; color: #35553a; }
.stock--low { color: var(--deal-ink); }
.stock--out { color: var(--muted); }
.fulfil { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.fulfil__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fulfil__opt .icon { width: 26px; height: 26px; color: var(--primary); }
.fulfil__opt p { margin: 0; font-size: 14px; line-height: 1.35; }
.fulfil__opt strong { display: block; }
.fulfil__opt span { color: var(--muted); }
.fulfil__opt.is-off { opacity: .5; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; }
.buy .btn--primary { flex: 1; min-width: 200px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty__btn { display: grid; place-items: center; width: 44px; height: 48px; border: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 800; cursor: pointer; border-radius: 999px; }
.qty__btn .icon { width: 18px; height: 18px; }
.qty__input { width: 44px; height: 48px; border: 0; background: none; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wish { margin-top: 10px; }
.pdp-details { display: grid; gap: 16px; margin-top: 40px; }
.pdp-section { padding: 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.pdp-section h2 { font: 650 24px/1.1 var(--font-display); }
.features { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 10px; }
.features .icon { color: var(--sage); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 40%; padding-right: 16px; color: var(--muted); font-weight: 600; }
.reviews__summary { display: grid; gap: 16px; margin-bottom: 18px; }
.reviews__score { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.reviews__score strong { font: 650 44px/1 var(--font-display); }
.reviews__score span { color: var(--muted); }
.histogram { display: grid; gap: 6px; max-width: 420px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.histogram li { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; }
.histogram meter { width: 100%; height: 10px; }
.histogram meter::-webkit-meter-bar { border: 0; border-radius: 5px; background: var(--surface-2); }
.histogram meter::-webkit-meter-optimum-value { border-radius: 5px; background: #d98a1c; }
.histogram meter::-moz-meter-bar { border-radius: 5px; background: #d98a1c; }
.reviews__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.review { padding: 16px 0; border-top: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.review p:not(.review__head) { margin: 0 0 6px; }
.review__by { color: var(--muted); font-size: 13px; }

/* Cart, checkout, order */
.cart, .checkout, .order, .account { margin-top: 24px; }
.cart__layout, .checkout__layout { display: grid; gap: 20px; }
.cart__lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 80px 1fr; gap: 12px 16px; padding: 14px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.line__img img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: #f3f3f1; }
.line__name { color: var(--ink); font-weight: 700; text-decoration: none; }
.line__name:hover { color: var(--primary); text-decoration: underline; }
.line__info p { margin: 4px 0 8px; font-size: 14px; }
.line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.line__total { grid-column: 2; margin: 0; font-size: 17px; font-weight: 800; }
.summary { align-self: start; padding: 22px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.summary__title { font: 650 22px/1.1 var(--font-display); }
.summary__items { display: grid; gap: 8px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); list-style: none; font-size: 14px; }
.summary__items li { display: flex; justify-content: space-between; gap: 12px; }
.summary__items small { color: var(--muted); }
.summary__rows { display: grid; gap: 8px; margin: 0 0 16px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows div[hidden] { display: none; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 700; }
.summary__total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; }
.summary__total dt { color: var(--ink); font-weight: 800; }
.summary__note { margin: 12px 0 0; font-size: 13px; }
.panel { min-width: 0; margin: 0 0 16px; padding: 22px; border: 0; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.panel__title { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 14px; padding: 0; font: 650 22px/1.1 var(--font-display); }
.panel__title + * { clear: left; }
.panel__title span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--primary); font: 800 15px var(--font-ui); }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; clear: left; }
.field { display: grid; gap: 5px; grid-column: span 6; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.fields .field { margin-bottom: 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 500; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(122 46 31 / 15%); }
.field--sm { grid-column: span 3; }
.options { display: grid; gap: 10px; margin-bottom: 16px; clear: left; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option__body { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.option__body .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--primary); }
.option__body small { grid-column: 2; color: var(--muted); font-size: 13px; }
.option__body em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 800; }
.option input:checked + .option__body { border-color: var(--primary); background: #fbf2ee; box-shadow: 0 0 0 1px var(--primary); }
.option input:focus-visible + .option__body { outline: 3px solid var(--deal); outline-offset: 2px; }
.address { margin-bottom: 12px; }
.address .muted { margin: 10px 0 4px; font-size: 13px; }
.pickup-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; }
.demo-pay { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: #e6efe5; color: #2d4a31; font-weight: 700; clear: left; }
.order__kicker { display: inline-flex; align-items: center; gap: 8px; color: #35553a; font-weight: 800; }
.order__kicker .icon { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: #e6efe5; }
.order__grid { display: grid; gap: 20px; margin-top: 20px; }
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.tracker__step { padding-top: 14px; border-top: 4px solid var(--line); }
.tracker__step.is-done { border-color: var(--sage); color: var(--ink); }
.empty { padding: 48px 0; text-align: center; }

/* Account */
.auth { display: grid; gap: 16px; margin-top: 16px; }
.account__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 6px; margin: 8px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; }
.tabs a[aria-current="page"] { border-color: var(--primary); color: var(--ink); }
.table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.status { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-weight: 700; }
.status--pending { background: #fff1e0; color: #8a4b05; }
.addresses { display: grid; gap: 16px; }
.address-card { display: flex; justify-content: space-between; gap: 16px; }

/* Brands, help, about, contact */
.brand-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-block: 8px 0; list-style: none; }
.brand-card { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.brand-card strong { font: 650 19px/1.2 var(--font-display); }
.brand-card span { grid-column: 1; color: var(--muted); font-size: 13px; }
.brand-card .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--primary); }
.brand-card:hover strong { color: var(--primary); }
.help { display: grid; gap: 24px; }
.faq__item { margin-bottom: 10px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.lede { font-size: 19px; }
.about { display: grid; gap: 24px; }
.about__story { max-width: 70ch; font-size: 17px; }
.values { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.value { padding: 22px; border-radius: var(--radius-lg); background: var(--sand); }
.value:nth-child(2) { background: #dfe7dc; }
.value:nth-child(3) { background: #f6d9c4; }
.value__title { font: 650 24px/1.1 var(--font-display); }
.value p { margin: 0; }
.contact { display: grid; gap: 20px; }
.contact__info .btn { margin-top: 8px; }
.nap { font-style: normal; line-height: 1.7; }
.hours { display: grid; gap: 6px; margin: 16px 0 0; font-size: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; text-align: right; }

/* Footer */
.footer { margin-top: 56px; padding: 48px 0 24px; background: var(--primary-dark); color: rgb(255 255 255 / 82%); font-size: 14px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--white); }
.footer__grid { display: grid; gap: 32px; }
.footer__title { margin-bottom: 12px; color: var(--white); font: 800 13px/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { padding: 3px 0; }
.logo--footer { margin-bottom: 12px; }
.footer .hours dt { color: rgb(255 255 255 / 70%); }
.footer .hours dd { color: var(--white); }
.footer .footer__social { display: flex; gap: 16px; margin-top: 16px; }
.footer__base { display: grid; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 15%); font-size: 13px; }
.footer__base p { margin: 0; }
.footer__base a { text-decoration: underline; }

/* Engine parts: policy pages, forms, demo store notice */
.sw-doc { padding-bottom: 24px; }
.sw-doc__body a, .sw-doc__links a { color: var(--primary); }
.sw-doc__links a { background: var(--white); font-weight: 700; }
.sw-doc__links a:hover { border-color: var(--primary); }
.sw-doc__search { display: grid; gap: 6px; max-width: 480px; margin: 8px 0 24px; font-weight: 700; }
.sw-doc__search-row { display: flex; gap: 8px; }
.sw-doc__search input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; }
.field-hint { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.field [aria-invalid="true"], .newsletter__field [aria-invalid="true"] { border-color: #a12d10; box-shadow: 0 0 0 3px rgb(161 45 16 / 18%); }
.field abbr { text-decoration: none; color: var(--primary); }
.sw-agree { font-size: 14px; }
.sw-agree a { color: var(--primary); }
.demo-store { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); background: #fff1e0; color: #6b3a04; font-weight: 700; }
.demo-store .icon { margin-top: 2px; }
.contact__note { font-size: 14px; }
.contact__map-title { margin: 20px 0 10px; font-size: 16px; }
.account__delete { margin-top: 32px; }
.account__delete p { margin-bottom: 8px; color: var(--muted); }
.sw-reviews, .sw-team { margin-block: 8px; }
.sw-review { box-shadow: var(--shadow); }
.footer__col { display: grid; align-content: start; gap: 24px; }
.footer .sw-legal-nav { display: block; }

[hidden] { display: none; }

@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }

/* Media queries */
@media (min-width: 640px) {
  .rail__track, .recent { grid-auto-columns: minmax(190px, 30%); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .depts__grid { grid-template-columns: repeat(4, 1fr); }
  .brand-chips { grid-template-columns: repeat(3, 1fr); }
  .newsletter__form { grid-template-columns: 1fr 1.3fr; }
  .newsletter__form .form-msg, .newsletter__form .sw-agree { grid-column: 1 / -1; }
  .field--half { grid-column: span 3; }
  .fields .field:not(.field--wide):not(.field--sm) { grid-column: span 3; }
  .field--sm { grid-column: span 3; }
  .auth { grid-template-columns: 1fr 1fr; align-items: start; }
  .addresses { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .mega__cats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 160px; }
  .masthead__bar { grid-template-columns: auto minmax(280px, 1fr) auto auto auto; grid-template-areas: "logo search pickup account cart"; gap: 20px; padding-block: 14px; }
  .masthead__menu { display: none; }
  .logo__word { font-size: 25px; }
  .logo__mark { width: 40px; height: 28px; }
  .search__input { height: 50px; }
  .search__go { width: 42px; height: 42px; }
  .pickup { display: block; grid-area: pickup; }
  .masthead__link:not(.masthead__cart) span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .deptbar__all { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: rgb(255 255 255 / 12%); color: var(--white); font-weight: 800; cursor: pointer; }
  .deptbar__all:hover { background: rgb(255 255 255 / 20%); }

  .mega { top: var(--mega-top, 122px); background: rgb(22 24 27 / 35%); }
  .mega__sheet { display: grid; grid-template-columns: 290px 1fr; grid-template-rows: auto 1fr; max-width: var(--wrap); height: auto; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
  .mega__head { grid-column: 1 / -1; }
  .mega__depts, .mega.has-panel .mega__depts { display: block; overflow-y: auto; border-right: 1px solid var(--line); }
  .mega__panel { overflow-y: auto; padding: 20px 28px 28px; }
  .mega__back { display: none; }
  .mega__cats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

  .hero { margin-top: 4px; }
  .promo { grid-template-columns: 1.3fr .7fr; min-height: 420px; padding: 56px 64px 80px; }
  .promo__art { position: relative; z-index: 1; display: grid; place-items: center; justify-self: center; width: 280px; height: 280px; border-radius: 50%; background: rgb(255 255 255 / 12%); box-shadow: 0 0 0 28px rgb(255 255 255 / 6%), 0 0 0 56px rgb(255 255 255 / 4%); }
  .promo--sunset .promo__art { background: rgb(255 255 255 / 30%); }
  .promo__icon { width: 128px; height: 128px; stroke-width: 1.2; }
  .promo__img { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 62%; height: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
  .depts__grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .dept-tile__name { font-size: 14px; }
  .rail__track, .recent { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
  .collections__grid { grid-template-columns: repeat(3, 1fr); }
  .brand-chips { grid-template-columns: repeat(6, 1fr); }
  .newsletter__inner { grid-template-columns: 1fr 1.2fr; gap: 48px; }

  .banner { min-height: 300px; padding: 44px; }
  .banner--slim { min-height: 220px; padding: 32px 44px; }
  .listing { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
  .filters { position: sticky; top: 150px; z-index: auto; max-height: calc(100vh - 170px); transform: none; visibility: visible; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); transition: none; }
  .filters__head { background: var(--white); }
  .filters__close, .toolbar__filters, .filters__scrim { display: none; }
  .filters__actions { background: var(--white); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .pdp__gallery { position: sticky; top: 150px; grid-template-columns: 76px 1fr; }
  .pdp__thumbs { flex-direction: column; grid-row: 1; }
  .pdp__main { grid-column: 2; }
  .pdp__gallery:not(:has(.pdp__thumbs)) { grid-template-columns: 1fr; }
  .pdp__gallery:not(:has(.pdp__thumbs)) .pdp__main { grid-column: 1; }
  .pdp-details { grid-template-columns: 1fr 1fr; }
  .pdp-details .reviews { grid-column: 1 / -1; }
  .reviews__summary { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }

  .cart__layout, .checkout__layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .summary { position: sticky; top: 150px; }
  .line { grid-template-columns: 96px 1fr auto; }
  .line__img img { width: 96px; height: 96px; }
  .line__total { grid-column: 3; grid-row: 1; }
  .options { grid-template-columns: repeat(3, 1fr); }
  .option__body { grid-template-columns: 1fr; height: 100%; gap: 4px; }
  .option__body .icon { grid-row: auto; }
  .option__body small, .option__body em { grid-column: 1; grid-row: auto; }
  .order__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }

  .help { grid-template-columns: minmax(0, 1.6fr) 1fr; align-items: start; }
  .contact { grid-template-columns: minmax(0, 1.4fr) 1fr; align-items: start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__base { grid-template-columns: 1fr auto; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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