/* ===== Palacinke Zvezda - design system ===== */
:root {
  --red: #e24826;
  --red-dark: #b7331a;
  --navy: #0e2a4a;
  --navy-light: #1c4875;
  --cream: #fff6e4;
  --cream-dark: #f3e6c8;
  --yellow: #f2c438;
  --ink: #1c1710;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --gap: clamp(1rem, 2vw, 2rem);
  --maxw: 1240px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--red-dark); }
.icon { fill: none; stroke: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ===== layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.center { text-align: center; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path .8s ease; }
.reveal-clip.in-view { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 3px solid var(--navy); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .7rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.logo-word em { font-style: normal; color: var(--red); }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--navy); font-weight: 600; position: relative; padding: .3rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.cart-link { position: relative; color: var(--navy); display: flex; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--red); color: #fff; border-radius: 50%; font-size: .68rem; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 3px; font-weight: 700; }
.cart-link.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 0 auto; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh;
    background: var(--navy); flex-direction: column; padding: 6rem 2rem 2rem; gap: 1.6rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    margin-left: 0;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--cream); }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .7em 1.6em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-family: var(--font-body); cursor: pointer; text-decoration: none; position: relative; overflow: hidden; }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.cookie-banner .btn-ghost { color: var(--cream); border-color: var(--cream); }
.btn-outline-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-sweep::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: rgba(255,255,255,.25); transition: left .35s ease; z-index: 0; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep span, .btn-sweep { z-index: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== hero / page-hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, var(--red) 140%); color: var(--cream); }
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-kicker { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); font-size: .85rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 5rem); margin: .2em 0 .5em; }
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-lede { font-size: 1.15rem; max-width: 36em; }
.hero-art { position: relative; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.page-hero { background: linear-gradient(150deg, var(--navy), var(--navy-light)); color: var(--cream); padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { max-width: 42em; opacity: .9; }

/* ===== breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .5em; flex-wrap: wrap; font-size: .9rem; margin-bottom: 1rem; color: var(--navy); opacity: .85; }
.breadcrumbs a { color: inherit; text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .6; }

/* ===== section index (home composition) ===== */
.index-strip { display: flex; gap: 2rem; overflow-x: auto; padding: .5rem 0 1rem; scrollbar-width: thin; }
.index-strip a { flex: 0 0 auto; display: flex; align-items: baseline; gap: .5em; text-decoration: none; color: var(--navy); font-weight: 700; }
.index-strip .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--red); }

/* ===== cards ===== */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -14px rgba(14,42,74,.35); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -14px rgba(14,42,74,.45); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .3em; }
.card-price { color: var(--red-dark); font-weight: 700; }
.badge { display: inline-block; background: var(--yellow); color: var(--navy); font-size: .7rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }

/* product strip (mobile scroll-snap) */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { scroll-snap-align: start; }
@media (min-width: 860px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); overflow-x: visible; } }

/* ===== dividers / decorative ===== */
.divider { display: block; width: 100%; height: auto; color: var(--red); }
.seal { width: 96px; height: 96px; }

