/* Teknalen Shop design system — see docs/plans §3.
   Dark streetwear drop-shop: black bg, acid accent, chunky type, sticker vibes.
   Mobile-first; floor = iOS Safari 12 (no :has, no gap in flex — use margins). */

/* Unbounded is a variable font — one file serves weights 700 and 900.
   Two subsets (cyrillic + latin) with unicode-range so phones fetch only what a page uses. */
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-cyr.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-lat.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface2: #1d1d21;
  --line: #26262b;
  --ink: #f2f2f0;
  --muted: #8a8a93;
  --acid: #c6ff00;
  --pink: #ff3d81;
  --danger: #ff4d4d;
  --display: "Unbounded", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--acid); color: #000; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  height: 56px; padding: 0 16px;
  background: rgba(10,10,11,.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.logo { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-right: auto; color: var(--ink); }
.logo-word {
  font-family: var(--display); font-weight: 900; font-size: 17px;
  letter-spacing: .02em; text-transform: uppercase;
}
.logo-star { color: var(--acid); margin: -8px 2px 0; }
.logo-tag {
  font-family: var(--display); font-weight: 700; font-size: 9px;
  background: var(--acid); color: #000; padding: 2px 5px; border-radius: 2px;
  -webkit-transform: rotate(-6deg); transform: rotate(-6deg);
  letter-spacing: .08em;
}
.site-nav { display: none; }
.site-nav a {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em;
  margin-right: 20px; color: var(--muted);
}
.site-nav a:hover { color: var(--acid); }
.cart-link { position: relative; padding: 8px; color: var(--ink); }
.cart-count {
  position: absolute; top: 0; right: 0;
  min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--acid); color: #000;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
  padding: 0 3px;
}
.nav-toggle {
  background: none; border: 0; padding: 10px; margin-left: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0;
}
.nav-open .site-nav {
  display: block; position: absolute; top: 56px; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px;
}
.nav-open .site-nav a { display: block; padding: 12px 0; font-size: 16px; margin: 0; }

@media (min-width: 768px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--acid); color: #000; }
.marquee-track {
  display: flex; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0;
  -webkit-animation: marquee 22s linear infinite; animation: marquee 22s linear infinite;
}
@-webkit-keyframes marquee { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { -webkit-animation: none; animation: none; }
}

/* ---------- layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0 8px; }
.section-title, .page-title {
  font-family: var(--display); font-weight: 900;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: 22px; margin-bottom: 20px;
}
.page-title { font-size: 26px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; text-align: left; }
.hero-kicker {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--acid);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--display); font-weight: 900;
  font-size: 40px; line-height: 1.05; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-tagline { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
@media (min-width: 768px) { .hero-title { font-size: 64px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--acid); color: #000;
  border: 2px solid var(--acid); border-radius: 2px;
  padding: 12px 24px; cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  -webkit-transition: -webkit-transform .1s; transition: transform .1s;
}
.btn:active { -webkit-transform: translate(2px,2px); transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.btn-big { font-size: 16px; padding: 14px 32px; }
.btn-ghost { background: transparent; color: var(--acid); box-shadow: none; }
.btn-disabled { opacity: .4; pointer-events: none; }

/* ---------- product grid / cards ---------- */
.grid {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap;
  margin: 0 -6px;
}
.grid .card { width: 50%; padding: 6px; }
@media (min-width: 768px) { .grid .card { width: 33.333%; } }
@media (min-width: 1024px) { .grid .card { width: 25%; } }

