/* ==========================================================================
   Splits — matched to Adam's reference screenshot (15 Nov 2026).
   White page, navy chrome, one bright blue accent, photography-led tiles,
   light product cards, dark navy footer. Mobile first.
   The palette lives in :root — change --accent and --navy to re-skin.
   ========================================================================== */

:root {
  --navy: #0B1B33;
  --navy-2: #12233F;
  --accent: #0C74D6;
  --accent-dark: #0A5FAF;
  --ink: #0F1720;
  --body: #3C4A57;
  --muted: #6B7A88;
  --line: #E3E8EE;
  --paper: #FFFFFF;
  --wash: #F5F7FA;
  --teal: #0A5359;
  --pale: #7BCAC4;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(11, 27, 51, .08);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body.ref {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- top bar ---------- */
.r-top {
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
}
.r-top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
}
.r-top .r-mid { margin-left: auto; margin-right: auto; color: #fff; }
.r-top a { color: #fff; text-decoration: none; }
.r-top a:hover { text-decoration: underline; }
@media (max-width: 760px) { .r-top .r-mid { display: none; } }

/* ---------- header ---------- */
.r-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.r-head .wrap { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.r-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.02em;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.r-logo .sl { color: var(--accent); margin-right: 3px; letter-spacing: -.06em; }
.r-nav { display: flex; align-items: center; gap: 22px; }
.r-nav a, .r-nav .r-item > a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.r-nav a:hover { color: var(--accent); }
.r-item { position: relative; }
.r-item .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.r-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(11, 27, 51, .14); padding: 8px; display: none; z-index: 60;
}
.r-item:hover .r-menu, .r-item:focus-within .r-menu { display: block; }
.r-menu a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 7px; font-size: 14.5px; }
.r-menu a:hover { background: var(--wash); }
.r-menu span { color: var(--muted); font-size: 12px; }

.r-search { position: relative; flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.r-search input {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 14px 11px 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--wash);
}
.r-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: #fff; }
.r-search .mag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }

.r-actions { display: flex; align-items: center; gap: 18px; }
.r-actions a { color: var(--ink); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.r-actions a:hover { color: var(--accent); }
.r-cart {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; padding: 0;
}
.r-cart b {
  background: var(--accent); color: #fff; border-radius: 999px; min-width: 20px; height: 20px;
  display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; padding: 0 5px;
}
@media (max-width: 1040px) { .r-actions .r-account { display: none; } }
@media (max-width: 900px) {
  .r-head .wrap { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .r-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .r-nav a, .r-nav .r-item > a { white-space: nowrap; }
  .r-search { order: 4; flex: 1 1 100%; max-width: none; margin: 0; }
  .r-actions { margin-left: auto; }
  .r-menu { display: none !important; }
  .r-nav .caret { display: none; }
}

/* ---------- hero ---------- */
.r-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.r-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.r-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(6, 20, 40, .92) 0%, rgba(6, 20, 40, .72) 46%, rgba(6, 20, 40, .18) 82%);
}
.r-hero-in { position: relative; z-index: 2; padding: 72px 0 76px; max-width: 660px; }
.r-hero h1 {
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .96;
  letter-spacing: -.015em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.r-hero h1 em { font-style: normal; color: #2E9BFF; }
.r-hero .r-lede { font-size: 19px; color: rgba(255, 255, 255, .92); max-width: 44ch; margin: 0 0 28px; }
.r-hero .r-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.r-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 8px; border: 1px solid var(--accent);
}
.r-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.r-btn.ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.r-btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
@media (max-width: 720px) { .r-hero-in { padding: 46px 0 52px; } }

/* ---------- section shell ---------- */
.r-sec { padding: 58px 0; }
.r-sec.tight { padding: 44px 0; }
.r-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.r-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.r-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--ink); }
.r-note { color: var(--body); font-size: 15.5px; max-width: 46ch; margin: 0; }

