:root {
  --ink: #121212;
  --muted: #5f6368;
  --line: #e6e6e6;
  --bg: #ffffff;
  --soft: #f3f3f3;
  --accent: #1feb25;
  --radius: 14px;
  --wrap: 1200px;
  font-family: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.narrow { max-width: 640px; }
.center img { margin: 0 auto 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 12px; letter-spacing: .02em; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { width: 170px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav li { display: flex; align-items: center; }
@media (max-width: 860px) { .main-nav li { display: block; } }
.nav-link { display: inline-flex; align-items: center; background: none; border: 0; font: inherit; font-weight: 600; line-height: 1.2; padding: 10px 12px; cursor: pointer; text-decoration: none; border-radius: 8px; }
.nav-link:hover { background: var(--soft); }
.has-sub { position: relative; }
.has-sub > button::after { content: '▾'; margin-left: 4px; font-size: 12px; }
.sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; list-style: none; margin: 4px 0 0; padding: 6px; min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.sub a { display: block; padding: 8px 12px; text-decoration: none; border-radius: 6px; }
.sub a:hover { background: var(--soft); }
[data-sub-toggle][aria-expanded="true"] + .sub { display: block; }
.cart-link { position: relative; padding: 8px; }
.cart-count { position: absolute; top: 0; right: -2px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-row { gap: 8px; }
  .brand { margin-inline: auto; }
  .wordmark { width: 130px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; }
  .sub { position: static; box-shadow: none; border: 0; padding-left: 12px; }
}

/* buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link { font-weight: 600; }

/* hero */
.hero { background: var(--soft); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.eyebrow::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lead { font-size: 20px; color: var(--muted); max-width: 32ch; }
.hero-img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; padding-block: 28px; } }

/* sections + grid */
.section { padding-block: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.page-title { font-size: clamp(30px, 4vw, 44px); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { text-decoration: none; display: block; }
.card-img { background: var(--soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body h3 { font-size: 16px; font-weight: 600; margin: 10px 0 2px; }
.price { margin: 0; font-weight: 700; }
.price.big { font-size: 24px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 22px; line-height: 1.1; }
.tile small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }

.band { background: var(--ink); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 36px; }
.band p { margin: 4px 0 0; color: #bfbfbf; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }

/* product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-block: 40px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery img { border-radius: var(--radius); background: var(--soft); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 72px; cursor: pointer; background: none; }
.buy h1 { font-size: clamp(28px, 3.5vw, 40px); }
.sizes { border: 0; padding: 0; margin: 20px 0; }
.sizes legend { font-weight: 700; margin-bottom: 8px; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size input { position: absolute; opacity: 0; }
.size span { display: inline-block; min-width: 54px; text-align: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.size input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--accent); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row input { width: 80px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.added { font-weight: 600; }
.desc { margin-top: 24px; }
.desc p { margin: 4px 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 700; cursor: pointer; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: 10px; background: var(--soft); }
.ci-info { display: flex; flex-direction: column; }
.ci-title { font-weight: 700; text-decoration: none; }
.ci-qty { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.ci-qty button, .ci-remove { background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 8px; }
.ci-remove { color: var(--muted); text-decoration: underline; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 72px 1fr; } .ci-qty, .ci-remove { grid-column: 2; justify-self: start; } }
.summary { background: var(--soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.error { color: #b00020; font-weight: 600; }

/* content pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 22px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px; }
.footer-grid h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.fine { font-size: 14px; color: var(--muted); padding-bottom: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.product > *, .cart-layout > * { min-width: 0; }
[hidden] { display: none !important; }

/* color swatches */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swatches { border: 0; padding: 0; margin: 20px 0 0; }
.swatches legend { font-weight: 700; margin-bottom: 8px; }
.swatches legend span { font-weight: 400; color: var(--muted); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.swatch input:checked + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.size.soldout span { color: #aaa; text-decoration: line-through; background: repeating-linear-gradient(-45deg, #fafafa 0 6px, #f0f0f0 6px 12px); cursor: not-allowed; }
.size input:disabled + span { cursor: not-allowed; }

/* buy buttons */
.buy-buttons { display: grid; gap: 10px; }
.btn-buy { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-buy:hover { filter: brightness(.95); }
.trust { margin-top: 10px; text-align: center; }

/* cart tray */
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.icon-btn:hover { background: var(--soft); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; opacity: 0; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease-out; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; }
.ship-meter { padding: 12px 20px; background: var(--soft); font-size: 15px; }
.ship-meter p { margin: 0 0 6px; }
.meter { height: 6px; background: #ddd; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.drawer-items { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1 1 auto; }
.drawer-item { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-item img { border-radius: 8px; background: var(--soft); grid-row: span 2; width: 72px; height: 72px; object-fit: cover; }
.drawer-item .ci-qty { justify-self: start; }
.drawer-item .ci-remove { grid-column: 2; justify-self: start; padding: 0; font-size: 14px; }
.drawer-empty { padding: 24px 20px; color: var(--muted); }
.drawer-recs { padding: 12px 20px; border-top: 1px solid var(--line); }
.drawer-recs h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.recs a { text-decoration: none; display: block; font-size: 13px; line-height: 1.3; }
.recs img { border-radius: 8px; background: var(--soft); aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 4px; }
.rec-title { display: block; font-weight: 600; }
.rec-price { color: var(--muted); }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 18px; }
.center-link { display: block; text-align: center; margin-top: 10px; }
.dots { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.dots small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.drawer-item > a:first-child { grid-row: 1 / span 3; }
.drawer-item .ci-info, .drawer-item .ci-qty, .drawer-item .ci-remove { grid-column: 2; }
.drawer-item .ci-qty { display: inline-flex; width: max-content; }