.card { display: block; margin-bottom: 12px; }
.card:nth-child(3n+1) .card-img { -webkit-transform: rotate(-.6deg); transform: rotate(-.6deg); }
.card:nth-child(3n+2) .card-img { -webkit-transform: rotate(.5deg); transform: rotate(.5deg); }
.card-img {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.card-img img { width: 100%; }
.card-img-ph {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  height: 0; padding-bottom: 125%;
  color: var(--line); font-size: 48px; position: relative;
}
.card-img-ph:before { content: "★"; position: absolute; top: 40%; }
.card-img-ph.small { width: 96px; height: 120px; padding: 0; font-size: 24px; }
.card-title { font-size: 14px; font-weight: 600; margin: 10px 2px 2px; }
.card-price { font-size: 14px; color: var(--acid); margin: 0 2px; font-weight: 700; }
.card-price .from { color: var(--muted); font-weight: 400; }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.card-oos { opacity: .55; }

.badge {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 2px;
  -webkit-transform: rotate(-4deg); transform: rotate(-4deg);
}
.badge-sale { background: var(--pink); color: #000; }
.badge-oos { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }

/* ---------- category tiles / pills ---------- */
.cat-tiles { }
.cat-tile {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface);
  padding: 18px 16px; margin-bottom: 10px;
}
.cat-tile-name {
  font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase;
}
.cat-tile-arrow { color: var(--acid); font-size: 20px; }
.cat-tile:active { border-color: var(--acid); }

.cat-pills { margin-bottom: 20px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pill {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; margin-right: 8px; color: var(--muted);
}
.pill-active { background: var(--acid); border-color: var(--acid); color: #000; }

.cat-desc { color: var(--muted); font-size: 14px; margin-top: 32px; max-width: 640px; }
.empty-note { color: var(--muted); margin: 24px 0; }

/* ---------- product page ---------- */
.breadcrumbs { font-size: 12px; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.product { padding: 16px 0 40px; }
@media (min-width: 768px) {
  .product { display: -webkit-flex; display: flex; }
  .product-gallery { width: 55%; padding-right: 32px; }
  .product-info { width: 45%; }
}
.gallery-scroll {
  display: -webkit-flex; display: flex;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  -webkit-scroll-snap-type: x mandatory; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px;
}
.gallery-scroll img {
  scroll-snap-align: center;
  width: 85%; -webkit-flex-shrink: 0; flex-shrink: 0;
  border-radius: 4px; border: 1px solid var(--line);
  margin-right: 10px; background: var(--surface);
}
@media (min-width: 768px) {
  .gallery-scroll { display: block; margin: 0; padding: 0; }
  .gallery-scroll img { width: 100%; margin: 0 0 12px; }
}
.gallery-ph {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding-bottom: 125%; position: relative;
}
.product-title {
  font-family: var(--display); font-weight: 900; font-size: 24px;
  text-transform: uppercase; margin-top: 16px;
}
.product-subtitle { color: var(--muted); margin-top: 6px; }
.product-price { font-size: 24px; font-weight: 700; color: var(--acid); margin: 16px 0; }
.product-price s { color: var(--muted); font-size: 18px; margin-left: 10px; }

.size-picker { border: 0; margin: 8px 0 16px; }
.size-picker legend {
  font-size: 13px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 10px;
}
.size-pill { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.size-pill input { position: absolute; opacity: 0; }
.size-pill span {
  display: inline-block; min-width: 52px; text-align: center;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 10px 12px; font-weight: 600; font-size: 15px;
  background: var(--surface);
}
.size-pill input:checked + span { background: var(--acid); color: #000; border-color: var(--acid); }
.size-pill input:focus + span { outline: 2px solid var(--acid); outline-offset: 2px; }
.size-oos span { opacity: .35; text-decoration: line-through; }

.buy-bar {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  margin-top: 8px;
}
.buy-bar-price { font-size: 20px; font-weight: 700; }
.btn-buy { font-size: 15px; padding: 14px 36px; }
@media (max-width: 767px) {
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(10,10,11,.96); border-top: 1px solid var(--line);
    padding: 10px 16px;
    padding-bottom: calc(10px + constant(safe-area-inset-bottom));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .product-info { padding-bottom: 80px; }
}
.soldout-note { color: var(--muted); border: 1px dashed var(--line); padding: 14px; border-radius: 4px; margin: 16px 0; }

.product-desc { margin: 24px 0; }
.product-desc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.product-desc p { white-space: pre-line; }
.attrs { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.attrs th { text-align: left; color: var(--muted); font-weight: 400; padding: 8px 16px 8px 0; vertical-align: top; }
.attrs td { padding: 8px 0; }
.attrs tr { border-bottom: 1px solid var(--line); }

/* ---------- cart ---------- */
.cart-list { list-style: none; }
.cart-line {
  display: -webkit-flex; display: flex;
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.cart-line-img img, .cart-line-img .card-img-ph {
  width: 72px; height: 90px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--line); background: var(--surface);
}
.cart-line-info { -webkit-flex: 1; flex: 1; padding: 0 12px; min-width: 0; }
.cart-line-title { font-weight: 600; font-size: 15px; }
.cart-line-meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.cart-line-warn { color: var(--danger); font-size: 12px; margin-bottom: 6px; }
.cart-line-price { font-weight: 700; white-space: nowrap; }

.qty-form { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.qty-btn {
  width: 34px; height: 34px; font-size: 18px; line-height: 1;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.qty-val { min-width: 36px; text-align: center; font-weight: 600; }
.qty-remove {
  background: none; border: 0; color: var(--muted);
  font-size: 12px; margin-left: 14px; cursor: pointer; text-decoration: underline;
}

.cart-total {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 18px; padding: 20px 0 4px;
}
.cart-total strong { color: var(--acid); font-size: 22px; }
.cart-note { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* ---------- about strip / prose ---------- */
.about-strip p { max-width: 560px; color: var(--muted); margin-bottom: 20px; }
.prose { max-width: 640px; padding-bottom: 48px; }
.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-transform: uppercase; margin: 28px 0 10px;
}
.prose p, .prose ul { margin-bottom: 14px; color: #cfcfd4; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px; padding: 32px 16px 40px;
  font-size: 14px; color: var(--muted);
  max-width: 1080px; margin-left: auto; margin-right: auto;
}
.footer-logo { font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; color: var(--ink); }
.footer-brand p { margin: 6px 0 20px; }
.footer-nav a, .footer-social a { display: inline-block; margin: 0 16px 10px 0; }
.footer-nav a:hover, .footer-social a:hover { color: var(--acid); }
.footer-legal { margin-top: 20px; font-size: 12px; }
.footer-legal a { margin-right: 16px; text-decoration: underline; }

/* ---------- checkout / forms ---------- */
.checkout, .confirm { max-width: 560px; padding-bottom: 56px; }
.checkout-summary {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); padding: 14px 16px; margin-bottom: 28px;
  font-size: 14px;
}
.sum-line {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 5px 0;
}
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; }
.sum-total span:last-child { color: var(--acid); }

.checkout-form h2 {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  text-transform: uppercase; margin: 26px 0 12px;
}
.checkout-form label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.checkout-form .opt { font-size: 12px; }
.checkout-form input[type="text"], .checkout-form input[type="tel"],
.checkout-form input:not([type]), .checkout-form textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 12px; font-size: 16px; font-family: var(--body);
}
.checkout-form input:focus, .checkout-form textarea:focus {
  outline: none; border-color: var(--acid);
}
.radio-row {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--surface); padding: 12px; margin-bottom: 8px;
  color: var(--ink); cursor: pointer;
}
.radio-row input { margin-right: 10px; }
.radio-cost { margin-left: auto; color: var(--acid); font-weight: 700; }
.consent-row {
  display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start;
  color: var(--muted); font-size: 13px; margin: 20px 0;
}
.consent-row input { margin: 3px 10px 0 0; }
.consent-row a { text-decoration: underline; }
.pay-note {
  border: 1px dashed var(--line); border-radius: 4px;
  color: var(--muted); font-size: 13px; padding: 12px; margin-bottom: 20px;
}
.form-error {
  background: rgba(255,77,77,.12); border: 1px solid var(--danger);
  color: var(--danger); border-radius: 4px; padding: 12px 14px;
  font-size: 14px; margin-bottom: 20px;
}
.hp { position: absolute; left: -9999px; top: -9999px; }

.confirm-badge { color: var(--acid); font-size: 56px; line-height: 1; margin-top: 32px; }
.confirm-id { font-size: 17px; margin-bottom: 4px; }
.confirm-id strong { color: var(--acid); letter-spacing: .04em; }
.confirm-status { color: var(--muted); margin-bottom: 24px; }
.confirm-next { margin: 28px 0; }

/* ---------- account ---------- */
.account-phone {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  color: var(--muted); margin-bottom: 20px;
}
.account-phone span { margin-right: 14px; }
.order-list { list-style: none; }
.order-card {
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  margin-bottom: 10px;
}
.order-card > a { display: block; padding: 14px 16px; }
.order-card-top {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 15px; margin-bottom: 6px;
}
.order-card-top span { color: var(--acid); font-weight: 700; }
.order-card-bottom {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.order-track { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- error page ---------- */
.error-page { text-align: center; padding: 100px 16px; }
.error-code {
  font-family: var(--display); font-weight: 900; font-size: 80px; color: var(--acid);
}
.error-msg { color: var(--muted); margin: 12px 0 32px; }
