/* Pekara Radost — Maker workshop design system */
:root {
  --navy: #1c2a4a;
  --navy-light: #2e4068;
  --tomato: #c2401f;
  --tomato-dark: #9a3017;
  --cream: #f4e8cf;
  --cream-light: #fbf6e9;
  --wood: #8a5a3b;
  --ink: #241f18;
  --radius: 14px;
  --measure: 68ch;
  --shadow-paper: 0 2px 0 rgba(28,42,74,.08), 0 10px 24px rgba(28,42,74,.14);
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream-light);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: Georgia, "Iowan Old Style", serif; margin: 0 0 .5em; color: var(--navy); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--tomato-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.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: .5em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 4px; }

/* ===== Texture helpers ===== */
.bg-pegboard {
  background-image: radial-gradient(circle, rgba(28,42,74,.14) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}
.bg-wood {
  background-color: var(--wood);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 26px);
}
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .5; mix-blend-mode: overlay; z-index: 1; }

/* ===== Layout utilities ===== */
.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.flow > * + * { margin-top: 1em; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center-text { text-align: center; }
.eyebrow { font-family: "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--tomato-dark); }

/* ===== Reveal animation ===== */
.reveal { opacity: 1; transform: none; }
.reveal-ready { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal-ready.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-ready:nth-child(2) { transition-delay: .08s; }
.reveal-ready:nth-child(3) { transition-delay: .16s; }
.reveal-ready:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream-light); border-bottom: 3px solid var(--navy); }
.site-header__inner { width: min(1180px, 92vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { flex: none; }
.logo__word svg { width: 130px; height: 27px; }
.nav-toggle, .nav-close { background: none; border: 2px solid var(--navy); border-radius: 8px; color: var(--navy); width: 44px; height: 44px; display: none; align-items: center; justify-content: center; cursor: pointer; }
.nav-close { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); font-weight: 600; position: relative; padding: .2rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--tomato); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--tomato-dark); }
.cart-link { position: relative; display: inline-flex; color: var(--navy); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--tomato); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.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: 760px) {
  .nav-toggle { display: flex; }
  .nav-close { display: flex; margin-left: auto; margin-bottom: 1.5rem; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--navy); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 1.2rem 1.6rem; gap: 1.6rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    z-index: 150;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.1rem; width: 100%; }
  .site-nav a { color: var(--cream); }
  .cart-link { color: var(--cream); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; position: relative; overflow: hidden; min-height: 44px; transition: color .25s ease, border-color .25s ease; }
.btn--primary { background: var(--tomato); color: #fff; }
.btn--primary:hover { background: var(--tomato-dark); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.btn--ghost-dark { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--ghost-dark:hover { background: rgba(244,232,207,.15); }
.btn--sweep { background: var(--navy); color: #fff; z-index: 0; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--tomato); transition: left .3s ease; z-index: -1; }
.btn--sweep:hover::before { left: 0; }
.btn--block { width: 100%; }

/* ===== Hero (home) ===== */
.hero { position: relative; padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__headline { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .4rem; }
.hero__lede { font-size: 1.15rem; max-width: 36ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__layer { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.16,1,.3,1), opacity 1s ease; }
.hero__layer--photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); transform: translate(0,0) rotate(-1deg); }
.hero__layer--photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__layer--shape { transform: translate(6%, 10%) rotate(2deg); }
.hero__layer--tape { position: absolute; top: -14px; left: 20px; transform: rotate(-4deg); }
.hero[data-animated="true"] .hero__layer--photo { animation: slide-in-left 1s cubic-bezier(.16,1,.3,1) both; }
.hero[data-animated="true"] .hero__layer--shape { animation: slide-in-right 1s cubic-bezier(.16,1,.3,1) both; animation-delay: .1s; }
@keyframes slide-in-left { from { transform: translate(-6%, -4%) rotate(-6deg); opacity: 0; } to { transform: translate(0,0) rotate(-1deg); opacity: 1; } }
@keyframes slide-in-right { from { transform: translate(14%, 16%) rotate(8deg); opacity: 0; } to { transform: translate(6%, 10%) rotate(2deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__layer { animation: none !important; } }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }

/* ===== Map canvas composition ===== */
.map-canvas { position: relative; background: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); border: 2px dashed var(--navy-light); }
.pin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-paper); padding: 1.4rem; position: relative; }
.pin-card::before { content: ""; position: absolute; top: -9px; left: 24px; width: 18px; height: 18px; background: var(--tomato); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.pin-card:nth-child(2) { transform: rotate(1.2deg); margin-top: 1.5rem; }
.pin-card:nth-child(3) { transform: rotate(-1deg); }

/* ===== Cards ===== */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(28,42,74,.2); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.1rem 1.2rem 1.4rem; }
.card__price { color: var(--tomato-dark); font-weight: 700; }

/* ===== Product strip (scroll-snap) ===== */
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { flex: 0 0 min(260px, 70vw); scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); overflow: visible; } .product-strip .card { flex: initial; } }

/* ===== Signature feature: Vrući Trenutak oven schedule ===== */
.oven-schedule { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-paper); }
.oven-now, .oven-next { background: rgba(244,232,207,.08); border-radius: 10px; padding: 1.1rem 1.3rem; }
.oven-now__item, .oven-next__item { font-family: Georgia, serif; font-size: 1.3rem; color: #fff; }
.oven-next__time { color: var(--tomato); font-weight: 700; font-family: "Courier New", monospace; }
.oven-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1/-1; }
.oven-list li { border: 1px solid rgba(244,232,207,.4); border-radius: 999px; padding: .35em .9em; font-size: .85rem; }
.oven-list li.is-current { background: var(--tomato); border-color: var(--tomato); font-weight: 700; }
.oven-list li.is-past { opacity: .45; }
@media (max-width: 700px) { .oven-schedule { grid-template-columns: 1fr; } }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--cream); border-bottom: 3px solid var(--navy); padding: clamp(2rem,5vw,3.5rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--navy-light); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; }
.breadcrumbs a { color: var(--navy-light); }

