/* Syry Kapka - design system. Folk-art ornament on linen. */
:root{
  --ink:#2a2420;
  --linen:#f3ead9;
  --linen-deep:#e8dcc4;
  --indigo:#2e3a6b;
  --indigo-deep:#1f2850;
  --ochre:#c97a2b;
  --ochre-light:#e8c468;
  --red:#a3263b;
  --white:#fffaf0;
  --radius:10px;
  --shadow:0 10px 30px -12px rgba(42,36,32,.35);
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:"Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  --mono:"Courier New",ui-monospace,monospace;
  --maxw:1180px;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{margin:0;background:var(--linen);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55}
img{max-width:100%;display:block}
a{color:var(--indigo);text-decoration:none}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3,h4{font-family:var(--serif);color:var(--indigo-deep);line-height:1.1;margin:0 0 .5em}
section{padding:clamp(2.5rem,6vw,5rem) 0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}

/* ---------- Reveal ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.in-view{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{transition:none;opacity:1;transform:none}}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.5rem;border-radius:999px;border:2px solid var(--indigo-deep);background:transparent;color:var(--indigo-deep);font-family:var(--sans);font-weight:600;font-size:.95rem;cursor:pointer;min-height:44px;position:relative;overflow:hidden;isolation:isolate;transition:color .3s}
.btn-sweep{background:var(--indigo-deep);color:var(--white);border-color:var(--indigo-deep)}
.btn-sweep::before{content:"";position:absolute;inset:0;width:100%;left:-100%;background:var(--ochre);z-index:-1;transition:left .35s ease}
.btn-sweep:hover::before,.btn-sweep:focus-visible::before{left:0}
.btn-ghost{background:transparent;border-color:currentColor}
.btn-on-dark{color:var(--white);border-color:var(--white)}
.btn-on-dark::before{background:var(--ochre-light)}
.btn-on-dark:hover{color:var(--indigo-deep)}
.btn:focus-visible{outline:3px solid var(--ochre);outline-offset:2px}
.btn-small{padding:.5rem 1rem;font-size:.85rem;min-height:36px}
.btn-icon{padding:.6rem;border-radius:50%;min-width:44px;min-height:44px;justify-content:center}

/* ---------- Header ---------- */
.site-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:var(--linen);position:sticky;top:0;z-index:40;border-bottom:1px solid var(--linen-deep)}
.logo{display:flex;align-items:center;gap:.6rem;color:var(--indigo-deep)}
.logo-mark{color:var(--red);flex:none}
.wordmark{font-family:var(--serif);font-size:1.3rem;font-weight:700;letter-spacing:.02em}
.wordmark-footer{color:var(--ochre-light);font-size:1.4rem}
.site-nav{display:flex;align-items:center;gap:1.4rem}
.site-nav a{color:var(--ink);font-weight:600;font-size:.95rem;position:relative;padding:.3rem 0}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;background:var(--red);transition:width .25s}
.site-nav a:hover::after,.site-nav a.is-active::after{width:100%}
.site-nav a.is-active{color:var(--red)}
.nav-cart{display:flex;align-items:center;gap:.4rem;border:2px solid var(--indigo-deep);padding:.4rem .8rem;border-radius:999px}
.cart-count{background:var(--red);color:var(--white);border-radius:999px;font-size:.75rem;min-width:1.4em;text-align:center;padding:0 .3em}
.nav-cart.bump .cart-count{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.5)}100%{transform:scale(1)}}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px}
.nav-toggle span{width:24px;height:2px;background:var(--indigo-deep);display:block}

@media (max-width:860px){
  .nav-toggle{display:flex}
  .site-nav{position:fixed;top:0;right:0;height:100vh;width:min(78vw,320px);background:var(--indigo-deep);flex-direction:column;align-items:flex-start;padding:5.5rem 1.5rem;gap:1.2rem;
    transform:translateX(100%);visibility:hidden;transition:transform .35s ease,visibility .35s;z-index:50}
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .site-nav a{color:var(--white)}
  .nav-cart{border-color:var(--ochre-light);color:var(--white)}
}

