/* Okviri Kap - Retro Diner design system */
:root {
  --bg: #1a1a1a;
  --bg-2: #232323;
  --surface: #f4f1ec;
  --ink: #171412;
  --grey-1: #4a4a4a;
  --grey-2: #8a8a8a;
  --grey-3: #d8d4cc;
  --red: #ff3b3b;
  --teal: #2bb6a8;
  --chrome: linear-gradient(180deg,#fff, #b9b9b9 45%, #e9e9e9 55%, #8c8c8c);
  --radius: 10px;
  --font-display: "Futura PT", "Century Gothic", Avenir, "Segoe UI", sans-serif;
  --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --shadow-1: 0 10px 30px rgba(0,0,0,.25);
  --shadow-2: 0 2px 8px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Layout helpers ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.grid { display: grid; gap: 1.25rem; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: .5rem; } .gap-md { gap: 1rem; } .gap-lg { gap: 2rem; }
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-center { text-align: center; }
.checker-band {
  height: 18px;
  background-image: repeating-conic-gradient(#171412 0% 25%, #f4f1ec 0% 50%);
  background-size: 18px 18px;
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 4px solid var(--red); }
.site-header__bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.25rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; color: var(--surface); text-shadow: 0 0 10px rgba(43,182,168,.5); letter-spacing: .02em; }
.logo__word--accent { color: var(--teal); }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--grey-3); font-family: var(--font-display); font-size: .92rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: #fff; border-color: var(--red); }
.site-header__actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; color: var(--surface); display: inline-flex; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 50%; 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.4)} 100%{transform:scale(1)} }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }
.burger span { width: 24px; height: 2px; background: var(--surface); display: block; }

@media (max-width: 800px) {
  .nav {
    position: fixed; inset: 64px 0 0 auto; width: min(280px, 80vw); height: 100vh;
    background: var(--bg); flex-direction: column; padding: 1.5rem; gap: 1rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
    border-left: 3px solid var(--red);
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .burger { display: flex; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.4rem; border-radius: 4px; font-family: var(--font-display); font-size: .92rem; letter-spacing: .03em; border: 2px solid var(--ink); cursor: pointer; position: relative; overflow: hidden; background: var(--surface); color: var(--ink); isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--ink); z-index: -1; transition: left .3s ease; }
.btn:hover::after { left: 0; }
.btn:hover { color: var(--surface); }
.btn--accent { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn--accent::after { background: var(--ink); }
.btn--accent:hover { color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red::after { background: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--surface); color: var(--surface); }
.btn--ghost::after { background: var(--teal); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { min-height: 36px; padding: .45rem 1rem; font-size: .8rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero { position: relative; background: var(--bg); color: var(--surface); padding: clamp(3rem,8vw,6rem) 0; overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; grid-template-columns: 1.1fr .9fr; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; color: var(--surface); text-shadow: 0 0 18px rgba(255,59,59,.35); }
.hero h1 .hl { color: var(--teal); text-shadow: 0 0 18px rgba(43,182,168,.6); }
.hero p { color: var(--grey-3); font-size: 1.1rem; max-width: 36ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art svg { width: 100%; height: 100%; }
.parallax-shape { transition: transform .15s ease-out; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--bg); color: var(--surface); padding: clamp(2.5rem,5vw,4rem) 0 clamp(2rem,4vw,3rem); border-bottom: 4px solid var(--teal); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--surface); }
.page-hero p { color: var(--grey-3); max-width: 60ch; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-family: var(--font-display); font-size: .82rem; color: var(--grey-2); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--grey-1); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 700; }

/* ===== Prose (legal pages) ===== */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--grey-1); }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--bg-2); color: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.4rem; max-width: 68ch; margin: 0 auto 2rem; }
.legal-toc h2 { color: var(--surface); font-size: 1rem; margin-bottom: .6rem; }
.legal-toc a { color: var(--teal); }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; border: 2px solid var(--grey-3); background: #fff; margin: 1.2rem 0; }
.notice--info { border-color: var(--teal); }
.notice--warn { border-color: var(--red); }

