/* ---------- Tokens ---------- */
:root {
  /* Shared base: true neutrals. All colour comes from the brand tokens below. */
  --ink: #18181b;
  --muted: #5f5f66;
  --line: #e4e4e7;
  --bg: #ffffff;
  --paper: #f4f4f5;
  --stone: #e8e8ea;
  /* Brand accent and its tint. */
  --orange: #cd7f32;
  --hot: #344c7a;
  --peach: #e4e9f2;
  --cream: #f1f4f9;
  --green: #6dab3c;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-panel: 28px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --font: "Instrument Sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; font-family: var(--font); line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.icon {
  width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.muted { color: var(--muted); }

/* The page sits inside a frame: everything is inset from the window edge. */
#site-top, main, #site-bottom { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
main { display: grid; gap: 5rem; padding-block: 1.5rem 5rem; }
main > * { min-width: 0; }
main.inner { gap: 1.5rem; padding-top: 1.25rem; }

/* Rows that scroll sideways do it without showing a scrollbar. */
.cats, .mainnav, .filter-checks, .side { scrollbar-width: none; }
.cats::-webkit-scrollbar, .mainnav::-webkit-scrollbar, .filter-checks::-webkit-scrollbar, .side::-webkit-scrollbar { display: none; }

/* ---------- Buttons and small marks ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px; background: var(--hot); color: #fff;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.eyebrow { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.view-all { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.view-all:hover { background: var(--ink); color: #fff; }
.chip { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 700; }
.hot { margin-left: 0.2rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--hot); color: #fff; font-size: 0.7rem; font-weight: 700; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1.5rem; }

/* Pictures always sit on white, so a supplier shot on white merges with its panel. */
.ph { display: grid; place-items: center; overflow: clip; background: var(--bg); color: rgb(24 24 27 / 0.2); }
.ph .icon { width: 2.25rem; height: 2.25rem; stroke-width: 1.4; }
.ph img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Header ---------- */
.topline { padding-block: 0.6rem; color: var(--muted); font-size: 0.78rem; text-align: center; }
.header {
  display: flex; align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.7rem 0.8rem 0.7rem 1.4rem; border-radius: 999px; background: var(--bg);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 56px; }
.mainnav { display: flex; flex: 1; justify-content: center; gap: 0.25rem 1.5rem; font-size: 0.9rem; font-weight: 500; }
.mainnav a { text-decoration: none; white-space: nowrap; }
.mainnav a:hover { color: var(--hot); }
.header-tools { display: flex; align-items: center; gap: 0.35rem; }
.search { flex: 0 1 180px; }
.search form { display: flex; overflow: clip; border-radius: 999px; background: var(--paper); }
.search input { flex: 1; min-width: 0; width: 100%; padding: 0.5rem 0 0.5rem 1rem; border: 0; background: transparent; font-size: 0.86rem; }
.search input:focus-visible { outline: none; }
.search form:focus-within { outline: 2px solid var(--hot); outline-offset: 1px; }
.search button { display: grid; place-items: center; width: 2.4rem; border: 0; background: none; cursor: pointer; }
.tool { position: relative; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; text-decoration: none; }
.tool:hover { background: var(--paper); }
.badge { position: absolute; top: -0.1rem; right: -0.1rem; min-width: 1.15rem; padding-inline: 0.25rem; border-radius: 999px; background: var(--hot); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.cart-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.cart-btn:hover { background: var(--hot); }
.cart-btn .badge { position: static; min-width: 0; padding: 0; background: none; font-size: inherit; line-height: inherit; }

/* ---------- Home ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; min-height: 560px; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1.1rem; padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--radius-panel); background: var(--hot); color: #fff; }
.hero-copy .eyebrow { margin-bottom: auto; color: #fff; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 40ch; color: #ffffff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-actions .btn:not(.outline) { background: #fff; color: var(--hot); }
.hero-actions .btn:not(.outline):hover { background: var(--ink); color: #fff; }
.hero-actions .btn.outline { border-color: #fff; color: #fff; }
.hero-actions .btn.outline:hover { background: #fff; color: var(--ink); }
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; }
.hero-mosaic .ph { padding: 1.25rem; border-radius: var(--radius-panel); min-height: 0; }
.hero-mosaic .ph img { position: relative; }

.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
a.cat, .cat { display: grid; gap: 0.6rem; padding: 0.6rem 0.6rem 0.9rem; border-radius: var(--radius); background: var(--bg); color: inherit; font-size: 0.86rem; font-weight: 500; text-align: center; text-decoration: none; }
.cat .ph { aspect-ratio: 1; border-radius: var(--radius-sm); padding: 0.4rem; }
.cat:hover { color: var(--hot); }

.promos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.75rem; }
.promo { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 340px; padding: 1.75rem; border-radius: var(--radius-panel); }
.promo h2 { margin-top: 0.4rem; font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.promo p:not(.eyebrow) { margin-top: 0.4rem; font-size: 0.92rem; }
.promo a { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; font-size: 0.88rem; font-weight: 600; }
.promo .ph { align-self: flex-end; width: 130px; aspect-ratio: 1; padding: 0.5rem; border-radius: var(--radius); }
.promo.peach { background: var(--hot); color: #fff; }
.promo.peach .eyebrow { color: inherit; }
.promo.stone { background: var(--peach); }
.promo.dark { background: var(--ink); color: #fff; }
.promo.dark .eyebrow { color: #d4d4d8; }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-panel); background: var(--peach); }
.banner h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.banner p { max-width: 56ch; margin-top: 0.5rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 0; padding: 1.5rem; border-radius: var(--radius-panel); background: var(--bg); list-style: none; }
.features li { display: flex; align-items: center; gap: 0.75rem; }
.features .icon { width: 1.6rem; height: 1.6rem; }
.features strong { font-weight: 600; }
.features span { display: block; font-size: 0.82rem; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.tile { display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg); }
.tile .icon { width: 1.6rem; height: 1.6rem; margin-bottom: 1.5rem; }
.tile h3 { font-size: 1.1rem; }
.tile p { font-size: 0.9rem; color: var(--muted); }
.tile a { font-size: 0.88rem; font-weight: 600; }
.tile a:hover { color: var(--hot); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--bg); font-size: 0.88rem; text-decoration: none; }
.chips a:hover { background: var(--ink); color: #fff; }
.brand-logo { display: block; max-width: 100%; max-height: 48px; object-fit: contain; }

.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-panel); background: var(--cream); }
.newsletter h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.newsletter form { display: flex; flex: 0 1 460px; flex-wrap: wrap; gap: 0.5rem; }
.newsletter input { flex: 1 1 220px; padding: 0.75rem 1.1rem; border: 0; border-radius: 999px; background: var(--bg); }
.news-msg { flex-basis: 100%; font-weight: 600; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; padding: 0.6rem 0.6rem 0.9rem; border-radius: var(--radius); background: var(--bg); }
.card-link { display: grid; gap: 0.2rem; color: inherit; text-decoration: none; }
.card-img { aspect-ratio: 1; margin-bottom: 0.6rem; padding: 0.5rem; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: no-preference) {
  .card-img img { transition: transform 0.3s ease; }
  .card:hover .card-img img { transform: scale(1.03); }
}
.card-eyebrow { padding-inline: 0.35rem; font-size: 0.74rem; color: var(--muted); }
.card-title { padding-inline: 0.35rem; font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.card-link:hover .card-title { color: var(--hot); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding: 0.6rem 0.1rem 0 0.35rem; }
.price { font-variant-numeric: tabular-nums; }
.price strong { font-size: 1rem; font-weight: 600; }
.price s { margin-left: 0.3rem; font-size: 0.82rem; color: var(--muted); }
.add { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.add:hover, .add.added { background: var(--hot); }
.wish { position: absolute; top: 1rem; right: 1rem; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.wish .icon { width: 1.05rem; height: 1.05rem; }
.wish[aria-pressed="true"] { color: var(--hot); }
.wish[aria-pressed="true"] .icon { fill: currentColor; }
.card-flag { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--hot); color: #fff; font-size: 0.72rem; font-weight: 600; }
.card-quote { flex: none; padding: 0.4rem 0.8rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.card-quote:hover { background: var(--ink); color: #fff; }
.empty { display: grid; justify-items: center; gap: 1rem; padding: 3rem; border-radius: var(--radius); background: var(--bg); }
.sentinel { padding: 1.5rem; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ---------- Listing pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--hot); }
.page-head { display: grid; gap: 0.4rem; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }

.shop-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.side { padding: 0; border-radius: var(--radius); background: var(--bg); overflow: clip; }
@media (min-width: 801px) {
  .side { position: sticky; top: 0.75rem; max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; }
}
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.filter-head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.filter-clear { font-size: 0.8rem; font-weight: 600; color: var(--hot); }
.filter-group { padding: 0.95rem 1.25rem; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: ""; width: 0.45rem; height: 0.45rem; margin-right: 0.15rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); }
.filter-group[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.filter-list, .filter-checks { display: grid; gap: 0.05rem; margin: 0.65rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; }
.filter-list a { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.32rem 0; text-decoration: none; }
.filter-list a:hover, .filter-list a[aria-current="true"] { color: var(--hot); }
.filter-list a[aria-current="true"] { font-weight: 600; }
.filter-checks { max-height: 15rem; overflow-y: auto; }
.filter-checks label { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0; cursor: pointer; }
.filter-checks input { width: 1rem; height: 1rem; margin: 0; flex: none; accent-color: var(--hot); }
.filter-checks span:first-of-type { flex: 1; }
.count { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.price-form { display: grid; gap: 0.85rem; margin-top: 0.75rem; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.price-inputs input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.84rem; }
.price-slider { position: relative; height: 1.25rem; }
.price-slider::before, .price-fill { content: ""; position: absolute; top: 50%; height: 3px; border-radius: 3px; transform: translateY(-50%); }
.price-slider::before { left: 0; right: 0; background: var(--line); }
.price-fill { background: var(--hot); }
.price-slider input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.price-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.1rem; height: 1.1rem; border: 2px solid var(--hot); border-radius: 50%; background: #fff; pointer-events: auto; cursor: pointer; }
.price-slider input::-moz-range-thumb { width: 0.9rem; height: 0.9rem; border: 2px solid var(--hot); border-radius: 50%; background: #fff; pointer-events: auto; cursor: pointer; }
.price-apply { justify-content: center; padding-block: 0.5rem; font-size: 0.84rem; }
.results-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; padding: 0.55rem 0.6rem 0.55rem 1.1rem; border-radius: 999px; background: var(--bg); font-size: 0.86rem; color: var(--muted); }
.sort { color: var(--ink); font-size: 0.86rem; }
.sort select { margin-left: 0.4rem; padding: 0.35rem 0.6rem; border: 0; border-radius: 999px; background: var(--paper); }

/* ---------- Product page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
.gallery { display: grid; gap: 0.5rem; padding: 0.75rem; border-radius: var(--radius-panel); background: var(--bg); }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.thumbs button { width: 68px; height: 68px; padding: 0.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overflow: clip; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-panel); background: var(--bg); }
.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.product-price { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product-meta { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.qty { width: 5rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.product-desc { max-width: 60ch; color: var(--muted); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0.75rem; align-items: start; }
.cart-lines { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.6rem; border-radius: var(--radius); background: var(--bg); }
.cart-line .ph { width: 90px; height: 90px; border-radius: var(--radius-sm); }
.cart-line h3 { font-size: 0.95rem; font-weight: 500; }
.line-each { font-size: 0.84rem; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.summary { display: grid; gap: 0.75rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.summary-total { font-size: 1.3rem; font-weight: 600; }

/* ---------- Text and forms ---------- */
.prose { display: grid; gap: 1rem; max-width: 70ch; }
.prose h2 { margin-top: 1rem; font-size: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { display: grid; gap: 0.4rem; padding-left: 1.2rem; }
details { padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--bg); }
summary { font-weight: 500; cursor: pointer; }
details p { margin-top: 0.5rem; }
.form-grid { display: grid; gap: 1rem; max-width: 34rem; }
.form-grid label { font-size: 0.9rem; font-weight: 600; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; margin-top: 0.3rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }

/* ---------- Footer ---------- */
.footer { margin-bottom: var(--gutter); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-panel); background: var(--ink); color: #d4d4d8; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer .logo { display: none; }
.footer h3 { margin-bottom: 0.6rem; font-size: 0.9rem; color: #fff; }
.footer ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; font-size: 0.9rem; list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { margin-top: 0.75rem; font-size: 0.85rem; }
.footer-word { margin: 3rem 0 1.5rem; color: #fff; font-size: clamp(2.2rem, var(--word-size, 15vw), 13rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.82rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Home rows hold exactly four, so they never end on a gap. */
@media (min-width: 801px) {
  #shop .grid, #row-workwear .grid, #row-gifts .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .shop-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .header { flex-wrap: wrap; border-radius: var(--radius-panel); }
  .header-tools { margin-left: auto; }
  .mainnav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.2rem; }
}
@media (max-width: 800px) {
  main { gap: 3.5rem; padding-bottom: 3.5rem; }
  .hero-split, .product-detail, .cart-layout, .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-split { min-height: 0; }
  .hero-copy { min-height: 420px; }
  .hero-mosaic .ph { aspect-ratio: 1; }
  .promos { grid-template-columns: minmax(0, 1fr); }
  .promo { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
    .results-row { border-radius: var(--radius); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .logo img { height: 46px; }
  .search { display: none; }
  .card-title { font-size: 0.86rem; }
  .wish { top: 0.85rem; right: 0.85rem; width: 1.9rem; height: 1.9rem; }
  .cart-line { grid-template-columns: 70px minmax(0, 1fr); }
  .cart-line .ph { width: 70px; height: 70px; }
  .cart-actions { grid-column: 1 / -1; justify-content: space-between; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- WhatsApp chat widget ---------- */
.wa-launcher {
  position: fixed; right: 1.25rem; bottom: 1.5rem; z-index: 60;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  border: 0; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); cursor: pointer;
}
.wa-launcher svg { width: 1.75rem; height: 1.75rem; }
.wa-launcher.open svg { width: 1.2rem; height: 1.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .wa-launcher { transition: transform 0.15s; }
  .wa-launcher:hover { transform: scale(1.06); }
}

.wa-panel {
  position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 60;
  width: min(21rem, calc(100vw - 2.5rem));
  overflow: clip; border-radius: 16px; box-shadow: 0 18px 48px rgb(0 0 0 / 0.3);
  font-size: 0.9rem;
}
.wa-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: #075e54; color: #fff; }
.wa-avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgb(255 255 255 / 0.15); }
.wa-avatar svg { width: 1.25rem; height: 1.25rem; }
.wa-who { flex: 1; line-height: 1.25; }
.wa-who strong { display: block; font-size: 0.92rem; }
.wa-who small { display: block; font-size: 0.74rem; color: rgb(255 255 255 / 0.7); }
.wa-close { border: 0; background: none; color: inherit; font-size: 1.4rem; line-height: 1; padding: 0.15rem 0.35rem; border-radius: 999px; cursor: pointer; }
.wa-close:hover { background: rgb(255 255 255 / 0.15); }

.wa-body { padding: 1.25rem 1rem; background: #ece5dd; }
.wa-bubble { max-width: 85%; padding: 0.7rem 0.9rem; border-radius: 10px; border-top-left-radius: 0; background: #fff; color: #111b21; font-size: 0.86rem; line-height: 1.5; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }

.wa-compose { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.75rem; background: #f0f2f5; }
.wa-compose textarea {
  flex: 1; min-height: 2.5rem; max-height: 7rem; resize: none;
  padding: 0.6rem 1rem; border: 0; border-radius: 999px; background: #fff; color: #111b21;
  font: inherit; font-size: 0.9rem; line-height: 1.4;
}
.wa-compose textarea:focus-visible { outline: 2px solid #25d366; outline-offset: 1px; }
.wa-send { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border: 0; border-radius: 50%; background: #25d366; color: #fff; cursor: pointer; }
.wa-send svg { width: 1.05rem; height: 1.05rem; }

@media (min-width: 640px) {
  .wa-launcher { right: 2rem; bottom: 2rem; }
  .wa-panel { right: 2rem; bottom: 6.5rem; }
}

/* ---------- Category bar ---------- */
.catbar { display: flex; justify-content: space-between; gap: 0.25rem; margin-top: 0.6rem; padding-inline: 0.75rem; border-radius: var(--radius); background: var(--hot); }
.cat-item { position: relative; }
.cat-item > a { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 0.6rem; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-item > a:has(+ .cat-drop)::after { content: ""; width: 0.38rem; height: 0.38rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.cat-drop { position: absolute; top: 100%; left: 0; z-index: 50; display: none; min-width: 250px; max-height: min(70vh, 520px); overflow-y: auto; padding: 0.5rem; border-radius: var(--radius-sm); background: var(--bg); box-shadow: 0 18px 40px rgb(0 0 0 / 0.16); }
.cat-item:hover .cat-drop, .cat-item:focus-within .cat-drop { display: grid; }
.cat-item:nth-last-child(-n+3) .cat-drop { left: auto; right: 0; }
.cat-drop a { padding: 0.45rem 0.75rem; border-radius: 10px; font-size: 0.87rem; text-decoration: none; text-transform: capitalize; }
.cat-drop a:hover, .cat-drop a:focus-visible { background: var(--paper); color: var(--hot); }
@media (max-width: 1080px) {
  .catbar { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .catbar::-webkit-scrollbar { display: none; }
  .cat-drop { display: none !important; }
  .cat-item > a::after { display: none; }
}

/* ---------- Product page, Amrod layout ---------- */
.product-code { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em; color: var(--hot); }
.product-code span:last-child { color: var(--ink); }
.product-desc ul { display: grid; gap: 0.3rem; margin: 0; padding-left: 1.15rem; color: var(--ink); }
.colour-block { display: grid; gap: 0.6rem; font-size: 0.92rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.buy-box { display: grid; gap: 0.7rem; width: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.availability { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; color: #16794a; }
.availability.out { color: var(--muted); }
.availability:empty { display: none; }
.buy-brand { justify-self: center; max-width: 140px; max-height: 44px; object-fit: contain; }
.buy-box .btn { justify-content: center; }
.buy-box .buy-row .btn { flex: 1; }
.buy-box .btn-link { justify-self: center; }

.btn-link { border: 0; background: none; color: var(--muted); font-size: 0.86rem; text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--ink); }