/* ---------- Footer ---------- */
.site-footer{background:var(--indigo-deep);color:var(--white);padding:3.5rem 1.25rem 1.5rem}
.footer-grid{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2rem}
.footer-brand p{opacity:.85}
.footer-brand a{color:var(--ochre-light)}
.footer-links h3,.footer-newsletter h3{color:var(--ochre-light);font-family:var(--sans);font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.8rem}
.footer-links{display:flex;flex-direction:column;gap:.5rem}
.footer-links a{color:var(--white);opacity:.85}
.footer-links a:hover{opacity:1;text-decoration:underline}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap}
.newsletter-form input[type=email]{flex:1;min-width:140px;padding:.7rem;border-radius:6px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:var(--white)}
.form-msg{min-height:1.2em;font-size:.85rem;margin-top:.5rem}
.form-msg.is-success{color:#8fd19e}
.form-msg.is-error{color:#f2a0a0}
.footer-bottom{text-align:center;opacity:.7;margin-top:2.5rem;font-size:.85rem}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr}}

/* ---------- Cookie banner ---------- */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:560px;margin:0 auto;background:var(--indigo-deep);color:var(--white);padding:1.2rem;border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;z-index:60}
.cookie-banner a{color:var(--ochre-light)}
.cookie-actions{display:flex;gap:.6rem}
.cookie-banner .btn-ghost{color:var(--white);border-color:var(--white)}

/* ---------- Hero ---------- */
.hero{position:relative;padding:clamp(3rem,8vw,6rem) 0;overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.hero h1{font-size:clamp(2.6rem,6vw,4.4rem);margin-bottom:.4rem}
.hero .lede{font-size:1.15rem;max-width:34ch;margin-bottom:1.6rem}
.hero-art{position:relative;aspect-ratio:1/1}
.hero-art svg{width:100%;height:100%}
.hero-shape{opacity:0;transform:translateY(30px) scale(.9);transition:opacity .8s ease,transform .8s ease}
.hero-art.assembled .hero-shape{opacity:1;transform:none}
.hero-shape:nth-child(1){transition-delay:.05s}
.hero-shape:nth-child(2){transition-delay:.18s}
.hero-shape:nth-child(3){transition-delay:.3s}
.hero-shape:nth-child(4){transition-delay:.42s}
.hero-shape:nth-child(5){transition-delay:.54s}
@media (prefers-reduced-motion:reduce){.hero-shape{opacity:1;transform:none}}
@media (max-width:860px){.hero .wrap{grid-template-columns:1fr}.hero-art{max-width:320px;margin:0 auto}}

/* ---------- Grain overlay ---------- */
.grain{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;mix-blend-mode:multiply;z-index:5}

/* ---------- Divider ---------- */
.divider{width:100%;height:28px;color:var(--ochre)}
.divider svg{width:100%;height:100%}

/* ---------- Section index (home composition) ---------- */
.index-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem}
.index-nav li{list-style:none}
.index-item{display:flex;gap:1rem;align-items:flex-start;padding:1.2rem;border:1px solid var(--linen-deep);border-radius:var(--radius);background:var(--white);transition:transform .3s,box-shadow .3s}
.index-item:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.index-num{font-family:var(--serif);font-size:1.6rem;color:var(--red);flex:none}

