/* ===== Keramika Zarja - design system ===== */
:root {
  --moss-900: #2c3526;
  --moss-700: #3f4f36;
  --moss-500: #5a6b4b;
  --moss-300: #8c9a78;
  --lichen-400: #9aa788;
  --stone-100: #e7e2d3;
  --stone-50: #f4f1e8;
  --clay-500: #a8694a;
  --clay-700: #7c4a33;
  --ink: #23271e;
  --glass-border: rgba(255,255,255,0.35);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --ff-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --container: 1180px;
  --shadow-paper: 0 1px 2px rgba(44,53,38,.08), 0 10px 28px -12px rgba(44,53,38,.28);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--stone-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moss-700); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--moss-900); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 2px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--moss-900); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== layout helpers ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stack-s > * + * { margin-top: 12px; }
.stack-m > * + * { margin-top: 24px; }
.stack-l > * + * { margin-top: 48px; }
.icon { display: inline-block; vertical-align: middle; stroke: currentColor; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(10% 0 0 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal--stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244,241,232,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(44,53,38,.1); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--moss-900); }
.logo__mark { width: 40px; height: 40px; color: var(--clay-500); flex: none; }
.logo__word { display: flex; flex-direction: column; font-family: var(--ff-display); line-height: 1.1; }
.logo__word-top { font-size: 1.05rem; letter-spacing: .02em; }
.logo__word-bottom { font-size: .8rem; color: var(--clay-500); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; background: none; border: none; color: var(--moss-900); padding: 6px; min-width: 44px; min-height: 44px; }
.icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 22px; }
.site-nav__list a { color: var(--moss-900); font-weight: 600; position: relative; padding: 4px 0; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--clay-500); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); }
.cart-link { display: flex; align-items: center; gap: 6px; color: var(--moss-900); position: relative; min-height: 44px; min-width: 44px; }
.cart-count { background: var(--clay-500); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--stone-50); flex-direction: column; align-items: flex-start; padding: 100px 28px 28px; gap: 28px; box-shadow: -14px 0 40px rgba(0,0,0,.15); transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 20px; }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .85em 1.6em; border-radius: 999px; font-weight: 700; border: 2px solid transparent; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; transition: color .3s ease, border-color .3s ease; }
.btn--sweep { background: var(--moss-700); color: #fff; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--clay-500); z-index: -1; transition: left .35s ease; }
.btn--sweep:hover::before { left: 0; }
.btn--ghost { background: transparent; color: var(--moss-900); border-color: var(--moss-900); }
.btn--ghost:hover { background: var(--moss-900); color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--stone-100); border-color: var(--stone-100); }
.btn--ghost-dark:hover { background: var(--stone-100); color: var(--moss-900); }
.btn--clay { background: var(--clay-500); color: #fff; }
.btn--clay::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--clay-700); z-index: -1; transition: left .35s ease; }
.btn--clay:hover::before { left: 0; }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== hero ===== */
.hero { position: relative; padding: clamp(40px,8vw,80px) 0 0; overflow: hidden; }
.hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__headline { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
.hero__lede { font-size: 1.15rem; max-width: 46ch; color: var(--moss-700); }
.hero__ticker { overflow: hidden; margin-top: 28px; border-top: 1px solid rgba(44,53,38,.15); border-bottom: 1px solid rgba(44,53,38,.15); padding: 10px 0; }
.hero__ticker-track { display: flex; gap: 2.2em; white-space: nowrap; width: max-content; animation: ticker 28s linear infinite; font-family: var(--ff-display); font-size: 1.1rem; color: var(--moss-500); }
.hero__ticker-track span::after { content: "\2022"; margin-left: 2.2em; color: var(--clay-500); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__art { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-paper); min-width: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(1.05); }
.hero__art-frame { position: absolute; inset: 0; pointer-events: none; }
.arch-frame { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: 60px; color: var(--stone-50); }

/* ===== accordion panels (home composition) ===== */
.panels { display: flex; flex-direction: column; gap: 2px; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-paper); }
.panel { background: var(--moss-700); color: var(--stone-100); }
.panel__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: none; border: none; color: inherit; text-align: left; font-family: var(--ff-display); font-size: 1.3rem; min-height: 44px; }
.panel__trigger .icon { flex: none; transition: transform .3s ease; }
.panel[data-open="true"] .panel__trigger .icon { transform: rotate(45deg); }
.panel__trigger:hover { background: rgba(255,255,255,.05); }
.panel__body { max-height: 0; overflow: hidden; transition: max-height .4s ease; background: var(--moss-900); }
.panel[data-open="true"] .panel__body { max-height: 600px; }
.panel__body-inner { padding: 4px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel__body-inner img { border-radius: var(--radius-m); aspect-ratio: 4/3; object-fit: cover; }
.panel__body-inner p { color: var(--stone-100); opacity: .9; }
@media (max-width: 700px) { .panel__body-inner { grid-template-columns: 1fr; } .panel__trigger { font-size: 1.05rem; padding: 16px 18px; } }

/* ===== cards ===== */
.card { background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-paper); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 18px 20px 22px; }
.card__price { font-weight: 700; color: var(--clay-700); font-family: var(--ff-display); font-size: 1.1rem; }

