:root {
  --paper: #f4f2ed; --concrete: #e6e4df; --line: #cfccc5; --ink: #0b0b0b; --smoke: #5d5b57;
  --red: #d3141b; --red-dark: #a80d12; --acid: #f7d21e; --white: #fff;
  --display: "Anton", "Arial Black", Impact, sans-serif;
  --sans: "Familjen Grotesk", system-ui, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--sans); line-height: 1.5; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 7px 12px; }
.topbar a { color: var(--acid); font-weight: 700; text-decoration: none; }

.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 58px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 3px solid var(--ink); border-right: 0; background: #fff; }
.search button, .btn { font-family: var(--display); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: #fff; border: 3px solid var(--ink); padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover, .search button:hover { background: var(--red); border-color: var(--red); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-acid { background: var(--acid); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn-lg { font-size: 24px; padding: 12px 26px; }
.cart-link { font-family: var(--display); font-size: 20px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.badge { background: var(--red); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.menu-btn { display: none; font-family: var(--display); font-size: 18px; background: var(--acid); border: 3px solid var(--ink); padding: 6px 12px; text-transform: uppercase; }

.mainnav { background: var(--ink); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav li { position: relative; }
.mainnav li > a { display: block; color: #fff; text-decoration: none; font-family: var(--display); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; }
.mainnav li > a:hover, .mainnav li:focus-within > a { background: var(--acid); color: var(--ink); }
.mainnav a.sale { color: var(--acid); }
.drop { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--paper); border: 3px solid var(--ink); border-top: 6px solid var(--red); padding: 6px; z-index: 50; }
.drop a { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; text-decoration: none; }
.drop a span { color: var(--smoke); font-size: 13px; }
.drop a:hover { background: var(--acid); }
.drop a.all { font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; }
@media (min-width: 861px) { .has-drop:hover .drop, .has-drop:focus-within .drop { display: block; } }

main { min-height: 50vh; }
.flash { margin: 16px 0; padding: 12px 16px; border: 3px solid var(--ink); background: var(--acid); font-weight: 600; }
.flash.err { background: var(--red); color: #fff; }

.hero img { width: 100%; height: auto; border-bottom: 3px solid var(--ink); }
.hero-text { background: var(--ink); color: #fff; padding: 26px 0; }
.hero-text h1 { color: var(--acid); margin-bottom: 8px; }
.section { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--ink); color: #fff; text-decoration: none; padding: 20px 16px; border: 3px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; }
.tile:nth-child(3n+2) { background: var(--red); }
.tile:nth-child(3n+3) { background: #fff; color: var(--ink); }
.tile b { font-family: var(--display); font-size: clamp(18px, 1.9vw, 24px); overflow-wrap: normal; word-break: keep-all; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; font-weight: 400; }
.tile span { font-size: 14px; opacity: .85; }
.tile:hover { transform: rotate(-1deg) translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: #fff; border: 3px solid var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .1s, box-shadow .1s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 3px solid var(--ink); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tag-sale { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-family: var(--display); font-size: 16px; padding: 2px 8px; transform: rotate(-4deg); }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--smoke); font-weight: 700; }
.card-name { font-weight: 700; font-size: 15px; line-height: 1.25; flex: 1; }
.card-price s { color: var(--smoke); font-size: 14px; }
.card-price b { font-size: 18px; }
.card-price s + b { color: var(--red); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 26px 0 40px; }
.filters { align-self: start; position: sticky; top: 150px; }
.filters h3 { font-size: 20px; margin: 18px 0 6px; }
.filters a { display: block; text-decoration: none; padding: 3px 6px; }
.filters a.on { background: var(--acid); font-weight: 700; }
.filters a.sub { padding-left: 18px; font-size: 15px; }
.filters .scroll { max-height: 300px; overflow: auto; border: 2px solid var(--line); padding: 4px; background: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea { font: inherit; padding: 9px 10px; border: 2px solid var(--ink); background: #fff; border-radius: 0; max-width: 100%; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0; }
.pager a, .pager span { border: 2px solid var(--ink); padding: 6px 12px; text-decoration: none; background: #fff; }
.pager .cur { background: var(--ink); color: #fff; }
.empty { padding: 40px; text-align: center; border: 3px dashed var(--line); }

.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding: 28px 0 40px; }
.pd-main { background: #fff; border: 3px solid var(--ink); min-height: 420px; display: flex; align-items: center; justify-content: center; }
.pd-main img { width: auto; max-width: 100%; max-height: 75vh; object-fit: contain; padding: 14px; cursor: zoom-in; }
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.zoom button { position: absolute; top: 12px; right: 16px; font-size: 28px; background: var(--acid); border: 3px solid var(--ink); width: 48px; height: 48px; cursor: pointer; }
.perks { background: #fff; border-bottom: 3px solid var(--ink); }
.perks .wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.perks .wrap > div { display: flex; flex-direction: column; }
.perks b { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.perks span { font-size: 14px; }
.card-sub { font-size: 13px; color: var(--smoke); text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs button { width: 74px; height: 74px; background: #fff; border: 2px solid var(--line); padding: 3px; cursor: pointer; }
.pd-thumbs button.on { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-brand { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--smoke); }
.pd-price { font-size: 30px; font-weight: 700; margin: 6px 0 16px; }
.pd-price s { font-size: 20px; color: var(--smoke); font-weight: 400; }
.pd-price .now { color: var(--red); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; border: 0; padding: 0; }
.sizes legend { font-weight: 700; margin-bottom: 6px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: inline-block; min-width: 52px; text-align: center; padding: 9px 10px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 700; }
.sizes input:checked + span { background: var(--ink); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.sizes input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.qty-row input { width: 80px; }
.pd-desc { white-space: pre-line; border-top: 2px solid var(--line); margin-top: 22px; padding-top: 14px; }
.soldout { display: inline-block; background: var(--red); color: #fff; font-family: var(--display); font-size: 22px; padding: 6px 14px; }
.info-box { background: #fff; border: 3px solid var(--ink); padding: 14px 16px; margin-top: 20px; font-size: 15px; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 3px solid var(--ink); }
.cart-table th, .cart-table td { padding: 10px; border-bottom: 2px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.cart-table .num { text-align: right; white-space: nowrap; }
.problem { color: var(--red); font-weight: 700; font-size: 14px; }
.totals { margin-left: auto; max-width: 380px; background: #fff; border: 3px solid var(--ink); padding: 14px 16px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 3px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 22px; font-weight: 700; }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 26px 0 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 2px solid var(--ink); padding: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card input { margin-top: 4px; }
.err-list { background: var(--red); color: #fff; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.summary { background: #fff; border: 3px solid var(--ink); padding: 16px; align-self: start; position: sticky; top: 150px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

.paybox { background: var(--acid); border: 3px solid var(--ink); padding: 18px; margin: 18px 0; }
.ref-big { font-family: var(--display); font-size: 54px; line-height: 1; }
table.bank { border-collapse: collapse; margin: 8px 0; }
table.bank th { text-align: left; padding: 3px 18px 3px 0; font-weight: 600; }
table.bank td { font-weight: 700; }

.brand-list { columns: 4 200px; column-gap: 24px; }
.brand-list a { display: block; padding: 5px 0; text-decoration: none; font-weight: 700; break-inside: avoid; }
.brand-list a span { color: var(--smoke); font-weight: 400; font-size: 14px; }
.brands-strip { background: #000; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.brands-strip img { margin: 0 auto; }

.site-footer { background: var(--ink); color: #ddd; margin-top: 30px; padding-top: 34px; }
.site-footer a { color: var(--acid); }
.site-footer h4 { font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; text-transform: uppercase; margin: 0 0 8px; letter-spacing: .04em; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-logo { height: 60px; width: auto; background: #fff; padding: 4px; margin-bottom: 10px; }
.foot-base { border-top: 1px solid #333; margin-top: 24px; padding: 14px 16px; font-size: 13px; color: #999; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1em; }

@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; }
  .logo img { height: 46px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; width: 100%; }
  .search button { padding: 8px 12px; font-size: 16px; }
  .tile { min-height: 96px; padding: 14px 12px; }
  .tile b { font-size: clamp(15px, 4.6vw, 22px); }
  .pd-main { min-height: 300px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .menu-btn { display: inline-block; }
  .cart-link { margin-left: auto; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; }
  .drop { position: static; display: none; border: 0; border-left: 6px solid var(--red); }
  .has-drop:focus-within .drop { display: block; }
  .shop-layout, .pd, .checkout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters details:not([open]) .filter-body { display: none; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cart-table .hide-sm { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

.drop-sizes { border-top: 1px solid var(--line); margin-top: 4px; padding: 8px 6px 4px; display: flex; flex-wrap: wrap; gap: 5px; max-width: 260px; }
.drop-sizes b { width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--smoke); }
.drop .drop-sizes a { display: inline-block; padding: 4px 7px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 13px; }
.drop .drop-sizes a:hover { background: var(--acid); }
.sizechips { display: flex; flex-wrap: wrap; gap: 5px; }
.filters .sizechips a { padding: 4px 8px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; }
.filters .sizechips a.on { background: var(--ink); color: #fff; }

@media (max-width: 860px) {
  .perks .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .perks b { font-size: 13px; line-height: 1.15; }
  .perks span { display: none; }
}

/* compact category boxes on the homepage */
.cats { padding-top: 14px; padding-bottom: 18px; }
.cats .tile { min-height: 0; padding: 12px 14px; }
.cats .tile b { font-size: clamp(16px, 1.7vw, 21px); }
.cats .tile span { font-size: 12.5px; }
@media (max-width: 860px) {
  .cats { padding-top: 10px; }
  .cats .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cats .tile { padding: 9px 11px; }
  .cats .tile b { font-size: 16px; }
  .cats .tile span { font-size: 11.5px; }
}