/* ---------- Product cards / strip ---------- */
.product-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.4rem}
.product-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .3s}
.product-card:hover{transform:translateY(-6px)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.product-card:hover .thumb img{transform:scale(1.07)}
.product-card .body{padding:1rem}
.product-card .category{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--ochre)}
.product-card .price{font-weight:700;color:var(--indigo-deep);margin-top:.4rem}
@media (max-width:640px){
  .product-strip{grid-auto-flow:column;grid-template-columns:unset;grid-auto-columns:72%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
  .product-card{scroll-snap-align:start}
}

/* ---------- Sýrový kompas ---------- */
.kompas{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(1.5rem,4vw,2.5rem);display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.kompas-controls .field{margin-bottom:1.2rem}
.kompas-controls label{display:block;font-weight:600;margin-bottom:.4rem}
.kompas-controls input[type=range]{width:100%;accent-color:var(--red)}
.kompas-controls select{width:100%;padding:.6rem;border-radius:6px;border:1px solid var(--linen-deep);accent-color:var(--red)}
.kompas-card{display:flex;gap:1rem;align-items:flex-start}
.kompas-card img{border-radius:8px;object-fit:cover;flex:none}
.kompas-tip{font-style:italic;color:var(--ochre)}
@media (max-width:760px){.kompas{grid-template-columns:1fr}}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{background:var(--indigo-deep);color:var(--white);padding:clamp(2.5rem,6vw,4rem) 0;text-align:left}
.page-hero h1{color:var(--white)}
.page-hero p{max-width:60ch;opacity:.9}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{font-size:.85rem;color:var(--ink);opacity:.75;margin:1rem 0}
.breadcrumbs a{color:var(--indigo)}

/* ---------- Prose (legal pages) ---------- */
.prose{max-width:70ch;margin:0 auto}
.prose h2{margin-top:2em}
.prose p,.prose li{line-height:1.7}
.prose ul{padding-left:1.2em}

/* ---------- Legal TOC ---------- */
.legal-toc{background:var(--white);border:1px solid var(--linen-deep);border-radius:var(--radius);padding:1.2rem 1.4rem;max-width:70ch;margin:0 auto 2rem}
.legal-toc h2{font-size:1rem;margin-bottom:.6rem}
.legal-toc ol{margin:0;padding-left:1.2em}

/* ---------- Notice ---------- */
.notice{border-left:4px solid var(--ochre);background:var(--white);padding:1rem 1.2rem;border-radius:0 var(--radius) var(--radius) 0;margin:1.5rem 0}
.notice.notice-warn{border-color:var(--red)}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field.full{grid-column:1/-1}
.field label{font-weight:600;font-size:.9rem}
.field input,.field textarea,.field select{padding:.7rem;border:1px solid var(--linen-deep);border-radius:6px;background:var(--white);font-family:var(--sans);accent-color:var(--red)}
.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid var(--ochre-light);outline-offset:1px;border-color:var(--ochre)}
.field-error{color:var(--red);font-size:.85rem;min-height:1.2em}
.hp{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}

/* ---------- Contact layout ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start}
.contact-info ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:1rem}
.contact-info li{display:flex;gap:.7rem;align-items:flex-start}
.contact-info svg{color:var(--red);flex:none;margin-top:.1rem}
@media (max-width:860px){.contact-layout{grid-template-columns:1fr}}

/* ---------- FAQ ---------- */
.faq{max-width:70ch;margin:0 auto;display:flex;flex-direction:column;gap:.8rem}
.faq-item{background:var(--white);border:1px solid var(--linen-deep);border-radius:var(--radius);padding:.3rem 1.2rem}
.faq-item summary{cursor:pointer;font-weight:700;padding:.9rem 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item summary::after{content:"+";font-size:1.3rem;color:var(--ochre)}
.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}
.product-detail .gallery{aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden}
.product-detail .gallery img{width:100%;height:100%;object-fit:cover}
.product-detail .price{font-size:1.8rem;color:var(--indigo-deep);font-family:var(--serif)}
.qty-stepper{display:inline-flex;align-items:center;border:1px solid var(--linen-deep);border-radius:999px;overflow:hidden}
.qty-stepper button{width:40px;height:40px;border:none;background:var(--white);cursor:pointer;font-size:1.1rem}
.qty-stepper input{width:3em;text-align:center;border:none}
@media (max-width:860px){.product-detail{grid-template-columns:1fr}}

/* ---------- Cart ---------- */
.cart-table{width:100%;border-collapse:collapse}
.cart-table th,.cart-table td{padding:.8rem;border-bottom:1px solid var(--linen-deep);text-align:left}
.cart-table img{width:60px;height:60px;object-fit:cover;border-radius:6px}
.cart-summary{background:var(--white);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);margin-top:1.5rem;max-width:380px;margin-left:auto}
.cart-summary .total-row{display:flex;justify-content:space-between;font-weight:700;font-size:1.2rem;margin:1rem 0}
.cart-empty{text-align:center;padding:3rem 0;color:var(--ink);opacity:.7}

