/* ===== Pletna Veslanje – Y2K chrome / liquid metal ===== */

:root {
  --plum-900: #2c1227;
  --plum-700: #54213f;
  --plum-600: #6c2c52;
  --plum-500: #8a3d6c;
  --blush-200: #ffe3ec;
  --blush-300: #ffc1d8;
  --blush-400: #f497bd;
  --gold-300: #f6d98a;
  --gold-500: #e3b65a;
  --gold-700: #a97a2b;
  --cream: #fff6ee;
  --chrome: linear-gradient(135deg, #fbfbff 0%, #e2e2ef 28%, #ffffff 48%, #cfcfe0 66%, #f3f0f8 100%);
  --ink: #241121;
  --ink-soft: #5b4555;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 40px -20px rgba(44, 18, 39, .45);
  --shadow-pop: 0 10px 24px -10px rgba(44, 18, 39, .5);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --ff-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0 0 .4em; line-height: 1.08; }
p { line-height: 1.6; margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 4px; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .6em;
}

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

/* ===== buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--plum-900);
  background: var(--gold-500);
  color: var(--plum-900);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--plum-900);
  z-index: -1;
  transition: left .35s var(--ease);
}
.btn--sweep:hover::before, .btn--sweep:focus-visible::before { left: 0; }
.btn--sweep:hover, .btn--sweep:focus-visible { color: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--plum-900); }
.btn--small { padding: 10px 18px; font-size: .85rem; width: 100%; }
.btn--outline { background: transparent; border-color: var(--plum-700); color: var(--plum-700); }
.btn--outline::before { background: var(--plum-700); }
.btn--outline:hover { color: var(--cream); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--chrome);
  border-bottom: 2px solid var(--plum-900);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 150px; height: 37px; display: block; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--plum-900);
  background: var(--cream);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--plum-900);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__links { display: flex; gap: 20px; list-style: none; font-weight: 600; font-size: .95rem; }
.site-nav__links a {
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold-700);
  transition: right .25s var(--ease);
}
.site-nav__links a:hover::after, .site-nav__links a[aria-current]::after { right: 0; }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--plum-900);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  min-height: 44px;
}
.cart-pill [data-cart-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--plum-900);
  font-size: .78rem;
}
.cart-pill [data-cart-count].bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 65px;
    width: min(320px, 82vw);
    height: calc(100vh - 65px);
    background: var(--plum-900);
    color: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
    z-index: 50;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__links { flex-direction: column; gap: 18px; font-size: 1.1rem; }
  .cart-pill { margin-top: 20px; }
  body.nav-open { overflow: hidden; }
}

/* ===== hero ===== */
.hero {
  padding: 36px 20px 60px;
  background: linear-gradient(180deg, var(--blush-200), var(--cream) 70%);
  position: relative;
  overflow: hidden;
}
.hero__frame {
  max-width: 1180px;
  margin: 0 auto;
  border: 6px solid var(--plum-900);
  border-radius: var(--radius-lg);
  background: var(--chrome);
  padding: clamp(24px, 5vw, 56px);
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px solid var(--gold-500);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}
.hero__text { position: relative; z-index: 2; }
.hero__headline {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  margin: 0 0 .5rem;
  overflow: hidden;
}
.hero__headline span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.hero__headline.in-view span { transform: translateY(0); opacity: 1; }
.hero__headline span:nth-child(1) { transition-delay: .05s; }
.hero__headline span:nth-child(2) { transition-delay: .16s; }
.hero__headline span:nth-child(3) { transition-delay: .27s; }
.hero__headline span:nth-child(4) { transition-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
  .hero__headline span { transition: none; transform: none; opacity: 1; }
}
.hero__lede { font-size: 1.1rem; max-width: 460px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art svg { width: 100%; height: 100%; }
.hero__badge {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 92px;
  height: 92px;
  z-index: 3;
}
@media (max-width: 860px) {
  .hero__frame { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 320px; margin: 0 auto; }
}

/* ===== sections ===== */
.section { padding: clamp(48px, 8vw, 92px) 20px; }
.section--plum { background: var(--plum-900); color: var(--blush-200); }
.section--plum p { color: var(--blush-300); }
.section--blush { background: var(--blush-200); }
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section--plum .eyebrow { color: var(--gold-300); }

.divider { display: block; width: 100%; height: auto; }
.divider--sm { width: 100%; height: 28px; }

/* ===== reveal ===== */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.hero__headline) {
    opacity: 0;
    transform: translateY(26px);
    clip-path: inset(0 0 12% 0);
    transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease);
  }
  .reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

/* ===== cards / catalog ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1.5px solid var(--plum-900);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -22px rgba(44,18,39,.5); }
.card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; text-decoration: none; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__price {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--gold-500);
  color: var(--plum-900);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .9rem;
  border: 1.5px solid var(--plum-900);
}
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.card__cat { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); margin: 0; }
.card__title { font-size: 1.2rem; margin-bottom: .2em; }
.card__title a { text-decoration: none; }
.card__text { font-size: .92rem; flex-grow: 1; }
.card__meta { display: flex; gap: 16px; font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; flex-wrap: wrap; }
.card__meta--lg { font-size: .95rem; margin-bottom: 18px; }

/* horizontal scroll-snap strip (home, mobile) */
.strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  margin: 0 auto;
  max-width: 1180px;
  -webkit-overflow-scrolling: touch;
}
.strip .card { min-width: 240px; scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 861px) {
  .strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .strip .card { min-width: 0; }
}

