/* Lesene Igrače Kocka — vintage travel poster style */

:root{
  --rust: #b24e2e;
  --rust-dark: #8c3a20;
  --cream: #f4ead7;
  --cream-deep: #ead9b8;
  --slate: #37506b;
  --slate-deep: #22364a;
  --ink: #262019;
  --paper: #fbf5e9;
  --gold: #d9a441;
  --line: rgba(38,32,25,.16);
  --radius: 14px;
  --shadow-card: 0 10px 24px -12px rgba(34,24,12,.35), 0 2px 6px -2px rgba(34,24,12,.25);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-body: -apple-system, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --container: 1180px;
  --dur: .5s;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001s !important; animation-iteration-count:1 !important; transition-duration:.001s !important; scroll-behavior:auto !important;}
}

*,*::before,*::after{box-sizing:border-box;}
html,body{overflow-x:clip;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.08;margin:0 0 .5em;font-weight:700;}
p{margin:0 0 1em;}
ul{margin:0;padding:0;}
.container{max-width:var(--container);margin-inline:auto;padding-inline:1.25rem;}
section{position:relative;}
.visually-hidden{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* focus rings */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
  border-radius:4px;
}

::selection{background:var(--gold);color:var(--ink);}

/* grain overlay */
.grain{
  position:fixed;inset:0;width:100vw;height:100vh;
  pointer-events:none;z-index:2000;opacity:.05;mix-blend-mode:multiply;
}

/* ============ HEADER ============ */
.site-header{
  position:sticky;top:0;z-index:900;
  background:var(--cream);
  border-bottom:3px solid var(--ink);
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  padding-block:.7rem;gap:1rem;
}
.logo{display:flex;align-items:center;gap:.6rem;}
.logo svg{width:44px;height:44px;flex:none;}
.logo .wordmark{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  line-height:1.05;
  letter-spacing:.01em;
  color:var(--ink);
}
.logo .wordmark small{display:block;font-family:var(--font-body);font-weight:600;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--rust-dark);}

.main-nav{display:flex;align-items:center;gap:1.6rem;}
.main-nav ul{display:flex;gap:1.4rem;list-style:none;}
.main-nav a{
  font-weight:600;font-size:.95rem;position:relative;padding:.3rem 0;
}
.main-nav a::after{
  content:"";position:absolute;left:0;bottom:-2px;height:2px;width:100%;
  background:var(--rust);transform:scaleX(0);transform-origin:left;
  transition:transform .3s ease;
}
.main-nav a:hover::after,.main-nav a[aria-current="page"]::after{transform:scaleX(1);}
.main-nav a[aria-current="page"]{color:var(--rust-dark);}

.header-actions{display:flex;align-items:center;gap:.9rem;}
.cart-link{
  display:flex;align-items:center;gap:.4rem;font-weight:700;
  border:2px solid var(--ink);border-radius:999px;padding:.4rem .8rem;
  background:var(--paper);
}
.cart-link svg{width:20px;height:20px;}
.cart-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:1.3em;height:1.3em;border-radius:999px;background:var(--rust);color:#fff;
  font-size:.72rem;padding:0 .3em;transition:transform .25s cubic-bezier(.3,1.6,.5,1);
}
.cart-count.bump{transform:scale(1.5);}

.menu-toggle{
  display:none;background:none;border:2px solid var(--ink);border-radius:8px;
  width:42px;height:42px;align-items:center;justify-content:center;cursor:pointer;
}
.menu-toggle svg{width:22px;height:22px;}

@media (max-width: 860px){
  .main-nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);
    background:var(--cream);border-left:3px solid var(--ink);
    flex-direction:column;align-items:flex-start;padding:5.5rem 1.5rem 2rem;
    transform:translateX(100%);visibility:hidden;
    transition:transform .35s ease, visibility .35s ease;
    z-index:950;
  }
  .main-nav.open{transform:translateX(0);visibility:visible;}
  .main-nav ul{flex-direction:column;gap:1.1rem;width:100%;}
  .main-nav a{font-size:1.05rem;}
  .menu-toggle{display:flex;}
  .nav-scrim{
    position:fixed;inset:0;background:rgba(34,24,12,.45);z-index:940;
    opacity:0;visibility:hidden;transition:opacity .3s ease, visibility .3s ease;
  }
  .nav-scrim.open{opacity:1;visibility:visible;}
}

