/* Igrače Breza — Mediterranean tile mosaic design system */

:root {
  --rust: #c96a3c;
  --rust-dark: #a84f29;
  --cream: #f6ecd9;
  --cream-deep: #efddb8;
  --slate: #3c5068;
  --slate-deep: #26323f;
  --ink: #2a2420;
  --paper: #fffaf0;
  --line: #e2cfa8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(42, 36, 32, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; min-height: 44px; transition: color .25s, border-color .25s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--slate-deep); z-index: -1; transition: left .35s ease;
}
.btn:hover::before { left: 0; }
.btn:active { transform: scale(.97); }
.btn--rust { background: var(--rust); color: var(--cream); border-color: var(--rust); }
.btn--rust:hover { color: var(--cream); }
.btn--outline { background: transparent; color: var(--slate-deep); border-color: var(--slate-deep); }
.btn--outline:hover { color: var(--cream); }
.btn--ghost-dark { background: transparent; color: var(--cream); border-color: rgba(246,236,217,.5); }
.btn--ghost-dark::before { background: rgba(246,236,217,.18); }
.btn--ghost-dark:hover { color: var(--cream); }
.btn--small { padding: .6em 1.2em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; width: 40px; height: 40px; }
.logo__word { font-family: var(--serif); font-size: 1.1rem; line-height: 1.1; color: var(--slate-deep); }
.logo__word em { font-style: normal; color: var(--rust); display: block; font-size: 1.3rem; }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .95rem; }
.site-nav a { position: relative; padding: 6px 0; color: var(--slate-deep); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--rust); transition: width .25s; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.nav-close { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; color: var(--slate-deep); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--rust); color: var(--cream);
  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 .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--slate-deep); cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px; }
.nav-scrim { position: fixed; inset: 0; background: rgba(38,50,63,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 55; }
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 85vw);
    background: var(--slate-deep); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 90px 28px 28px; gap: 20px; z-index: 60;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--cream); font-size: 1.05rem; }
  .nav-close { display: block; position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--cream); cursor: pointer; min-width: 44px; min-height: 44px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 80px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__blob { position: absolute; top: -10%; right: -10%; width: 60vw; max-width: 640px; z-index: 0; opacity: .9; animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; }
  33% { border-radius: 60% 40% 30% 70% / 55% 60% 40% 45%; }
  66% { border-radius: 35% 65% 55% 45% / 60% 35% 65% 40%; }
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--slate-deep); position: relative; z-index: 1; }
.hero__title em { font-style: normal; color: var(--rust); }
.hero__lede { font-size: 1.15rem; max-width: 46ch; position: relative; z-index: 1; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero__art { position: relative; z-index: 1; }
.hero__photo { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.hero__sticker {
  position: absolute; bottom: -22px; left: -26px; width: 110px; background: var(--cream);
  border-radius: 50%; padding: 14px; box-shadow: var(--shadow); aspect-ratio: 1;
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__blob { width: 90vw; right: -20%; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--1 { transition-delay: .05s; } .reveal--2 { transition-delay: .15s; } .reveal--3 { transition-delay: .25s; } .reveal--4 { transition-delay: .35s; }

/* ---------- Section basics ---------- */
.section { padding: 64px 0; position: relative; }
.section--tint { background: var(--cream); }
.section__head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section__kicker { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--rust); display: block; margin-bottom: .6em; }
.divider { width: 100%; height: 36px; display: block; color: var(--rust); }

/* ---------- Product grid / strip ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { flex: 0 0 240px; scroll-snap-align: start; }
.product-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -14px rgba(42,36,32,.4); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.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: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-family: var(--mono); }
.product-card__name { font-size: 1.1rem; margin: 0; }
.product-card__price { font-weight: 700; color: var(--rust); margin-top: auto; font-size: 1.05rem; }
.product-card__cta { margin-top: 6px; }

/* ---------- Signature feature: Darilna Skrinjica (gift crate builder) ---------- */
.crate-section { background: var(--slate-deep); color: var(--cream); border-radius: 28px; padding: 48px; position: relative; overflow: hidden; }
.crate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.crate-visual { position: relative; }
.crate-box { width: 100%; max-width: 360px; }
.crate-fill { transition: height .4s ease, y .4s ease; }
.crate-items { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crate-items li { background: rgba(246,236,217,.12); border: 1px solid rgba(246,236,217,.3); border-radius: 999px; padding: 6px 12px; font-size: .82rem; display: flex; gap: 8px; align-items: center; }
.crate-items button { background: none; border: none; color: var(--cream); cursor: pointer; font-size: 1rem; line-height: 1; min-width: 20px; }
.crate-picker { display: flex; flex-direction: column; gap: 10px; }
.crate-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(246,236,217,.08); border: 1px solid rgba(246,236,217,.2); border-radius: 12px; padding: 10px 14px; }
.crate-option__name { font-weight: 600; }
.crate-option__price { font-family: var(--mono); font-size: .85rem; opacity: .8; }
.crate-meter { height: 10px; border-radius: 999px; background: rgba(246,236,217,.15); overflow: hidden; margin: 18px 0 6px; }
.crate-meter__bar { height: 100%; background: var(--rust); width: 0%; transition: width .4s ease; }
.crate-note { font-size: .85rem; opacity: .85; }
@media (max-width: 860px) { .crate-grid { grid-template-columns: 1fr; } .crate-section { padding: 32px 22px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--cream); padding: 64px 0 48px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); color: var(--slate-deep); }
.page-hero p { max-width: 54ch; margin: 0 auto; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--slate); display: flex; gap: 6px; flex-wrap: wrap; padding: 18px 0; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: var(--line); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; color: var(--slate-deep); }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--cream); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 24px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- Notices ---------- */
.notice { border-radius: 12px; padding: 16px 20px; border: 1px solid var(--line); background: var(--cream); margin: 20px 0; }
.notice--info { border-color: #b9c9d6; background: #eef3f6; }
.notice--warn { border-color: var(--rust); background: #fbe9dd; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75em .9em; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); accent-color: var(--rust); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--rust-dark); font-size: .82rem; min-height: 1.2em; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-msg { font-weight: 600; min-height: 1.4em; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; background: var(--paper); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--rust); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; color: var(--rust); font-weight: 700; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 40px; height: 44px; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 46px; border: none; text-align: center; font: inherit; height: 44px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table__product { display: flex; align-items: center; gap: 14px; }
.cart-table__product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 1rem; }
.cart-summary__row--total { font-weight: 700; font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: 14px; }
.cart-empty { text-align: center; padding: 60px 0; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-info__row { display: flex; gap: 12px; align-items: flex-start; }
.contact-info__row svg { flex: none; color: var(--rust); margin-top: 2px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

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

/* ---------- Utility ---------- */
.u-mt-0 { margin-top: 0; } .u-mb-0 { margin-bottom: 0; }
.u-flex { display: flex; } .u-gap-16 { gap: 16px; } .u-items-center { align-items: center; }
.u-center { text-align: center; }
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .u-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto;
  background: var(--slate-deep); color: var(--cream); border-radius: var(--radius); padding: 20px 24px;
  box-shadow: var(--shadow); z-index: 90; display: flex; flex-direction: column; gap: 14px;
}
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: var(--cream); margin-top: 60px; position: relative; }
.footer-wave { width: 100%; height: 32px; display: block; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 20px 24px 40px; }
.footer__word { color: var(--cream); } .footer__word em { color: var(--rust); }
.footer__brand p { opacity: .8; font-size: .92rem; }
.footer__col h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rust); margin-bottom: 14px; }
.footer__col a { display: block; margin-bottom: 10px; opacity: .85; }
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 140px; padding: .7em 1em; border-radius: 999px; border: 1px solid rgba(246,236,217,.4); background: rgba(246,236,217,.08); color: var(--cream); min-height: 44px; }
.newsletter-msg { font-size: .85rem; opacity: .9; min-height: 1.2em; }
.footer__mail { display: inline-flex; gap: 8px; align-items: center; opacity: .85; margin-top: 6px; }
.footer__bottom { padding: 18px 24px; border-top: 1px solid rgba(246,236,217,.15); font-size: .82rem; opacity: .75; }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__inner { grid-template-columns: 1fr; } }

