/* Keramika Zvoneček — Kraft eco design system */
:root {
  --kraft-0: #f6efe0;
  --kraft-1: #eee2c9;
  --kraft-2: #ddc9a0;
  --ink-green: #3c5a3e;
  --ink-green-dk: #27402a;
  --ink-green-lt: #6b7a4a;
  --rust: #9a5a30;
  --charcoal: #2a2621;
  --paper-shadow: rgba(42, 38, 33, 0.18);
  --maxw: 72rem;
  --radius: 6px;
  --font-display: "Iowan Old Style", "Georgia", "Noto Serif", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kraft-0);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(42,38,33,0.015) 0 2px, transparent 2px 4px);
}
img { max-width: 100%; display: block; }
a { color: var(--ink-green-dk); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-green-dk); line-height: 1.1; margin: 0 0 .5em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--kraft-1); border-bottom: 2px solid var(--ink-green); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.25rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { width: 40px; height: 40px; aspect-ratio: 1; flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-green-dk); line-height: 1.15; }
.logo__word em { font-style: normal; font-weight: 700; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink-green-dk); cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav a { font-weight: 600; position: relative; padding: .3rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rust); transition: width .25s ease; }
.site-nav a:not(.nav-cart):hover::after, .site-nav a.is-active::after { width: 100%; }
.nav-cart { position: relative; color: var(--ink-green-dk); }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--rust); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--kraft-1); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 1.4rem; transform: translateX(100%);
    visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    border-left: 2px solid var(--ink-green); z-index: 60;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
}

/* ===== footer ===== */
.site-footer { position: relative; background: var(--ink-green-dk); color: var(--kraft-0); margin-top: 4rem; padding: 3rem 1.25rem 1rem; }
.footer-stamp { position: absolute; top: 1.5rem; right: 1.5rem; width: 100px; height: 34px; color: var(--kraft-2); opacity: .6; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer-col h3 { color: var(--kraft-1); font-size: .95rem; margin-bottom: .7rem; }
.footer-col a { color: var(--kraft-0); display: block; padding: .25rem 0; opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col--brand p { opacity: .8; max-width: 22ch; }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .5rem; }
.newsletter-form input[type="email"] { padding: .6rem .7rem; border-radius: var(--radius); border: 1px solid var(--kraft-2); background: var(--kraft-0); min-height: 44px; }
.hp { position: absolute !important; left: -9999px; }
.footer-legal { text-align: center; max-width: var(--maxw); margin: 2rem auto 0; opacity: .7; font-size: .85rem; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--charcoal); color: var(--kraft-0); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 3px solid var(--rust); }
.cookie-banner p { margin: 0; max-width: 60ch; }
.cookie-banner a { color: var(--kraft-1); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 700; border: 2px solid var(--ink-green); cursor: pointer; font-size: .95rem; position: relative; overflow: hidden; background: var(--kraft-0); color: var(--ink-green-dk); }
.btn--sweep { background: var(--ink-green); color: var(--kraft-0); border-color: var(--ink-green); z-index: 0; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--rust); transition: left .3s ease; z-index: -1; }
.btn--sweep:hover::before, .btn--sweep:focus-visible::before { left: 0; }
.btn--ghost { background: transparent; border-color: var(--kraft-1); color: var(--kraft-0); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { background: transparent; }
.btn--outline:hover { background: var(--kraft-1); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
main { display: block; }
.section { padding: 4rem 1.25rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 15% 0); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .marquee__track, * { transition: none !important; animation: none !important; }
}

/* ===== hero (home) ===== */
.hero { position: relative; padding: 3rem 1.25rem 2rem; overflow: hidden; }
.hero__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; position: relative; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 .6rem; }
.hero__title em { font-style: normal; color: var(--rust); }
.hero__lead { font-size: 1.15rem; max-width: 36ch; opacity: .85; margin-bottom: 1.6rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 1; }
.hero__photo { position: absolute; border-radius: var(--radius); box-shadow: 0 18px 30px var(--paper-shadow); border: 6px solid var(--kraft-0); object-fit: cover; }
.hero__photo--1 { width: 62%; aspect-ratio: 4/5; top: 0; left: 4%; z-index: 2; transform: rotate(-3deg); }
.hero__photo--2 { width: 46%; aspect-ratio: 1; bottom: 0; right: 0; z-index: 1; transform: rotate(4deg); }
.hero__badge { position: absolute; top: -10px; right: 10%; width: 92px; height: 92px; z-index: 3; }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { margin-top: 1rem; } }