/* ============ BUTTONS ============ */
.btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-weight:700;font-size:.95rem;padding:.75rem 1.5rem;border-radius:999px;
  border:2px solid var(--ink);background:var(--paper);color:var(--ink);
  cursor:pointer;overflow:hidden;isolation:isolate;z-index:1;
  transition:color .35s ease, border-color .2s ease;
}
.btn::before{
  content:"";position:absolute;inset:0;left:-100%;width:100%;
  background:var(--ink);z-index:-1;transition:left .35s ease;
}
.btn:hover::before,.btn:focus-visible::before{left:0;}
.btn:hover,.btn:focus-visible{color:var(--paper);}
.btn-primary{background:var(--rust);border-color:var(--rust-dark);color:#fff;}
.btn-primary::before{background:var(--ink);}
.btn-primary:hover{color:#fff;}
.btn-ghost{background:transparent;}
.section-dark .btn-ghost{border-color:var(--cream);color:var(--cream);}
.section-dark .btn-ghost::before{background:var(--cream);}
.section-dark .btn-ghost:hover{color:var(--ink);}
.btn[disabled]{opacity:.5;cursor:not-allowed;}
.btn-sm{padding:.5rem 1.05rem;font-size:.85rem;}
.btn svg{width:18px;height:18px;z-index:2;}
.btn span{position:relative;z-index:2;}

/* ============ HERO ============ */
.hero{
  background:linear-gradient(180deg,var(--slate) 0%, var(--slate-deep) 60%, var(--ink) 100%);
  color:var(--cream);
  overflow:hidden;
  padding-top:3.2rem;
}
.hero .container{
  display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center;
  padding-bottom:0;
}
.hero-art{width:100%;aspect-ratio:4/3;}
.hero-eyebrow{
  font-family:var(--font-mono);letter-spacing:.18em;text-transform:uppercase;
  font-size:.78rem;color:var(--gold);margin-bottom:.8rem;display:block;
}
.hero h1{
  font-size:clamp(2.4rem, 6vw, 4.4rem);color:var(--paper);
}
.underline-sweep{position:relative;display:inline-block;}
.underline-sweep svg{
  position:absolute;left:-2%;bottom:-.12em;width:104%;height:.35em;
  overflow:visible;
}
.underline-sweep svg path{
  stroke:var(--rust);stroke-width:7;fill:none;stroke-linecap:round;
  stroke-dasharray:420;stroke-dashoffset:420;
  animation:draw-underline 1.1s ease .5s forwards;
}
@keyframes draw-underline{to{stroke-dashoffset:0;}}
.hero p.lede{font-size:1.15rem;max-width:34em;color:var(--cream-deep);}
.hero-ctas{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.4rem;}
.hero .btn-ghost{border-color:var(--cream);color:var(--cream);}
.hero .btn-ghost::before{background:var(--cream);}
.hero .btn-ghost:hover{color:var(--ink);}

/* floating cloud drift — continuous subtle element */
.cloud{animation:drift 26s linear infinite;}
.cloud.slow{animation-duration:38s;}
@keyframes drift{
  0%{transform:translateX(-6%);}
  50%{transform:translateX(6%);}
  100%{transform:translateX(-6%);}
}

/* ============ OVERSIZED NUMBER GRID (home composition) ============ */
.number-grid{
  display:grid;grid-template-columns:repeat(2,1fr);
}
@media (min-width:760px){.number-grid{grid-template-columns:repeat(4,1fr);}}
.number-cell{
  border:1px solid var(--line);padding:2.2rem 1.4rem;position:relative;
  background:var(--cream);min-height:220px;display:flex;flex-direction:column;justify-content:flex-end;
}
.number-cell .num{
  position:absolute;top:.3rem;left:.6rem;font-family:var(--font-display);font-weight:700;
  font-size:clamp(3.2rem,8vw,5.5rem);color:#504635;line-height:1;z-index:0;
  -webkit-text-stroke:1px var(--line);
}
.number-cell h3{position:relative;z-index:1;font-size:1.15rem;margin-bottom:.35rem;}
.number-cell p{position:relative;z-index:1;font-size:.92rem;color:#504635;margin-bottom:0;}
.number-cell svg.cell-icon{width:30px;height:30px;position:relative;z-index:1;margin-bottom:.6rem;color:var(--rust);}

/* ============ SECTIONS / DIVIDERS ============ */
.section{padding-block:clamp(3rem,6vw,5.5rem);}
.section-tight{padding-block:clamp(2rem,4vw,3.2rem);}
.section-dark{background:var(--slate-deep);color:var(--cream);}
.section-cream{background:var(--cream);}
.section-head{max-width:46em;margin-bottom:2.2rem;}
.section-head .kicker{
  font-family:var(--font-mono);letter-spacing:.16em;text-transform:uppercase;font-size:.76rem;
  color:var(--rust-dark);display:block;margin-bottom:.5rem;
}
.section-dark .section-head .kicker{color:var(--gold);}
.section h2{font-size:clamp(1.8rem,3.4vw,2.6rem);}

.divider{display:block;width:100%;height:auto;color:var(--cream);}
.divider.flip{transform:scaleY(-1);}
.section-dark + .section-cream .divider,
.section-cream + .section-dark .divider{color:var(--slate-deep);}

/* ============ CARDS / PRODUCTS ============ */
.card-grid{display:grid;gap:1.6rem;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));}
.product-card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-card);
  transition:transform .35s ease, box-shadow .35s ease;
  display:flex;flex-direction:column;
  color:var(--ink);
}
.product-card:hover{transform:translateY(-6px);box-shadow:0 18px 30px -14px rgba(34,24,12,.4);}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden;background:var(--cream-deep);}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.product-card:hover .thumb img{transform:scale(1.08);}
.product-card .card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.4rem;flex:1;}
.product-card h3{font-size:1.08rem;margin-bottom:0;}
.product-card .age-tag{
  font-family:var(--font-mono);font-size:.72rem;letter-spacing:.06em;color:var(--slate);
  text-transform:uppercase;
}
.product-card .price{font-weight:700;font-size:1.15rem;color:var(--rust-dark);margin-top:auto;}
.product-card .card-foot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.4rem;}