/* ===== veslomer (signature feature) ===== */
.veslomer {
  max-width: 980px;
  margin: 0 auto;
  background: var(--chrome);
  border: 3px solid var(--plum-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.veslomer h3 { font-size: 1.3rem; }
.veslomer-field { margin-bottom: 18px; }
.veslomer-field > span { display: block; font-weight: 700; margin-bottom: 8px; font-size: .9rem; }
.veslomer-options { display: flex; flex-wrap: wrap; gap: 8px; }
.veslomer-options label {
  border: 1.5px solid var(--plum-700);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .84rem;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.veslomer-options input { position: absolute; opacity: 0; pointer-events: none; }
.veslomer-options input:checked + span,
.veslomer-options label:has(input:checked) { background: var(--plum-900); color: var(--gold-300); }
.veslomer-options label:has(input:checked) { border-color: var(--plum-900); }
#v-time {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--plum-700);
  font-size: 1rem;
  background: #fff;
}
.veslomer-result {
  background: #fff;
  border: 1.5px solid var(--plum-900);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  align-self: start;
}
.veslomer-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--blush-300); font-size: .95rem; color: var(--plum-900); }
.veslomer-note { font-size: .88rem; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); }
.veslomer-note.veslomer-note--ok { background: var(--blush-200); color: var(--plum-700); }
.veslomer-note.veslomer-note--warn { background: var(--gold-300); color: var(--plum-900); }
@media (max-width: 760px) { .veslomer { grid-template-columns: 1fr; } }

/* ===== about / content blocks ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-md); border: 3px solid var(--plum-900); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.split__ornament { position: absolute; width: 90px; height: 90px; bottom: -24px; right: -24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.badges { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 30px; }
.badges figure { margin: 0; text-align: center; width: 120px; }
.badges svg { width: 100%; height: auto; }
.badges figcaption { font-size: .78rem; margin-top: 8px; font-weight: 700; }

/* ===== product detail ===== */
.product {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product__media img { border-radius: var(--radius-md); border: 3px solid var(--plum-900); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.product__price { font-family: var(--ff-mono); font-size: 1.4rem; color: var(--gold-700); font-weight: 700; margin-bottom: 16px; }
.add-form { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.qty-row { display: flex; gap: 12px; align-items: center; }
.qty-row input { width: 80px; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--plum-700); font-size: 1rem; }
.product__note { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }

/* ===== forms ===== */
.form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--plum-700);
  font: inherit;
  background: #fff;
  accent-color: var(--plum-700);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 700; font-size: .92rem; }
.form-status--ok { color: #1c7a4f; }
.form-status--error { color: #b3273f; }
.notice { max-width: 640px; margin: 0 auto; text-align: center; padding: 20px; border-radius: var(--radius-md); background: var(--blush-200); }
.notice--error { background: var(--gold-300); }

/* ===== cart page ===== */
.cart-grid { max-width: 820px; margin: 0 auto; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--blush-300);
}
.cart-line__name { display: flex; flex-direction: column; }
.cart-line__name span { font-size: .82rem; color: var(--ink-soft); }
.cart-line__qty { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.cart-line__qty input { width: 56px; padding: 6px; border-radius: 8px; border: 1.5px solid var(--plum-700); }
.cart-line__price { font-weight: 700; font-family: var(--ff-mono); }
.icon-btn { background: none; border: none; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--plum-700); }
.icon-btn:hover { background: var(--blush-200); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; padding: 18px 0; font-weight: 700; }
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 1fr auto; grid-template-areas: "name price" "qty remove"; }
  .cart-line__name { grid-area: name; }
  .cart-line__price { grid-area: price; }
  .cart-line__qty { grid-area: qty; }
  .icon-btn { grid-area: remove; justify-self: end; }
}

/* ===== legal pages ===== */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { margin: 0 0 1em 1.2em; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: #fff;
  border: 1.5px solid var(--plum-900);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--plum-900);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  z-index: 200;
  border: 2px solid var(--gold-500);
}
.cookie-banner p { color: var(--blush-200); font-size: .9rem; margin-bottom: 14px; }
.cookie-banner a { color: var(--gold-300); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== footer ===== */
.site-footer { background: var(--plum-900); color: var(--blush-200); padding: 60px 20px 30px; }
.footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer h4 { color: var(--gold-300); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__brand .logo svg { width: 150px; height: 37px; filter: brightness(1.1); }
.footer__brand p { color: var(--blush-300); max-width: 280px; margin-top: 12px; font-size: .9rem; }
.newsletter-form { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 140px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--gold-500); background: rgba(255,255,255,.06); color: var(--cream); min-height: 44px; }
.newsletter-form input::placeholder { color: var(--blush-300); }
.footer__bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--cream);
}
.footer__bottom p { color: var(--cream); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 100px 20px; max-width: 560px; margin: 0 auto; }
.page-404 svg { width: 220px; height: 160px; margin: 0 auto 20px; }

/* continuous subtle element */
.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.spin-slow { animation: spin 22s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .float-slow, .spin-slow { animation: none; } }
