/* Kosárfonó Vessző — single-line craft style */

:root {
  --petrol: #1d4e59;
  --petrol-dark: #123036;
  --petrol-light: #3c7482;
  --apricot: #e8935a;
  --apricot-dark: #c96f3a;
  --beige: #f1e6d3;
  --beige-light: #faf5ea;
  --paper: #fffaf0;
  --ink: #221f1a;
  --ink-soft: #55504a;
  --line: rgba(34, 31, 26, 0.12);
  --radius: 18px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --dur: 0.6s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.01s; }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige-light);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--petrol-dark);
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.3em;
  height: 1.3em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petrol-dark);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--petrol-dark);
  background: transparent;
  color: var(--petrol-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  min-height: 44px;
  z-index: 0;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--petrol-dark);
  transition: left var(--dur) 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(--apricot);
  border-color: var(--apricot-dark);
  color: var(--petrol-dark);
}
.btn-primary::before { background: var(--petrol-dark); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--paper); }
.btn-ghost {
  border-color: var(--paper);
  color: var(--paper);
}
.btn-ghost::before { background: var(--paper); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--petrol-dark); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--beige-light);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--petrol-dark);
}
.brand-mark { width: 44px; height: 34px; stroke: var(--petrol-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-word em { color: var(--apricot-dark); font-style: normal; }

.site-nav {
  display: flex;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.2rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--apricot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--petrol-dark);
  min-width: 44px; min-height: 44px;
  justify-content: center;
}
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  background: var(--apricot);
  color: var(--petrol-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 1.3em;
  height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3em;
}
.cart-count.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--petrol-dark);
  min-width: 44px; min-height: 44px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 5.5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility var(--dur);
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--beige-light), var(--beige) 85%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  margin-bottom: 0.6rem;
}
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-tabs button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-tabs button.is-active {
  background: var(--petrol-dark);
  border-color: var(--petrol-dark);
  color: var(--paper);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  perspective: 1000px;
}
.hero-pane {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -20px rgba(18,48,54,0.35);
  transition: transform calc(var(--dur) * 1.1) var(--ease), opacity calc(var(--dur) * 0.9) var(--ease);
}
.hero-pane img { width: 100%; height: 100%; object-fit: cover; }
.hero-pane--a { transform: rotate(-2deg) translate(-6px, -4px); z-index: 2; }
.hero-pane--b { transform: rotate(2deg) translate(10px, 10px); z-index: 1; opacity: 0.9; }
.hero-media.is-shuffling .hero-pane--a { transform: rotate(-9deg) translate(-38px, -22px); opacity: 0.35; }
.hero-media.is-shuffling .hero-pane--b { transform: rotate(9deg) translate(42px, 26px); opacity: 0.35; }
.hero-illustration {
  position: absolute;
  right: -10%;
  bottom: -8%;
  width: 55%;
  height: auto;
  stroke: var(--apricot);
  fill: none;
  stroke-width: 1.4;
  z-index: 3;
  opacity: 0.9;
}

/* ---------- Draw-on-scroll line art ---------- */
.draw-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.draw-path.draw-armed {
  stroke-dasharray: var(--len, 0);
  stroke-dashoffset: var(--len, 0);
}
.draw-path.draw-armed.is-drawn { stroke-dashoffset: 0; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(26px);
  clip-path: inset(0 0 15% 0);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: opacity calc(var(--dur) * 1.3) var(--ease), transform calc(var(--dur) * 1.3) var(--ease), clip-path calc(var(--dur) * 1.3) var(--ease);
}
.reveal.js-hidden.in-view { }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--apricot-dark);
  margin-bottom: 0.6rem;
}

.divider {
  width: 100%;
  height: 48px;
  margin: 1rem 0;
  stroke: var(--petrol-light);
  fill: none;
  stroke-width: 1.4;
}