.strip{
  display:grid;grid-auto-flow:column;grid-auto-columns:min(78vw,280px);gap:1.2rem;
  overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem;
  -webkit-overflow-scrolling:touch;
}
.strip .product-card{scroll-snap-align:start;}
@media (min-width:860px){
  .strip{grid-auto-flow:row;grid-auto-columns:unset;grid-template-columns:repeat(4,1fr);overflow:visible;}
}

/* ============ KOCKOMAT (signature feature) ============ */
.kockomat{
  background:var(--ink);color:var(--cream);border-radius:20px;
  padding:clamp(1.6rem,4vw,3rem);position:relative;overflow:hidden;
}
.kockomat::before{
  content:"";position:absolute;inset:0;opacity:.12;
  background-image:radial-gradient(circle at 18% 22%, var(--gold) 0, transparent 42%),
                   radial-gradient(circle at 82% 78%, var(--rust) 0, transparent 46%);
  pointer-events:none;
}
.kockomat-head{position:relative;z-index:1;max-width:40em;margin-bottom:1.6rem;}
.kockomat-controls{
  position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:1.6rem 2rem;align-items:center;
  background:rgba(251,245,233,.07);border:1px solid rgba(251,245,233,.25);
  border-radius:14px;padding:1.3rem 1.4rem;margin-bottom:1.6rem;
}
.kockomat-age{flex:1;min-width:220px;}
.kockomat-age label{display:block;font-weight:700;margin-bottom:.5rem;}
.kockomat-age output{
  font-family:var(--font-display);font-size:1.6rem;color:var(--gold);margin-left:.4rem;
}
.kockomat input[type="range"]{width:100%;accent-color:var(--rust);}
.kockomat-skills{display:flex;gap:.6rem;flex-wrap:wrap;}
.skill-chip{
  font-size:.8rem;border:1px solid rgba(251,245,233,.4);border-radius:999px;
  padding:.4rem .85rem;cursor:pointer;background:transparent;color:var(--cream);
  transition:background .2s ease, color .2s ease;
}
.skill-chip[aria-pressed="true"]{background:var(--rust);border-color:var(--rust);color:#fff;}
.kockomat-results{position:relative;z-index:1;}
.kockomat-results .card-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));}
.kockomat-count{font-family:var(--font-mono);font-size:.85rem;color:var(--gold);margin-bottom:.9rem;display:block;}
.kockomat .product-card{background:var(--paper);}

