:root {
  --bg: #fbf7f0;
  --bg-alt: #f1e7d8;
  --card: #ffffff;
  --ink: #2b211a;
  --muted: #6e5f52;
  --wood: #a8723f;
  --wood-dark: #7a4f27;
  --red: #b3262e;
  --red-dark: #8f1d24;
  --green: #2f5d46;
  --line: #e4d7c4;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(91, 58, 26, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: .88rem; color: var(--muted); }
.err { color: var(--red); }

/* Horná lišta */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem var(--serif); }
.logo img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--red); }
.cartbtn {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 10px 16px;
  background: var(--ink); color: #fff; font: 600 .95rem var(--sans); cursor: pointer;
}
.cartbtn:hover { background: #000; }
.cartbtn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--red); font-size: .8rem; display: grid; place-items: center;
}
.cartbtn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* Úvod */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 480px; padding-top: 30px; padding-bottom: 30px; }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 1.6em; }
.hero__art { position: relative; height: 420px; }
.hang { position: absolute; width: 190px; border-radius: 18px; box-shadow: var(--shadow); transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
.hang--1 { left: 8%; top: 0; }
.hang--2 { left: 48%; top: 60px; width: 170px; animation-delay: -2s; }
.hang--3 { left: 22%; top: 210px; width: 160px; animation-delay: -4s; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { .hang { animation: none; } html { scroll-behavior: auto; } }

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 26px; cursor: pointer;
  font: 700 1rem var(--sans); text-decoration: none; transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary:disabled { background: #c9b9ad; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

/* Sekcie */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.sub { color: var(--muted); margin: -.2em 0 2em; }

/* Výrobky */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--bg-alt); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font: 700 1.25rem var(--serif); }
.size { font-size: .85rem; color: var(--muted); }
.card .btn { padding: 10px 18px; font-size: .95rem; }

/* O dielni */
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: var(--card); border-radius: var(--radius); padding: 16px 20px; border-left: 5px solid var(--wood); display: flex; flex-direction: column; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Postup */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font: 700 1.1rem var(--serif); margin-bottom: 10px; }
.steps strong { display: block; }

/* Pätička */
.footer { background: var(--ink); color: #e9ddd0; padding: 40px 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__links { display: flex; flex-direction: column; gap: 6px; }

/* Košík */
.overlay { position: fixed; inset: 0; background: rgba(30, 20, 12, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot .small { margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.iconbtn { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; }
.iconbtn:hover { background: var(--bg-alt); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.line__name { font-weight: 700; }
.line__price { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; background: var(--card); }
.qty button { border: 0; background: transparent; width: 32px; height: 30px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.line__sum { font-weight: 700; }
.agree { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  z-index: 60; transition: transform .25s ease, visibility .25s; font-weight: 600; pointer-events: none;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Textové stránky (podmienky, poďakovanie) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page .todo { background: #fff3cd; border: 1px solid #e8cf7a; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.center { text-align: center; }

@media (max-width: 820px) {
  .nav { display: none; }
  .cartbtn { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__art { height: 250px; }
  .hang { width: 120px; }
  .hang--2 { width: 110px; top: 30px; }
  .hang--3 { width: 105px; top: 120px; left: 70%; }
  .two { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 52px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .cartbtn span:not(.cartbtn__count) { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px; }
  .card p { display: none; }
  .card__meta { flex-direction: column; align-items: stretch; gap: 8px; }
  .card .btn { width: 100%; padding: 9px 10px; }
}
