/* Slagalice Val — design system. Vintage circus: emerald / black / gold. */

:root{
  --emerald:#0e3b2e;
  --emerald-dark:#082621;
  --gold:#f2c14e;
  --gold-soft:#f8dd98;
  --red:#e7533c;
  --cream:#fbf4e3;
  --ink:#121410;
  --paper:#fffdf6;
  --line:rgba(14,59,46,0.18);
  --radius:14px;
  --radius-lg:26px;
  --shadow-card:0 10px 28px -12px rgba(14,59,46,0.35);
  --font-display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --font-body:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-mono:"SF Mono",Consolas,"Liberation Mono",monospace;
}

*{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);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
button{font:inherit}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--gold);color:var(--ink);padding:.6rem 1rem;z-index:200}
.skip-link:focus{left:1rem;top:1rem}

:focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:4px}

/* ---------- layout utilities ---------- */
.container{max-width:1180px;margin-inline:auto;padding-inline:1.25rem}
.section{padding:clamp(3rem,6vw,5.5rem) 1.25rem;max-width:1180px;margin-inline:auto;position:relative}
.section-title{font-family:var(--font-display);font-size:clamp(1.8rem,3.4vw,2.6rem);margin:0 0 1rem;color:var(--emerald)}
.prose-lead{max-width:40em;font-size:1.08rem;line-height:1.65;color:#2b2e28}
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}
.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))}
.text-center{text-align:center}

/* ---------- reveal ---------- */
.reveal{opacity:1;transform:none}
body.js .reveal, .reveal.js-armed{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.in-view{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{transition:none!important;opacity:1!important;transform:none!important}}
.reveal:not(.in-view){opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;justify-content:center;min-height:44px;padding:.75rem 1.5rem;border-radius:999px;font-weight:700;letter-spacing:.02em;border:2px solid transparent;cursor:pointer;position:relative;overflow:hidden;transition:transform .2s ease,color .25s ease}
.btn-gold{background:var(--gold);color:var(--emerald-dark)}
.btn-outline{border-color:var(--emerald);color:var(--emerald);background:transparent}
.btn-ghost{border-color:rgba(255,255,255,.7);color:#fff;background:transparent}
.btn-dark{background:var(--emerald);color:var(--gold-soft)}
.btn:hover{transform:translateY(-2px)}
.btn-sweep{z-index:0}
.btn-sweep::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--emerald);z-index:-1;transition:left .35s ease}
.btn-sweep:hover::before{left:0}
.btn-sweep:hover{color:var(--gold-soft)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:var(--paper);border-bottom:2px solid var(--emerald)}
.site-header-inner{max-width:1180px;margin-inline:auto;padding:.75rem 1.25rem;display:flex;align-items:center;gap:1.5rem}
.brand{display:flex;align-items:center;gap:.6rem;font-family:var(--font-display);font-size:1.3rem;color:var(--emerald)}
.brand-word em{font-style:normal;color:var(--red)}
.nav-toggle{display:none;margin-left:auto;background:none;border:none;color:var(--emerald);padding:.4rem;min-width:44px;min-height:44px}
.site-nav{display:flex;align-items:center;gap:1.4rem;margin-left:auto;font-weight:600}
.site-nav a{padding:.4rem 0;position:relative}
.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%}
.nav-cart{display:flex;align-items:center;gap:.4rem;background:var(--emerald);color:var(--gold-soft);padding:.5rem 1rem;border-radius:999px}
.nav-cart::after{display:none}
.cart-count{background:var(--gold);color:var(--emerald-dark);border-radius:999px;padding:0 .45rem;font-size:.8rem;font-weight:800;transition:transform .25s ease}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}

@media (max-width:860px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .site-nav{position:fixed;top:0;right:0;height:100vh;width:min(320px,85vw);background:var(--emerald);flex-direction:column;align-items:flex-start;padding:5rem 1.5rem;gap:1.2rem;transform:translateX(100%);visibility:hidden;transition:transform .3s ease;color:var(--gold-soft)}
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .site-nav a{color:var(--gold-soft)}
  .nav-cart{margin-top:1rem}
}

