:root {
  --navy: #1f2f4d;
  --navy-dark: #15213a;
  --red: #b8322a;
  --ink: #1b1f24;
  --muted: #5d6673;
  --line: #dcd6cc;
  --paper: #f7f4ee;
  --card: #ffffff;
  --steel: #e8e8ea;
  --radius: 10px;
  --wrap: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: #333a44; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Header */
.topbar { background: var(--navy-dark); color: #e9edf5; text-align: center; font-size: .85rem; padding: 6px 16px; letter-spacing: .02em; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--navy); margin: 0; }
.brand-mark { font: 800 2rem/1 "Baloo 2", var(--head); letter-spacing: .01em; color: var(--navy); }
.brand-s { color: var(--red); }  /* TAUF + STUFF: reads "Taufs Tuff" and "tough stuff" */
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--red); }
.cart-link { position: relative; color: var(--ink); display: inline-flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -6px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 600; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 6px; padding: 12px 22px; font: 600 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font: 700 .95rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.star { margin-right: 4px; }
.hero-img { background: linear-gradient(160deg, #eceef1, #d9dce1); border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.3; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Trust bar */
.trust { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.trust-grid div { display: flex; flex-direction: column; }
.trust strong { font: 700 1.15rem/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.trust span { color: #c9d2e3; font-size: .92rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: #efeae1; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 30, 50, .1); }
.card-img { aspect-ratio: 1; background: var(--steel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 6px 0; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag { font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.price { font: 700 1.35rem/1 var(--head); color: var(--navy); }
.price-lg { font-size: 2rem; margin: 4px 0 12px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; }
.cat:nth-child(2) { border-top-color: var(--red); }
.cat p { color: var(--muted); }
.cat span { font-weight: 600; color: var(--navy); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split img { border-radius: 16px; background: var(--steel); aspect-ratio: 1; object-fit: cover; object-position: center 25%; width: 100%; }
.steps { padding-left: 1.3em; margin: 0 0 1.4em; }
.steps li { margin-bottom: .5em; }
.maker { max-width: 760px; text-align: center; }

/* Page header */
.page-head { padding: 44px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--navy); }
.shop { padding-bottom: 64px; }
.shop-cat { padding-top: 28px; scroll-margin-top: 90px; }

/* Product */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 20px; padding-bottom: 8px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding-top: 12px; padding-bottom: 32px; align-items: start; }
.gallery-main { border-radius: 14px; background: var(--steel); aspect-ratio: 1; object-fit: contain; width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumbs button { border: 2px solid var(--line); border-radius: 8px; padding: 0; background: var(--steel); cursor: pointer; width: 76px; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--navy); }
.thumbs img { aspect-ratio: 1; object-fit: cover; }
.product-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.buy { display: flex; gap: 12px; align-items: end; margin: 8px 0 4px; }
.qty { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.qty input { width: 76px; }
.option { border: 0; padding: 0; margin: 0 0 14px; }
.option legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { margin: 0; font-weight: 600; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill span { display: inline-block; padding: 9px 16px; border: 2px solid #b9b2a6; border-radius: 6px; background: #fff; }
.pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.pill input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.small { font-size: .85rem; }
[hidden] { display: none !important; }
.included { background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.included-title { font: 700 1rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.included ul { list-style: none; padding: 0; margin: 0; }
.included li { font-weight: 600; padding: 3px 0; }
.included li::before { content: "\2713"; color: #2d7a3e; font-weight: 700; margin-right: 10px; }
.included-note { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.topbar strong { color: #fff; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .95rem; }
.perks li::before { content: "\2713"; color: var(--red); font-weight: 700; margin-right: 8px; }
.notice { background: #fff6e8; border-left: 4px solid #d98a1c; padding: 12px 16px; border-radius: 6px; }
.prose { max-width: 820px; padding-bottom: 64px; }
.prose h2 { margin-top: 1.4em; }

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 14px; }
input, textarea { display: block; width: 100%; margin-top: 6px; font: 400 1rem/1.4 var(--body); padding: 11px 12px; border: 1px solid #b9b2a6; border-radius: 6px; background: #fff; color: var(--ink); }
input[type="file"] { padding: 9px; background: #fbfaf7; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.form-status.error { color: var(--red); }
.form-status.ok { color: #2d7a3e; }
.fit-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.fit-form h2 { font-size: 1.5rem; margin-bottom: .2em; }
.photo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo { background: var(--paper); border: 1px dashed #b9b2a6; border-radius: 8px; padding: 12px; }
.photo-title { display: block; }
.photo-help { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; padding-bottom: 64px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Cart */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; padding-bottom: 64px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--steel); }
.cart-line h3 { font-size: 1.1rem; margin: 0 0 4px; }
.cart-line .meta { font-size: .88rem; color: var(--muted); margin: 0; }
.cart-line .controls { display: flex; align-items: center; gap: 8px; }
.cart-line input { width: 64px; margin: 0; padding: 7px 8px; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; font: 600 .9rem var(--body); padding: 4px; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 1.15rem; }

/* Footer */
.footer { background: var(--ink); color: #c8ccd3; padding-top: 48px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h2 { font-size: 1.05rem; color: #fff; letter-spacing: .12em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-s { color: #e2685f; }
.footer-base { border-top: 1px solid #343a43; margin-top: 36px; padding-top: 18px; padding-bottom: 24px; font-size: .85rem; color: #9aa1ab; }

@media (max-width: 900px) {
  .hero-grid, .split, .product, .contact, .cart { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-img { aspect-ratio: 4 / 3; max-height: 420px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 4px 12px; min-height: 0; padding-top: 10px; padding-bottom: 6px; }
  .brand-mark { font-size: 1.7rem; }
  .cart-link { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .topbar { font-size: .78rem; }
  .section { padding: 44px 0; }
  .photo-fields { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 64px; }
  .cart-line .controls { grid-column: 1 / -1; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