/* COMPONENTS:
.wrap - max-width content wrapper
.btn / .btn--rust / .btn--outline / .btn--ghost-dark / .btn--small / .btn--block - button variants with fill-sweep hover
.site-header / .site-nav / .nav-toggle / .nav-close / .nav-scrim - header & mobile nav
.cart-link / .cart-count / .cart-count--bump - cart icon + animated count
.hero / .hero__inner / .hero__blob / .hero__title / .hero__lede / .hero__ctas / .hero__art / .hero__photo / .hero__sticker - home hero
.reveal / .reveal--1..4 / .in-view - scroll reveal animation + stagger
.section / .section--tint / .section__head / .section__kicker - generic section scaffolding
.divider - decorative SVG section divider
.product-grid / .product-strip / .product-card / .product-card__media / .product-card__body / .product-card__tag / .product-card__name / .product-card__price / .product-card__cta - product cards & catalog grid/strip
.crate-section / .crate-grid / .crate-visual / .crate-box / .crate-fill / .crate-items / .crate-picker / .crate-option / .crate-meter / .crate-meter__bar / .crate-note - signature "Darilna Skrinjica" gift crate builder
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb trail
.prose - long-form legal/readable text column
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--warn - callout boxes
.form-grid / .field / .field--full / .field-error / .hp-field / .form-msg - form layout, fields and validation
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .product-detail__media / .product-detail__price / .qty-stepper - single product page layout
.cart-table / .cart-table__product / .cart-summary / .cart-summary__row / .cart-summary__row--total / .cart-empty - cart & checkout
.contact-layout / .contact-info / .contact-info__row - contact page layout
.grain - fixed full-screen grain texture overlay
.cookie-banner / .cookie-banner__actions - cookie consent banner
.site-footer / .footer__inner / .footer__col / .footer__brand / .newsletter-form / .newsletter-msg / .footer__mail / .footer__bottom - footer
.u-mt-0 / .u-mb-0 / .u-flex / .u-gap-16 / .u-items-center / .u-center / .u-grid-2 - layout utilities
*/

/* Footer newsletter column */
.footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Reveal animation stagger delays */
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.1s; }
.reveal--3 { animation-delay: 0.15s; }
.reveal--4 { animation-delay: 0.2s; }

/* Quantity control buttons */
.qty-btn,
.qty-dec,
.qty-inc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: var(--sans);
  font-weight: 600;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
}

.qty-btn:hover,
.qty-dec:hover,
.qty-inc:hover {
  border-color: var(--rust);
  background: var(--cream);
}

.qty-btn:active,
.qty-dec:active,
.qty-inc:active {
  transform: scale(0.95);
}

/* Remove item button */
.remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--rust);
  cursor: pointer;
  transition: color .25s;
}

.remove-item:hover {
  color: var(--rust-dark);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