/* ============ BADGE / SEALS ============ */
.badge-row{display:flex;flex-wrap:wrap;gap:1.6rem;align-items:center;}
.seal{width:92px;height:92px;flex:none;color:var(--rust-dark);}
.badge-row p{margin:0;font-size:.92rem;max-width:18em;}

/* ============ REVEAL ============ */
.reveal{opacity:1;}
.reveal.js-hide{opacity:0;transform:translateY(26px);clip-path:inset(0 0 12% 0);}
.reveal.in-view{
  opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0);
  transition:opacity .7s ease, transform .7s ease, clip-path .7s ease;
}

/* ============ FOOTER ============ */
.site-footer{background:var(--slate-deep);color:var(--cream-deep);padding-block:3rem 1.6rem;}
.footer-grid{
  display:grid;gap:2.2rem;grid-template-columns:repeat(2,1fr);margin-bottom:2.2rem;
}
@media (min-width:700px){.footer-grid{grid-template-columns:repeat(4,1fr);}}
.footer-grid h4{color:var(--cream);font-size:.95rem;text-transform:uppercase;letter-spacing:.08em;font-family:var(--font-body);margin-bottom:.9rem;}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:.55rem;}
.footer-grid a{color:var(--cream-deep);font-size:.92rem;}
.footer-grid a:hover{color:var(--gold);}
.footer-logo{display:flex;align-items:center;gap:.6rem;margin-bottom:.9rem;}
.footer-logo svg{width:38px;height:38px;}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem;}
.newsletter-form input[type="email"]{flex:1;min-width:150px;}
.footer-bottom{
  border-top:1px solid rgba(244,234,215,.18);padding-top:1.4rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:.8rem;font-size:.82rem;color:var(--cream-deep);
}
.footer-bottom a{text-decoration:underline;}

