/* ===== Panenky Vltava — Chalkboard design system ===== */
:root {
  --slate: #232231;
  --slate-2: #2b2a3d;
  --slate-3: #34324a;
  --chalk: #f3efe6;
  --chalk-dim: #c9c4d4;
  --plum: #6b4a6e;
  --blush: #e2a6ac;
  --gold: #d9a94e;
  --line: rgba(243,239,230,0.18);
  --radius: 14px;
  --shadow-paper: 0 18px 40px rgba(0,0,0,0.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--chalk);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blush); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; color: var(--chalk); }
p { margin: 0 0 1em; }
.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(--gold); color: var(--slate); padding: 0.5em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: 0.5; }

/* ===== Layout helpers ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}
.flex { display: flex; align-items: center; gap: 1rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.text-center { text-align: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease, clip-path 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; }
.reveal-clip.in-view { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===== Icons ===== */
.icon { width: 24px; height: 24px; color: currentColor; flex-shrink: 0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(35,34,49,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.8rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-mark { height: 38px; width: auto; }
.logo-word { font-family: var(--font-display); }
.logo-word--sub { opacity: 0.85; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--chalk-dim); font-size: 0.95rem; position: relative; padding: 0.2rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--chalk); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; color: var(--chalk); display: inline-flex; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--gold); color: var(--slate); font-size: 0.7rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--chalk); cursor: pointer; padding: 0.3rem; min-width: 44px; min-height: 44px; }
.icon-menu-close { display: none; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--slate-2); padding: 5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease; z-index: 150; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  body.nav-open .icon-menu-open { display: none; }
  body.nav-open .icon-menu-close { display: block; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; min-height: 44px; transition: color 0.3s ease, transform 0.2s ease; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: currentColor; z-index: -1; transition: left 0.3s ease; }
.btn-gold { background: var(--gold); color: var(--slate); }
.btn-gold::before { background: var(--chalk); }
.btn-gold:hover { color: var(--slate); transform: translateY(-2px); }
.btn-gold:hover::before { left: 0; }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--line); }
.btn-ghost::before { background: var(--plum); }
.btn-ghost:hover::before { left: 0; }
.btn-ghost:hover { color: var(--chalk); }
.btn-plum { background: var(--plum); color: var(--chalk); }
.btn-plum::before { background: var(--gold); }
.btn-plum:hover { color: var(--slate); }
.btn-plum:hover::before { left: 0; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; min-height: 36px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem); overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin-bottom: 0.6rem; }
.hero-lede { font-size: 1.15rem; color: var(--chalk-dim); max-width: 32ch; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-mask-shape { position: absolute; inset: 0; }
.hero-mask-shape img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* parallax layered depth */
.layer-plane { position: absolute; inset: 0; pointer-events: none; }
.plane-back { z-index: 0; opacity: 0.5; }
.plane-mid { z-index: 1; }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--chalk-dim); max-width: 60ch; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; color: var(--chalk-dim); flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.breadcrumbs a { color: var(--chalk-dim); }
.breadcrumbs a:hover { color: var(--gold); }

/* ===== Prose (legal text) ===== */
.prose { max-width: 68ch; color: var(--chalk-dim); }
.prose h2 { color: var(--chalk); margin-top: 2em; font-size: 1.4rem; }
.prose h3 { color: var(--chalk); margin-top: 1.5em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--slate-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 0.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; color: var(--chalk-dim); }

/* ===== Notices ===== */
.notice { padding: 1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--slate-2); margin-bottom: 1.5rem; }
.notice-info { border-color: rgba(217,169,78,0.4); }
.notice-success { border-color: rgba(120,200,150,0.4); }
.notice-error { border-color: rgba(220,100,100,0.5); }

/* ===== Cards ===== */
.card { background: var(--slate-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); }

