:root {
  --red: #c8102e;
  --red-dark: #9e0c23;
  --navy: #0b1020;
  --navy-2: #151c33;
  --ink: #14161c;
  --muted: #5b6170;
  --line: #e3e5ea;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --green: #1d7a46;
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .01em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .3em 0 .4em; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.6em 0 .6em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo img { height: 60px; width: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu > li { position: relative; }
.menu a { color: #fff; text-decoration: none; display: block; padding: 10px 12px; font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.menu a:hover, .menu a:focus { color: #ff4d63; }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--navy-2); border-top: 3px solid var(--red); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { font-family: var(--body); font-size: .95rem; text-transform: none; letter-spacing: 0; padding: 8px 16px; }
.cart-link { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; background: var(--red); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.cart-link:hover { color: #fff; background: var(--red-dark); }
.cart-count { display: inline-block; min-width: 1.5em; text-align: center; background: #fff; color: var(--red); border-radius: 999px; font-size: .85rem; margin-left: 4px; padding: 0 6px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: block; background: none; border: 1px solid #ffffff55; color: #fff; padding: 8px 12px; border-radius: 6px; font: inherit; }
  .hdr { flex-wrap: wrap; }
  .cart-link { margin-left: auto; order: 2; }
  .menu-btn { order: 3; }
  #nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 12px; }
  #nav.open { display: block; }
  .menu { flex-direction: column; }
  .sub { position: static; display: block; background: none; border: 0; padding: 0 0 0 12px; }
  .logo img { height: 48px; }
}

/* buttons, badges */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--navy); color: var(--navy); background: #fff; text-decoration: none; font-weight: 700; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.badge-new { background: #e7f4ec; color: var(--green); }
.badge-used { background: #eef0f6; color: var(--navy); }

/* hero / home */
.hero { background: radial-gradient(1200px 400px at 80% 0%, #24305a 0%, var(--navy) 60%); color: #fff; }
.hero-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 48px 16px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6dae6; }
.eyebrow { color: #ff4d63; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.hero-logo { width: 220px; border-radius: 14px; }
.ctas .btn { margin: 6px 8px 6px 0; }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; } .hero-logo { display: none; } }
.usp { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.usp ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp li { display: flex; flex-direction: column; }
.usp strong { font-family: var(--head); font-size: 1.25rem; color: var(--navy); }
.usp span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .usp ul { grid-template-columns: 1fr 1fr; } }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); text-decoration: none; }
.tile img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, #000c); color: #fff; font-family: var(--head); font-size: 1.4rem; text-transform: uppercase; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cols2 { grid-template-columns: 1fr; } }
.panel { display: block; padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; }
.panel strong { display: block; font-family: var(--head); font-size: 1.6rem; text-transform: uppercase; }
.panel span { color: #c8cde0; }
.panel:hover { background: var(--red); color: #fff; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 12px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }

/* breadcrumbs, category */
.crumbs ol { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--red); color: var(--red); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 12px; padding: 12px; background: var(--bg-2); border-radius: var(--radius); }
.filters label { font-size: .9rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.filters select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }
.cat-more { max-width: 820px; margin: 32px 0; }

/* product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); height: 100%; }
.card img { aspect-ratio: 1; object-fit: contain; width: 100%; background: var(--bg-2); border-radius: var(--radius); }
.card a:hover .card-name { color: var(--red); }
.card .badge { align-self: flex-start; }
.card-name { font-weight: 600; line-height: 1.35; }
.card-price { font-weight: 700; color: var(--navy); margin-top: auto; }
.card[hidden] { display: none; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } .card-name { font-size: .9rem; } }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; margin-top: 16px; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.product > *, .checkout > * { min-width: 0; }
.main-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-2); border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--bg-2); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.thumb.active, .thumb:hover { border-color: var(--red); }
.buy h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: none; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.bullets { padding-left: 1.1em; color: var(--muted); }
.add-form { display: grid; gap: 6px; margin: 16px 0; }
.add-form label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.add-form select, .co-form input, .co-form select, .co-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9ccd4; border-radius: 8px; font: inherit; background: #fff; }
.add-form .btn { margin-top: 12px; font-size: 1.1rem; }
.form-msg { min-height: 1.4em; margin: 6px 0 0; font-weight: 600; }
.form-msg.error, .error { color: var(--red); }
.form-msg.ok { color: var(--green); }
.trust { list-style: none; padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius); font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.desc { max-width: 820px; margin-top: 24px; }
.specs { border-collapse: collapse; width: 100%; max-width: 560px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.warn { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: 12px; }
.related { margin: 40px 0; }

/* cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td, .cart-table th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 72px; height: 72px; object-fit: contain; background: var(--bg-2); border-radius: 6px; }
.cart-opts { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.qty button { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 28px; text-align: center; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.totals { margin: 20px 0 20px auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 1.3rem; font-weight: 800; border-top: 2px solid var(--navy); padding-top: 8px; margin-top: 4px; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cart-table .hide-sm { display: none; } }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: minmax(0, 1fr); } .co-summary { order: -1; position: static; } }
.co-form h2 { margin-top: 1em; }
.co-form label { display: block; font-weight: 600; font-size: .92rem; }
.co-form input, .co-form select, .co-form textarea { margin-top: 4px; font-weight: 400; }
.row { margin-bottom: 12px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row.two, .row.three { grid-template-columns: 1fr; } }
.co-form [aria-invalid="true"] { border-color: var(--red); background: #fff6f7; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 560px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.pay { display: flex !important; align-items: center; gap: 8px; border: 1px solid #c9ccd4; border-radius: 8px; padding: 12px; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--red); background: #fff4f5; box-shadow: 0 0 0 1px var(--red); }
.pay input { width: auto; margin: 0; }
.ship-grid { grid-template-columns: 1fr 1fr; }
.ship-grid small { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .ship-grid { grid-template-columns: 1fr; } }
.team-box { margin-bottom: 12px; }
.team-box small { color: var(--muted); font-weight: 400; }
.totals .discount { color: var(--green); font-weight: 600; }
.usp a { color: inherit; text-decoration: none; }
.ship-note { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -5000px; }
.co-summary { background: var(--bg-2); border-radius: var(--radius); padding: 4px 20px 16px; position: sticky; top: 90px; }
@media (max-width: 860px) { .co-summary { position: static; } }   /* must come after the sticky rule above */
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.confirmation { background: var(--bg-2); border-radius: var(--radius); padding: 8px 24px 24px; margin: 24px 0; }
.pay-box { background: #fff; border: 2px solid var(--red); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.pay-box .amount { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.order-no { font-family: var(--head); font-size: 1.6rem; color: var(--red); letter-spacing: .05em; }

/* guides */
article figure { margin: 20px 0; }
article figure img { border-radius: var(--radius); max-height: 520px; width: auto; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.more-guides { border-top: 1px solid var(--line); margin-top: 32px; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* misc */
.steps li { margin-bottom: 10px; }
.big { font-size: 1.4rem; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 99; box-shadow: 0 6px 24px #0004; }
.toast a { color: #fff; font-weight: 700; margin-left: 8px; }

/* footer */
.site-footer { background: var(--navy); color: #c8cde0; margin-top: 64px; padding: 40px 0 16px; }
.foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin: 0 0 8px; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #c8cde0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid #ffffff22; margin-top: 24px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