/* ===== Cards / bento ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bento > * { grid-column: span 2; min-width: 0; }
.bento > .bento--wide { grid-column: span 4; }
.bento > .bento--feature { grid-column: span 4; grid-row: span 2; }
@media (min-width: 900px) {
  .bento > .bento--feature { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1; }
  .bento--wide.flex { flex-direction: column; align-items: stretch !important; }
  .bento--wide.flex > img { width: 100%; max-width: 100%; height: auto; flex: none; }
  .bento--wide.flex > div { min-width: 0; }
}
.card { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-2); border: 1px solid var(--grey-3); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }

/* ===== Product cards / catalog ===== */
.product-strip, .product-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-3); box-shadow: var(--shadow-2); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--grey-3); }
.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 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__price { font-family: var(--font-display); color: var(--red); font-size: 1.1rem; }
.product-card__name { font-size: 1.05rem; }
@media (max-width: 640px) {
  .product-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .product-strip .product-card { scroll-snap-align: start; }
}

/* ===== Product detail ===== */
.product-detail { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-3); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-family: var(--font-display); font-size: 1.8rem; color: var(--red); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-family: var(--font-display); font-size: .82rem; color: var(--grey-1); }
.field input, .field select, .field textarea {
  font: inherit; padding: .65rem .8rem; border: 2px solid var(--grey-3); border-radius: 6px; background: #fff; color: var(--ink); accent-color: var(--teal); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field-error { color: var(--red); font-size: .8rem; min-height: 1.1em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-family: var(--font-display); font-size: .85rem; min-height: 1.2em; }
.form-msg--ok { color: var(--teal); }
.form-msg--error { color: var(--red); }

/* ===== Newsletter (footer) ===== */
.newsletter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.newsletter input[type=email] { flex: 1; min-width: 160px; padding: .6rem .8rem; border-radius: 6px; border: 2px solid var(--grey-1); background: var(--bg-2); color: var(--surface); min-height: 44px; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .8rem; border-bottom: 1px solid var(--grey-3); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-table .qty-input { width: 60px; min-height: 40px; padding: .3rem; border: 2px solid var(--grey-3); border-radius: 4px; }
.cart-summary { background: var(--bg-2); color: var(--surface); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__total { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal); }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__item { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info__item svg { flex: none; color: var(--teal); margin-top: .2rem; }

/* ===== FAQ ===== */
.faq { max-width: 70ch; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--grey-3); border-radius: 8px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--font-display); 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(--teal); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] { box-shadow: var(--shadow-2); }
.faq-item p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--grey-1); }

/* ===== Calculator (signature feature) ===== */
.kape-calc { background: var(--bg); color: var(--surface); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; border: 2px solid var(--teal); }
.kape-calc h2, .kape-calc h3 { color: var(--surface); }
.kape-calc__preview { display: flex; align-items: center; justify-content: center; }
.kape-calc__preview svg { max-width: 220px; }
.kape-calc__result { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); }
@media (max-width: 700px) { .kape-calc { grid-template-columns: 1fr; } }

/* ===== Section dividers / decorative ===== */
.divider { width: 100%; height: 36px; display: block; }
.badge-seal { width: 110px; height: 110px; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 20% 0); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--bg); color: var(--surface); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-top: 3px solid var(--red); }
.cookie-banner__actions { display: flex; gap: .7rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg); color: var(--grey-3); margin-top: 3rem; }
.site-footer__grid { max-width: 1180px; margin: 0 auto; padding: 3rem 1.25rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.footer-col h3 { color: var(--surface); font-size: .95rem; }
.footer-col a { color: var(--grey-3); display: flex; align-items: center; gap: .4rem; }
.footer-col a:hover { color: var(--teal); }
.footer-brand { min-width: 0; }
.footer-brand p { color: var(--grey-2); max-width: 32ch; }
.site-footer__bottom { text-align: center; padding: 1rem 0 2rem; font-size: .82rem; color: var(--grey-2); }

/* ===== Grain overlay ===== */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 100; mix-blend-mode: overlay; }

