/* Moto Cona — osnova: Analogue (črna galerija), poudarek: oranžna iz logotipa (EMO pristop), mono za specifikacije (Vanmoof) */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --void: #000;
  --white: #fff;
  --ash: #e5e7eb;
  --smoke: #bfbfbf;
  --iron: #999;
  --ember: #eb5e00;          /* iz logotipa */
  --ember-hover: #ff6f12;
  --line-dark: rgba(229, 231, 235, .14);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-card: 17.6px;
  --r-pill: 9999px;
  --wrap: 1200px;
  --gap: 18px;
  --section: clamp(56px, 8vw, 103px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--white);
  font: 400 16px/1.5 var(--font); letter-spacing: -0.02em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--iron); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 29px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--void); padding: 8px 16px; border-radius: var(--r-pill); z-index: 10; }
.skip:focus { left: 8px; }

/* Glava */
.hdr { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 12px clamp(18px, 4vw, 29px); display: flex; align-items: center; gap: 29px; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__nav { display: flex; gap: 26px; flex: 1; justify-content: center; font-size: 15px; font-weight: 450; overflow-x: auto; scrollbar-width: none; }
.hdr__nav a { color: var(--ash); white-space: nowrap; padding: 6px 0; }
.hdr__nav a[aria-current="page"], .hdr__nav a:hover { color: var(--white); text-decoration: none; }
.hdr__cart { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); }
.hdr__cart:hover { background: rgba(255,255,255,.08); }

/* Gumbi */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border: 0; border-radius: var(--r-pill);
  font: 500 15px/1 var(--font); letter-spacing: -0.02em; cursor: pointer; text-decoration: none;
}
.pill:hover { text-decoration: none; }
.pill--light { background: var(--white); color: var(--void); }
.pill--light:hover { background: var(--ash); }
.pill--accent { background: var(--ember); color: var(--void); width: 100%; }
.pill--accent:hover { background: var(--ember-hover); }

/* Naslovni blok (Analogue) */
.title-block, .sec-head { text-align: center; }
.title-block__kicker, .sec-head__kicker { margin: 0 0 12px; font-size: 21px; line-height: 1.15; letter-spacing: -0.029em; color: var(--ash); }
.title-block__main { margin: 0; font-size: clamp(40px, 6.4vw, 72px); font-weight: 450; line-height: .95; letter-spacing: -0.06em; }
.sec-head { margin-bottom: 47px; }
.sec-head__main { margin: 0; font-size: clamp(35px, 4.6vw, 53px); font-weight: 450; line-height: 1; letter-spacing: -0.06em; }
.sec-head--dark .sec-head__kicker { color: #555; }
.sec-head--dark .sec-head__main { color: var(--void); }
.note { margin: 18px 0 0; font-size: 15px; color: var(--iron); }

/* Hero */
.hero { min-height: min(86vh, 820px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 29px; padding: 64px 18px 80px; text-align: center; overflow: hidden; }
.hero--small { min-height: 60vh; }
.hero .pill { margin-top: 6px; }
.hero .note { margin-top: -12px; }
.hero__stage { position: relative; width: min(760px, 92vw); height: clamp(220px, 34vw, 360px); margin-bottom: 6px; }
.hero__tile { position: absolute; top: 50%; left: 50%; width: clamp(150px, 22vw, 240px); aspect-ratio: 1; background: var(--white); border-radius: var(--r-card); padding: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.hero__tile img { width: 100%; height: 100%; object-fit: contain; }
.hero__tile--0 { transform: translate(-50%, -50%) scale(1.12); z-index: 2; }
.hero__tile--1 { transform: translate(-128%, -44%) rotate(-9deg) scale(.86); }
.hero__tile--2 { transform: translate(28%, -56%) rotate(8deg) scale(.86); }

/* Pasovi */
.band { padding: var(--section) 0; }
.band--light { background: var(--ash); color: var(--void); }
.band--top { padding-top: 47px; }
.band--usp { padding: 47px 0; border-top: 1px solid var(--line-dark); }
.usp { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); text-align: center; color: var(--smoke); font-size: 15px; }
.usp li { padding: 12px; }

/* Mreža izdelkov */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; background: var(--white); color: var(--void); border-radius: var(--r-card); overflow: hidden; transition: transform .25s ease; }
.band:not(.band--light) .card { outline: 1px solid var(--line-dark); }
.card:hover { text-decoration: none; transform: translateY(-3px); }
.card__img { aspect-ratio: 1; padding: 26px; display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 26px 26px; }
.card__brand { font-size: 13px; color: #6b6b6b; }
.card__name { font-size: 16px; line-height: 1.25; font-weight: 450; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.card__price { font-size: 16px; font-weight: 500; }
.card__sizes { font: 12px var(--mono); color: #6b6b6b; letter-spacing: 0; text-align: right; }

/* Drobtine */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #6b6b6b; margin-bottom: 29px; }
.crumbs--dark { color: var(--iron); grid-column: 1 / -1; margin-bottom: 0; }

/* Stran izdelka */
.pdp { padding: 29px 0 var(--section); }
.pdp__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 29px 47px; align-items: start; }
.pdp__media { background: var(--white); border-radius: var(--r-card); padding: clamp(18px, 4vw, 47px); position: sticky; top: 90px; }
.pdp__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pdp__brand { margin: 0 0 6px; font-size: 15px; color: var(--smoke); }
.pdp__name { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 450; line-height: 1.05; letter-spacing: -0.045em; }
.pdp__price { margin: 18px 0 0; font-size: 26px; font-weight: 450; letter-spacing: -0.03em; }
.pdp__price span { font-size: 13px; color: var(--iron); letter-spacing: 0; }
.pdp__intro { color: var(--smoke); margin: 35px 0 0; }

.buy { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-dark); display: grid; gap: 16px; }
.sizes { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sizes legend { margin-bottom: 10px; color: var(--iron); }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: inline-grid; place-items: center; min-width: 56px; height: 44px; padding: 0 16px; border: 1px solid rgba(229,231,235,.3); border-radius: var(--r-pill); font: 500 15px var(--font); cursor: pointer; }
.size span:hover { border-color: var(--white); }
.size input:checked + span { background: var(--white); color: var(--void); border-color: var(--white); }
.size input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }
.buy .muted { margin: 0; }

.spec { margin-top: 29px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.spec__title { margin: 0 0 12px; font-size: 15px; font-weight: 450; color: var(--white); }
.spec__table { width: 100%; border-collapse: collapse; color: var(--smoke); }
.spec__table th { text-align: left; font-weight: 400; color: var(--iron); padding: 6px 18px 6px 0; width: 1%; white-space: nowrap; vertical-align: top; }
.spec__table td { padding: 6px 0; }
.spec__table tr + tr { border-top: 1px solid rgba(229,231,235,.07); }
.spec__list { margin: 0; padding-left: 18px; color: var(--smoke); display: grid; gap: 6px; }
.spec__list.mono { list-style: none; padding-left: 0; }

/* Besedilne strani */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(35px, 4.6vw, 47px); font-weight: 450; letter-spacing: -0.05em; line-height: 1.05; }
.prose h2 { font-size: 21px; font-weight: 450; margin-top: 41px; }
.prose p, .prose li { color: var(--smoke); }
.prose a { text-decoration: underline; }

.prose table { margin: 18px 0; }
.prose .spec__table th { white-space: normal; width: 34%; color: var(--ash); }
.formbox { margin-top: 18px; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--r-card); }
.formbox p { color: var(--ash); }

