/* ===== Tokens ===== */
:root {
  --espresso: #3b2a24;
  --espresso-2: #4e362c;
  --caramel: #b9814a;
  --caramel-light: #d9a876;
  --milk: #f3ead9;
  --milk-2: #fbf6ec;
  --sea-glass: #8fb3a3;
  --sea-glass-dark: #5f8577;
  --ink: #2a1f1a;
  --error: #a13d3d;
  --ok: #4a7a5e;
  --radius: 1.1rem;
  --radius-sm: .6rem;
  --shadow-1: 0 10px 30px -12px rgba(59,42,36,.25);
  --shadow-2: 0 2px 10px rgba(59,42,36,.12);
  --max: 72rem;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--milk-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--espresso); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--espresso); color: var(--milk); padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--sea-glass-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--milk-2); border-bottom: 1px solid rgba(59,42,36,.1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo__word { height: 22px; width: auto; }
.nav__toggle { display: none; background: none; border: none; color: var(--espresso); cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-weight: 600; position: relative; padding: .3rem 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--caramel); transition: right .25s ease; }
.nav__list a:hover::after, .nav__list a.is-active::after { right: 0; }
.nav__list a.is-active { color: var(--caramel); }
.cart-link { position: relative; display: inline-flex; color: var(--espresso); text-decoration: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-link__count { position: absolute; top: 2px; right: 2px; background: var(--caramel); color: var(--milk); font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 1.1rem; height: 1.1rem; display: flex; align-items: center; justify-content: center; padding: 0 .2rem; }
.cart-link__count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__list { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 20rem); background: var(--milk-2); flex-direction: column; padding: 5rem 1.5rem 2rem; box-shadow: var(--shadow-1); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .nav__list.is-open { transform: translateX(0); visibility: visible; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate; font-size: .95rem; }
.btn--small { padding: .5rem 1.1rem; min-height: 38px; font-size: .85rem; }
.btn--primary { background: var(--espresso); color: var(--milk); }
.btn--primary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--caramel); z-index: -1; transition: left .3s ease; }
.btn--primary:hover::before { left: 0; }
.btn--sweep { background: var(--caramel); color: var(--espresso); }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--sea-glass); z-index: -1; transition: left .3s ease; }
.btn--sweep:hover::before { left: 0; }
.btn--outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--outline:hover { background: var(--espresso); color: var(--milk); }
.btn--ghost-dark { background: transparent; color: var(--milk-2); border-color: var(--milk-2); }
.btn--ghost-dark:hover { background: var(--milk-2); color: var(--espresso); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: none; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; padding: 0; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--clip { clip-path: inset(0 0 100% 0); }
.reveal--clip.in-view { clip-path: inset(0 0 0% 0); }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Hero / home composition ===== */
.hero { position: relative; padding: 4rem 0 5rem; overflow: hidden; }
.hero__grid { display: grid; place-items: center; min-height: 60vh; position: relative; }
.hero__headline { font-size: clamp(2.6rem, 7vw, 5.4rem); text-align: center; max-width: 18ch; margin: 0 auto 1rem; position: relative; z-index: 3; }
.hero__sub { text-align: center; max-width: 36ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 3; }
.hero__orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__orbit-item { position: absolute; width: clamp(5rem, 12vw, 9rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-1); border: 4px solid var(--milk-2); }
.hero__orbit-item img { width: 100%; height: 100%; object-fit: cover; }
.hero__mask { width: 100%; max-width: 40rem; margin: 2rem auto 0; aspect-ratio: 16/9; }
.hero__mask img { width: 100%; height: 100%; object-fit: cover; }
.hero__continuous { position: absolute; top: -4rem; right: -4rem; width: 14rem; height: 14rem; opacity: .5; animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

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

/* ===== Sections / generic ===== */
section { padding: 3.5rem 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.section-intro { text-align: center; max-width: 40ch; margin: 0 auto 2.5rem; }
.divider { width: 100%; height: 2.5rem; display: block; color: var(--sea-glass); }

/* ===== Product strip / cards ===== */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 16rem; gap: 1.5rem; overflow-x: auto; padding: .5rem .25rem 1.5rem; scroll-snap-type: x mandatory; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 860px) {
  .product-strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); overflow: visible; }
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.product-card { background: var(--milk-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); text-decoration: none; color: inherit; display: block; transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--milk); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 1rem 1.1rem 1.3rem; }
.product-card__meta { display: flex; gap: .6rem; font-size: .78rem; color: var(--espresso-2); margin-bottom: .4rem; flex-wrap: wrap; }
.product-card__price { font-weight: 700; color: var(--caramel); font-size: 1.1rem; }

