/* ==== Klobouky Zvoneček — design system ==== */
:root {
  --aubergine: #3a1f3d;
  --aubergine-2: #58325c;
  --lime: #c6e21e;
  --lime-2: #a3c016;
  --ivory: #fbf3e3;
  --terracotta: #c75b2e;
  --brown: #6b3f2a;
  --ink: #241320;
  --radius: 1.4rem;
  --radius-sm: 0.7rem;
  --measure: 38rem;
  --maxw: 72rem;
  --shadow: 0 1.2rem 2.4rem -1rem rgba(36, 19, 32, 0.35);
  --font-display: "Cooper Black", Georgia, "Noto Serif", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .32, 1);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.6rem, 6vw + 1rem, 5.2rem); }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--terracotta); }

.grain-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: overlay; }

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.grid { display: grid; gap: 1.6rem; }
.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}.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}
.center { text-align: center; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ivory); border-bottom: 2px solid var(--aubergine); }
.header-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.4rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-word { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; color: var(--aubergine); }
.logo-word strong { color: var(--terracotta); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--aubergine); position: relative; padding: .2rem 0; }
.site-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; background: var(--terracotta); transition: right .25s var(--ease); }
.site-nav a:not(.nav-cart):hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.nav-cart { display: inline-flex; align-items: center; gap: .4rem; background: var(--aubergine); color: var(--ivory); padding: .5rem .9rem; border-radius: 2rem; }
.cart-count { background: var(--lime); color: var(--ink); border-radius: 50%; min-width: 1.3rem; height: 1.3rem; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-toggle, .nav-close { background: none; border: none; cursor: pointer; color: var(--aubergine); display: none; padding: .3rem; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(36,19,32,.4); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease); z-index: 98; }
.nav-backdrop.show { opacity: 1; visibility: visible; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 20rem);
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    padding: 4.5rem 1.6rem 2rem; gap: 1.2rem; z-index: 99;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
    box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .nav-close { display: block; position: absolute; top: 1rem; right: 1rem; }
  .nav-cart { width: 100%; }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; border: 2px solid var(--aubergine); border-radius: 2rem; padding: .75rem 1.6rem; cursor: pointer; text-decoration: none; position: relative; overflow: hidden; background: transparent; color: var(--aubergine); isolation: isolate; font-family: var(--font-body); font-size: 1rem; min-height: 44px; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--aubergine); z-index: -1; transition: left .3s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ivory); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-lime::before { background: var(--ink); }
.btn-lime:hover, .btn-lime:focus-visible { color: var(--lime); }
.btn-terracotta { background: var(--terracotta); border-color: var(--terracotta); color: var(--ivory); }
.btn-terracotta::before { background: var(--aubergine); }
.btn-ghost { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn-ghost::before { background: var(--ivory); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- hero / split screen ---- */
.hero-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; overflow: hidden; }
.hero-pane { position: relative; display: flex; align-items: center; padding: 3rem clamp(1.4rem, 5vw, 4rem); }
.hero-pane--dark { background: var(--aubergine); color: var(--ivory); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.hero-pane--light { background: var(--ivory); color: var(--ink); margin-left: -8%; padding-left: calc(clamp(1.4rem,5vw,4rem) + 8%); }
.hero-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; background: var(--lime); transform: translateX(-3px) skewX(-8deg); z-index: 5; box-shadow: 0 0 0 4px var(--terracotta); }
.hero-title { position: relative; }
.hero-underline { display: inline; position: relative; }
.hero-underline svg { position: absolute; left: 0; bottom: -0.15em; width: 100%; height: .3em; }
.hero-underline path { stroke: var(--terracotta); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: drawUnderline 1s var(--ease) .4s forwards; }
.hero-pane--light .hero-underline path { stroke: var(--lime-2); }
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }
.hero-art { max-width: 20rem; margin-top: 1.4rem; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-pane--dark { clip-path: none; padding-bottom: 4rem; }
  .hero-pane--light { margin-left: 0; padding-left: clamp(1.4rem,5vw,4rem); }
  .hero-divider { display: none; }
}

/* ---- page hero for inner pages ---- */
.page-hero { background: var(--aubergine); color: var(--ivory); padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero p { max-width: var(--measure); opacity: .9; }

/* ---- breadcrumbs ---- */
.breadcrumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .85rem; opacity: .85; margin-bottom: 1rem; list-style: none; padding: 0; }
.breadcrumbs li::after { content: "／"; margin: 0 .4rem; opacity: .6; }
.breadcrumbs li:last-child::after { content: ""; }