/* Noga */
.ftr { border-top: 1px solid var(--line-dark); padding: 64px 0 29px; font-size: 15px; }
.ftr__in { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 29px); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 35px; }
.ftr__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.ftr__brand p { margin: 0 0 12px; }
.ftr__col { display: flex; flex-direction: column; gap: 8px; }
.ftr__col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 400; color: var(--iron); }
.ftr__col a { color: var(--ash); }
.ftr__legal { max-width: var(--wrap); margin: 47px auto 0; padding: 18px clamp(18px, 4vw, 29px) 0; border-top: 1px solid var(--line-dark); color: var(--iron); font-size: 13px; }

@media (max-width: 860px) {
  .hdr__in { flex-wrap: wrap; gap: 10px 18px; }
  .hdr__logo { flex: 1; }
  .hdr__nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 22px; }
  .pdp__in { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__img { padding: 14px; }
  .card__body { padding: 0 14px 16px; }
  .card__name { font-size: 14px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .card__sizes { text-align: left; }
  .hero__tile--1, .hero__tile--2 { display: none; }
}

/* Košarica */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.hdr__cart { position: relative; }
.hdr__badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--ember); color: var(--void); font: 600 11px/18px var(--font); letter-spacing: 0; text-align: center; }
.flash { margin: 18px auto; padding: 14px 18px; border: 1px solid var(--line-dark); border-radius: var(--r-card); color: var(--ash); font-size: 15px; max-width: 760px; }
.cart { max-width: 960px; }
.cart__lines { border-top: 1px solid var(--line-dark); }
.line { display: grid; grid-template-columns: 96px 1fr auto auto 32px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.line__img { background: var(--white); border-radius: 12px; padding: 8px; }
.line__img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.line__info { display: grid; gap: 4px; min-width: 0; }
.line__name { font-weight: 450; }
.line__qty select { background: transparent; color: var(--white); border: 1px solid rgba(229,231,235,.3); border-radius: var(--r-pill); padding: 8px 14px; font: 15px var(--font); }
.line__qty option { color: #000; }
.line__total { font-weight: 500; min-width: 84px; text-align: right; }
.line__rm { background: none; border: 0; color: var(--iron); font-size: 22px; cursor: pointer; }
.line__rm:hover { color: var(--white); }
.cart__sum { margin: 35px 0 0 auto; max-width: 420px; display: grid; gap: 16px; }
.cart__sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; margin: 0; color: var(--smoke); }
.cart__sum dd { margin: 0; text-align: right; }
.cart__total { color: var(--white); font-size: 21px; font-weight: 450; padding-top: 10px; border-top: 1px solid var(--line-dark); }
.cart__sum .muted { margin: 0; }
.terms { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--smoke); }
.terms input { margin-top: 3px; accent-color: var(--ember); width: 18px; height: 18px; flex: none; }
.terms a { text-decoration: underline; }
@media (max-width: 600px) {
  .line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 8px 14px; }
  .line__img { grid-area: img; } .line__info { grid-area: info; } .line__qty { grid-area: qty; } .line__total { grid-area: total; } .line__rm { grid-area: rm; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
