/* Masážní Pomůcky — Bauhaus toy-blocks design system */

:root {
  --aubergine: #3b1f3a;
  --aubergine-2: #5a2f57;
  --lime: #c6ff3d;
  --lime-dark: #9fd91a;
  --ivory: #f7f2e8;
  --ink: #221321;
  --paper: #fffdf8;
  --line: rgba(34,19,33,.14);
  --radius: 14px;
  --radius-lg: 28px;
  --shadow-block: 6px 6px 0 var(--ink);
  --shadow-soft: 0 18px 40px -20px rgba(34,19,33,.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Menlo", monospace;
  --container: 1180px;
}

* { 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(--ivory);
  line-height: 1.55;
  -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); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .5em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.grid { display: grid; gap: 1.5rem; }
.flow > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.text-center { text-align: center; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--aubergine-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); overflow: hidden;
  min-height: 44px; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-block);
  z-index: 0;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--ink); z-index: -1; transition: left .3s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ivory); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn-lime { background: var(--lime); }
.btn-lime:hover, .btn-lime:focus-visible { color: var(--ink); background: var(--lime-dark); }
.btn-lime::before { background: var(--lime-dark); }
.btn-dark { background: var(--aubergine); color: var(--ivory); border-color: var(--aubergine); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost-dark { background: transparent; color: var(--ivory); border-color: var(--ivory); box-shadow: none; }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); background: var(--ivory); }
.btn-ghost-dark::before { background: var(--ivory); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ivory); border-bottom: 2px solid var(--ink); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.logo-word { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.logo-word em { font-style: normal; color: var(--aubergine); }
.burger { display: none; background: none; border: none; padding: .4rem; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; font-family: var(--font-mono); font-size: .92rem; }
.main-nav a { position: relative; padding: .3rem 0; }
.main-nav a:not(.nav-cart)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--lime-dark);
  transition: right .25s ease;
}
.main-nav a:not(.nav-cart):hover::after, .main-nav a.active::after { right: 0; }
.nav-cart { display: flex; align-items: center; gap: .4rem; background: var(--aubergine); color: var(--ivory); padding: .5rem 1rem; border-radius: 999px; }
.cart-count { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 .5em; font-weight: 700; min-width: 1.4em; text-align: center; }
.nav-cart.bump { animation: bump .4s ease; }
@keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-4deg); } 70% { transform: scale(.96); } }
.nav-close { display: none; }

@media (max-width: 860px) {
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: var(--aubergine); color: var(--ivory); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 1.6rem; font-size: 1.1rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
    z-index: 150;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-close { display: block; position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--ivory); }
  .nav-cart { background: var(--lime); color: var(--ink); }
}

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, html { transition: none !important; animation: none !important; scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--aubergine); color: var(--ivory); }
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: clamp(3.5rem,9vw,7rem) 1.25rem clamp(3rem,7vw,5rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-headline { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: .6rem; }
.hero-headline .hl { color: var(--lime); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34em; opacity: .92; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--aubergine); color: var(--ivory); padding: clamp(2.6rem,6vw,4.5rem) 0 clamp(2rem,5vw,3.2rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { max-width: 42em; opacity: .9; }
.page-hero .shape { position: absolute; z-index: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: .85rem; display: flex; gap: .5em; flex-wrap: wrap; opacity: .85; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: var(--lime); }
.breadcrumbs .sep { opacity: .6; }

/* ---------- Accordion panels (home composition) ---------- */
.accordion { display: grid; gap: 1rem; }
.accordion-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-block); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: none; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-size: 1.15rem; text-align: left; }
.accordion-trigger .num { font-family: var(--font-mono); color: var(--aubergine-2); margin-right: .6rem; }
.accordion-trigger .chevron { flex: none; transition: transform .3s ease; }
.accordion-item[data-open="true"] .chevron { transform: rotate(90deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-panel-inner { padding: 0 1.4rem 1.4rem; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .accordion-panel-inner { grid-template-columns: 1fr; } }

/* ---------- Cards / products ---------- */
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-block); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--ink); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.07); }
.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card .price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--aubergine); margin-top: auto; }
.badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--ink); padding: .25em .6em; border-radius: 999px; }

/* horizontal scroll-snap strip (mobile) */
.scroll-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.scroll-strip .product-card { min-width: 230px; scroll-snap-align: start; }
@media (min-width: 701px) { .scroll-strip { overflow: visible; display: grid; grid-template-columns: repeat(4,1fr); } }

/* ---------- Ritual builder (signature feature) ---------- */
.ritual { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-block); padding: clamp(1.5rem,4vw,2.6rem); }
.ritual-steps { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ritual-chip { font-family: var(--font-mono); font-size: .85rem; border: 2px solid var(--ink); border-radius: 999px; padding: .5em 1.1em; background: var(--ivory); min-height: 44px; }
.ritual-chip[aria-pressed="true"] { background: var(--lime); }
.ritual-result { display: grid; gap: 1rem; margin-top: 1.4rem; }
.ritual-result-item { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.ritual-result-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); flex: none; }

