/* Bicykle Domov — Japandi wabi-sabi design system */

:root {
  --espresso: #3b2a20;
  --espresso-2: #2a1d15;
  --caramel: #a4321f;
  --caramel-2: #c9603f;
  --milk: #f6efe2;
  --milk-2: #efe6d8;
  --paper: #fbf7ee;
  --ink: #241a13;
  --line: rgba(59, 42, 32, .18);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "SFMono-Regular", Consolas, Menlo, monospace;
  --radius: 2px;
  --shadow-1: 0 1px 2px rgba(36,26,19,.06), 0 8px 24px -12px rgba(36,26,19,.25);
  --shadow-2: 0 20px 50px -20px rgba(36,26,19,.35);
  --container: 1200px;
  --speed: .5s;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(ellipse at top left, rgba(164,50,31,.03), transparent 40%),
                     radial-gradient(ellipse at bottom right, rgba(59,42,32,.04), transparent 50%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--espresso-2); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--espresso); color: var(--milk);
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 1em; top: 1em; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* ===== layout helpers ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack-sm > * + * { margin-top: .6rem; }
.stack-md > * + * { margin-top: 1.4rem; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; left: -9999px; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--speed) ease, transform var(--speed) ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; transition: clip-path var(--speed) ease; }
.reveal--clip.in-view { clip-path: inset(0 0 0% 0); }
.reveal--stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,239,226,.9); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: .8rem clamp(1.2rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .6rem; color: var(--espresso-2); }
.logo__mark { color: var(--espresso); flex: none; }
.logo__word { font-family: var(--ff-display); font-size: 1.3rem; letter-spacing: .01em; }
.logo__word em { font-style: normal; color: var(--caramel); }
.logo__word--footer { color: var(--milk); font-size: 1.5rem; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--espresso); padding: .4rem; min-width: 44px; min-height: 44px;
}
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.site-nav a { font-size: .95rem; position: relative; padding: .3rem 0; }
.site-nav a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--caramel);
  transition: right var(--speed) ease;
}
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--caramel); }
.nav-cart { display: flex; align-items: center; gap: .3rem; position: relative; min-height: 44px; }
.cart-count {
  background: var(--caramel); color: var(--milk); font-size: .72rem; min-width: 1.3em; height: 1.3em;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0 .2em;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 0 30%; top: 0; height: 100vh; flex-direction: column; justify-content: center;
    background: var(--espresso); color: var(--milk); gap: 1.6rem;
    transform: translateX(100%); visibility: hidden; transition: transform var(--speed) ease, visibility var(--speed);
    padding: 2rem;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--milk); font-size: 1.2rem; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  position: relative; overflow: hidden; isolation: isolate;
  padding: .8em 1.6em; border-radius: var(--radius); font-size: .95rem; letter-spacing: .01em;
  border: 1px solid var(--espresso); min-height: 44px; transition: color var(--speed) ease, border-color var(--speed) ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--espresso); z-index: -1;
  transition: left var(--speed) ease;
}
.btn--fill { background: var(--espresso); color: var(--milk); }
.btn--fill::before { background: var(--caramel); }
.btn--fill:hover::before, .btn--fill:focus-visible::before { left: 0; }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost::before { background: var(--espresso); }
.btn--ghost:hover { color: var(--milk); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { left: 0; }
.btn--on-dark { border-color: var(--milk); color: var(--milk); }
.btn--on-dark::before { background: var(--milk); }
.btn--on-dark:hover { color: var(--espresso); }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; min-height: 38px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== hero ===== */
.hero { position: relative; padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .4em; }
.hero__title .wipe { display: inline-block; clip-path: inset(0 100% 0 0); animation: wipe 1.1s .15s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .hero__title .wipe { clip-path: inset(0 0 0 0); animation: none; } }
.hero__lede { font-size: 1.15rem; max-width: 36ch; color: var(--espresso); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.hero__ring img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(1.05); }
.hero__orbit { position: absolute; inset: -6%; animation: spin 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero__orbit { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__seal { position: absolute; bottom: -4%; right: -2%; width: 22%; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 340px; margin: 0 auto; }
}

/* ===== grain overlay ===== */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

/* ===== dividers / ornaments ===== */
.divider { width: 100%; height: 32px; color: var(--espresso); opacity: .35; }
.ornament-strip { display: flex; justify-content: center; margin: 2rem 0; color: var(--caramel); opacity: .6; }

/* ===== page hero (inner pages) ===== */
.page-hero { background: var(--milk-2); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 60ch; }

/* ===== breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; color: var(--espresso); opacity: .75; margin-bottom: 1rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--caramel); }

/* ===== cards ===== */
.card {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 1.6rem; transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* ===== product card / strip ===== */
.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem;
}
.product-strip .product-card { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.product-card {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1); transition: transform var(--speed) ease, box-shadow var(--speed) ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed) ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__price { color: var(--caramel); font-weight: 600; }
.product-card__cta { margin-top: auto; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; color: var(--caramel); font-family: var(--ff-display); }
.product-detail__list { display: grid; gap: .5rem; margin: 1rem 0; }
.product-detail__list li { display: flex; gap: .6rem; align-items: flex-start; }
.product-detail__list svg { flex: none; margin-top: .15em; color: var(--caramel); }
.qty-field { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty-field button { background: none; border: none; width: 40px; height: 44px; font-size: 1.1rem; }
.qty-field input { width: 46px; text-align: center; border: none; background: none; font-size: 1rem; height: 44px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Trasomat (signature feature) ===== */
.trasomat { background: var(--espresso); color: var(--milk); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.trasomat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(164,50,31,.35), transparent 55%); }
.trasomat__form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); position: relative; z-index: 1; align-items: end; }
.trasomat__form .field label { color: var(--milk); }
.trasomat select { width: 100%; }
.trasomat-results { display: grid; gap: 1rem; margin-top: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: relative; z-index: 1; }
.route-card { background: rgba(246,239,226,.08); border: 1px solid rgba(246,239,226,.25); padding: 1.1rem 1.2rem; border-radius: var(--radius); }
.route-card h3 { color: var(--milk); font-size: 1.05rem; }
.route-card__meta { color: var(--caramel-2); font-size: .85rem; }

/* ===== forms ===== */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; color: var(--espresso); }
.field--full { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; padding: .7em .8em; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--milk); color: var(--ink); accent-color: var(--caramel); min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--caramel); }
.field-error { color: var(--caramel); font-size: .8rem; min-height: 1.2em; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.is-success { color: #3f6b3a; }
.form-msg.is-error { color: var(--caramel); }

/* ===== notice ===== */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--caramel); background: var(--milk); padding: 1rem 1.2rem; border-radius: var(--radius); }
.notice--info { border-left-color: var(--espresso); }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 70px; height: 54px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--milk-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .6rem; max-width: 360px; margin-left: auto; }
.cart-summary__total { font-size: 1.3rem; font-family: var(--ff-display); color: var(--caramel); display: flex; justify-content: space-between; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--espresso); }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item svg { color: var(--caramel); flex: none; margin-top: .1em; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { display: grid; gap: .8rem; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--milk); overflow: hidden; }
.faq-item summary {
  padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-display);
}
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--caramel); transition: transform var(--speed) ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--espresso); }