/* ===== Product grid/cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.product-card { display: flex; flex-direction: column; }
.product-card .product-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card .product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-card .product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-price { color: var(--gold); font-weight: 700; font-family: var(--font-mono); }
.product-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.2rem 0; }
.tag { font-size: 0.72rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--slate-3); color: var(--chalk-dim); }

/* horizontal scroll-snap strip (mobile) */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 860px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(4,1fr); overflow-x: visible; } }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail .product-gallery { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.product-detail .product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .product-price { font-size: 1.6rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: none; color: var(--chalk); width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 46px; text-align: center; background: none; border: none; color: var(--chalk); font-size: 1rem; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.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: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--chalk-dim); }
.field input, .field textarea, .field select {
  background: var(--slate-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.9rem;
  color: var(--chalk); font-family: inherit; font-size: 0.95rem; accent-color: var(--gold); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field-error { color: #e88; font-size: 0.85rem; margin: 0.3rem 0 0; }
.field-success { color: #8dcf9f; font-size: 0.85rem; margin: 0.3rem 0 0; }
.field-inline { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.field-inline input { flex: 1; min-width: 180px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6rem; flex-direction: row; }
.checkbox-field input { width: 20px; height: 20px; margin-top: 0.1rem; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-row-main { display: flex; gap: 0.8rem; align-items: center; }
.cart-summary { background: var(--slate-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 380px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.6rem; color: var(--chalk-dim); }
.cart-summary-total { font-weight: 700; color: var(--chalk); font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.4rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; padding-right: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.8rem; color: var(--chalk-dim); }

/* ===== Decorative dividers / ornaments ===== */
.divider-chalk { width: 100%; height: 48px; display: block; margin: 0; opacity: 0.6; }
.ornament { width: 60px; height: 60px; }

/* ===== Outfit styler (signature feature) ===== */
.styler { background: var(--slate-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 860px) { .styler { grid-template-columns: 1fr; } }
.styler-stage { position: relative; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.styler-stage svg { width: 100%; height: 100%; }
.styler-swatches { display: flex; flex-direction: column; gap: 1.2rem; }
.swatch-row h4 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--chalk-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.swatch-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; min-width: 38px; }
.swatch.is-active { border-color: var(--gold); transform: scale(1.1); }
.styler-total { display: flex; justify-content: space-between; align-items: center; margin-top: 0.6rem; font-family: var(--font-mono); color: var(--gold); font-weight: 700; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--slate-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; z-index: 300; box-shadow: var(--shadow-paper); }
.cookie-banner p { margin: 0; color: var(--chalk); flex: 1 1 220px; font-size: 0.9rem; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--slate-2); border-top: 1px solid var(--line); padding: 3rem 0 1rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.3fr 2fr 1.3fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--chalk-dim); font-size: 0.9rem; max-width: 28ch; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chalk-dim); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--chalk-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-newsletter h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.footer-newsletter p { color: var(--chalk-dim); font-size: 0.9rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); margin-top: 0.8rem; font-size: 0.9rem; }
.footer-bottom { text-align: center; color: var(--chalk-dim); font-size: 0.8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ===== Misc content sections used on home ===== */
.section-head { max-width: 50ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--chalk-dim); }
.badge-seal { width: 76px; height: 76px; }
.feature-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr; } }
.feature-strip .card { padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; background: var(--slate-2); }
.feature-strip .icon { color: var(--gold); width: 30px; height: 30px; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.section - vertical page section spacing
.grid, .grid-2, .grid-3, .grid-4 - responsive CSS grid helpers
.reveal / .reveal-clip / .in-view - scroll-reveal animation hooks
.icon - inline SVG sprite icon sizing
.site-header / .header-inner / .main-nav / .nav-toggle - site header & nav
.cart-link / .cart-count - header cart indicator
.btn / .btn-gold / .btn-ghost / .btn-plum / .btn-sm - button variants with fill-sweep hover
.hero / .hero-inner / .hero-art / .hero-mask-shape / .hero-cta - home hero section
.layer-plane / .plane-back / .plane-mid - parallax depth layers
.page-hero - inner page hero/banner
.breadcrumbs - breadcrumb trail list
.prose - long-form legal/readable text block
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-success / .notice-error - callout boxes
.card - generic elevated card surface
.product-grid / .product-card / .product-media / .product-body / .product-price / .product-tags / .tag - catalog cards
.product-strip - horizontal scroll-snap product strip (mobile)
.product-detail / .product-gallery / .qty-stepper - single product page layout
.form-grid / .field / .field-error / .field-success / .field-inline / .checkbox-field - form layout & states
.cart-table / .cart-row-main / .cart-summary / .cart-summary-row / .cart-summary-total - cart/checkout layout
.contact-layout - two-column contact page layout
.faq / .faq-item - FAQ accordion (details/summary)
.divider-chalk / .ornament / .badge-seal - decorative bespoke SVGs
.styler / .styler-stage / .styler-swatches / .swatch / .styler-total - signature outfit styler widget
.cookie-banner / .cookie-actions - cookie consent banner
.site-footer / .footer-inner / .footer-nav / .footer-col / .footer-newsletter / .footer-mail / .footer-bottom - site footer
.section-head - section intro heading block
.feature-strip - three-up feature highlight row
.grain-overlay - fixed SVG film-grain texture overlay
.visually-hidden / .skip-link - accessibility helpers
*/

/* ===== Newsletter form ===== */
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 640px) { .newsletter-form { flex-direction: column; } }

/* ===== Logo ===== */
.logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--chalk); }

/* ===== Cart quantity input ===== */
.cart-qty { width: 50px; text-align: center; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.5rem; color: var(--chalk); font-size: 0.9rem; }
.cart-qty:focus { border-color: var(--gold); outline: none; }

/* ===== Cart remove button ===== */
.cart-remove { display: inline-flex; align-items: center; background: none; border: none; color: var(--blush); cursor: pointer; font-size: 0.85rem; font-family: inherit; padding: 0; transition: color 0.25s ease; }
.cart-remove:hover { color: var(--gold); }

/* ===== Product info ===== */
.product-info { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
