/* Csengettyű — design system. Style: Slavic cross-stitch motifs on linen, sage/oat/clay palette. */
:root {
  --c-oat: #f6efe2;
  --c-linen: #efe6d4;
  --c-sage: #8a9a7e;
  --c-sage-dark: #5f7254;
  --c-clay: #b9472f;
  --c-clay-dark: #8c3420;
  --c-brass: #8a6a3c;
  --c-ink: #2c2822;
  --c-ink-soft: #55504a;
  --c-white: #fffdf8;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow-paper: 0 10px 30px -12px rgba(44, 40, 34, 0.25), 0 2px 6px rgba(44,40,34,.08);
  --measure: 68ch;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-oat);
  background-image:
    linear-gradient(90deg, rgba(185,71,47,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(185,71,47,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
img { max-width: 100%; display: block; }
a { color: var(--c-clay-dark); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; color: var(--c-ink); }
p { line-height: 1.6; margin: 0 0 1em; color: var(--c-ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--c-clay); outline-offset: 3px; border-radius: 4px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-oat); border-bottom: 2px dashed var(--c-brass); }
.site-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .9rem 1.25rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--c-ink); flex-shrink: 0; }
.logo-mark { color: var(--c-clay); width: 40px; height: 40px; }
.logo-word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-link { color: var(--c-ink-soft); font-weight: 600; font-size: .95rem; position: relative; padding: .2rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--c-clay); transition: width .25s ease; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--c-clay-dark); }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; }
.cart-count { background: var(--c-clay); color: #fff; border-radius: 999px; font-size: .75rem; padding: .05rem .45rem; min-width: 1.4em; text-align: center; }
.cart-count.bump { animation: cartBump .4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--c-ink); cursor: pointer; padding: .4rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--c-white); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 1.5rem; margin: 0;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    box-shadow: var(--shadow-paper);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.6rem; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate; min-height: 44px; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn-primary { background: var(--c-clay); color: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--c-clay-dark); transition: left .3s ease; z-index: 0; }
.btn-primary:hover::before { left: 0; }
.btn-secondary { background: var(--c-sage); color: #fff; }
.btn-secondary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--c-sage-dark); transition: left .3s ease; z-index: 0; }
.btn-secondary:hover::before { left: 0; }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-oat); border-color: rgba(246,239,226,.5); }
.btn-ghost:hover { background: rgba(246,239,226,.15); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; min-height: 36px; }

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.grid { display: grid; gap: 1.5rem; }
.flow > * + * { margin-top: 1rem; }
.center-text { text-align: center; }
.visually-hidden, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 6vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-headline { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .6rem; overflow: hidden; }
.hero-headline .word { display: inline-block; opacity: 0; transform: translateY(100%); animation: wordRise .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--w, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .hero-headline .word { opacity: 1; transform: none; animation: none; } }
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }
.hero-sub { font-size: 1.1rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; aspect-ratio: 4/5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-paper); }
.hero-art .deco-ring { position: absolute; top: -10%; right: -10%; width: 55%; aspect-ratio: 1; color: var(--c-clay); opacity: .8; animation: spin 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-art .deco-ring { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Bento grid (home) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(140px, auto); gap: 1.25rem; }
.bento-tile { background: var(--c-white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-paper); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s ease, box-shadow .35s ease; }
.bento-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -14px rgba(44,40,34,.3); }
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; mix-blend-mode: multiply; opacity: .85; }
.bento-tile:hover img { transform: scale(1.06); }
.bento-tile > * { position: relative; z-index: 1; }
.bento-tile.feature-tile { grid-column: span 2; grid-row: span 2; background: var(--c-sage); color: #fff; justify-content: flex-start; }
.bento-tile.feature-tile h3, .bento-tile.feature-tile p { color: #fff; }
.bento-tile.wide { grid-column: span 2; }
.bento-tile h3 { font-size: 1.3rem; }
.bento-tile p { font-size: .9rem; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-tile.feature-tile { grid-column: span 2; } .bento-tile.wide { grid-column: span 2; } }

/* ===== Sound finder (signature feature) ===== */
.sound-finder { display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.sf-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.sf-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; cursor: pointer; transition: background .2s ease; }
.sf-chip.is-selected, .sf-chip:hover { background: #fff; color: var(--c-sage-dark); }
.sf-result { background: rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem 1.25rem; min-height: 70px; }
.sf-result strong { display: block; margin-bottom: .25rem; }
.sf-bars { display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-top: .5rem; }
.sf-bars span { display: block; width: 6px; background: #fff; border-radius: 2px; opacity: .8; animation: sfPulse 1.2s ease-in-out infinite; }
.sf-bars span:nth-child(2) { animation-delay: .15s; } .sf-bars span:nth-child(3) { animation-delay: .3s; } .sf-bars span:nth-child(4) { animation-delay: .45s; } .sf-bars span:nth-child(5) { animation-delay: .6s; }
@keyframes sfPulse { 0%,100% { height: 30%; } 50% { height: 100%; } }

/* ===== Cards / product strip ===== */
.product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
@media (max-width: 700px) { .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; } .product-strip .product-card { scroll-snap-align: start; min-width: 72vw; } }
.product-card { background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); display: flex; flex-direction: column; transition: transform .3s ease; }
.product-card:hover { transform: translateY(-5px); }
.product-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.08); }
.product-card-badge { position: absolute; top: .6rem; left: .6rem; background: var(--c-clay); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card-body h3 { font-size: 1.05rem; margin: 0; }
.product-card-price { font-weight: 700; color: var(--c-clay-dark); margin-top: auto; }
.product-card-actions { display: flex; gap: .6rem; margin-top: .4rem; }

/* ===== Dividers / ornaments ===== */
.divider { width: 100%; height: 28px; color: var(--c-brass); opacity: .7; margin: 1rem 0; }
.ornament-row { display: flex; justify-content: center; gap: .5rem; color: var(--c-clay); opacity: .7; margin: 2rem 0; }
.ornament-row svg { width: 20px; height: 20px; }

/* ===== Grain overlay ===== */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: multiply; }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; border-bottom: 2px dashed var(--c-brass); text-align: left; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { max-width: 60ch; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; font-size: .85rem; color: var(--c-ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--c-ink-soft); }
.breadcrumbs a:hover { color: var(--c-clay-dark); }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { color: var(--c-ink-soft); line-height: 1.7; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--c-white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-paper); margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 1.3em; }
.legal-toc a { color: var(--c-ink-soft); }
.legal-toc a:hover { color: var(--c-clay-dark); }

