/* =========================================================
   Mäsiarstvo Domáce — Memphis 80s štýl
   ========================================================= */

:root {
  --sky: #2bb6e0;
  --sky-deep: #0f8fb8;
  --sun: #ffd23f;
  --sun-deep: #ffb400;
  --coral: #ff5d73;
  --ink: #1c1a1e;
  --cream: #fff8ea;
  --paper: #ffffff;
  --line: #1c1a1e;

  --font-display: Futura, "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
  --border-w: 3px;
  --container: 1180px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.05;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

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

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

section { position: relative; }

/* ---------- focus ring ---------- */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  min-height: 44px;
  border: var(--border-w) solid var(--line);
  border-radius: 100px;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform .25s ease;
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--cream); transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
.btn-sky { background: var(--sky); }
.btn-coral { background: var(--coral); color: var(--cream); }
.btn-coral:hover { color: var(--ink); }
.btn-outline { background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--border-w) solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.logo .logo-word { font-size: 1.15rem; line-height: 1.1; }
.logo .logo-word span { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--sky-deep); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 100px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: var(--border-w) solid var(--line);
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 22px; height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--cream);
  border: 2px solid var(--line);
  font-size: .72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 0%{transform:scale(1);} 35%{transform:scale(1.5) rotate(-8deg);} 70%{transform:scale(.9) rotate(4deg);} 100%{transform:scale(1);} }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: var(--border-w) solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; width: 100%; gap: 6px; }
  .main-nav a { display: block; font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 70px;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  animation: grain-shimmer 6s ease-in-out infinite;
}
@keyframes grain-shimmer {
  0%, 100% { opacity: .16; transform: translate(0,0) scale(1); }
  50% { opacity: .28; transform: translate(-1%, 1%) scale(1.02); }
}
.seal-rotate { animation: seal-spin 22s linear infinite; transform-origin: center; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.confetti-piece { animation: confetti-float 5s ease-in-out infinite; }
.confetti-piece:nth-child(2) { animation-delay: .6s; }
.confetti-piece:nth-child(3) { animation-delay: 1.2s; }
.confetti-piece:nth-child(4) { animation-delay: 1.8s; }
.confetti-piece:nth-child(5) { animation-delay: 2.4s; }
@keyframes confetti-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}
.hero-frame {
  position: relative;
  z-index: 2;
  border: var(--border-w) solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sun) 100%);
  padding: 40px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--cream);
}
.hero-lead { font-size: 1.15rem; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }

@media (max-width: 760px) {
  .hero-frame { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
}

/* ---------- section headings ---------- */
.section { padding: 70px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.divider { width: 100%; height: 36px; margin: 0 auto 10px; display: block; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease, clip-path .6s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.card {
  background: var(--paper);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: var(--border-w) solid var(--line); background: var(--sky); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--sun);
  border: 2px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.1rem; }
.card-body .price { font-family: var(--font-display); font-size: 1.25rem; color: var(--sky-deep); }
.card-body .unit { font-size: .82rem; color: #555; }
.card-foot { margin-top: auto; display: flex; gap: 8px; }
.card-foot .btn { flex: 1; font-size: .88rem; padding: .7em 1em; }

/* scroll-snap strip for mobile */
.product-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.product-strip .card { min-width: 230px; scroll-snap-align: start; }

@media (min-width: 761px) {
  .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); overflow: visible; }
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-bar button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  cursor: pointer;
}
.filter-bar button.active { background: var(--coral); color: var(--cream); }

/* ---------- feature: Porciovac ---------- */
.feature {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  border: var(--border-w) solid var(--line);
  padding: clamp(28px,4vw,56px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}
.feature .pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.feature h2 { color: var(--sun); }
.feature-form { display: grid; gap: 16px; }
.feature-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.feature-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature select, .feature input[type="number"] {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 2px solid var(--cream);
  background: #2a2730;
  color: var(--cream);
  padding: 0 14px;
  font-size: 1rem;
  accent-color: var(--coral);
}
.appetite-group { display: flex; gap: 10px; flex-wrap: wrap; }
.appetite-group label {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--cream);
  border-radius: 100px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  font-size: .85rem;
}
.appetite-group input { accent-color: var(--coral); }
.feature-result { background: var(--cream); color: var(--ink); border-radius: 18px; border: 2px solid var(--cream); padding: 20px; }
.feature-result ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-result li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px dashed #c9c2b2; padding-bottom: 8px; font-size: .92rem; }
.feature-result li:last-child { border-bottom: none; }
.feature-result .feature-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.2rem; margin-top: 10px; }
.feature-empty { opacity: .75; font-size: .9rem; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-form .field-row { grid-template-columns: 1fr; }
}