/* ---------- hero ---------- */
.hero{position:relative;background:var(--emerald);color:var(--cream);overflow:hidden;padding-bottom:3rem}
.hero-inner{max-width:1180px;margin-inline:auto;padding:clamp(2.5rem,6vw,5rem) 1.25rem 2rem;display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center}
.eyebrow{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-size:.8rem;margin:0 0 .8rem}
.hero-title{font-family:var(--font-display);font-size:clamp(3rem,8vw,6rem);line-height:.95;margin:0 0 1rem}
.hero-title em{font-style:normal;color:var(--gold)}
.hero-lede{max-width:32em;font-size:1.1rem;line-height:1.6;color:var(--gold-soft)}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.8rem}
.hero-visual{position:relative;aspect-ratio:1/1}
.hero-photo{width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.05)}
.hero-ring{position:absolute;inset:-6%;width:112%;height:112%;animation:spin 40s linear infinite}
@media (prefers-reduced-motion:reduce){.hero-ring{animation:none}}
@keyframes spin{to{transform:rotate(360deg)}}
.ticket-stub{position:absolute;bottom:-1rem;left:-1rem;display:flex;align-items:center}
.ticket-stub span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:.68rem;color:var(--emerald-dark);font-weight:700}
.tent-stripe{display:block;width:100%;height:36px}

/* ---------- panels (accordion) ---------- */
.panel-accordion{display:flex;flex-direction:column;gap:1rem;max-width:860px;margin-inline:auto}
.panel{background:var(--paper);border:2px solid var(--line);border-radius:var(--radius);overflow:hidden}
.panel summary{list-style:none;display:flex;align-items:center;gap:.9rem;padding:1.1rem 1.4rem;cursor:pointer;font-weight:700;font-size:1.05rem;color:var(--emerald)}
.panel summary::-webkit-details-marker{display:none}
.panel-chevron{margin-left:auto;transition:transform .25s ease}
.panel[open] .panel-chevron{transform:rotate(180deg)}
.panel-body{padding:0 1.4rem 1.4rem;color:#2b2e28;line-height:1.6}
.panel-body img{border-radius:var(--radius);margin-top:.8rem;aspect-ratio:4/3;object-fit:cover}

/* ---------- planner ---------- */
.section-planner{text-align:center}
.planner-card{max-width:680px;margin:2rem auto 0;background:var(--paper);border:2px solid var(--emerald);border-radius:var(--radius-lg);padding:2rem;box-shadow:var(--shadow-card)}
.planner-controls{display:grid;gap:1.4rem;text-align:left}
.planner-controls .field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.6rem}
.planner-controls label{grid-column:1/-1;font-weight:700;color:var(--emerald)}
.planner-controls input[type="range"]{accent-color:var(--red);width:100%}
.planner-controls output{font-family:var(--font-mono);font-weight:700;min-width:2ch;text-align:right}
.planner-result{margin-top:1.6rem;border-top:2px dashed var(--line);padding-top:1.4rem}
.planner-pieces{font-family:var(--font-display);font-size:2rem;color:var(--red);margin:0 0 .3rem}

/* ---------- section divider ---------- */
.section-divider{width:100%;height:30px;margin-bottom:1rem}