/* ---------- Notices / forms ---------- */
.notice { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--lime); }
.notice-info { background: var(--ivory); }
.notice-warn { background: #ffe2a8; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--font-mono); font-size: .85rem; }
.field input, .field textarea, .field select {
  border: 2px solid var(--ink); border-radius: 10px; padding: .75em .9em; font: inherit; background: var(--paper);
  accent-color: var(--aubergine); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #9b1c1c; font-size: .82rem; min-height: 1.2em; }
.field-msg { font-size: .85rem; min-height: 1.2em; }
.field-msg-ok { color: #1c7a3f; }
.field-msg-error { color: #9b1c1c; }
.field-row { display: flex; gap: .6rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose / legal pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.legal-toc { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--ivory); font-family: var(--font-mono); font-size: .9rem; }
.legal-toc ol { padding-left: 1.2em; }
.legal-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 72ch; }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-display); font-size: 1.05rem; 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-family: var(--font-mono); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; opacity: .9; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail .thumb { border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .qty-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-control button { background: var(--ivory); border: none; width: 44px; height: 44px; }
.qty-control input { width: 3em; text-align: center; border: none; background: none; font: inherit; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.cart-row-main { display: flex; align-items: center; gap: .8rem; }
.cart-summary { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem; background: var(--ivory); box-shadow: var(--shadow-block); display: grid; gap: .6rem; }
.cart-summary .total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--ink); padding-top: .6rem; margin-top: .4rem; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.contact-info-item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info-item svg { flex: none; color: var(--aubergine); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Divider / decorative SVG ---------- */
.divider { width: 100%; display: block; color: var(--aubergine); }
.seal { position: absolute; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--aubergine); color: var(--ivory); overflow: hidden; }
.footer-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; mix-blend-mode: overlay; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: clamp(2.6rem,6vw,4rem) 1.25rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-logo { font-size: 1.3rem; }
.footer-brand p { opacity: .85; font-size: .92rem; }
.footer-mail { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .88rem; text-decoration: underline; text-decoration-color: var(--lime); }
.footer-col { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-col h3 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: .2rem; }
.footer-newsletter input[type="email"] { border-radius: 10px 0 0 10px; border: 2px solid var(--ivory); background: transparent; color: var(--ivory); padding: .7em .9em; flex: 1; min-width: 0; }
.footer-newsletter input[type="email"]::placeholder { color: rgba(247,242,232,.6); }
.footer-newsletter .btn { border-radius: 0 10px 10px 0; margin-left: -2px; }
.footer-bottom { position: relative; z-index: 1; text-align: center; font-family: var(--font-mono); font-size: .8rem; padding: 1.2rem; border-top: 1px solid rgba(247,242,232,.2); opacity: .8; }
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 560px; margin: 0 auto; background: var(--aubergine); color: var(--ivory); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-block); }
.cookie-banner p { font-size: .9rem; margin-bottom: .8rem; }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: clamp(3rem,10vw,7rem) 0; }
.error-404 .code { font-family: var(--font-display); font-size: clamp(4rem,16vw,9rem); color: var(--aubergine); line-height: 1; }

/* Cart input styling */
.qty-input { padding: .3em .4em; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-mono); text-align: center; }
.qty-input:focus { outline: 3px solid var(--lime); outline-offset: -3px; }

/* COMPONENTS: .class - what it is
.container - max-width content wrapper
.section / .section-tight - vertical page rhythm padding
.btn / .btn-lime / .btn-dark / .btn-ghost / .btn-ghost-dark / .btn-sm / .btn-block - button variants with fill-sweep hover
.site-header / .header-inner / .logo / .main-nav / .nav-cart / .cart-count / .burger / .nav-close - header & nav
.reveal / .reveal-stagger / .in-view - scroll reveal animation hooks
.hero / .hero-grain / .hero-inner / .hero-headline / .hero-sub / .hero-art / .hero-cta - home hero
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail
.accordion / .accordion-item / .accordion-trigger / .accordion-panel / .accordion-panel-inner - home expanding panels
.card - generic bordered block card
.product-grid / .product-card / .badge - catalog cards
.scroll-strip - mobile horizontal snap strip
.ritual / .ritual-steps / .ritual-chip / .ritual-result / .ritual-result-item - signature feature builder
.notice / .notice-info / .notice-warn - callout boxes
.form-grid / .field / .field-error / .field-row / .field-msg / .hp - forms
.prose / .legal-toc / .legal-layout - legal/long-text pages
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .qty-control - single product page
.cart-table / .cart-summary / .cart-layout / .cart-row-main - cart & checkout
.contact-layout / .contact-info / .contact-info-item - contact page
.divider / .seal - decorative SVG elements
.site-footer / .footer-inner / .footer-col / .footer-newsletter / .footer-bottom - footer
.cookie-banner / .cookie-actions - cookie consent UI
.error-404 - 404 page layout
*/

/* ---------- Logo mark ---------- */
.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

/* ---------- Product filters ---------- */
.product-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---------- Remove button ---------- */
.remove-btn {
  background: none;
  border: none;
  color: var(--aubergine-2);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5em;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease;
}

.remove-btn:hover {
  background-color: rgba(58, 31, 58, .08);
  color: var(--aubergine);
}

.remove-btn:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
