/* ===== Kosare Jutro — linocut print art direction ===== */

:root {
  --ink: #1b1b1a;
  --paper: #f3ead9;
  --paper-2: #ece0c7;
  --teal: #1f6f66;
  --teal-dark: #123f3a;
  --mustard: #e3a63a;
  --mustard-dark: #b9801f;
  --red: #b0412c;
  --max-w: 1180px;
  --radius: 2px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Verdana, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --ease: cubic-bezier(.22,.9,.3,1);
}

html, body { overflow-x: clip; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.08;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { display: block; }

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

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

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

/* ===== icon sprite ===== */
.icon-sprite { display: none; }
.icon {
  width: 1.4em;
  height: 1.4em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.3em;
}

/* ===== buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--ink);
  transition: left .32s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--paper); }

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}
.btn-primary::before { background: var(--mustard); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }

.btn-mustard {
  background: var(--mustard);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-mustard::before { background: var(--ink); }
.btn-mustard:hover, .btn-mustard:focus-visible { color: var(--paper); }

.btn-ghost-dark {
  border-color: var(--paper);
  color: var(--paper);
}
.btn-ghost-dark::before { background: var(--paper); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); }

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled::before { display: none; }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
}
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-word { width: 150px; height: 32px; }

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

.header-actions { display: flex; align-items: center; gap: .9rem; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: .5em .8em;
  min-height: 44px;
}
.cart-count {
  background: var(--red);
  color: var(--paper);
  font-size: .8rem;
  border-radius: 50%;
  width: 1.5em; height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease);
}
.cart-count.bump { transform: scale(1.4); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: .4em;
  min-width: 44px; min-height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--teal-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    z-index: 400;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--paper); font-size: 1.15rem; }
  .main-nav a[aria-current="page"] { color: var(--mustard); }
}

/* ===== hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-dark);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  min-height: clamp(380px, 60vh, 560px);
}
.hero-headline {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  color: var(--paper);
  margin-bottom: .4em;
}
.hero-headline em {
  font-style: normal;
  color: var(--mustard);
}
.hero-sub { font-size: 1.1rem; max-width: 34ch; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-illustration { width: 100%; max-width: 420px; height: auto; }

.hero-badge {
  position: absolute;
  width: clamp(110px, 16vw, 150px);
  height: clamp(110px, 16vw, 150px);
  top: -10px;
  right: 6%;
  animation: spin 22s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-product-card {
  position: absolute;
  bottom: -24px;
  left: 4%;
  width: clamp(150px, 24vw, 210px);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: .6rem;
  transform: rotate(-4deg);
  box-shadow: 10px 10px 0 rgba(0,0,0,.28);
}
.hero-product-card img { aspect-ratio: 4/3; object-fit: cover; border: 2px solid var(--ink); }
.hero-product-card .label { font-family: var(--font-mono); font-size: .78rem; margin-top: .4rem; display:block; }

@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 260px; margin-top: 2.6rem; }
  .hero-product-card { position: static; transform: none; margin-top: 1rem; box-shadow: 6px 6px 0 rgba(0,0,0,.28); }
  .hero-badge { top: -36px; right: 0; }
}

/* ===== dividers ===== */
.divider { display: block; width: 100%; height: auto; color: var(--ink); }
.divider-teal { color: var(--teal); }
.divider-mustard { color: var(--mustard); }

/* ===== sections ===== */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--teal-dark);
  display: inline-block;
  margin-bottom: .6rem;
}

.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink a { color: var(--mustard); }
.bg-ink h1, .bg-ink h2 { color: var(--paper); }
.bg-teal { background: var(--teal-dark); color: var(--paper); }
.bg-teal h2 { color: var(--paper); }
.bg-teal .eyebrow { color: var(--paper); }
.bg-teal p { color: var(--paper); }
.bg-teal span { color: var(--paper); }

/* ===== reveal ===== */
.reveal { opacity: 1; }
.reveal.js-hidden {
  transform: translateY(26px);
  clip-path: inset(0 0 25% 0);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ===== feature: Stane li? ===== */
.feature {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--mustard);
  background-image: linear-gradient(135deg, rgba(255,255,255,.12), transparent 60%);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-form {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 1.4rem;
  box-shadow: 8px 8px 0 rgba(0,0,0,.25);
}
.fit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: .6em .7em;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 44px;
  accent-color: var(--teal);
}
.field textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: .9rem; }