/* ---------- category tiles ---------- */
.r-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .r-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.r-tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 190px; color: #fff; text-decoration: none; isolation: isolate; background: var(--navy-2);
}
.r-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.r-tile:hover img { transform: scale(1.05); }
.r-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,40,.05) 30%, rgba(6,20,40,.86) 100%); }
.r-tile-b { position: relative; z-index: 2; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 190px; }
.r-tile-ico { width: 22px; height: 22px; margin-bottom: 8px; opacity: .95; stroke: #fff; fill: none; stroke-width: 1.7; }
.r-tile-name { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0; }
.r-tile-count { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 3px; }
@media (max-width: 520px) { .r-tile, .r-tile-b { min-height: 150px; } .r-tile-name { font-size: 15.5px; } }

/* ---------- featured products ---------- */
.r-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1040px) { .r-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .r-cards { grid-template-columns: 1fr; } }
.r-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; padding: 0;
}
.r-card .r-shot { background: var(--wash); aspect-ratio: 4 / 3; overflow: hidden; }
.r-card .r-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-card .r-in { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.r-brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-height: 14px; }
.r-name { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 6px 0 4px; color: var(--ink); }
.r-size { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.r-price { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 2px; }
.r-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r-buy { margin-top: 12px; display: flex; gap: 8px; }
.r-buy select {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink);
}
.r-add {
  flex: 0 0 auto; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 7px; cursor: pointer;
  background: #fff; color: var(--accent); border: 1px solid var(--accent);
}
.r-add:hover { background: var(--accent); color: #fff; }
.r-add.done { background: var(--accent); color: #fff; border-color: var(--accent); }
.r-one { flex: 1; font-size: 13.5px; color: var(--muted); padding: 9px 0; }

/* ---------- community band ---------- */
.r-community { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.r-community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.r-community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,40,.94) 0%, rgba(6,20,40,.76) 48%, rgba(6,20,40,.42) 100%); }
.r-community-in { position: relative; z-index: 2; padding: 58px 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .r-community-in { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; } }
.r-community h2 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 12px; text-transform: uppercase; }
.r-community p { color: rgba(255,255,255,.9); margin: 0 0 20px; max-width: 48ch; }
.r-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.r-links a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 15px; }
.r-links a:hover { text-decoration: underline; }
.r-links svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: 0 0 auto; }

/* ---------- service strip ---------- */
.r-services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.r-services .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.r-services .s { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-left: 1px solid var(--line); font-size: 14px; color: var(--body); }
.r-services .s:first-child { border-left: 0; }
.r-services svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
@media (max-width: 860px) { .r-services .wrap { grid-template-columns: repeat(2, 1fr); } .r-services .s:nth-child(3) { border-left: 0; } }
@media (max-width: 460px) { .r-services .wrap { grid-template-columns: 1fr; } .r-services .s { border-left: 0; border-top: 1px solid var(--line); } .r-services .s:first-child { border-top: 0; } }

/* ---------- footer ---------- */
.r-foot { background: var(--navy); color: rgba(255, 255, 255, .78); }
.r-foot .wrap { padding: 44px 0 0; }
.r-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 26px; padding-bottom: 34px; }
@media (max-width: 980px) { .r-foot-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.r-foot h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.r-foot a, .r-foot p { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14.5px; display: block; margin: 0 0 8px; }
.r-foot a:hover { color: #fff; text-decoration: underline; }
.r-foot .r-logo { color: #fff; font-size: 22px; margin-bottom: 12px; }
.r-foot .r-logo .sl { color: #2E9BFF; }
.r-news { display: flex; gap: 8px; margin-top: 10px; }
.r-news input {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 11px 12px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff;
}
.r-news input::placeholder { color: rgba(255,255,255,.5); }
.r-news button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 7px; border: 0; background: var(--accent); color: #fff; cursor: pointer;
}
.r-news button:hover { background: var(--accent-dark); }
.r-foot-bar {
  border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.55);
}

/* the basket drawer keeps its own look; just make sure it sits above this header */
.drawer { z-index: 100; }
.scrim { z-index: 90; }

/* tab pages adopt the same voice */
body.ref { --display: var(--sans); }
body.ref .eyebrow { color: var(--accent); }
body.ref h1, body.ref h2, body.ref h3 { letter-spacing: -.015em; }

/* photographic range tiles on the shelf page */
.tile.tile-photo { background-size: cover; background-position: 50% 50%; color: #fff; border: 0; }
.tile.tile-photo .n, .tile.tile-photo .name, .tile.tile-photo .count { color: #fff; text-shadow: 0 1px 10px rgba(4,38,42,.5); }
.tile.tile-photo[aria-pressed='true'] { box-shadow: inset 0 0 0 3px #2E9BFF; }