/* marquee */
.marquee { overflow: hidden; border-top: 2px solid var(--ink-green); border-bottom: 2px solid var(--ink-green); background: var(--ink-green); color: var(--kraft-0); padding: .8rem 0; }
.marquee__track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 22s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 1.3rem; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* collage sections */
.collage { position: relative; }
.collage-shape { position: absolute; z-index: 0; opacity: .9; }

/* feature cards used across site (not three-equal-icon look: asymmetric sizes) */
.feature-card { background: var(--kraft-1); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 10px 20px var(--paper-shadow); transition: transform .25s ease; }
.feature-card:hover { transform: translateY(-4px); }

/* product strip / catalog */
.product-strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { scroll-snap-align: start; flex: 0 0 240px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--kraft-1); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 18px var(--paper-shadow); position: relative; }
.product-card__media { aspect-ratio: 1; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 1rem; }
.product-card__price { font-weight: 700; color: var(--rust); }

/* ===== wheel feature ===== */
.wheel-feature { background: var(--kraft-1); border-radius: var(--radius); padding: 2.5rem 1.5rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.wheel-feature__controls { display: flex; flex-direction: column; gap: 1.2rem; }
.wheel-feature__group { display: flex; gap: .6rem; flex-wrap: wrap; }
.wheel-chip { border: 2px solid var(--ink-green); background: var(--kraft-0); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; min-height: 44px; }
.wheel-chip.is-active { background: var(--ink-green); color: var(--kraft-0); }
.wheel-feature__preview { background: var(--kraft-0); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.wheel-feature__result { font-family: var(--font-mono); margin-top: .5rem; }
@media (max-width: 760px) { .wheel-feature { grid-template-columns: 1fr; } }

/* ===== inner-page components ===== */
.page-hero { background: var(--kraft-1); padding: 3.5rem 1.25rem 2.5rem; border-bottom: 2px solid var(--ink-green); text-align: left; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { max-width: 60ch; opacity: .85; }

.breadcrumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .85rem; opacity: .75; margin: 1rem 1.25rem 0; max-width: var(--maxw); margin-inline: auto; padding: 0 1.25rem; }
.breadcrumbs a { text-decoration: underline; }

.prose { max-width: 68ch; margin: 0 auto; padding: 2.5rem 1.25rem; }
.prose h2 { margin-top: 2em; }
.prose p, .prose li { opacity: .9; }
.prose ul, .prose ol { padding-left: 1.3em; }

.legal-toc { background: var(--kraft-1); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: 68ch; margin: 2rem auto 0; }
.legal-toc a { display: block; padding: .25rem 0; }

.notice { border-left: 4px solid var(--rust); background: var(--kraft-1); padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1.5rem 0; }
.notice--success { border-color: var(--ink-green); }
.notice--error { border-color: #a33; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 46rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  min-height: 44px; padding: .6rem .7rem; border: 1.5px solid var(--kraft-2); border-radius: var(--radius);
  background: var(--kraft-0); font: inherit; accent-color: var(--rust);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink-green); }
.field-error { color: #a33; font-size: .82rem; min-height: 1.1em; }
.form-msg { min-height: 1.3em; font-size: .9rem; }
.form-msg--ok { color: var(--ink-green-dk); }
.form-msg--error { color: #a33; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 68ch; margin: 0 auto; padding: 2.5rem 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--kraft-1); border-radius: var(--radius); padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--rust); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { opacity: .85; padding-bottom: 1rem; margin: 0; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem; }
.product-detail__media img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; box-shadow: 0 14px 24px var(--paper-shadow); }
.product-detail__price { font-size: 1.6rem; color: var(--rust); font-weight: 700; margin: .6rem 0 1.2rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--kraft-2); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.cart-summary { background: var(--kraft-1); border-radius: var(--radius); padding: 1.5rem; max-width: 26rem; margin-left: auto; display: flex; flex-direction: column; gap: .8rem; }
.cart-summary__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* icon-feature list (avoid icon-above-heading pattern: icon sits inline, left-aligned) */
.icon-row { display: flex; gap: .8rem; align-items: flex-start; }
.icon-row svg { flex-shrink: 0; color: var(--ink-green); margin-top: .2rem; }

/* decorative dividers */
.divider { width: 100%; height: 40px; color: var(--ink-green); opacity: .5; }

@media (max-width: 390px) { .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); } }