.fit-results { margin-top: 1rem; display: grid; gap: .8rem; }
.fit-result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: .7rem;
}
.fit-diagram {
  width: 72px; height: 72px;
  border: 2px dashed var(--ink);
  position: relative;
  background: var(--paper-2);
  flex-shrink: 0;
}
.fit-diagram .footprint {
  position: absolute;
  background: var(--teal);
  border: 2px solid var(--ink);
  bottom: 0; left: 0;
}
.fit-score { font-family: var(--font-mono); font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.fit-result-card .name { font-weight: 700; margin: 0 0 .15rem; }
.fit-result-card .meta { font-size: .85rem; color: var(--ink); opacity: .75; margin: 0; }
.fit-empty { font-style: italic; }

.feature-copy ul { padding-left: 1.2em; }
.feature-copy li { margin-bottom: .5em; }

/* ===== product grid / strip ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem;
}
.product-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .6rem;
  margin: 0 -1.25rem;
  padding-inline: 1.25rem;
}
.product-strip .product-card { min-width: 230px; scroll-snap-align: start; }

.product-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 rgba(0,0,0,.2); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--ink); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card .cat { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card .price { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--red); margin-top: auto; }
.product-card .card-link { margin-top: .5rem; }

.catalog-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.catalog-filters button {
  border: 2px solid var(--ink);
  background: transparent;
  padding: .5em 1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  min-height: 44px;
}
.catalog-filters button.active { background: var(--ink); color: var(--paper); }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .thumb { border: 3px solid var(--ink); overflow: hidden; }
.product-detail .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-price { font-family: var(--font-mono); font-size: 1.8rem; color: var(--red); margin: .4rem 0 1rem; }
.detail-dims { font-family: var(--font-mono); font-size: .9rem; background: var(--paper-2); display: inline-block; padding: .3em .7em; border: 1px solid var(--ink); margin-bottom: 1rem; }
.qty-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.qty-row input { width: 70px; text-align: center; border: 2px solid var(--ink); min-height: 44px; border-radius: var(--radius); }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .5rem; border-bottom: 2px solid var(--ink); vertical-align: middle; }
.cart-item-row { display: flex; align-items: center; gap: .8rem; }
.cart-item-row img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--ink); }
.cart-table input[type="number"] { width: 60px; min-height: 40px; border: 2px solid var(--ink); text-align: center; }
.remove-btn { background: none; border: none; color: var(--red); font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 44px; }
.cart-summary { display: flex; justify-content: flex-end; }
.cart-summary table { font-family: var(--font-mono); }
.cart-total { font-size: 1.3rem; font-weight: 700; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }
.payment-note { background: var(--paper-2); border: 2px solid var(--ink); padding: 1rem; margin-top: 1rem; }
.empty-cart { text-align: center; padding: 3rem 0; }
.form-msg { margin-top: 1rem; padding: .8rem 1rem; border: 2px solid var(--ink); display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: var(--teal); color: var(--paper); border-color: var(--teal-dark); }
.form-msg.error { background: var(--red); color: var(--paper); border-color: #6e2416; }
.field-error { color: var(--red); font-size: .82rem; margin-top: .25rem; display: none; }
.field-error.show { display: block; }

/* ===== honeypot ===== */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== forms generic ===== */
form .field { margin-bottom: 1rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ===== newsletter / footer ===== */
.site-footer { background: var(--ink); color: var(--paper); border-top: 4px solid var(--teal); position: relative; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--mustard); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--mustard); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.footer-logo { width: 150px; height: 32px; margin-bottom: .8rem; }
.newsletter-form { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 160px; border: 2px solid var(--paper); background: transparent; color: var(--paper);
  padding: .6em .7em; border-radius: var(--radius); min-height: 44px;
}
.newsletter-form input::placeholder { color: var(--paper-2); }
.footer-bottom { border-top: 1px solid rgba(243,234,217,.25); padding: 1.2rem 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  background: var(--ink); color: var(--paper);
  border-top: 4px solid var(--mustard);
  padding: 1rem 1.25rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .92rem; max-width: 60ch; }
.cookie-inner a { color: var(--mustard); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ===== about / legal pages ===== */
.page-hero { background: var(--teal-dark); color: var(--paper); padding-block: 3rem; border-bottom: 3px solid var(--ink); }
.page-hero h1 { color: var(--paper); font-size: clamp(2rem, 5vw, 3.2rem); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.legal-nav a { border: 1px solid var(--ink); padding: .4em .8em; border-radius: 999px; font-size: .82rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border: 3px solid var(--ink); overflow: hidden; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(.12) saturate(1.1); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.value-card { border: 2px solid var(--ink); padding: 1.3rem; background: var(--paper); }
.value-card .icon { color: var(--teal-dark); margin-bottom: .5rem; width: 2em; height: 2em; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 0; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.1rem; max-width: 70ch; }

/* ===== 404 ===== */
.notfound { text-align: center; padding-block: 5rem; }
.notfound .big { font-size: clamp(4rem, 18vw, 10rem); margin: 0; color: var(--teal-dark); }

/* ===== misc ornaments ===== */
.ornament { width: 80px; height: 40px; margin: 1.5rem auto; display: block; color: var(--teal-dark); }
.seal { width: 120px; height: 120px; color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { border: 2px solid var(--ink); padding: 1.5rem; background: var(--paper-2); }
.contact-info-card .icon { color: var(--teal-dark); }

.steps-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; counter-reset: step; }
.steps-list li { list-style: none; border: 2px solid var(--ink); padding: 1.2rem; background: var(--paper); position: relative; }
.steps-list li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--mustard-dark);
  display: block; margin-bottom: .4rem;
}