/* ===== Notice ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.3rem; border: 2px dashed var(--c-brass); background: var(--c-white); margin: 1.5rem 0; }
.notice-success { border-color: var(--c-sage-dark); background: #f1f5ee; }
.notice-error { border-color: var(--c-clay); background: #fbece7; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .9rem; border: 2px solid #ddd2b8; border-radius: 10px; background: var(--c-white); accent-color: var(--c-clay); min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-clay); }
.field-error { color: var(--c-clay-dark); font-size: .82rem; min-height: 1.1em; }
.field-row { display: flex; gap: .6rem; }
.field-row input { flex: 1; }

/* ===== FAQ ===== */
.faq { max-width: var(--measure); margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--c-white); border-radius: var(--radius); padding: .3rem 1.3rem; box-shadow: var(--shadow-paper); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--c-clay); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4/3; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 2rem; }
.product-detail-price { font-size: 1.6rem; font-weight: 700; color: var(--c-clay-dark); margin: .5rem 0 1rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid #ddd2b8; border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 44px; height: 44px; background: var(--c-white); border: none; font-size: 1.2rem; cursor: pointer; }
.qty-stepper input { width: 3rem; text-align: center; border: none; min-height: 44px; }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid #e4d9bf; text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--c-white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-paper); max-width: 380px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary .total { font-weight: 700; font-size: 1.2rem; border-top: 2px dashed var(--c-brass); padding-top: .7rem; margin-top: .7rem; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info a { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-ink); font-weight: 600; }

/* ===== Toast ===== */
.csen-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: var(--c-white); padding: .8rem 1.4rem; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 200; }
.csen-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: -200px; max-width: 560px; margin: 0 auto; background: var(--c-ink); color: var(--c-oat); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-paper); z-index: 100; transition: bottom .4s ease; }
.cookie-banner.is-visible { bottom: 1.2rem; }
.cookie-banner p { color: var(--c-oat); font-size: .9rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: .8rem; margin-top: .8rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--c-ink); color: var(--c-oat); margin-top: 3rem; }
.site-footer a { color: #d8d2c4; }
.site-footer a:hover { color: #fff; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .site-footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: #b6afa0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer-newsletter { display: flex; flex-direction: column; gap: .6rem; }
.footer-newsletter h3 { color: #fff; font-size: .95rem; }
.footer-newsletter input { padding: .7rem .9rem; border-radius: 10px; border: none; min-height: 44px; flex: 1; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.form-msg { font-size: .85rem; min-height: 1.1em; }
.footer-bottom { text-align: center; padding: 1.2rem 0; border-top: 1px solid #45403a; color: #948c7c; font-size: .85rem; }

/* COMPONENTS: .class - what it is
.container - max-width centered wrapper
.section - vertical page section spacing
.grid - generic CSS grid base
.reveal / .in-view - scroll-reveal animation hook
.hero / .hero-grid / .hero-headline / .hero-sub / .hero-actions / .hero-art - home hero block
.bento / .bento-tile / .feature-tile / .wide - home bento grid layout
.sound-finder / .sf-options / .sf-chip / .sf-result / .sf-bars - signature "Hangkeresés" feature widget
.product-strip / .product-card / .product-card-media / .product-card-badge / .product-card-body / .product-card-price / .product-card-actions - product cards (catalog + home)
.divider - decorative SVG section divider
.ornament-row - row of small decorative SVG ornaments
.grain-overlay - fixed full-screen SVG grain texture overlay
.page-hero - inner page top banner
.breadcrumbs - inner page breadcrumb trail
.prose - long-form legal/text readable column
.legal-toc - table of contents box for legal pages
.notice / .notice-success / .notice-error - callout message box
.form-grid / .field / .field-error / .field-row - form layout system
.faq / .faq-item - details/summary accordion
.product-detail / .product-detail-media / .product-detail-info / .product-detail-price - single product page layout
.qty-stepper - quantity +/- control
.cart-table / .cart-summary - cart page table and totals box
.contact-layout / .contact-info - contact page two-column layout
.csen-toast - transient toast notification
.cookie-banner / .cookie-actions - cookie consent banner
.site-header / .site-nav / .nav-link / .nav-toggle / .logo / .logo-mark / .logo-word - header/nav
.site-footer / .footer-cols / .footer-col / .footer-newsletter / .footer-mail / .footer-bottom - footer
.btn / .btn-primary / .btn-secondary / .btn-outline / .btn-ghost / .btn-sm - button variants
.cart-count - header cart item count badge
.sr-only / .hp-field / .visually-hidden - accessibility/honeypot hiding
*/

/* wg-contrast-autofix */
footer.site-footer div.site-footer-inner div.footer-newsletter p { color: #ffffff !important; }
footer.site-footer div.footer-bottom p { color: #ffffff !important; }