/* ===== Prose (legal text) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: var(--measure); margin: 0 auto 2rem; }
.legal-toc ol { margin: .5em 0 0; padding-left: 1.3em; }

/* ===== Notices ===== */
.notice { border-radius: 10px; padding: 1rem 1.2rem; border: 2px solid var(--navy-light); background: var(--cream); margin: 1.2rem 0; }
.notice--warning { border-color: var(--tomato); background: #fdece5; }
.notice--success { border-color: #2f7a4f; background: #eaf6ee; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  border: 2px solid var(--navy-light); border-radius: 8px; padding: .65em .8em; font: inherit; background: #fff; accent-color: var(--tomato);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--tomato); }
.field-error { color: var(--tomato-dark); font-size: .82rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea { border-color: var(--tomato-dark); }
.field--full { grid-column: 1 / -1; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg.is-error { color: var(--tomato-dark); }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; border: 2px solid rgba(244,232,207,.5); border-radius: 8px; padding: .6em .8em; background: rgba(255,255,255,.08); color: var(--cream); }
.newsletter-form input[type="email"]::placeholder { color: rgba(244,232,207,.6); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 1/1; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; color: var(--tomato-dark); font-weight: 700; }
.qty-input { width: 70px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8em .6em; border-bottom: 1px solid var(--navy-light); }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 360px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .3em 0; }
.cart-summary__total { font-weight: 700; font-size: 1.15rem; border-top: 2px solid var(--navy); margin-top: .5em; padding-top: .6em; }

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

/* ===== FAQ ===== */
.faq { max-width: var(--measure); margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 2px solid var(--navy-light); border-radius: 10px; padding: .2rem 1.1rem; }
.faq-item summary { cursor: pointer; padding: .9em 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--tomato); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1em; }

/* ===== Badge / ornament ===== */
.badge-seal { width: 86px; height: 86px; }

/* ===== Footer ===== */
.divider { display: block; color: var(--tomato); }
.site-footer { background: var(--navy); color: var(--cream); margin-top: -2px; }
.site-footer a { color: var(--cream); opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer__inner { width: min(1180px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-col h3 { color: var(--cream); font-family: inherit; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand p { margin: .6rem 0 0; font-size: .9rem; }
.site-footer__bottom { border-top: 1px solid rgba(244,232,207,.2); text-align: center; padding: 1rem 0; font-size: .85rem; opacity: .8; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; margin: 0 auto; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-paper); z-index: 300; display: grid; gap: .8rem; }
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }

/* COMPONENTS: .class - what it is
.container - centered max-width content wrapper
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 - responsive grid layouts
.stack / .flow - vertical flex stacking helpers
.eyebrow - small uppercase label above headings
.reveal / .reveal-ready / .in-view - scroll reveal animation states
.site-header / .site-header__inner - sticky top header
.logo / .logo__mark / .logo__word - SVG logo lockup
.nav-toggle / .nav-close - mobile menu buttons
.site-nav - primary navigation (off-canvas on mobile)
.cart-link / .cart-count - header cart icon and animated badge
.btn / .btn--primary / .btn--outline / .btn--ghost-dark / .btn--sweep / .btn--block - button variants
.hero / .hero__inner / .hero__headline / .hero__lede / .hero__art / .hero__layer - home hero composition with paper-slide motion
.map-canvas - pegboard/map styled section wrapper
.pin-card - card pinned onto the map canvas
.card / .card__media / .card__body / .card__price - generic product/content card
.product-strip - horizontal scroll-snap product list (grid on desktop)
.oven-schedule / .oven-now / .oven-next / .oven-list - "Vrući Trenutak" signature feature widget
.page-hero - inner page header band
.breadcrumbs - breadcrumb trail list
.prose - readable long-form legal/text content
.legal-toc - table of contents box for legal pages
.notice / .notice--warning / .notice--success - callout boxes
.form-grid / .field / .field-error / .field--full - form layout and field wrapper
.hp-field - visually hidden honeypot input
.form-msg - form status/result message
.newsletter-form - footer newsletter signup form
.product-detail / .product-detail__media / .product-detail__price - single product page layout
.qty-input - quantity number input
.cart-table / .cart-summary - cart/checkout tables and totals box
.contact-layout / .contact-info - contact page two-column layout
.faq / .faq-item - FAQ accordion (details/summary)
.badge-seal - small decorative SVG seal/badge
.divider - decorative SVG section divider
.site-footer / .site-footer__inner / .footer-col - site footer grid
.cookie-banner / .cookie-banner__actions - cookie consent banner
.bg-pegboard / .bg-wood / .grain-overlay - decorative texture backgrounds
*/

/* ===== Missing components ===== */
.hero__text { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-newsletter { display: flex; flex-direction: column; gap: 1rem; }
.cart-qty { border: 2px solid var(--navy-light); border-radius: 8px; padding: 0.5em 0.6em; font: inherit; background: #fff; width: 60px; text-align: center; }
.cart-qty:focus { border-color: var(--tomato); outline: none; }
.cart-remove { background: none; border: 2px solid var(--navy-light); border-radius: 8px; color: var(--navy-light); padding: 0.5em 0.8em; font-weight: 600; cursor: pointer; font-size: 0.85rem; min-height: 36px; transition: color 0.25s ease, border-color 0.25s ease; }
.cart-remove:hover { color: var(--tomato-dark); border-color: var(--tomato-dark); }
.cart-remove:focus { outline: none; border-color: var(--tomato); color: var(--tomato); }