/* ===== legal / prose ===== */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--espresso); }
.prose li { margin-left: 1.2em; list-style: disc; margin-bottom: .4em; }
.legal-toc { background: var(--milk-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6em; }
.legal-toc li { margin-left: 1.2em; list-style: decimal; }
.legal-toc a:hover { text-decoration: underline; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.error-page__code { font-family: var(--ff-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--caramel); margin: 0; }

/* ===== footer ===== */
.site-footer { background: var(--espresso); color: var(--milk); margin-top: 4rem; position: relative; }
.footer-wave { width: 100%; height: 30px; color: var(--caramel-2); opacity: .5; display: block; }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 1rem clamp(1.2rem, 4vw, 3rem) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem;
}
.footer-col h2 { color: var(--milk); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; }
.footer-col a, .footer-col p { display: block; color: rgba(246,239,226,.85); margin-bottom: .5em; font-size: .92rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-mail a { color: var(--caramel-2); display: inline; }
.newsletter-form .field label { color: var(--milk); }
.footer-legal { text-align: center; padding: 1rem 0 1.6rem; font-size: .8rem; color: rgba(246,239,226,.6); }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--espresso); color: var(--milk); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-2); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 240px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; }

/* COMPONENTS: .container - max-width centered wrapper
COMPONENTS: .section - vertical page section padding
COMPONENTS: .grid/.grid--2/.grid--3 - responsive grid helpers
COMPONENTS: .stack-sm/.stack-md - vertical spacing between children
COMPONENTS: .reveal/.reveal--clip/.reveal--stagger - scroll reveal animation hooks (JS adds .in-view)
COMPONENTS: .site-header/.site-header__inner - sticky site header
COMPONENTS: .logo/.logo__mark/.logo__word - SVG logo + wordmark
COMPONENTS: .nav-toggle - mobile menu button
COMPONENTS: .site-nav/.nav-cart/.cart-count - main navigation + cart badge
COMPONENTS: .btn/.btn--fill/.btn--ghost/.btn--on-dark/.btn--sm - button variants with fill-sweep hover
COMPONENTS: .hero/.hero__inner/.hero__title/.hero__lede/.hero__actions/.hero__visual/.hero__ring/.hero__orbit/.hero__seal - home hero composition
COMPONENTS: .grain - fixed noise overlay
COMPONENTS: .divider/.ornament-strip - decorative SVG dividers
COMPONENTS: .page-hero - inner page hero band
COMPONENTS: .breadcrumbs - breadcrumb trail
COMPONENTS: .card - generic surface card
COMPONENTS: .product-strip/.product-grid/.product-card - catalog listings
COMPONENTS: .product-detail/.product-detail__media/.product-detail__list/.qty-field - product page layout
COMPONENTS: .trasomat/.trasomat__form/.trasomat-results/.route-card - signature route-finder feature
COMPONENTS: .form-grid/.field/.field-error/.form-msg - form layout and feedback
COMPONENTS: .notice/.notice--info - callout box
COMPONENTS: .cart-table/.cart-summary/.cart-empty - cart and checkout
COMPONENTS: .contact-layout/.contact-info - contact page layout
COMPONENTS: .faq/.faq-item - FAQ accordion
COMPONENTS: .prose/.legal-toc - long-form legal text and table of contents
COMPONENTS: .error-page/.error-page__code - 404 page
COMPONENTS: .site-footer/.footer-col/.newsletter-form/.footer-legal - site footer
COMPONENTS: .cookie-banner/.cookie-banner__actions - cookie consent banner
*/

/* Footer brand column */
.footer-col--brand {
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

/* Cart summary rows */
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

/* Flexbox order utilities */
.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

/* wg-contrast-autofix */
#cookieDecline { color: #ffffff !important; }
