/* ===== Klobúky Lienka — design system ===== */
:root {
  --ink: #1c1c1e;
  --ink-soft: #46464a;
  --grey-50: #f7f6f3;
  --grey-100: #efeee9;
  --grey-200: #e2e0d9;
  --grey-300: #c9c6bc;
  --grey-500: #8d8a81;
  --paper: #f3f1ec;
  --accent: #ff3b5c;
  --accent-ink: #ffffff;
  --green: #3f6b4a;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(28,28,30,.35);
  --maxw: 1240px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Avenir Next", Futura, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0 0 .5em; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font-family: inherit; cursor: pointer; }

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 110px) 0; position: relative; }
.grid { display: grid; gap: 28px; }
.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-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}

/* ---- buttons ---- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  background: transparent; color: var(--ink); min-height: 44px;
  transition: color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--ink); z-index: -1; transition: left .35s ease;
}
.btn:hover::before { left: 0; }
.btn:hover { color: var(--paper); }
.btn-accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-accent::before { background: var(--ink); }
.btn-accent:hover { color: var(--accent-ink); }
.btn-ghost { border-color: var(--grey-300); color: var(--ink); }
.btn-ghost::before { background: var(--grey-200); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .85rem; min-height: 40px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: rgba(243,241,236,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-200);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { color: var(--ink); flex: none; }
.logo-word { color: var(--ink); flex: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); min-width: 44px; min-height: 44px; }
.nav-close { display: none; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: .92rem; font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { border-color: var(--accent); }
.nav-cart { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.nav-scrim { position: fixed; inset: 0; background: rgba(28,28,30,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 45; }
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--paper); min-width: 44px; min-height: 44px; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 86vw);
    background: var(--ink); color: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 80px 28px 28px; gap: 20px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
    z-index: 46;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--paper); font-size: 1.1rem; }
}

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 24px; margin-top: 60px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.2fr 2fr 1.3fr; gap: 40px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand svg { color: var(--paper); }
.footer-brand span { color: var(--grey-300); font-size: .85rem; }
.footer-nav { display: flex; gap: 32px; }
.footer-col h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-300); margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; color: var(--paper); opacity: .85; font-size: .92rem; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form h3 { font-family: var(--serif); color: var(--paper); margin-bottom: 6px; }
.newsletter-form p { color: var(--grey-300); font-size: .88rem; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--grey-500); background: transparent; color: var(--paper); }
.field-row input::placeholder { color: var(--grey-300); }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--grey-300); }
.footer-bottom a { display: inline-flex; gap: 6px; align-items: center; color: var(--grey-300); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-nav { flex-wrap: wrap; gap: 24px; } }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.2em; font-size: .85rem; margin: 8px 0 0; }
.form-msg-ok { color: #8fd9a1; }
.form-msg-error { color: #ff8a9b; }

/* ---- cookie banner ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); max-width: 680px; margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: .88rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-banner .btn-ghost { border-color: var(--grey-500); color: var(--paper); }
.cookie-banner .btn-ghost::before { background: rgba(255,255,255,.14); }
.cookie-banner .btn-ghost:hover { color: var(--paper); }

/* ---- reveal / motion ---- */
.reveal { opacity: 1; }
.reveal:not(.in-view) { opacity: 0; transform: translateY(26px); }
.reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.in-view) { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- hero (home) ---- */
.hero {
  position: relative; padding: 48px 0 0; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  background: linear-gradient(160deg, var(--grey-100), var(--paper));
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-bottom: 70px; }
.hero-eyebrow { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: .2em 0 .5em; }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 460px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s ease forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-line { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 900px) { .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: .035; mix-blend-mode: multiply; z-index: 1; }

/* diagonal sections */
.section-tilt { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); }
.section-tilt-rev { clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2 { color: var(--paper); }
.section-accent { background: var(--accent); color: var(--accent-ink); }

/* divider svg */
.divider { display: block; width: 100%; height: auto; color: var(--grey-300); }

/* ---- cards ---- */
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); }
.card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card-price { font-weight: 700; color: var(--accent); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* product strip (scroll-snap on mobile) */
.product-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .product-strip .card { min-width: 72vw; scroll-snap-align: start; }
}

/* ---- underline link ---- */
.link-draw { position: relative; font-weight: 600; }
.link-draw::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .3s ease; }
.link-draw:hover::after { right: 0; }

