/* Kuchyňské Potřeby Vařečka — Adriatic pebble style, adapted to chocolate/pink/cream palette */

:root {
  --cream: #fbf1e2;
  --cream-deep: #f1e0bf;
  --paper: #fffbf2;
  --chocolate: #3c2a1e;
  --chocolate-2: #6b4328;
  --chocolate-3: #8a5a37;
  --pink: #e9a6ae;
  --pink-deep: #c96b79;
  --pink-pale: #f6d9dc;
  --sun: #eeb24d;
  --ink: #2a1c13;
  --line: rgba(60, 42, 30, 0.14);
  --radius-pebble: 48% 52% 55% 45% / 55% 45% 55% 45%;
  --shadow-card: 0 18px 40px -22px rgba(42, 28, 19, 0.45);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

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

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

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

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

p { margin: 0 0 1em; }

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

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

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

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

.btn--primary {
  background: var(--chocolate);
  color: var(--paper);
  border-color: var(--chocolate);
}
.btn--primary::before { background: var(--pink-deep); }
.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(--chocolate); }

.btn--small { padding: .55em 1.1em; font-size: .88rem; }

.icon {
  width: 1.3em;
  height: 1.3em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

/* ---------- link underline draw ---------- */
.link-draw {
  position: relative;
  padding-bottom: .15em;
}
.link-draw::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.link-draw:hover::after, .link-draw:focus-visible::after { right: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 241, 226, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--chocolate);
}
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__word { width: 150px; height: 28px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: .96rem;
  font-weight: 600;
}
.nav__list a { color: var(--chocolate); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--chocolate);
  position: relative;
}
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 .3em;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--chocolate);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 1.8rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
    box-shadow: -18px 0 40px -20px rgba(0,0,0,.35);
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 1.2rem; font-size: 1.1rem; }
  .nav__close { position: absolute; top: 1.4rem; right: 1.4rem; background: none; border: none; min-width: 44px; min-height: 44px; color: var(--chocolate); cursor: pointer; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 5rem;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 90% at 20% -10%, var(--pink-pale) 0%, var(--cream) 55%, var(--cream-deep) 100%);
}
.hero__caustic {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: var(--radius-pebble);
  background: radial-gradient(circle at 35% 30%, rgba(238, 178, 77, .55), rgba(233, 166, 174, .35) 55%, transparent 75%);
  filter: blur(10px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 5%) scale(1.07); }
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: .6rem;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em);
  animation: riseIn .7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
.hero__lede { font-size: 1.15rem; max-width: 34em; color: var(--chocolate-2); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero__art {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin: 0 auto;
}
.hero__plane {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__plane--back svg, .hero__plane--mid svg { width: 100%; height: 100%; }
.hero__photo {
  position: absolute;
  width: 72%;
  aspect-ratio: 4/5;
  left: 14%;
  top: 10%;
  border-radius: var(--radius-pebble);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 320px; margin-top: 1rem; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section-head { max-width: 46em; margin-bottom: 2.4rem; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--pink-deep);
  margin-bottom: .6rem;
}
.divider { display: block; width: 100%; height: auto; margin: 0; }
.divider--flip { transform: scaleY(-1); }

/* ---------- reveal ---------- */
.reveal { opacity: 1; }
.js .reveal { 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); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--1 { transition-delay: .06s; }
.reveal--2 { transition-delay: .14s; }
.reveal--3 { transition-delay: .22s; }
.reveal--4 { transition-delay: .3s; }

/* ---------- feature strip (story) ---------- */
.story {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.story__art { position: relative; aspect-ratio: 5/4; }
.story__art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-pebble); box-shadow: var(--shadow-card); }
.story__badge { position: absolute; width: 112px; height: 112px; right: -18px; bottom: -18px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- formometr (signature feature) ---------- */
.formometr {
  background: var(--chocolate);
  color: var(--cream);
  border-radius: 40px;
  padding: 3rem clamp(1.4rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.formometr::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  border-radius: var(--radius-pebble);
  background: radial-gradient(circle, rgba(238,178,77,.35), transparent 70%);
}
.formometr h2 { color: var(--cream); }
.formometr .eyebrow { color: var(--sun); }
.formometr__lede { max-width: 46em; color: var(--pink-pale); }
.formometr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) { .formometr__grid { grid-template-columns: 1fr; } }
.formometr__panel {
  background: rgba(251, 241, 226, .08);
  border: 1px solid rgba(251, 241, 226, .2);
  border-radius: 24px;
  padding: 1.6rem;
}
.formometr__panel h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; margin-bottom: .9rem; }
.form-row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; min-width: 0; }
.field label { font-weight: 600; }
.field input, .field select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6em .7em;
  font-size: .95rem;
  color: var(--ink);
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.formometr__panel .field input, .formometr__panel .field select { background: rgba(255,255,255,.92); }
.ingredient-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) auto; gap: .5rem; margin-bottom: .6rem; align-items: end; }
@media (max-width: 500px) { .ingredient-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ingredient-row button {
  background: none; border: 1px solid rgba(251,241,226,.4); color: var(--cream);
  border-radius: 10px; min-height: 44px; min-width: 44px; cursor: pointer;
}
.formometr__result {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(251, 241, 226, .12);
}
.formometr__ratio { font-size: 1.6rem; font-family: var(--font-display); color: var(--sun); margin-bottom: .5rem; }
.formometr__result table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.formometr__result td { padding: .35rem .2rem; border-bottom: 1px solid rgba(251,241,226,.18); }
.formometr__actions { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }

/* ---------- product grid / strip ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.6rem;
}
.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
@media (min-width: 760px) {
  .product-strip { grid-auto-columns: 280px; }
}
.product-strip .product-card { scroll-snap-align: start; }

.product-card {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover, .product-card:focus-within { transform: translateY(-8px); box-shadow: 0 26px 46px -20px rgba(42,28,19,.5); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pink-deep); font-weight: 700; }
.product-card__name { font-size: 1.1rem; margin: 0; }
.product-card__short { font-size: .9rem; color: var(--chocolate-2); flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.product-card__price { font-weight: 700; font-size: 1.1rem; color: var(--chocolate); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .5em 1.1em;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  color: var(--chocolate-2);
}
.filter-btn.is-active { background: var(--chocolate); color: var(--cream); border-color: var(--chocolate); }

/* ---------- info strip ---------- */
.info-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.6rem;
  text-align: center;
  font-weight: 600;
  color: var(--chocolate-2);
}
.info-strip span { display: inline-flex; align-items: center; gap: .5em; }
.info-strip .icon { color: var(--pink-deep); }