/* ---------- Badge / ornament ---------- */
.seal{color:var(--red)}

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.flow>*+*{margin-top:1rem}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
@media (max-width:860px){.grid-2,.grid-3{grid-template-columns:1fr}}
.text-center{text-align:center}
.section-head{max-width:60ch;margin:0 auto 2.5rem;text-align:center}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;color:var(--ochre);font-weight:700}

/* COMPONENTS: .page-hero - dark intro banner for inner pages (h1 + lede) */
/* COMPONENTS: .prose - readable long-form legal/about text column */
/* COMPONENTS: .breadcrumbs - small trail link row under page-hero */
/* COMPONENTS: .notice / .notice-warn - highlighted callout box */
/* COMPONENTS: .btn / .btn-sweep / .btn-ghost / .btn-on-dark / .btn-small / .btn-icon - button variants */
/* COMPONENTS: .form-grid / .field / .field.full / .field-error / .hp - form layout and validation */
/* COMPONENTS: .faq / .faq-item - details/summary accordion list */
/* COMPONENTS: .product-detail / .gallery / .qty-stepper - single product page layout */
/* COMPONENTS: .cart-table / .cart-summary / .cart-empty - cart/checkout page */
/* COMPONENTS: .contact-layout / .contact-info - two-column contact page */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .index-nav / .index-item / .index-num - numbered home section index */
/* COMPONENTS: .product-strip / .product-card - catalog grid / scroll-snap strip */
/* COMPONENTS: .kompas / .kompas-controls / .kompas-card - Sýrový kompas feature */
/* COMPONENTS: .hero / .hero-art / .hero-shape - home hero with assembling SVG */
/* COMPONENTS: .divider - decorative SVG section divider */
/* COMPONENTS: .grain - fixed full-viewport texture overlay */
/* COMPONENTS: .reveal / .in-view - scroll reveal animation hook */
/* COMPONENTS: .section-head / .eyebrow - centered section intro */
/* COMPONENTS: .grid-2 / .grid-3 / .flow / .text-center - layout utilities */
/* COMPONENTS: .cookie-banner / .cookie-actions - cookie consent bar */
/* COMPONENTS: .site-header / .site-nav / .nav-toggle / .nav-cart / .cart-count - header & nav */
/* COMPONENTS: .site-footer / .footer-grid / .footer-links / .newsletter-form / .form-msg - footer */

/* ---------- Index section ---------- */
.index-section{background:var(--linen)}

/* ---------- Teasers (catalog, about) ---------- */
.catalog-teaser,.about-teaser{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(1.5rem,4vw,2.5rem)}

/* ---------- Filter group ---------- */
.filter-group{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.5rem;margin-bottom:1.5rem}

/* ---------- Category filter button ---------- */
.btn-category-filter{border-color:var(--ochre);color:var(--ochre)}
.btn-category-filter:hover,.btn-category-filter.active{background:var(--ochre);color:var(--white);border-color:var(--ochre)}

/* ---------- Contact form ---------- */
.contact-form{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:2rem;max-width:600px}

/* ---------- Order form ---------- */
.order-form{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:2rem}

/* ---------- Remove button ---------- */
.remove-btn{background:transparent;border:1px solid var(--red);color:var(--red);padding:.5rem 1rem;border-radius:4px;font-weight:600;font-size:.9rem;cursor:pointer;transition:background-color .3s,color .3s}
.remove-btn:hover{background:var(--red);color:var(--white)}

@media (max-width:640px){.contact-form,.order-form{padding:1.5rem}}

/* wg-contrast-autofix */
section.catalog-teaser div.wrap div.section-head.reveal p.eyebrow { color: #111111 !important; }
