/* Med Zvijezda — neo-brutalist design system */
:root {
  --ink: #16182b;
  --navy: #1a2140;
  --tomato: #e8431f;
  --cream: #faf3e3;
  --honey: #f4a30a;
  --paper: #fff8ea;
  --line: 3px;
  --radius: 14px;
  --shadow-off: 7px;
  --ff-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --ff-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.1; margin: 0 0 .5em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hp { position: absolute !important; opacity: 0; height: 0; width: 0; pointer-events: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

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

/* ---------- reveal / scroll animation ---------- */
.reveal { opacity: 1; transform: none; }
body:not(.no-js) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
body:not(.no-js) .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: var(--line) solid var(--ink);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; }
.logo__word { display: flex; flex-direction: column; font-family: var(--ff-display); font-weight: 700; line-height: 1; letter-spacing: .02em; }
.logo__word-line { font-size: 1.05rem; }
.logo__word-line:last-child { color: var(--tomato); }

.nav-toggle { display: none; background: var(--navy); color: var(--cream); border: var(--line) solid var(--ink); border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.nav-close { display: none; background: none; border: none; cursor: pointer; align-self: flex-end; margin-bottom: 10px; }

.main-nav { display: flex; align-items: center; gap: 22px; font-family: var(--ff-mono); font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 3px; background: var(--tomato);
  transition: right .25s ease;
}
.main-nav a:not(.nav-cart):hover::after, .main-nav a.is-active::after { right: 0; }
.nav-cart { display: flex; align-items: center; gap: 6px; background: var(--honey); border: var(--line) solid var(--ink); border-radius: 10px; padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); }
.cart-count { background: var(--tomato); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; padding: 0 5px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: var(--navy); color: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 20px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease; z-index: 60;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-close { display: flex; color: var(--cream); }
  .main-nav a { width: 100%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
  padding: 13px 22px; min-height: 44px; border: var(--line) solid var(--ink); border-radius: 10px;
  cursor: pointer; background: var(--cream); color: var(--ink); box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--tomato); color: #fff; }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.cookie-banner .btn--ghost { color: var(--cream); border-color: var(--cream); }
.btn--sm { padding: 9px 16px; font-size: .78rem; min-height: 40px; }
.btn--sweep { position: relative; overflow: hidden; z-index: 0; }
.btn--sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--navy);
  transition: left .3s ease; z-index: -1;
}
.btn--sweep:hover::before { left: 0; }
.btn--sweep:hover { color: #fff; }
.btn--sweep.btn--primary::before { background: var(--navy); }

/* ---------- hero / page-hero ---------- */
.hero { position: relative; padding: 48px 0 70px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: .3em; }
.hero__tag { font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tomato); font-size: .9rem; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__photo { position: relative; border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); aspect-ratio: 4/5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(1.5) hue-rotate(-12deg); transition: filter .4s ease; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(232,67,31,.35), rgba(26,33,64,.35)); mix-blend-mode: multiply; }
@media (min-width: 1px) {
  .hero__photo img { filter: sepia(.2) saturate(1.3) hue-rotate(-6deg); }
}
.hero__sticker { position: absolute; top: -18px; right: -18px; width: 110px; height: 110px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.page-hero { background: var(--navy); color: var(--cream); padding: 56px 0; border-bottom: var(--line) solid var(--ink); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); }
.page-hero p { max-width: 60ch; opacity: .9; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-family: var(--ff-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; display: flex; gap: 8px; margin-bottom: 14px; opacity: .85; }
.breadcrumbs a { text-decoration: underline; }

/* ---------- sections / headings ---------- */
.section { padding: 70px 0; }
.section__head { max-width: 62ch; margin-bottom: 36px; }
.section__kicker { font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tomato); font-size: .85rem; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2 { color: var(--cream); }
.section--cream-alt { background: var(--paper); }

/* ---------- masonry gallery ---------- */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 90px; gap: 16px; }
.masonry__item { position: relative; grid-row: span 3; border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 6px 6px 0 var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.masonry__item:nth-child(2n) { grid-row: span 4; }
.masonry__item:hover { transform: rotate(-1.2deg) translateY(-4px); box-shadow: 10px 10px 0 var(--ink); }
.masonry__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.masonry__item:hover img { transform: scale(1.08); }
.masonry__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: rgba(22,24,43,.82); color: var(--cream); font-family: var(--ff-mono); font-size: .78rem; transform: translateY(100%); transition: transform .25s ease; }
.masonry__item:hover .masonry__caption { transform: translateY(0); }
@media (max-width: 860px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.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: var(--line) solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; border-bottom: var(--line) solid var(--ink); }
.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.07); }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__price { font-family: var(--ff-mono); font-weight: 700; color: var(--tomato); font-size: 1.1rem; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--ff-mono); font-size: .7rem; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; background: var(--honey); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.product-detail__media { border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-family: var(--ff-mono); font-size: 1.6rem; color: var(--tomato); font-weight: 700; }
.qty-stepper { display: inline-flex; align-items: center; border: var(--line) solid var(--ink); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 44px; height: 44px; background: var(--cream); border: none; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 48px; height: 44px; border: none; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); text-align: center; font-family: var(--ff-mono); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; border: var(--line) solid var(--ink); background: var(--paper); }
.cart-table th, .cart-table td { border-bottom: 2px solid var(--ink); padding: 12px; text-align: left; }
.cart-table th { font-family: var(--ff-mono); text-transform: uppercase; font-size: .78rem; background: var(--honey); }
.cart-summary { border: var(--line) solid var(--ink); border-radius: var(--radius); background: var(--navy); color: var(--cream); padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--cream); margin-top: 10px; padding-top: 14px; }
.cart-empty { font-family: var(--ff-mono); padding: 40px; text-align: center; border: var(--line) dashed var(--ink); border-radius: var(--radius); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--ff-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; padding: 12px 14px; border: var(--line) solid var(--ink); border-radius: 10px;
  background: var(--paper); accent-color: var(--tomato); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--tomato); font-size: .82rem; font-family: var(--ff-mono); min-height: 1.2em; }