/* ============ FORMS ============ */
label{display:block;font-weight:600;margin-bottom:.35rem;font-size:.92rem;}
input,textarea,select{
  width:100%;font-family:var(--font-body);font-size:1rem;padding:.65rem .8rem;
  border:1.5px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);
  accent-color:var(--rust);
}
.site-footer input,.site-footer textarea{background:rgba(251,245,233,.9);}
textarea{min-height:120px;resize:vertical;}
.field{margin-bottom:1.1rem;}
.field-error{color:#d33;font-size:.84rem;margin-top:.35rem;display:none;}
.field.has-error input,.field.has-error textarea{border-color:#d33;}
.field.has-error .field-error{display:block;}
.form-note{font-size:.84rem;color:#5a4f3d;}
.form-success{
  background:#eef5e9;border:1.5px solid #6f9c5a;color:#355a26;padding:1rem 1.2rem;border-radius:10px;margin-top:1rem;
}
.form-fail{
  background:#fbeaea;border:1.5px solid #d33;color:#8a1f1f;padding:1rem 1.2rem;border-radius:10px;margin-top:1rem;
}
.honeypot{position:absolute !important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

/* ============ CART / CHECKOUT ============ */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:1.6rem;}
.cart-table th,.cart-table td{text-align:left;padding:.8rem .6rem;border-bottom:1px solid var(--line);}
.cart-table img{width:64px;height:64px;object-fit:cover;border-radius:8px;}
.cart-item-name{display:flex;align-items:center;gap:.8rem;font-weight:600;}
.qty-input{width:64px;}
.cart-remove{background:none;border:none;color:var(--rust-dark);text-decoration:underline;cursor:pointer;font-size:.85rem;}
.cart-summary{
  display:flex;justify-content:flex-end;gap:2rem;font-size:1.2rem;font-weight:700;padding-top:.6rem;
}
.checkout-grid{display:grid;gap:2.4rem;grid-template-columns:1.1fr .9fr;align-items:start;}
@media (max-width:860px){.checkout-grid{grid-template-columns:1fr;}}
.order-summary{
  background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;position:sticky;top:5.5rem;
}
.order-summary ul{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem;}
.order-summary li{display:flex;justify-content:space-between;font-size:.92rem;}
.empty-cart{padding:2.5rem 0;text-align:center;}

/* ============ GENERIC PAGE / LEGAL ============ */
.page-hero{
  background:var(--slate);color:var(--cream);padding-block:3rem 2.4rem;
}
.page-hero h1{color:var(--paper);font-size:clamp(2rem,5vw,3rem);}
.breadcrumb{font-family:var(--font-mono);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin-bottom:.7rem;display:block;}
.prose{max-width:62em;}
.prose h2{margin-top:1.8rem;font-size:1.4rem;}
.prose ul{margin:0 0 1em 1.3em;list-style:disc;}
.prose li{margin-bottom:.4em;}
.two-col{display:grid;gap:2.4rem;grid-template-columns:1fr 1fr;align-items:start;}
@media (max-width:800px){.two-col{grid-template-columns:1fr;}}
.contact-image,.about-image{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-card);aspect-ratio:4/3;}
.contact-image img,.about-image img{width:100%;height:100%;object-fit:cover;}

.faq-item{border-bottom:1px solid var(--line);padding:1.1rem 0;}
.faq-item summary{
  cursor:pointer;font-weight:700;font-size:1.05rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+";font-size:1.4rem;color:var(--rust);flex:none;}
.faq-item[open] summary::after{content:"\2212";}
.faq-item p{margin-top:.7rem;color:#4a4030;}

.error-page{
  min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:3rem 1.25rem;background:var(--slate-deep);color:var(--cream);
}
.error-page svg{width:min(80vw,320px);height:auto;margin-bottom:1.5rem;}
.error-page h1{color:var(--paper);font-size:clamp(2.4rem,8vw,4rem);}

.product-detail{display:grid;gap:2.6rem;grid-template-columns:1fr 1fr;align-items:start;}
@media (max-width:860px){.product-detail{grid-template-columns:1fr;}}
.product-detail .thumb{aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-card);}
.product-detail .thumb img{width:100%;height:100%;object-fit:cover;}
.product-detail .price{font-size:2rem;color:var(--rust-dark);font-weight:700;}
.skill-list{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1.2rem;}
.skill-list span{
  font-size:.78rem;border:1px solid var(--line);border-radius:999px;padding:.35rem .8rem;color:var(--slate);
}
.qty-stepper{display:flex;align-items:center;gap:.6rem;margin-bottom:1.2rem;}
.qty-stepper button{
  width:38px;height:38px;border-radius:999px;border:1.5px solid var(--ink);background:var(--paper);font-size:1.1rem;cursor:pointer;
}
.qty-stepper input{width:56px;text-align:center;}

.cookie-banner{
  position:fixed;inset:auto 1rem 1rem 1rem;z-index:1500;background:var(--ink);color:var(--cream);
  border-radius:16px;padding:1.3rem 1.4rem;box-shadow:0 12px 30px -10px rgba(0,0,0,.5);
  display:none;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between;max-width:900px;margin-inline:auto;
}
.cookie-banner.show{display:flex;}
.cookie-banner p{margin:0;font-size:.9rem;max-width:40em;color:var(--cream);}
.cookie-banner a{text-decoration:underline;color:var(--gold);}
.cookie-actions{display:flex;gap:.7rem;flex-wrap:wrap;}
.cookie-actions .btn-ghost{border-color:var(--cream);color:var(--cream);}
.cookie-actions .btn-ghost::before{background:var(--cream);}
.cookie-actions .btn-ghost:hover{color:var(--ink);}