/* ---- cards ---- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card-media { aspect-ratio: 4/5; overflow: hidden; background: var(--aubergine-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-price { font-weight: 800; color: var(--terracotta); }

/* ---- notices ---- */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 2px solid var(--aubergine); background: var(--ivory); margin: 1.2rem 0; }
.notice-success { border-color: var(--lime-2); background: #f3f9d8; }
.notice-error { border-color: var(--terracotta); background: #fbe7dd; }

/* ---- forms ---- */
.form-grid { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .9rem; border: 2px solid var(--aubergine); border-radius: var(--radius-sm);
  background: #fff; min-height: 44px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--terracotta); outline-offset: 1px; }
.field-error { border-color: var(--terracotta) !important; background: #fdf0ea; }
.field-hint { font-size: .8rem; opacity: .75; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-weight: 700; }
.form-msg.error { color: var(--terracotta); }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 10rem; padding: .6rem .8rem; border-radius: var(--radius-sm); border: 2px solid var(--ivory); background: rgba(255,255,255,.08); color: var(--ivory); }
.newsletter-form input::placeholder { color: rgba(251,243,227,.7); }

/* ---- prose (legal pages) ---- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.legal-toc { background: #fff; border: 2px solid var(--aubergine); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; max-width: var(--measure); }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc a { text-decoration: underline; }

/* ---- faq ---- */
.faq { max-width: var(--measure); display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: #fff; border: 2px solid var(--aubergine); border-radius: var(--radius-sm); padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; opacity: .9; }

/* ---- product detail ---- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--aubergine-2); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info .card-price { font-size: 1.6rem; }
.qty-input { display: inline-flex; align-items: center; gap: .5rem; }
.qty-input input { width: 4rem; text-align: center; }

/* ---- cart / checkout ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem .6rem; border-bottom: 2px solid var(--ivory); }
.cart-table img { width: 4.2rem; height: 5.2rem; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: #fff; border: 2px solid var(--aubergine); border-radius: var(--radius); padding: 1.4rem 1.6rem; max-width: 24rem; margin-left: auto; }
.cart-summary dl { display: flex; justify-content: space-between; margin: .4rem 0; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ---- contact ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; }

/* ---- product strip / catalog ---- */
.product-strip { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1rem; }
.product-strip .card { flex: 0 0 15rem; scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .product-strip .card { flex: initial; } }

/* ---- signature feature: Zvonečkův Měřič ---- */
.fitter { background: var(--aubergine); color: var(--ivory); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.fitter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .fitter-grid { grid-template-columns: 1fr; } }
.fitter .field label { color: var(--ivory); }
.fitter .field input, .fitter .field select { background: rgba(255,255,255,.1); border-color: var(--lime); color: var(--ivory); }
.fitter-result { background: var(--ivory); color: var(--ink); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; min-height: 6rem; }
.fitter-result strong { color: var(--terracotta); }

/* ---- decorative dividers ---- */
.divider { width: 100%; height: 3.5rem; display: block; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .6s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(1.2rem); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---- cookie banner ---- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; background: var(--aubergine); color: var(--ivory); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: var(--shadow); max-width: 40rem; margin: 0 auto; }
.cookie-actions { display: flex; gap: .6rem; }

/* ---- footer ---- */
.site-footer { background: var(--aubergine); color: var(--ivory); position: relative; padding-top: 2.5rem; }
.footer-wave { display: block; margin-top: -2.4rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.4rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lime); }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { text-decoration: none; opacity: .9; }
.footer-nav a:hover { text-decoration: underline; }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; text-decoration: none; }
.footer-logo { margin-bottom: .8rem; }
.footer-bottom { text-align: center; padding: 1rem 0 1.6rem; opacity: .75; font-size: .85rem; }

/* COMPONENTS: .wrap - centered max-width container
   COMPONENTS: .section - vertical page section spacing
   COMPONENTS: .grid/.grid-2/.grid-3/.grid-4 - responsive CSS grid rows
   COMPONENTS: .btn/.btn-lime/.btn-terracotta/.btn-ghost/.btn-block - button variants with fill-sweep hover
   COMPONENTS: .hero-split/.hero-pane/.hero-divider/.hero-underline - home split-screen hero
   COMPONENTS: .page-hero - inner page hero band
   COMPONENTS: .breadcrumbs - breadcrumb trail list
   COMPONENTS: .card/.card-media/.card-body/.card-price - product/content card
   COMPONENTS: .notice/.notice-success/.notice-error - alert boxes
   COMPONENTS: .form-grid/.field/.field-error/.field-hint/.hp-field/.form-msg - form building blocks
   COMPONENTS: .prose - readable long-text measure for legal pages
   COMPONENTS: .legal-toc - table of contents box for legal pages
   COMPONENTS: .faq/.faq-item - details/summary FAQ accordion
   COMPONENTS: .product-detail/.product-gallery/.product-info/.qty-input - product page layout
   COMPONENTS: .cart-table/.cart-summary/.cart-empty - cart/checkout layout
   COMPONENTS: .contact-layout/.contact-info - contact page split layout
   COMPONENTS: .product-strip - horizontal scroll-snap product row
   COMPONENTS: .fitter/.fitter-grid/.fitter-result - signature size-finder feature
   COMPONENTS: .cookie-banner/.cookie-actions - cookie consent banner
   COMPONENTS: .site-header/.site-nav/.nav-cart/.cart-count - header & nav
   COMPONENTS: .site-footer/.footer-inner/.footer-nav - footer layout
   COMPONENTS: .reveal/.reveal-stagger - scroll reveal animation hooks
   COMPONENTS: .newsletter-form - footer newsletter signup
   COMPONENTS: .divider - decorative SVG divider wrapper
   COMPONENTS: .skip-link - accessibility skip-to-content link */

/* wg-contrast-autofix */
#siteNav a.nav-cart span { color: #ffffff !important; }
div.footer-inner div.footer-col a.logo.footer-logo span.logo-word { color: #ffffff !important; }