/* ===== product strip (horizontal scroll-snap on mobile) ===== */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 22px; }
@media (max-width: 760px) {
  .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .product-strip > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ===== dividers / ornaments ===== */
.divider { display: block; width: 100%; max-width: 100%; height: 48px; color: var(--moss-300); }
.badge-seal { width: 72px; height: 72px; color: var(--clay-500); }

/* ===== shaper (signature feature) ===== */
.shaper { background: var(--moss-900); color: var(--stone-100); border-radius: var(--radius-l); overflow: hidden; position: relative; }
.shaper__grain { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.shaper__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: clamp(28px,5vw,56px); }
.shaper__preview { background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); border-radius: var(--radius-m); display: grid; place-items: center; padding: 20px; }
.shaper__preview svg { width: 100%; max-width: 220px; aspect-ratio: 60/116; }
.shaper__fields { display: grid; gap: 18px; }
.shaper__row { display: grid; gap: 8px; }
.shaper__row label { font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--lichen-400); }
.shaper__row select, .shaper__row input[type="range"] { accent-color: var(--clay-500); }
.shaper__price { font-family: var(--ff-display); font-size: 2rem; color: var(--stone-100); }
.shaper__label { color: var(--lichen-400); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
@media (max-width: 760px) { .shaper__inner { grid-template-columns: minmax(0, 1fr); } }

/* ===== footer ===== */
.site-footer { background: var(--moss-900); color: var(--stone-100); position: relative; overflow: hidden; margin-top: 64px; }
.site-footer__grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-footer__grain svg { width: 100%; height: 100%; }
.site-footer__inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 56px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-col h3 { color: var(--stone-100); font-family: var(--ff-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--lichen-400); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--stone-100); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-col--brand p { opacity: .8; max-width: 32ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; }
.newsletter-form .field { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: .7em 1em; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); color: var(--stone-100); }
.site-footer__bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: .85rem; opacity: .7; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; background: var(--moss-900); color: var(--stone-100); border-radius: var(--radius-m); padding: 18px 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-paper); max-width: 760px; margin: 0 auto; }
.cookie-banner a { color: var(--lichen-400); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ===== forms ===== */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { padding: .75em .9em; border: 1px solid rgba(44,53,38,.25); border-radius: var(--radius-s); font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay-500); }
.field-error { color: #9a3b2b; font-size: .85rem; }
.form-msg { padding: .5em 0; font-weight: 600; }
.form-msg--ok { color: var(--moss-700); }
.form-msg--error { color: #9a3b2b; }

/* ===== generic page components ===== */
.page-hero { background: var(--stone-100); padding: clamp(40px,7vw,72px) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--moss-500); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--moss-500); }
.breadcrumbs span { opacity: .6; }
.notice { border-radius: var(--radius-s); padding: 16px 20px; border: 1px solid; margin: 1.2em 0; }
.notice--info { background: #eef1e8; border-color: var(--moss-300); }
.notice--warn { background: #fbf0e6; border-color: var(--clay-500); }
.prose { max-width: 70ch; font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.15rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--stone-100); border-radius: var(--radius-m); padding: 20px 24px; margin-bottom: 2em; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ul { list-style: none; padding: 0; display: grid; gap: 8px; }

/* faq */
.faq { display: grid; gap: 14px; max-width: 760px; }
.faq-item { background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-paper); overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--clay-500); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--moss-700); }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail__gallery { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/5; }
.product-detail__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-family: var(--ff-display); font-size: 2rem; color: var(--clay-700); }
.product-detail__list { list-style: disc; padding-left: 1.2em; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid rgba(44,53,38,.12); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-s); }
.cart-summary { background: var(--stone-100); border-radius: var(--radius-m); padding: 24px; display: grid; gap: 12px; max-width: 360px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid rgba(44,53,38,.2); padding-top: 10px; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info__item { display: flex; gap: 12px; align-items: flex-start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--clay-500); }

/*
COMPONENTS:
.container - max-width content wrapper, centered, side padding
.section - vertical rhythm block spacing
.grid / .grid-2 / .grid-3 / .grid-4 - responsive auto-fit grid
.stack-s/.stack-m/.stack-l - vertical spacing between direct children
.reveal / .reveal--stagger - scroll-reveal animation target (JS adds .in-view)
.site-header / .site-nav / .nav-toggle / .cart-link / .cart-count - header & nav
.logo / .logo__mark / .logo__word - brand lockup
.btn / .btn--sweep / .btn--ghost / .btn--ghost-dark / .btn--clay / .btn--sm / .btn--block - buttons
.hero / .hero__headline / .hero__lede / .hero__ticker / .hero__art - home hero
.panels / .panel / .panel__trigger / .panel__body - accordion home composition
.card / .card__media / .card__body / .card__price - product/content card
.product-strip - responsive grid, horizontal scroll-snap on mobile
.divider / .badge-seal - decorative SVG dividers and seal badges
.shaper / .shaper__preview / .shaper__fields / .shaper__price - signature configurator feature
.site-footer / .footer-col / .newsletter-form - footer
.cookie-banner - cookie consent bar
.form-grid / .field / .field-error / .form-msg - form layout and feedback
.page-hero - inner page hero/title band
.breadcrumbs - page breadcrumb trail
.notice / .notice--info / .notice--warn - callout box
.prose - long-form legal/text content measure
.legal-toc - table of contents box for legal pages
.faq / .faq-item - details/summary accordion list
.product-detail / .product-detail__gallery / .product-detail__list - product page layout
.cart-table / .cart-summary - cart/checkout layout
.contact-layout / .contact-info - contact page layout
.eyebrow - small uppercase label above headings
*/

/* ===== missing components ===== */

.hero__copy { max-width: 46ch; min-width: 0; }

.footer-col--newsletter { }

.qty-field { width: 70px; padding: .6em .7em; border: 1px solid rgba(44,53,38,.25); border-radius: var(--radius-s); font: inherit; text-align: center; background: #fff; }
.qty-field:focus { border-color: var(--clay-500); }

.remove-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--clay-500); font-weight: 600; padding: .5em .8em; cursor: pointer; text-decoration: underline; min-height: 44px; min-width: 44px; }
.remove-btn:hover { color: var(--clay-700); }