.form-msg { font-family: var(--ff-mono); font-size: .85rem; min-height: 1.4em; }
.form-msg--ok { color: #1a7a3c; }
.form-msg--error { color: var(--tomato); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: 10px 12px; border: 2px solid var(--cream); border-radius: 8px; background: var(--navy); color: var(--cream); min-height: 44px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- faq / details ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.faq-item { border: var(--line) solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-family: var(--ff-mono); font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 14px; margin: 0; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info__item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info__item svg { flex: none; margin-top: 2px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- legal / prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.legal-toc { border: var(--line) solid var(--ink); border-radius: var(--radius); padding: 18px 22px; background: var(--paper); margin-bottom: 30px; max-width: 68ch; }
.legal-toc h2 { font-family: var(--ff-mono); font-size: .9rem; text-transform: uppercase; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- notice ---------- */
.notice { border: var(--line) solid var(--ink); border-radius: var(--radius); padding: 16px 20px; background: var(--honey); box-shadow: 5px 5px 0 var(--ink); max-width: 68ch; }
.notice--info { background: var(--paper); }
.notice--warn { background: var(--tomato); color: #fff; }

/* ---------- feature: Medeni kompas ---------- */
.compass { border: var(--line) solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.compass__controls { display: flex; flex-direction: column; gap: 22px; }
.compass__slider label { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: .8rem; text-transform: uppercase; margin-bottom: 6px; }
.compass__slider input[type="range"] { width: 100%; accent-color: var(--tomato); }
.compass__result { border: 2px dashed var(--ink); border-radius: var(--radius); padding: 20px; min-height: 160px; display: flex; gap: 16px; align-items: center; background: var(--cream); }
.compass__result img { width: 86px; height: 86px; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; }
@media (max-width: 760px) { .compass { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 50px 0 0; }
.footer-divider { display: block; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 28px; padding-bottom: 36px; }
.footer__word { font-size: 1.1rem; }
.footer__brand p { opacity: .85; max-width: 28ch; }
.footer__col h3 { font-family: var(--ff-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; color: var(--honey); }
.footer__col a { display: block; padding: 4px 0; opacity: .9; }
.footer__col a:hover { text-decoration: underline; }
.footer__mail { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--ff-mono); font-size: .85rem; }
.footer__bottom { border-top: 2px solid rgba(250,243,227,.25); padding: 16px 0 24px; font-family: var(--ff-mono); font-size: .8rem; opacity: .8; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; background: var(--navy); color: var(--cream); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: 18px 22px; }
.cookie-banner__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner p { margin: 0; max-width: 60ch; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

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

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-lg { margin-top: 48px; } .mb-lg { margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.tilt-a { transform: rotate(-1.4deg); }
.tilt-b { transform: rotate(1.2deg); }

/* COMPONENTS:
.wrap - centered max-width content container
.site-header / .main-nav / .nav-cart - sticky header and nav with cart badge
.nav-toggle / .nav-close - mobile off-canvas menu controls
.btn / .btn--primary / .btn--honey / .btn--ghost / .btn--sm / .btn--sweep - button variants incl. fill-sweep hover
.hero / .hero__grid / .hero__photo / .hero__sticker - home hero with duotone photo + SVG sticker
.page-hero - inner-page hero band (navy)
.breadcrumbs - small uppercase trail links
.section / .section__head / .section__kicker / .section--navy / .section--cream-alt - generic section wrappers
.masonry / .masonry__item / .masonry__caption - home masonry gallery with hover reveal
.product-grid / .product-strip / .product-card - catalog cards grid and mobile snap strip
.product-detail / .product-detail__media / .qty-stepper - single product page layout
.cart-table / .cart-summary / .cart-empty - cart and checkout summary
.form-grid / .field / .field-error / .form-msg / .newsletter-form - form layout and feedback
.faq / .faq-item - details/summary accordion
.contact-layout / .contact-info - contact page split layout
.prose / .legal-toc - long legal text measure and table of contents
.notice / .notice--info / .notice--warn - callout boxes
.compass / .compass__controls / .compass__slider / .compass__result - Medeni kompas signature feature
.site-footer / .footer__grid / .footer__col - footer layout
.cookie-banner - fixed consent banner
.chip - small tag pill
.reveal / .in-view - scroll-reveal animation hook
.grain - fixed noise overlay
.grid-2 / .grid-3 / .text-center / .tilt-a / .tilt-b / .mt-lg / .mb-lg - layout utilities
*/

/* ---------- footer newsletter ---------- */
.footer__newsletter { display: flex; flex-direction: column; gap: 12px; }

/* ---------- qty input ---------- */
.qty-input {
  font-family: var(--ff-mono);
  font-size: .95rem;
  padding: 10px 12px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  min-height: 44px;
  text-align: center;
  width: 70px;
}

/* ---------- remove button ---------- */
.btn--remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--tomato);
  color: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn--remove:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn--remove:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ---------- product detail sections ---------- */
.product-detail__info { display: flex; flex-direction: column; gap: 20px; }
.product-detail__buy { display: flex; flex-direction: column; gap: 14px; }

/* ---------- product card sections ---------- */
.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: var(--line) solid var(--ink);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.07); }

.product-card__short { font-size: .95rem; line-height: 1.4; margin: 0; }