/* ===== Game wheel (signature feature) ===== */
.game-wheel { background: var(--espresso); color: var(--milk-2); border-radius: var(--radius); padding: 2.5rem 1.5rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .game-wheel { grid-template-columns: 1fr auto; } }
.game-wheel__controls { display: grid; gap: 1rem; }
.game-wheel__controls label { display: block; font-size: .85rem; margin-bottom: .3rem; }
.game-wheel__controls select { width: 100%; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--caramel); background: var(--milk-2); color: var(--ink); padding: .4rem .6rem; }
.game-wheel__wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.game-wheel__svg { width: 220px; height: 220px; display: block; }
.game-wheel__pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid var(--milk-2); }
.game-wheel__spin { margin-top: 1rem; width: 100%; }
.game-wheel__result { margin-top: 1rem; min-height: 1.5em; font-weight: 600; }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: 3rem 0 2rem; text-align: center; background: linear-gradient(180deg, var(--milk) 0%, var(--milk-2) 100%); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { max-width: 46ch; margin: 0 auto; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; padding: 1rem 0; color: var(--espresso-2); }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .4rem; }

/* ===== Prose (legal content) ===== */
.prose { max-width: 42rem; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--milk); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: 42rem; margin: 0 auto 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1rem 0; border: 1px solid var(--sea-glass); background: rgba(143,179,163,.12); }
.notice--warning { border-color: var(--caramel); background: rgba(185,129,74,.12); }
.notice--error { border-color: var(--error); background: rgba(161,61,61,.08); }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { min-height: 44px; border-radius: var(--radius-sm); border: 1px solid rgba(59,42,36,.3); padding: .5rem .7rem; font: inherit; background: var(--milk-2); accent-color: var(--caramel); }
.field textarea { min-height: 120px; }
.field-error { color: var(--error); font-size: .82rem; margin: 0; }
.form-message { padding: .7rem 1rem; border-radius: var(--radius-sm); margin-top: .8rem; }
.form-message--ok { background: rgba(74,122,94,.15); color: var(--ok); }
.form-message--error { background: rgba(161,61,61,.1); color: var(--error); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 10rem; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--caramel); padding: .5rem .7rem; }

/* ===== Product detail ===== */
.product-detail { display: grid; gap: 2rem; }
@media (min-width: 800px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--espresso-2); margin: 1rem 0; }
.product-detail__price { font-size: 1.8rem; color: var(--caramel); font-weight: 700; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid rgba(59,42,36,.12); }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-table input[type="number"] { width: 4rem; min-height: 40px; border-radius: var(--radius-sm); border: 1px solid rgba(59,42,36,.3); padding: .3rem .4rem; }
.cart-summary { max-width: 24rem; margin-left: auto; background: var(--milk); border-radius: var(--radius); padding: 1.5rem; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid rgba(59,42,36,.2); padding-top: .6rem; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info__item { display: flex; gap: .7rem; align-items: flex-start; }

/* ===== FAQ ===== */
.faq { max-width: 42rem; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--milk); border-radius: var(--radius-sm); padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; 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.4rem; color: var(--caramel); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; }

/* ===== Utilities ===== */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.grid-2 { display: grid; gap: 1.5rem; } @media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1.5rem; } @media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.text-center { text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--espresso); color: var(--milk-2); margin-top: 3rem; position: relative; }
.footer-wave { width: 100%; height: 24px; display: block; }
.footer__grid { display: grid; gap: 2rem; padding: 1rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer__brand { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.footer__col h3 { color: var(--milk-2); font-size: .95rem; margin-bottom: .7rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer__col a { text-decoration: none; opacity: .9; }
.footer__col a:hover { text-decoration: underline; }
.footer__contact { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; opacity: .85; }
.footer__bottom .link-btn { color: var(--milk-2); }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 36rem; margin: 0 auto; background: var(--espresso); color: var(--milk-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-1); z-index: 300; display: grid; gap: 1rem; }
.cookie-banner__actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.btn / .btn--primary / .btn--sweep / .btn--outline / .btn--ghost-dark / .btn--small - button variants with fill-sweep hover
.reveal / .reveal--clip / .in-view - scroll-reveal animation hooks
.hero / .hero__headline / .hero__sub / .hero__actions / .hero__orbit / .hero__orbit-item / .hero__mask / .hero__continuous - home hero composition
.grain-overlay - fixed SVG grain texture overlay
.page-hero - inner page hero/banner block
.breadcrumbs - breadcrumb trail nav
.prose - readable-measure long-form legal/text content
.legal-toc - table of contents box for legal pages
.notice / .notice--warning / .notice--error - callout boxes
.form-grid / .form-grid--2col / .field / .field-error / .form-message - form layout and validation states
.hp-field - visually hidden honeypot field
.newsletter-form - inline footer subscribe form
.product-grid / .product-strip / .product-card - catalog listing and scroll-snap strip
.game-wheel / .game-wheel__controls / .game-wheel__wrap / .game-wheel__svg / .game-wheel__pointer / .game-wheel__spin / .game-wheel__result - signature "Kolo igara" feature
.product-detail / .product-detail__media / .product-detail__meta / .product-detail__price - single product page layout
.cart-table / .cart-summary - cart and checkout tables
.contact-layout / .contact-info / .contact-info__item - contact page split layout
.faq / .faq-item - accordion FAQ using details/summary
.cookie-banner - bottom cookie consent banner
.site-header / .nav / .nav__list / .cart-link / .logo - global header and nav
.site-footer / .footer__grid / .footer__col / .footer__brand / .footer__bottom - global footer
.grid-2 / .grid-3 / .text-center / .mt-* / .mb-* - spacing and grid utilities
*/