/* ---------- badge seal ---------- */
.badge-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.badge-row .seal { width: 110px; height: 110px; }

/* ---------- about / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img { border: var(--border-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); }
.split-media .squiggle { position: absolute; width: 90px; height: 90px; z-index: -1; }
.split-media .squiggle.tl { top: -24px; left: -24px; }
.split-media .squiggle.br { bottom: -24px; right: -24px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  accent-color: var(--coral);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--coral); }
.field-error { color: #c23a4e; font-size: .84rem; margin-top: 4px; display: none; }
.form-field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); margin-top: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #d9f2e3; }
.form-msg.err { background: #ffe1e6; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--line); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-info img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.qty-input { width: 64px; min-height: 40px; border: 2px solid var(--line); border-radius: 10px; text-align: center; }
.remove-btn { background: none; border: none; color: var(--coral); font-weight: 700; cursor: pointer; min-height: 44px; }
.cart-summary { display: flex; justify-content: flex-end; }
.cart-summary-box { background: var(--paper); border: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 340px; box-shadow: var(--shadow-hard-sm); }
.cart-summary-box .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary-box .total { font-family: var(--font-display); font-size: 1.3rem; border-top: 2px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.cart-empty { text-align: center; padding: 60px 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 30px;
  margin-top: 60px;
  position: relative;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h4 { color: var(--sun); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--cream); opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo .logo-word span { color: var(--sun); }
.footer-brand p { opacity: .8; max-width: 30ch; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 160px; min-height: 46px; border-radius: 100px; border: 2px solid var(--cream);
  background: transparent; color: var(--cream); padding: 0 16px;
}
.newsletter-form input[type="email"]::placeholder { color: #c9c2d1; }
.footer-bottom { border-top: 1px solid #3a3740; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; opacity: .8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: auto; right: 16px; bottom: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  border: var(--border-w) solid var(--sun);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-hard);
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: .9rem; }
.cookie-banner a { color: var(--sun); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-ghost:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal ul { padding-left: 1.2em; }
.page-head {
  padding: 48px 0 20px;
  text-align: center;
}
.page-head .kicker { display: block; }

/* ---------- faq ---------- */
.faq-item { border: 2px solid var(--line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; background: var(--paper); }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-plus { width: 20px; height: 20px; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary .icon-plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 18px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound svg { width: 220px; height: 220px; margin: 0 auto 20px; }

/* ---------- patterns ---------- */
.confetti-strip { width: 100%; height: 26px; display: block; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-detail .card-media { aspect-ratio: 1/1; border-radius: var(--radius); border: var(--border-w) solid var(--line); box-shadow: var(--shadow-hard); }
.product-detail .price { font-family: var(--font-display); font-size: 2rem; color: var(--sky-deep); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-row .qty-input { width: 72px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- steps / contact ---------- */
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; flex-shrink: 0;
}
.step-list { list-style: none; padding: 0; display: grid; gap: 24px; max-width: 640px; margin: 0 auto; }
.step-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: flex; align-items: center; gap: 12px; }
.contact-info .row svg { flex-shrink: 0; color: var(--sky-deep); }

/* ---------- utility ---------- */
.visually-hidden { position: absolute; left: -9999px; }
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.flow > * + * { margin-top: 1em; }

/* qa fix: off-canvas menu / strip widened the page on phones */
html,body{overflow-x:clip;}
