/* ============ Zámocká Korenička — Origami Fold design system ============ */
:root {
  --terracotta: #A65036;
  --gold: #D4A04B;
  --cream: #F9F0E2;
  --green: #546B4B;
  --dark: #342B27;
  --sand: #E9DDCA;
  --white: #FFFFFF;
  --plum: #4a2e3b;
  --blush: #e7c3b6;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow-paper: 0 10px 30px -12px rgba(52,43,39,.35), 0 2px 6px rgba(52,43,39,.1);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--dark); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--terracotta); text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- layout helpers ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 24px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .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} .mt-3{margin-top:3rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:1rem} .mb-2{margin-bottom:2rem} .mb-3{margin-bottom:3rem}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.center { text-align: center; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 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); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; clip-path: none; } }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249,240,226,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--sand); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; color: var(--dark); }
.logo-word em { font-style: normal; color: var(--terracotta); }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--dark); font-weight: 600; font-size: .95rem; position: relative; padding: 6px 2px; }
.nav-list a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--terracotta); transition:width .3s ease; }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-cart { display: flex; align-items: center; gap: 6px; }
.cart-count { background: var(--terracotta); color: var(--white); border-radius: 999px; font-size: .75rem; padding: 2px 7px; display: inline-block; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.menu-toggle { display: none; background: none; border: none; color: var(--dark); cursor: pointer; min-width: 44px; min-height: 44px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-list { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px); background: var(--dark); flex-direction: column; align-items: flex-start; padding: 90px 28px; gap: 24px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav-list.open { transform: translateX(0); visibility: visible; }
  .nav-list a { color: var(--sand); }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; position: relative; overflow: hidden; transition: color .3s ease, border-color .3s ease; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #8e4330; }
.btn-ghost { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-ghost:hover { background: var(--dark); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-sweep { background: var(--green); color: var(--white); }
.btn-sweep::before { content:""; position:absolute; inset:0; left:-100%; width:100%; background: var(--dark); transition: left .35s ease; z-index: 0; }
.btn-sweep span, .btn-sweep { z-index: 1; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep { isolation: isolate; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .4em; }
.hero-underline { position: relative; display: inline-block; }
.hero-underline svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 14px; overflow: visible; }
.hero-underline path { stroke: var(--gold); stroke-width: 6; fill: none; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.4s ease forwards .4s; }
@media (prefers-reduced-motion: reduce) { .hero-underline path { animation: none; stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lead { font-size: 1.15rem; max-width: 46ch; color: #4b3f38; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }

/* ---- bento grid home ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(160px, auto); gap: 18px; }
.bento-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-paper); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--plum), var(--terracotta)); color: var(--cream); }
.bento-img { grid-column: span 2; }
.bento-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile .tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(52,43,39,.75)); }
.bento-tile .tile-content { position: relative; z-index: 2; }
.bento-tile h3 { margin-bottom: .25em; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-feature { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento-feature, .bento-img { grid-column: span 1; } }

/* ---- cards / product strip ---- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -14px rgba(52,43,39,.4); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.card-price { font-weight: 700; color: var(--terracotta); font-size: 1.1rem; }
.card-weight { color: #7a6c61; font-size: .85rem; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip .card { scroll-snap-align: start; }
@media (min-width: 700px) { .strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---- product grid (catalog) ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

/* ---- dividers / ornaments ---- */
.divider { width: 100%; height: 40px; display: block; }
.badge-seal { width: 86px; height: 86px; }

/* ---- page hero (inner pages) ---- */
.page-hero { background: var(--sand); padding: 52px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { max-width: 60ch; color: #5a4c41; }

/* ---- breadcrumbs ---- */
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: #7a6c61; list-style: none; padding: 0; margin: 0 0 1rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; }
.breadcrumbs a { color: var(--terracotta); }

/* ---- prose (legal pages) ---- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---- legal table of contents ---- */
.legal-toc { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-paper); max-width: var(--measure); margin: 0 auto 2.5rem; }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: .5em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* ---- notice box ---- */
.notice { border-radius: var(--radius); padding: 16px 20px; background: var(--sand); border-left: 4px solid var(--gold); margin: 1.5em 0; }
.notice-warn { background: #f6e3cf; border-left-color: var(--terracotta); }
.notice-info { background: #e7eee3; border-left-color: var(--green); }

/* ---- forms ---- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--sand); background: var(--white); font: inherit; accent-color: var(--terracotta);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--terracotta); font-size: .82rem; min-height: 1.1em; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.3em; font-size: .9rem; }
.form-msg-ok { color: var(--green); }
.form-msg-error { color: var(--terracotta); }

/* ---- faq ---- */
.faq { max-width: var(--measure); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand); padding: 6px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-family: var(--font-display); font-size: 1.05rem; 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.4rem; color: var(--terracotta); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 14px; color: #5a4c41; }

/* ---- product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .pd-media img { border-radius: var(--radius); box-shadow: var(--shadow-paper); aspect-ratio: 4/3; object-fit: cover; }
.pd-price { font-size: 1.8rem; color: var(--terracotta); font-weight: 700; margin: .4em 0; }
.pd-meta { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 6px; font-size: .92rem; }
.pd-meta dt { font-weight: 600; display: inline; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.qty-input { width: 70px; }

/* ---- cart ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary { max-width: 380px; margin-left: auto; background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-paper); }
.cart-summary dl { display: flex; justify-content: space-between; margin: 0 0 8px; }
.cart-summary .total-row { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--sand); padding-top: 10px; margin-top: 10px; }

/* ---- contact layout ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { margin-bottom: .6em; }

/* ---- feature section (signature) ---- */
.feature-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-paper); padding: clamp(24px,4vw,44px); position: relative; overflow: hidden; }
.compass { margin-top: 1.4rem; }
.compass-controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.compass-controls label { font-weight: 600; }
.compass-controls select { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--sand); font: inherit; accent-color: var(--terracotta); }
.compass-result { background: var(--sand); border-radius: 10px; padding: 16px 20px; font-weight: 600; min-height: 1.4em; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: var(--sand); padding: 56px 0 0; position: relative; }
.footer-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.footer-grain svg { width: 100%; height: 100%; }
.footer-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.3rem; }
.footer-col h3 { color: var(--gold); font-size: 1rem; margin-bottom: .8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--sand); }
.footer-col a:hover { color: var(--gold); }
.footer-legal { font-size: .78rem; opacity: .75; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.newsletter-form input { min-height: 44px; border-radius: 8px; border: none; padding: 0 14px; }
.footer-mail { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; }
.footer-bottom { text-align: center; padding: 24px 0; margin-top: 40px; border-top: 1px solid rgba(249,240,226,.15); font-size: .85rem; position: relative; z-index: 1; }

/* ---- cookie banner ---- */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: var(--dark); color: var(--sand); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-paper); z-index: 100; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-ghost { border-color: var(--sand); color: var(--sand); }
.cookie-banner .btn-ghost:hover { background: var(--sand); color: var(--dark); }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(3rem,10vw,6rem); color: var(--terracotta); }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.section - vertical page section spacing
.reveal / .in-view - scroll-reveal animation hook (JS toggles .in-view)
.site-header / .header-inner - sticky site header
.logo / .logo-mark / .logo-word - brand logo
.main-nav / .nav-list / .nav-cart / .cart-count - primary navigation + cart badge
.menu-toggle - mobile nav hamburger button
.btn / .btn-primary / .btn-ghost / .btn-gold / .btn-sweep - button variants
.hero / .hero-inner / .hero-underline / .hero-lead / .hero-actions / .hero-art - homepage hero
.bento / .bento-tile / .bento-feature / .bento-img / .tile-shade / .tile-content - bento grid layout
.card / .card-media / .card-body / .card-price / .card-weight - product/content card
.strip - horizontal scroll-snap card strip (mobile)
.product-grid - catalog grid of cards
.divider / .badge-seal - decorative SVG dividers and seal badges
.page-hero - inner page header band
.breadcrumbs - breadcrumb trail list
.prose - readable long-form legal/article text
.legal-toc - table of contents box for legal pages
.notice / .notice-warn / .notice-info - callout box variants
.form-grid / .field / .field-full / .field-error / .hp-field - form layout and fields
.form-msg / .form-msg-ok / .form-msg-error - form submit feedback
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .pd-media / .pd-price / .pd-meta / .pd-actions / .qty-input - product detail page
.cart-table / .cart-summary - cart listing and totals box
.contact-layout / .contact-info - contact page two-column layout
.feature-box - signature feature section wrapper
.site-footer / .footer-inner / .footer-col / .footer-grain / .newsletter-form / .footer-mail / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
.notfound - 404 page layout
*/

/* ---- footer brand & newsletter columns ---- */
.footer-brand { }
.footer-newsletter { }

/* ---- feature box grid section ---- */
.feature-box-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .feature-box-wrap { grid-template-columns: 1fr; } }

/* ---- product info & details sections ---- */
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-details { display: flex; flex-direction: column; gap: 16px; }

/* wg-contrast-autofix */
div.bento.reveal a.bento-tile div.tile-content h3 { color: #ffffff !important; }
div.bento.reveal a.bento-tile[style*="--sand"] div.tile-content h3,
div.bento.reveal a.bento-tile[style*="--gold"] div.tile-content h3 { color: var(--dark) !important; }
footer.site-footer div.footer-inner div.footer-col.footer-brand span.logo-word.footer-logo { color: #ffffff !important; }