/* COMPONENTS: .page-hero - inner page intro banner */
/* COMPONENTS: .breadcrumbs - breadcrumb trail nav */
/* COMPONENTS: .prose - readable long-form legal/text content */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .notice / .notice--success / .notice--error - callout boxes */
/* COMPONENTS: .btn / .btn--sweep / .btn--ghost / .btn--outline / .btn--block - button variants */
/* COMPONENTS: .form-grid / .field / .field--full / .field-error / .form-msg - form layout + validation */
/* COMPONENTS: .faq / .faq-item - details/summary accordion */
/* COMPONENTS: .product-detail / .product-detail__media / .product-detail__price - single product layout */
/* COMPONENTS: .cart-table / .cart-summary / .cart-summary__total - cart & checkout layout */
/* COMPONENTS: .contact-layout - two-column contact page grid */
/* COMPONENTS: .product-grid / .product-strip / .product-card - catalog listings */
/* COMPONENTS: .wheel-feature / .wheel-chip - signature interactive feature */
/* COMPONENTS: .hero / .hero__grid / .hero__title / .hero__art - home hero collage */
/* COMPONENTS: .marquee / .marquee__track - scrolling brand-word strip */
/* COMPONENTS: .feature-card - asymmetric highlight card */
/* COMPONENTS: .icon-row - inline icon + text row */
/* COMPONENTS: .grid / .grid-2 / .grid-3 / .grid-4 - layout grids */
/* COMPONENTS: .reveal / .reveal-stagger - scroll reveal animation hooks */
/* COMPONENTS: .divider - decorative SVG section divider */
/* COMPONENTS: .cookie-banner - GDPR cookie consent banner */
/* COMPONENTS: .site-header / .site-nav / .nav-toggle / .cart-count - header & navigation */
/* COMPONENTS: .site-footer / .footer-col / .newsletter-form - footer & newsletter */

/* ===== catalog page additions ===== */
.catalog-filters { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-chip { border: 2px solid var(--ink-green); background: var(--kraft-0); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; font-weight: 600; min-height: 44px; font-size: 0.9rem; }
.filter-chip.is-active { background: var(--ink-green); color: var(--kraft-0); }
.product-card__image { width: 100%; height: auto; border-radius: var(--radius); }
.product-card__body { padding: 1rem; }
.product-card__name { font-size: 1rem; margin: 0 0 0.3rem; color: var(--ink-green-dk); }
.product-card__desc { font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.8rem; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; }

/* ===== product detail additions ===== */
.product-detail__image-area { position: relative; }
.product-detail__image { width: 100%; height: auto; }
.product-detail__info { padding: 0.5rem; }
.product-detail__category { display: block; }
.product-detail__price-section { margin-bottom: 1rem; }
.product-detail__price { display: inline-block; }
.product-detail__desc { margin-bottom: 1rem; }
.product-detail__form { }
.product-detail__meta { font-size: 0.9rem; }
.qty-btn { background: transparent; border: none; cursor: pointer; font-weight: 600; color: var(--ink-green-dk); font-size: 1.2rem; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { opacity: 0.7; }
.qty-input { }

/* ===== FAQ additions ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--kraft-1); border-radius: var(--radius); padding: 1.2rem; }
.faq-q { font-size: 1rem; margin: 0 0 0.5rem; color: var(--ink-green-dk); cursor: default; }
.faq-a { margin: 0; opacity: 0.85; }

/* ===== mt-0 utility ===== */
.mt-0 { margin-top: 0; }

/* footer news column */
.footer-col--news {
}

/* contact form */
.contact-form {
  background: var(--kraft-1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* cart items container */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* checkout form */
.checkout-form {
  background: var(--kraft-1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* form row */
.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink-green-dk);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--ink-green);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
}

/* quantity button minus */
.qty-btn--minus {
}

/* quantity button plus */
.qty-btn--plus {
}

/* cart remove button */
.cart-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  min-height: 32px;
}

.cart-remove:hover {
  opacity: 0.7;
}

/* wg-contrast-autofix */
footer.site-footer div.site-footer__inner div.footer-col.footer-col--brand span.logo__word { color: #ffffff !important; }