/* ---- signature feature: Lienkin veľkomer ---- */
.sizer {
  background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.sizer-form { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.sizer-input-row { display: flex; gap: 10px; align-items: center; }
.sizer-input-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.sizer-value { font-family: var(--mono); font-size: 1.4rem; min-width: 70px; text-align: right; }
.sizer-result { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.sizer-result .size-big { font-family: var(--serif); font-size: 3rem; color: var(--accent); margin: 0; }
.sizer-result p { margin: 6px 0 0; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 760px) { .sizer { grid-template-columns: 1fr; } }

/* ===== inner-page components ===== */
.page-hero {
  padding: 56px 0 40px; background: var(--grey-100);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: var(--ink-soft); max-width: 640px; }

.breadcrumbs { font-size: .82rem; color: var(--grey-500); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { max-width: 680px; margin: 0 auto; font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.legal-toc { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 20px 24px; margin: 0 auto 40px; max-width: 680px; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { text-decoration: underline; }

.notice { border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; border: 1px solid; margin: 1.5em 0; }
.notice-info { background: #eef4f1; border-color: #bcd7c8; color: var(--green); }
.notice-warn { background: #fff0e8; border-color: #f3c9ab; color: #8a4a1b; }
.notice-accent { background: #fff0f3; border-color: #ffc2cd; color: #a31537; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1.5px solid var(--grey-300); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: .95rem; accent-color: var(--accent);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field-error { color: var(--accent); font-size: .8rem; min-height: 1.1em; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.faq { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--grey-200); padding: 6px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 4px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 16px; color: var(--ink-soft); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.product-detail .card-media { aspect-ratio: 1/1; border-radius: var(--radius); }
.product-detail h1 { font-size: 2.2rem; }
.product-detail .card-price { font-size: 1.4rem; display: block; margin: 10px 0 20px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 24px; }
.size-options button { border: 1.5px solid var(--grey-300); background: #fff; border-radius: 10px; padding: 10px 16px; min-width: 44px; min-height: 44px; }
.size-options button.is-selected { border-color: var(--accent); color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--grey-200); }
.cart-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-500); }
.cart-summary { max-width: 360px; margin-left: auto; background: var(--grey-50); border-radius: var(--radius); padding: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--grey-200); padding-top: 12px; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info .row { display: flex; gap: 12px; align-items: flex-start; }
.contact-info svg { flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.badge-seal { color: var(--accent); }

/* COMPONENTS: .btn / .btn-accent / .btn-ghost / .btn-sm - button variants (fill-sweep hover)
COMPONENTS: .site-header / .main-nav / .nav-toggle / .nav-cart - site header & responsive nav
COMPONENTS: .site-footer / .footer-nav / .newsletter-form - site footer with links + newsletter
COMPONENTS: .cookie-banner / .cookie-actions - cookie consent banner
COMPONENTS: .reveal / .reveal-delay-1..3 - scroll-reveal animation hooks (JS adds .in-view)
COMPONENTS: .hero / .hero-art / .hero-line - home hero with SVG line-draw illustration
COMPONENTS: .section / .section-tilt / .section-tilt-rev / .section-dark / .section-accent - diagonal page sections
COMPONENTS: .grain - fixed noise texture overlay
COMPONENTS: .divider - decorative full-width SVG section divider
COMPONENTS: .card / .card-media / .card-body / .card-badge / .card-price - product/content card
COMPONENTS: .product-strip - horizontal scroll-snap product strip on mobile, grid on desktop
COMPONENTS: .link-draw - underline-draw hover link
COMPONENTS: .sizer / .sizer-form / .sizer-result - signature feature "Lienkin veľkomer" widget
COMPONENTS: .page-hero - inner page hero banner
COMPONENTS: .breadcrumbs - breadcrumb trail
COMPONENTS: .prose - readable long-form legal/text content
COMPONENTS: .legal-toc - table of contents box for legal pages
COMPONENTS: .notice / .notice-info / .notice-warn / .notice-accent - callout boxes
COMPONENTS: .form-grid / .field / .field-error / .field-full - form layout system
COMPONENTS: .faq / .faq-item - details/summary FAQ accordion
COMPONENTS: .product-detail / .size-options - product page layout
COMPONENTS: .cart-table / .cart-summary - cart & checkout layout
COMPONENTS: .contact-layout / .contact-info - contact page layout
COMPONENTS: .grid / .grid-2 / .grid-3 / .grid-4 - responsive grid utilities
COMPONENTS: .wrap / .section - max-width container & vertical section padding
*/

/* wg-contrast-autofix */
div.wrap div.sizer.reveal div.sizer-form label { color: #111111 !important; }
#sizerValue { color: #111111 !important; }
div.wrap div.sizer.reveal div.sizer-form p { color: #111111 !important; }