/* ---------- product strip / cards ---------- */
.product-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.4rem;margin:2rem 0}
.product-card{background:var(--paper);border-radius:var(--radius);overflow:hidden;border:2px solid var(--line);display:flex;flex-direction:column;position:relative;transition:transform .25s ease,box-shadow .25s ease}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-card)}
.product-card-media{display:block;aspect-ratio:4/3;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.08)}
.product-card-body{padding:1rem 1.1rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.product-card-name{font-weight:700;color:var(--emerald)}
.product-card-price{font-family:var(--font-mono);color:var(--red);font-weight:700}
.badge{position:absolute;top:.8rem;left:.8rem;background:var(--gold);color:var(--emerald-dark);font-size:.72rem;font-weight:800;padding:.25rem .6rem;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}

@media (max-width:640px){
  .product-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
  .product-strip .product-card{min-width:72vw;scroll-snap-align:start}
}

/* ---------- page hero (inner pages) ---------- */
.page-hero{background:var(--emerald);color:var(--cream);padding:clamp(3rem,8vw,5rem) 1.25rem 3rem;text-align:center}
.page-hero h1{font-family:var(--font-display);font-size:clamp(2.2rem,5vw,3.4rem);margin:.4rem 0}
.page-hero p{max-width:34em;margin:0 auto;color:var(--gold-soft)}

/* ---------- breadcrumbs ---------- */
.breadcrumbs{font-size:.85rem;color:#5a5f54;padding:1rem 1.25rem;max-width:1180px;margin-inline:auto}
.breadcrumbs a{text-decoration:underline}
.breadcrumbs span[aria-current]{color:var(--emerald);font-weight:700}

/* ---------- notices ---------- */
.notice{border-radius:var(--radius);padding:1rem 1.2rem;margin:1.2rem 0;border:2px solid var(--line);background:#fff}
.notice-info{border-color:var(--emerald);background:#eef6f1}
.notice-warn{border-color:var(--gold);background:#fff8e6}
.notice-error{border-color:var(--red);background:#fdebe7}

/* ---------- prose (legal pages) ---------- */
.prose{max-width:68ch;margin:0 auto;padding:0 1.25rem 4rem;line-height:1.75;color:#272a23}
.prose h2{font-family:var(--font-display);color:var(--emerald);margin-top:2.4rem}
.prose h3{margin-top:1.8rem}
.prose ul,.prose ol{padding-left:1.4rem;margin:1rem 0}
.prose li{margin-bottom:.4rem}
.legal-toc{max-width:68ch;margin:2rem auto 0;padding:1.2rem 1.4rem;border:2px solid var(--line);border-radius:var(--radius);background:var(--paper)}
.legal-toc h2{margin:0 0 .6rem;font-size:1rem;text-transform:uppercase;letter-spacing:.06em;color:var(--emerald)}
.legal-toc ol{margin:0;padding-left:1.2rem}
.legal-toc a{text-decoration:underline}

/* ---------- forms ---------- */
.form-grid{display:grid;gap:1.2rem;max-width:620px}
.field{display:flex;flex-direction:column;gap:.4rem}
.field label{font-weight:700;color:var(--emerald)}
.field input,.field select,.field textarea{font:inherit;padding:.7rem .9rem;border:2px solid var(--line);border-radius:10px;background:#fff;min-height:44px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--emerald)}
.field-error{color:var(--red);font-size:.85rem}
.form-error-summary{color:var(--red);font-weight:700;margin-top:.5rem}
.form-success{background:#eef6f1;border:2px solid var(--emerald);border-radius:var(--radius);padding:1rem 1.2rem;color:var(--emerald)}
.honeypot{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.newsletter .field-row{display:flex;gap:.6rem;flex-wrap:wrap}
.newsletter input[type="email"]{flex:1;min-width:150px;padding:.65rem .9rem;border-radius:999px;border:2px solid rgba(255,255,255,.4);background:rgba(255,255,255,.08);color:#fff}
.newsletter input[type="email"]::placeholder{color:var(--gold-soft)}

/* ---------- FAQ ---------- */
.faq{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.faq-item{border:2px solid var(--line);border-radius:var(--radius);background:var(--paper);overflow:hidden}
.faq-item summary{padding:1rem 1.3rem;cursor:pointer;font-weight:700;list-style:none;color:var(--emerald)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item div{padding:0 1.3rem 1.2rem;line-height:1.6;color:#2b2e28}

/* ---------- product detail ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;max-width:1100px;margin:0 auto;padding:2.5rem 1.25rem}
.product-detail-media img{border-radius:var(--radius-lg);aspect-ratio:1/1;object-fit:cover;width:100%}
.product-detail-info h1{font-family:var(--font-display);color:var(--emerald)}
.product-detail-price{font-family:var(--font-mono);font-size:1.6rem;color:var(--red);font-weight:700}
.product-detail-meta{display:flex;gap:1.2rem;flex-wrap:wrap;color:#555;font-size:.9rem;margin:.8rem 0 1.4rem}
@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:.8rem;border-bottom:1px solid var(--line)}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.cart-summary{max-width:360px;margin-left:auto;border:2px solid var(--emerald);border-radius:var(--radius);padding:1.4rem;background:var(--paper)}
.cart-summary dl{display:flex;justify-content:space-between;margin:0 0 .6rem}

/* ---------- contact layout ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;max-width:1100px;margin:0 auto;padding:2.5rem 1.25rem}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-info a{text-decoration:underline}
@media (max-width:760px){.contact-layout{grid-template-columns:1fr}}

/* ---------- misc section styling ---------- */
.section-intro{text-align:center}
.intro-grid{max-width:760px;margin-inline:auto;display:flex;flex-direction:column;gap:1rem}
.section-products{text-align:center}

/* ---------- cookie banner ---------- */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:620px;margin-inline:auto;background:var(--emerald-dark);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-actions{display:flex;gap:.7rem}

/* ---------- toast ---------- */
.sv-toast{position:fixed;bottom:1.5rem;right:1.5rem;background:var(--emerald);color:var(--gold-soft);padding:.8rem 1.2rem;border-radius:10px;opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease;z-index:400}
.sv-toast.is-visible{opacity:1;transform:none}

/* ---------- footer ---------- */
.site-footer{background:var(--emerald);color:var(--cream);margin-top:3rem}
.footer-divider{width:100%;height:16px}
.site-footer-inner{max-width:1180px;margin-inline:auto;padding:1.5rem 1.25rem 2.5rem;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem}
.footer-col h3{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--gold);margin:0 0 .9rem}
.footer-col a{display:block;margin-bottom:.55rem;color:var(--gold-soft)}
.footer-contact{display:flex;align-items:center;gap:.5rem;color:var(--gold-soft);margin-top:.5rem}
.site-footer-bottom{text-align:center;padding:1rem;border-top:1px solid rgba(255,255,255,.15);font-size:.85rem;color:var(--gold-soft)}
@media (max-width:860px){.site-footer-inner{grid-template-columns:1fr 1fr}}
@media (max-width:480px){.site-footer-inner{grid-template-columns:1fr}}

@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{max-width:420px;margin-inline:auto}
}

/* COMPONENTS: .class - what it is
.page-hero - dark hero band for inner pages with h1 + intro text
.prose - long-form legal/content column with readable measure
.legal-toc - boxed table of contents for legal pages, links to #anchors
.breadcrumbs - small trail nav under header
.notice / .notice-info / .notice-warn / .notice-error - callout boxes
.btn / .btn-gold / .btn-outline / .btn-ghost / .btn-dark / .btn-sweep - button variants, sweep = fill-sweep hover
.form-grid / .field / .field-error / .form-error-summary / .form-success - form layout and states
.honeypot - visually hidden anti-spam field
.faq / .faq-item - details/summary FAQ list
.product-detail / .product-detail-media / .product-detail-info / .product-detail-price / .product-detail-meta - single product page layout
.cart-table / .cart-summary - cart/checkout page layout
.contact-layout / .contact-info - two-column contact page
.product-strip / .product-card / .product-card-media / .product-card-body / .badge - catalog/product cards
.panel-accordion / .panel / .panel-body / .panel-chevron - home accordion panels
.planner-card / .planner-controls / .planner-result - signature "Planer igraonice" feature
.hero / .hero-inner / .hero-copy / .hero-visual / .hero-photo / .hero-ring / .ticket-stub - home hero
.site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header & nav
.site-footer / .footer-col / .newsletter - footer
.cookie-banner / .cookie-actions - cookie consent banner
.sv-toast - transient confirmation message
.reveal / .in-view - scroll-reveal animation hook
.section / .section-title / .prose-lead - generic section scaffolding
.grid / .grid-2 / .grid-3 - simple responsive grid utilities
.sr-only / .skip-link - accessibility helpers
*/

/* ---------- missing component styles ---------- */
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.icon-sprite {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  fill: currentColor;
}

.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

.hero-mask-defs {
  display: none;
}

.section-panels {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
}

.product-category {
  font-size: 0.875rem;
  color: #666;
  margin: 0.5rem 0 0;
}

.product-price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--emerald);
  margin: 0.75rem 0 0;
}

.product-info {
  font-size: 0.8rem;
  color: #888;
  margin: 0.5rem 0 0;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.qty-input {
  width: 4.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: center;
}

/* wg-contrast-autofix */
div.hero-inner div.hero-copy div.hero-actions a.btn.btn-outline { color: #ffffff !important; }
footer.site-footer div.site-footer-inner div.footer-col.footer-brand span.brand-word { color: #ffffff !important; }
footer.site-footer div.site-footer-inner div.footer-col.footer-brand p { color: #ffffff !important; }