/* ---------- badge / ornament ---------- */
.badge-strip { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.badge-strip svg { width: 90px; height: 90px; }

/* ---------- product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__img { border-radius: var(--radius-pebble); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 1/1; }
.product-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-family: var(--font-display); color: var(--chocolate); margin: .4rem 0 1rem; }
.product-detail__specs { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.product-detail__specs li { padding-left: 1.4em; position: relative; }
.product-detail__specs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-deep); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { background: var(--cream-deep); border: none; width: 44px; height: 44px; cursor: pointer; font-size: 1.1rem; }
.qty-control input { width: 3em; text-align: center; border: none; background: transparent; font-size: 1rem; height: 44px; }
.add-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cart-table th, .cart-table td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.cart-item__name { font-weight: 700; }
.cart-remove { background: none; border: none; color: var(--pink-deep); cursor: pointer; font-weight: 600; min-height: 44px; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-summary { display: flex; justify-content: flex-end; gap: 2rem; align-items: baseline; font-size: 1.2rem; margin: 1.5rem 0; }
.cart-summary strong { font-family: var(--font-display); font-size: 1.6rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 640px; }
.checkout-note { background: var(--pink-pale); border-radius: 18px; padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; font-size: .94rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form .field--full { grid-column: 1/-1; }
.form textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .8em; font: inherit; min-height: 130px; resize: vertical;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
input, select, textarea { accent-color: var(--pink-deep); font-family: inherit; }
.form-msg { font-size: .92rem; padding: .8em 1em; border-radius: 12px; display: none; }
.form-msg.is-success { display: block; background: #e4f0e0; color: #2c4a24; }
.form-msg.is-error { display: block; background: #f6dede; color: #6b1f1f; }
.field-error { color: #9a2a2a; font-size: .82rem; min-height: 1.1em; display: block; }

/* ---------- newsletter / cta ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--pink-deep), var(--chocolate-2));
  color: var(--cream);
  border-radius: 40px;
  padding: 3rem clamp(1.4rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band form { display: flex; gap: .6rem; flex-wrap: wrap; }
.cta-band input[type="email"] { flex: 1; min-width: 180px; border-radius: 999px; border: none; padding: 0 1.1em; min-height: 48px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- content pages (legal/faq) ---------- */
.content-page h2 { margin-top: 2rem; }
.content-page { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--pink-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .7rem; color: var(--chocolate-2); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--chocolate);
  color: var(--cream);
  border-radius: 24px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  display: grid;
  gap: 1rem;
  z-index: 200;
  transform: translateY(140%);
  transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-banner a { color: var(--sun); }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--chocolate);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--sun); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-grid a { color: var(--cream); }
.footer-brand .brand__mark { width: 40px; height: 40px; }
.footer-brand .brand__word { width: 140px; height: 26px; }
.footer-brand { color: var(--cream); margin-bottom: 1rem; }
.footer-brand p { color: rgba(251,241,226,.75); font-size: .92rem; max-width: 26em; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; border-radius: 999px; border: none; padding: 0 1em; min-height: 46px; }
.footer-bottom {
  border-top: 1px solid rgba(251,241,226,.18);
  margin-top: 3rem;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(251,241,226,.65);
}

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page svg { width: 200px; height: 200px; margin: 0 auto 1.5rem; }

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

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