/* ===== signature feature: builder ===== */
.builder { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.builder-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; }
@media (max-width: 860px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-step { margin-bottom: 1.4rem; }
.builder-step h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); margin-bottom: .6em; }
.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { border: 2px solid var(--cream); background: transparent; color: var(--cream); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; font-weight: 600; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.builder-preview { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.builder-plate { width: 100%; max-width: 220px; margin: 0 auto 1rem; }
.builder-total { font-size: 1.8rem; font-weight: 700; color: var(--red-dark); font-family: var(--font-display); }

/* ===== forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  min-height: 44px; padding: .6em .8em; border: 2px solid var(--navy); border-radius: 10px;
  font: inherit; background: #fff; accent-color: var(--red);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.field-error { color: var(--red-dark); font-size: .85rem; min-height: 1.2em; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg--ok { color: #1a7a3a; }
.form-msg--error { color: var(--red-dark); }

/* ===== notices ===== */
.notice { border-radius: 14px; padding: 1rem 1.3rem; background: var(--cream-dark); border: 2px solid var(--navy); margin: 1.5rem 0; }
.notice-warn { background: #fff3d6; border-color: var(--yellow); }
.notice-error { background: #fde3dc; border-color: var(--red); }

/* ===== prose (legal pages) ===== */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: 100px; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 2px solid var(--cream-dark); }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5em; }
.legal-toc a { text-decoration: none; }

/* ===== breadcrumbs + faq ===== */
.faq-item { border-bottom: 2px solid var(--cream-dark); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--red); flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: .6em; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .card-media { border-radius: var(--radius); }
.product-detail h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.qty-input { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.qty-input button { background: none; border: none; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; }
.qty-input input { width: 46px; border: none; text-align: center; font: inherit; min-height: 40px; }

/* ===== cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 2px solid var(--cream-dark); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 2px solid var(--cream-dark); position: sticky; top: 100px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .6em; }
.cart-summary .total { font-weight: 700; font-size: 1.3rem; border-top: 2px solid var(--cream-dark); padding-top: .6em; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info li { display: flex; gap: .7em; align-items: flex-start; list-style: none; }
.contact-info ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }

/* ===== footer ===== */
.site-footer { background: var(--navy); color: var(--cream); margin-top: 3rem; position: relative; }
.footer-wave { color: var(--cream); display: block; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem clamp(1rem,4vw,2.5rem) 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); margin-bottom: .8em; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { color: var(--cream); text-decoration: none; margin-bottom: .6em; opacity: .9; }
.footer-links a:hover { text-decoration: underline; }
.footer-tag { opacity: .85; max-width: 26em; }
.logo--footer .logo-word, .logo--footer .logo-word em { color: var(--cream); }
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.newsletter-form input[type=email] { min-height: 44px; border-radius: 10px; border: none; padding: 0 .9em; }
.footer-contact { display: flex; align-items: center; gap: .5em; opacity: .9; }
.footer-bottom { text-align: center; padding: 1rem; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(255,255,255,.15); }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 680px; margin: 0 auto; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; z-index: 300; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); }
.cookie-banner a { color: var(--yellow); }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.page-404 .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--red); margin: 0; }

@media (max-width: 390px) {
  .hero-title { font-size: 2.3rem; }
}

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.section - vertical page section spacing
.grid/.grid-2/.grid-3/.grid-4 - responsive auto-fit grids
.reveal/.reveal-clip/.in-view - scroll reveal animation hooks
.site-header/.header-inner/.logo/.logo-mark/.logo-word - site header + logo
.site-nav/.is-active/.is-open - main navigation + mobile open state
.header-actions/.cart-link/.cart-count/.bump - header cart icon + count badge
.burger - mobile nav toggle button
.btn/.btn-solid/.btn-navy/.btn-ghost/.btn-outline-light/.btn-sweep - button variants
.hero/.hero-grain/.hero-inner/.hero-kicker/.hero-title/.hero-lede/.hero-art/.hero-actions - home hero
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail
.index-strip/.num - home magazine-style numbered section index
.card/.card-media/.card-body/.card-price/.badge - product/content card
.product-strip - horizontal scroll-snap product list (mobile)
.divider/.seal - decorative SVG dividers and badge seals
.builder/.builder-grid/.builder-step/.chip-row/.chip/.builder-preview/.builder-plate/.builder-total - signature palacinka builder feature
.form-grid/.field/.field-error/.hp-field/.form-msg - form layout, fields, honeypot, status message
.notice/.notice-warn/.notice-error - callout boxes
.prose - readable long-form legal text
.legal-layout/.legal-toc - legal page with sticky table of contents
.faq/.faq-item - FAQ accordion (details/summary)
.product-detail/.qty-input - single product page layout + quantity stepper
.cart-table/.cart-summary - cart/checkout table and summary panel
.contact-layout/.contact-info - contact page split layout
.site-footer/.footer-wave/.footer-inner/.footer-col/.footer-links/.newsletter-form/.footer-contact/.footer-bottom - site footer
.cookie-banner/.cookie-actions - cookie consent banner
.page-404 - 404 page layout
*/

/* ===== extra utilities ===== */
.ml-1 { margin-left: 1rem; }
.active { background: var(--navy) !important; color: var(--cream) !important; border-color: var(--navy) !important; }
.faq { display: flex; flex-direction: column; }

/* ===== footer-newsletter, qty-update, remove-btn ===== */
.footer-newsletter {
  display: flex;
  flex-direction: column;
}

.qty-update {
  min-height: 44px;
  padding: .6em .8em;
  border: 2px solid var(--navy);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  accent-color: var(--red);
  width: 60px;
  text-align: center;
}

.qty-update:focus {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

.remove-btn {
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, color .2s ease;
}

.remove-btn:hover {
  background: var(--red);
  color: #fff;
}

.remove-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .qty-update {
    width: 50px;
    font-size: 0.9rem;
  }
  
  .remove-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}
