/* Syráreň Salaš Hora — Bento Glass */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --ink: #121a26;
  --ink-2: #1c2a3c;
  --ink-soft: #2b3c53;
  --sand: #efe4d2;
  --sand-2: #e4d3ae;
  --cream: #faf6ee;
  --coral: #e2654b;
  --coral-2: #c94f39;
  --coral-soft: #f3cab9;
  --text: #1b2430;
  --text-soft: #5b6472;
  --line: rgba(18, 26, 38, 0.13);
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -24px rgba(18, 26, 38, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-dark: rgba(28, 42, 60, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --font-display: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word { width: 150px; height: 30px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--coral);
  transition: right 0.28s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
}
.cart-link svg { width: 18px; height: 18px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.cart-count.bump { transform: scale(1.4); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 100px 28px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
    z-index: 600;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--cream); width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  isolation: isolate;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--ink);
  transition: left 0.32s ease;
  z-index: 0;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary::before { background: var(--coral-2); }
.btn-primary:hover::before, .btn-primary:focus-visible::before { left: 0; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark::before { background: var(--coral); }
.btn-dark:hover::before, .btn-dark:focus-visible::before { left: 0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--cream); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before { left: 0; }
.btn-ghost.on-dark { color: var(--cream); border-color: rgba(250,246,238,0.6); }
.btn-ghost.on-dark::before { background: var(--cream); }
.btn-ghost.on-dark:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero / marquee ---------- */
.hero {
  position: relative;
  padding: 48px 0 20px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 0.3em;
}
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }

.marquee {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee span em { color: var(--coral); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 60px 0;
}
.bento-tile {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  padding: 30px;
  overflow: hidden;
}
.bento-tile.dark { background: var(--glass-bg-dark); color: var(--cream); }
.bento-tile.dark p { color: rgba(250,246,238,0.78); }
.bento-tile.dark h3, .bento-tile.dark h2 { color: var(--cream); }
.bento-tile.sand { background: rgba(239, 228, 210, 0.85); }
.bento-tile.feature { grid-column: span 4; grid-row: span 2; padding: 40px; }
.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.span-3 { grid-column: span 3; }
.bento-tile.span-1 { grid-column: span 1; }
.bento-tile.img-tile { padding: 0; }
.bento-tile.img-tile img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.bento-tile .tile-icon { width: 34px; height: 34px; color: var(--coral); margin-bottom: 14px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile.feature { grid-column: span 2; }
  .bento-tile.span-3 { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile.feature, .bento-tile.span-2, .bento-tile.span-3 { grid-column: span 1; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Section basics ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }

.divider { display: block; width: 100%; height: 48px; margin: 10px 0; }
.divider svg { width: 100%; height: 100%; }

/* ---------- Compass (signature feature) ---------- */
.compass {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 760px) { .compass { grid-template-columns: 1fr; } }
.compass-controls { display: flex; flex-direction: column; gap: 22px; }
.compass-field label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--ink-soft);
}
.compass-field.dark label { color: rgba(250,246,238,0.85); }
input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
}
.bento-tile.dark .chip { border-color: rgba(250,246,238,0.35); background: rgba(250,246,238,0.08); color: var(--cream); }
.chip.active { background: var(--coral); color: #fff; border-color: var(--coral); }
.compass-result {
  background: rgba(250,246,238,0.9);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  gap: 16px;
}
.bento-tile.dark .compass-result { background: rgba(250,246,238,0.12); }
.compass-result img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.compass-result-text h4 { margin-bottom: 4px; }
.compass-result-text .pairing { font-size: 0.85rem; font-family: var(--font-mono); }
.match-score { font-family: var(--font-mono); font-size: 0.75rem; color: var(--coral); }

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .thumb img { transform: scale(1.07); }
.product-card .pc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card .pc-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-soft); }
.product-card .pc-price { font-family: var(--font-mono); font-weight: 700; color: var(--coral-2); font-size: 1.05rem; }
.product-card .pc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.product-strip-wrap { overflow: visible; }
@media (max-width: 760px) {
  .product-grid.scroll-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .product-grid.scroll-strip .product-card { scroll-snap-align: start; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-detail .price-row .price { font-family: var(--font-mono); font-size: 1.8rem; color: var(--coral-2); font-weight: 700; }
.attr-list { list-style: none; display: grid; gap: 10px; margin: 20px 0; padding: 16px 18px; background: var(--sand); border-radius: var(--radius-sm); }
.attr-list li { display: flex; justify-content: space-between; font-size: 0.9rem; }
.attr-list li strong { color: var(--ink); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; border: none; background: none; font-size: 1.1rem; cursor: pointer; }
.qty-control input { width: 44px; border: none; text-align: center; font-family: var(--font-mono); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  accent-color: var(--coral);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.check input { width: 20px; height: 20px; margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e4f3e8; color: #2a6b3f; }
.form-msg.err { background: #fbe3e0; color: #a23b2a; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--text-soft); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-info img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-remove { background: none; border: none; color: var(--coral-2); cursor: pointer; font-size: 0.85rem; }
.cart-totals { display: flex; justify-content: flex-end; }
.totals-box { min-width: 280px; background: var(--sand); border-radius: var(--radius-sm); padding: 20px; }
.totals-box .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.totals-box .row.grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; }
.empty-cart { text-align: center; padding: 60px 0; }

/* ---------- Badges / seal ---------- */
.seal { width: 120px; height: 120px; }
.badge-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.badge-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.badge-item svg { width: 26px; height: 26px; color: var(--coral); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 30px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-word { color: var(--cream); width: 160px; height: 32px; }
.footer-brand p { color: rgba(250,246,238,0.7); max-width: 32ch; margin-top: 14px; }
.site-footer h4 { color: var(--cream); font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(250,246,238,0.78); font-size: 0.92rem; }
.footer-links a:hover { color: var(--coral); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 140px; border-radius: 999px; border: 1px solid rgba(250,246,238,0.3); background: rgba(250,246,238,0.08); color: var(--cream); padding: 10px 16px; }
.newsletter-form input::placeholder { color: rgba(250,246,238,0.5); }
.footer-bottom { border-top: 1px solid rgba(250,246,238,0.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(250,246,238,0.6); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  z-index: 900;
  display: none;
  gap: 16px;
  flex-direction: column;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { color: rgba(250,246,238,0.85); margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--sand); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero art continuous motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .steam {
    animation: steamRise 4.5s ease-in-out infinite;
    transform-origin: bottom center;
  }
  .steam2 { animation-delay: 1.4s; }
}
@keyframes steamRise {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.75; }
  50% { transform: translateY(-14px) scaleY(1.18); opacity: 0.25; }
}

/* ---------- Pattern / seal decorations ---------- */
.ornament-pattern { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.seal-wrap { display: flex; align-items: center; gap: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.js-hidden {
    opacity: 0;
    transform: translateY(26px);
    clip-path: inset(0 0 12% 0);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1), clip-path 0.7s cubic-bezier(.2,.7,.2,1);
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Simple page header (legal pages etc) ---------- */
.page-head { padding: 54px 0 20px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose ul { margin: 1em 0; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-bg); overflow: hidden; }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--coral); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 20px; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 100px 0; }
.page-404 .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--coral); margin: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.inline-icon { width: 18px; height: 18px; }