/* COMPONENTS: .container - centered max-width wrapper */
/* COMPONENTS: .section - vertical page section spacing */
/* COMPONENTS: .grid/.flex/.flex-between/.gap-sm/.gap-md/.gap-lg - layout utilities */
/* COMPONENTS: .checker-band - decorative checkerboard strip */
/* COMPONENTS: .site-header/.nav/.logo/.cart-link/.burger - header & navigation */
/* COMPONENTS: .btn/.btn--accent/.btn--red/.btn--ghost/.btn--sm - buttons with fill-sweep hover */
/* COMPONENTS: .hero/.hero__grid/.hero__art/.parallax-shape - home hero with parallax SVG */
/* COMPONENTS: .page-hero - inner page header band */
/* COMPONENTS: .breadcrumbs - breadcrumb trail */
/* COMPONENTS: .prose - readable long-form legal text */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .notice/.notice--info/.notice--warn - callout boxes */
/* COMPONENTS: .bento/.bento--wide/.bento--feature - bento grid home layout */
/* COMPONENTS: .card - generic elevated card */
/* COMPONENTS: .product-strip/.product-grid/.product-card - catalog product cards */
/* COMPONENTS: .product-detail - product page layout */
/* COMPONENTS: .form-grid/.field/.field-error/.hp/.form-msg - form components */
/* COMPONENTS: .newsletter - footer newsletter form */
/* COMPONENTS: .cart-table/.cart-summary/.cart-layout - cart & checkout layout */
/* COMPONENTS: .contact-layout/.contact-info - contact page layout */
/* COMPONENTS: .faq/.faq-item - accordion FAQ */
/* COMPONENTS: .kape-calc - signature "Kalkulator Kapi" feature box */
/* COMPONENTS: .divider/.badge-seal - decorative SVG dividers and seals */
/* COMPONENTS: .reveal/.in-view - scroll reveal animation hooks */
/* COMPONENTS: .cookie-banner - GDPR cookie consent banner */
/* COMPONENTS: .site-footer/.footer-col/.footer-brand - site footer */
/* COMPONENTS: .grain - SVG noise texture overlay */

/* ===== Icons ===== */
.icon { width: 1.2em; height: 1.2em; fill: currentColor; }

/* ===== FAQ ===== */
.faq-container { padding: 1.25rem; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 1.25rem; box-shadow: var(--shadow-2); }
.faq-title { font-size: clamp(1rem, 2vw, 1.25rem); }

/* ===== Catalog ===== */
.catalog-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.product-card__image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg); display: block; margin-bottom: 0.75rem; }
.product-card__category { font-size: 0.65rem; text-transform: uppercase; color: var(--grey-2); letter-spacing: 0.08em; margin: 0 0 0.35rem; }
.product-card__short { font-size: 0.85rem; color: var(--grey-1); margin: 0.5rem 0 0.75rem; }
.product-card__link { display: inline-block; }

/* ===== Contact Form ===== */
.contact-form { display: grid; gap: 1rem; }

/* ===== Cart ===== */
.cart-empty { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem; color: var(--grey-2); }
.cart-item { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 1rem; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-2); }
.cart-item__image { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius); background: var(--bg); }
.cart-item__info { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-item__name { font-family: var(--font-display); font-size: 1rem; margin: 0; }
.cart-item__price { font-weight: 700; color: var(--red); margin: 0; }
.cart-item__qty { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.qty-minus, .qty-plus { width: 36px; height: 36px; padding: 0; background: var(--grey-3); border: none; border-radius: 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: all 0.2s; }
.qty-minus:hover, .qty-plus:hover { background: var(--teal); color: var(--surface); }
.cart-item__remove { color: var(--red); font-size: 0.9rem; cursor: pointer; text-decoration: underline; margin-top: 0.5rem; }
.cart-items { display: grid; gap: 0; margin-bottom: 2rem; }
.cart-summary__row--total { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; padding: 1.25rem; border-top: 3px solid var(--red); background: var(--bg-2); }
.checkout-form { display: grid; gap: 1rem; }
.cart-json, .total-field { display: none; }

/* ===== Product Detail ===== */
.product-detail__image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg); margin-bottom: 2rem; box-shadow: var(--shadow-1); }
.product-detail__info { display: grid; gap: 1rem; }
.product-detail__category { font-size: 0.65rem; text-transform: uppercase; color: var(--grey-2); letter-spacing: 0.08em; margin: 0; }
.product-detail__name { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.2; }
.product-detail__description { font-size: 1rem; color: var(--grey-1); }
.product-detail__controls { display: grid; gap: 1.5rem; margin-top: 2rem; }
.qty-control { display: flex; align-items: center; gap: 1rem; width: fit-content; }
.product-detail__button { width: fit-content; }
.product-detail__back { color: var(--teal); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }

/* Mobile responsive */
@media (max-width: 500px) {
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__image { width: 80px; height: 80px; }
  .product-detail__image { margin-bottom: 1.5rem; }
  .product-detail__controls { margin-top: 1.5rem; }
}

/* wg-contrast-autofix */
#kalkulator div.kape-calc div.field label { color: #ffffff !important; }
