/* STICKERZUNU — die-cut sticker design language */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/static/fonts/bricolage-800.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/static/fonts/instrument-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/static/fonts/instrument-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/static/fonts/instrument-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-500.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

:root {
  --paper: #F6F7F9;
  --ink: #10141A;
  --accent: #2454E6;
  --peel: #FFC53D;
  --ok: #1F9D55;
  --muted: #5A6472;
  --line: #DDE2E9;
  --card: #FFFFFF;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  --shadow-sticker: 0 1px 2px rgba(16,20,26,.08), 0 6px 18px rgba(16,20,26,.10);
  --shadow-lift: 0 2px 4px rgba(16,20,26,.10), 0 14px 30px rgba(16,20,26,.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.h-small { font-size: 1.1rem; font-weight: 700; }
.mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: .85rem; color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 34px 16px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- the sticker treatment: thick white keyline + soft shadow ---------- */
.sticker-card {
  background: var(--card);
  border: 4px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sticker);
}

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: #fff; }
.site-nav a.active { color: var(--accent); }
.cart-count {
  background: var(--accent); color: #fff; font-family: var(--mono); font-size: .75rem;
  border-radius: 99px; padding: 1px 7px; vertical-align: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 10px; }
.hero-title { max-width: 14ch; }
.underline-peel {
  background: linear-gradient(transparent 68%, var(--peel) 68%, var(--peel) 94%, transparent 94%);
  padding: 0 .06em;
}
.hero-sub { max-width: 52ch; color: var(--muted); font-size: 1.06rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.trust-strip { border-block: 1px solid var(--line); margin-top: 28px; background: #fff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 16px; font-weight: 600; font-size: .9rem; }
.trust-row span::before { content: '✓ '; color: var(--ok); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border-radius: 10px; padding: 10px 18px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-accent {
  background: var(--accent); color: #fff;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sticker);
}
.btn-accent:hover { transform: translateY(-1px) rotate(-.5deg); box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-sm { padding: 5px 12px; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- product grid: stickers on a laptop lid ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.product-card {
  position: relative; overflow: hidden; text-decoration: none; color: var(--ink);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover, .product-card:focus-visible {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lift);
}
.product-card img { border-radius: 8px; aspect-ratio: 1; object-fit: contain; background: var(--paper); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.card-price { color: var(--muted); font-size: .82rem; }
/* corner-peel micro-interaction */
.peel-corner {
  position: absolute; right: -1px; bottom: -1px; width: 0; height: 0; z-index: 2;
  background: linear-gradient(315deg, var(--paper) 0%, var(--paper) 48%, #fff 50%, #e8eaee 78%, #d6dae1 100%);
  border-top-left-radius: 10px;
  box-shadow: -3px -3px 8px rgba(16,20,26,.18);
  transition: width .18s ease, height .18s ease;
}
.product-card:hover .peel-corner, .product-card:focus-visible .peel-corner { width: 26px; height: 26px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; font-size: .9rem;
  border: 2px solid #fff; border-radius: 99px; padding: 6px 14px;
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(16,20,26,.08);
  text-transform: capitalize;
}
.chip:hover { color: var(--accent); }
.chip-count { color: var(--muted); font-family: var(--mono); font-size: .78rem; }

.custom-teaser { padding: 26px 22px; margin-top: 8px; }
.custom-teaser p { max-width: 52ch; color: var(--muted); }

/* ---------- shop controls ---------- */
.shop-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px; }
.shop-controls input[type="search"] { flex: 1 1 160px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.empty-note { color: var(--muted); padding: 30px 0; }

/* ---------- product page ---------- */
.product-page { display: grid; gap: 26px; }
.product-main { padding: 18px; }
.product-main img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 3px; cursor: pointer; }
.thumb.is-active { border-color: var(--accent); }
.thumb img { border-radius: 7px; width: 64px; height: 64px; object-fit: cover; }
.sku-line { color: var(--muted); margin-top: -8px; }
.size-picker { border: 0; padding: 0; margin: 0 0 14px; }
.size-picker legend { font-weight: 600; margin-bottom: 8px; }
.size-option { display: inline-block; margin: 0 8px 8px 0; }
.size-option input { position: absolute; opacity: 0; }
.size-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 74px;
  background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer;
}
.size-option input:checked + .size-chip { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(36,84,230,.18); }
.size-option input:focus-visible + .size-chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.size-label { font-weight: 700; font-family: var(--display); }
.size-price { color: var(--muted); font-size: .8rem; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qty-row input { width: 84px; }
.ship-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.spec-list { padding-left: 18px; color: var(--muted); }
.notice { background: #FFF3D6; border: 1px solid var(--peel); border-radius: 10px; padding: 10px 14px; }
.ok-note { background: #E7F6EE; border: 1px solid var(--ok); border-radius: 10px; padding: 10px 14px; }
.ok-note.big { padding: 18px; font-size: 1.05rem; }

/* ---------- cart ---------- */
.cart-list { list-style: none; margin: 0 0 22px; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; }
.cart-item-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-qty-form { display: flex; gap: 8px; grid-column: 2; }
.cart-qty-form input { width: 70px; }
.cart-line { grid-column: 2; font-weight: 600; }
.cart-summary { padding: 20px; max-width: 460px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.checkout-soon { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.checkout-soon strong { color: var(--accent); }

/* ---------- forms ---------- */
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.signup-form input { flex: 1 1 170px; }
.quote-form, .admin-form { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 720px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 600; font-size: .92rem; }
.check-label { font-weight: 500; }
.how-row { display: grid; gap: 14px; margin: 22px 0 30px; }
.how-step { padding: 18px; }
.how-num { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-grid { display: grid; gap: 26px; padding: 34px 16px 10px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { padding: 10px 16px 26px; color: var(--muted); font-size: .85rem; }

/* ---------- popup ---------- */
.popup {
  position: fixed; inset: 0; background: rgba(16,20,26,.45); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.popup-card { position: relative; max-width: 380px; padding: 26px 24px; transform: rotate(-1.5deg); }
.popup-card h2 { margin-bottom: .3em; }
.popup-card p { color: var(--muted); margin-top: 0; }
.popup-close {
  position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.6rem;
  cursor: pointer; color: var(--muted); line-height: 1; padding: 4px;
}

/* ---------- admin ---------- */
.admin-body { background: var(--paper); }
.admin-header { background: var(--ink); }
.admin-header .brand { color: #fff; text-decoration: none; font-size: 1.05rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.admin-nav a { color: #C6CBD4; text-decoration: none; padding: 6px 10px; border-radius: 7px; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.admin-nav .btn-ghost { background: transparent; color: #C6CBD4; border-color: #C6CBD4; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: .93rem; }
.admin-table th { text-align: left; background: #EEF1F5; padding: 9px 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table img { border-radius: 6px; }
.status { font-family: var(--mono); font-size: .78rem; padding: 2px 9px; border-radius: 99px; background: #EEF1F5; }
.status-live, .status-paid { background: #E7F6EE; color: var(--ok); }
.status-retired, .status-canceled { background: #F6E7E7; color: #B4232C; }
.status-new, .status-in_production { background: #E8EEFC; color: var(--accent); }
.status-shipped { background: #E7F6EE; color: var(--ok); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.search-form { margin: 12px 0 18px; }
.summary-line { font-size: 1.05rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.two-col { display: grid; gap: 26px; }
.detail-list dt { font-weight: 700; margin-top: 12px; }
.detail-list dd { margin: 2px 0 0; }
.address { font-family: var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.img-preview-row { display: flex; gap: 14px; }
.img-preview-row figure { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.variant-row { flex-direction: row; align-items: center; gap: 10px; }
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card { padding: 30px 28px; width: min(360px, 92vw); transform: rotate(-1deg); }
.login-card form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- desktop ---------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .quote-form, .admin-form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .quote-form .btn, .admin-form > .btn { grid-column: 1 / -1; justify-self: start; }
  .quote-form h2, .admin-form h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .how-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .two-col { grid-template-columns: 1.3fr 1fr; }
  .cart-item { grid-template-columns: 80px 1.6fr 1fr auto; }
  .cart-qty-form, .cart-line { grid-column: auto; }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-page { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .product-card { transform: none; }
}