/* ---------- Basket finder (signature feature) ---------- */
.finder {
  background: var(--petrol-dark);
  color: var(--paper);
  border-radius: calc(var(--radius) * 1.3);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.finder h2, .finder .eyebrow { color: var(--paper); }
.finder .eyebrow { color: var(--apricot); }
.finder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.finder-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.finder-form select {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: var(--petrol);
  color: var(--paper);
  font-size: 1rem;
  min-height: 44px;
}
.finder-result {
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 1.5rem;
  min-height: 180px;
}
.finder-result-empty { color: rgba(255,255,255,0.65); }
.finder-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.finder-card img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.finder-card h3 { color: var(--paper); font-size: 1.1rem; margin-bottom: 0.2rem; }
.finder-card .price { color: var(--apricot); font-family: var(--font-mono); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px -22px rgba(18,48,54,0.3); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(var(--dur) * 1.2) var(--ease); }
.product-card:hover .thumb img { transform: scale(1.07); }
.product-card .body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.product-card .size { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
.product-card .price { font-family: var(--font-mono); font-weight: 700; color: var(--petrol-dark); margin-top: auto; font-size: 1.1rem; }
.product-card .card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }

.filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-row button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}
.filter-row button.is-active { background: var(--petrol-dark); color: var(--paper); border-color: var(--petrol-dark); }

/* horizontal scroll-snap strip (mobile) */
.scroll-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.scroll-strip .product-card { min-width: 240px; scroll-snap-align: start; }
@media (min-width: 760px) {
  .scroll-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: visible; }
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--petrol-dark); font-weight: 700; margin: 0.5rem 0 1.2rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.qty-row input {
  width: 4.5rem;
  padding: 0.6em;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  text-align: center;
  min-height: 44px;
}
.specs { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; padding: 0.65em 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--ink-soft); }

/* ---------- Badge ---------- */
.badge-seal { width: 120px; height: 120px; stroke: var(--petrol); fill: none; stroke-width: 1.2; }

/* ---------- Cards / feature trio (used sparingly, not generic 3-col icon cards) ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.info-strip .item h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; }
.info-strip .item .icon { color: var(--apricot-dark); width: 1.6em; height: 1.6em; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: 0.9em 0.6em; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table .cart-item-name { display: flex; align-items: center; gap: 0.8rem; }
.cart-qty { width: 3.6rem; padding: 0.4em; border-radius: 6px; border: 1.5px solid var(--line); text-align: center; min-height: 40px; }
.cart-remove { background: none; border: none; color: var(--apricot-dark); cursor: pointer; font-weight: 600; min-height: 44px; }
.cart-summary { display: flex; justify-content: flex-end; }
.cart-summary dl { display: grid; grid-template-columns: auto auto; gap: 0.4rem 1.5rem; font-size: 1.1rem; min-width: 260px; }
.cart-summary dt { color: var(--ink-soft); }
.cart-summary dd { text-align: right; font-family: var(--font-mono); margin: 0; }
.cart-empty { padding: 3rem 0; text-align: center; color: var(--ink-soft); }

.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; margin-top: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75em 0.9em;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  accent-color: var(--apricot-dark);
  min-height: 44px;
}
textarea { min-height: 120px; }
.field { margin-bottom: 1.1rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 0.8rem; font-weight: 600; }
.form-note.is-error { color: #b23b2e; }
.form-note.is-ok { color: var(--petrol-dark); }
.field-error { color: #b23b2e; font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #b23b2e; }
.field.has-error .field-error { display: block; }

/* ---------- Newsletter ---------- */
.newsletter-row { display: flex; gap: 0.6rem; }
.newsletter-row input { flex: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-dark);
  color: var(--beige-light);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--beige-light); }
.site-footer .brand-mark { stroke: var(--apricot); }
.site-footer .brand-word { color: var(--beige-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand p { color: rgba(255,255,255,0.75); max-width: 30ch; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.6rem 2rem; }
.footer-links a:hover { text-decoration: underline; }
.newsletter-form .form-note { color: var(--apricot); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--petrol-dark);
  color: var(--paper);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  z-index: 300;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin-bottom: 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.cookie-banner a { color: var(--apricot); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

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

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content { max-width: 70ch; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq-item summary { font-weight: 700; cursor: pointer; 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(--apricot-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 0.8rem; color: var(--ink-soft); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-page svg { width: 220px; height: 160px; margin: 0 auto 1.5rem; stroke: var(--apricot); fill: none; stroke-width: 1.4; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.ornament { width: 160px; height: 90px; stroke: var(--petrol-light); fill: none; stroke-width: 1.3; }

@media (max-width: 920px) {
  .hero-grid, .about-grid, .product-detail, .checkout-grid, .finder-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .info-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .cart-summary dl { min-width: 0; width: 100%; }
}
