/* Ponožky Domov — design system */

:root {
  --forest: #1f3d2e;
  --forest-dark: #142a20;
  --cream: #f6efdf;
  --bone: #efe6d2;
  --brass: #b8894f;
  --brass-dark: #8f6836;
  --rust: #a23b2e;
  --ink: #23201a;
  --line: rgba(31, 61, 46, 0.18);
  --radius: 14px;
  --shadow-card: 0 10px 28px -14px rgba(20, 42, 32, 0.45);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --ff-body: "Avenir Next", Segoe UI, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--cream);
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.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: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 3rem; } .mb-lg { margin-bottom: 3rem; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; clip-path: inset(0 0 15% 0); }
html.js .reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }
html.js .reveal.d4 { transition-delay: .32s; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; aspect-ratio: 1; flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; font-family: var(--ff-display); line-height: 1.05; }
.logo-line1 { font-size: 1rem; color: var(--forest); }
.logo-line2 { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-size: .95rem; position: relative; padding: .3rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass); transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--forest); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: flex; color: var(--forest); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--rust); color: #fff;
  font-size: .7rem; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-link.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; background: none; border: 0; padding: .4rem; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--forest); }
.icon-close { display: none; }
.header-stripes { height: 6px; background: repeating-linear-gradient(45deg, var(--forest) 0 14px, var(--rust) 14px 28px); opacity: .85; }

@media (max-width: 880px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--forest); color: var(--cream);
    padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.1rem; }
  .main-nav a { color: var(--cream); font-size: 1.1rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  min-height: 44px; text-decoration: none; position: relative; overflow: hidden;
}
.btn-solid { background: var(--forest); color: var(--cream); }
.btn-solid:hover { background: var(--forest-dark); }
.btn-brass { background: var(--brass); color: var(--forest-dark); }
.btn-brass:hover { background: var(--brass-dark); color: var(--cream); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: rgba(246,239,223,.15); }
.btn-sweep { isolation: isolate; }
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--brass);
  transition: left .35s ease; z-index: -1;
}
.btn-sweep:hover::before { left: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-copy, .hero-art { min-width: 0; }
@media (max-width: 880px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
.hero-kicker { font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--rust); display: inline-block; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--forest-dark); }
.hero-lead { font-size: 1.1rem; max-width: 36ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; max-width: 100%; }
.hero-grain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply; }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: .9rem 0; background: var(--bone); }
.ticker-track { display: flex; gap: 2.2rem; white-space: nowrap; width: max-content; }
html.js .ticker-track { animation: ticker 22s linear infinite; }
.ticker-track span { font-family: var(--ff-display); font-size: 1.1rem; color: var(--forest); }
.ticker-track span::after { content: "✶"; margin-left: 2.2rem; color: var(--brass); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- route / timeline (home composition) ---------- */
.route { position: relative; padding: 2rem 0; }
.route-path { position: absolute; left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); z-index: 0; }
.route-path svg { width: 100%; height: 100%; }
.route-steps { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3rem; }
.route-step { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.route-step:nth-child(even) .route-text { order: 2; }
.route-marker {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brass); color: var(--forest-dark);
  display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 700;
  margin: 0 auto 1rem; box-shadow: var(--shadow-card);
}
.route-card { background: var(--bone); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
@media (max-width: 760px) {
  .route-path { display: none; }
  .route-step, .route-step:nth-child(even) .route-text { grid-template-columns: 1fr; order: initial; }
}

/* ---------- cards ---------- */
.card { background: var(--bone); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); }
.product-card { display: flex; flex-direction: column; position: relative; }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-badge { position: absolute; top: .8rem; left: .8rem; background: var(--rust); color: #fff; font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; z-index: 2; }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-material { font-size: .8rem; color: var(--brass-dark); font-family: var(--ff-mono); }
.product-name { font-size: 1.15rem; margin: 0; }
.product-name a { text-decoration: none; }
.product-price { font-weight: 700; color: var(--forest-dark); font-size: 1.05rem; }
.product-actions { margin-top: auto; display: flex; gap: .6rem; }

.strip { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.strip .product-card { min-width: 240px; scroll-snap-align: start; }
@media (min-width: 760px) { .strip { overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); } }

/* ---------- Ponožkový Navigátor (signature feature) ---------- */
.navigator { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 2.4rem; position: relative; overflow: hidden; }
.navigator::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(246,239,223,.04) 0 18px, transparent 18px 36px); pointer-events: none; }
.navigator h2 { color: var(--cream); }
.navigator-form { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0; }
@media (max-width: 760px) { .navigator-form { grid-template-columns: 1fr; } }
.navigator-group { background: rgba(246,239,223,.08); border-radius: 10px; padding: 1rem; }
.navigator-group legend { font-family: var(--ff-mono); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--brass); margin-bottom: .6rem; padding: 0; }
.navigator-group label { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.navigator-group input { accent-color: var(--brass); width: 18px; height: 18px; }
.navigator-result { background: var(--cream); color: var(--ink); border-radius: 10px; padding: 1.2rem; min-height: 90px; }
.navigator-result .product-mini { display: flex; align-items: center; gap: .9rem; padding: .5rem 0; text-decoration: none; color: var(--ink); }
.navigator-result .product-mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.navigator-path { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .25; }

/* ---------- dividers / ornaments ---------- */
.divider { width: 100%; height: 40px; display: block; }
.ornament { width: 100%; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--forest); color: var(--cream); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); font-size: clamp(2.1rem, 4.5vw, 3rem); }
.page-hero .lead { max-width: 60ch; opacity: .92; }
.page-hero .header-stripes { position: absolute; left: 0; bottom: 0; width: 100%; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; display: flex; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--brass); }
.breadcrumbs a { text-decoration: none; color: var(--forest); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 72ch; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.4rem; color: var(--forest-dark); }
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.legal-toc { background: var(--bone); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: 72ch; margin: 0 auto 2rem; }
.legal-toc h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--ff-mono); }
.legal-toc ol { margin: 0; padding-left: 1.3rem; }

/* ---------- notice ---------- */
.notice { border-radius: 10px; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--bone); margin-bottom: 1.5rem; }
.notice-info { border-color: var(--brass); }
.notice-warn { border-color: var(--rust); background: #f7e5e1; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.field-wide { grid-column: 1/-1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .9rem; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
  accent-color: var(--brass); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field-error { color: var(--rust); font-size: .82rem; margin: 0; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.is-error { color: var(--rust); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-row { display: flex; gap: .6rem; }
@media (max-width: 460px) { .field-row { flex-direction: column; } }

/* ---------- faq ---------- */
.faq { max-width: 72ch; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; 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(--brass); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.size-select { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0 1.2rem; }
.size-select button { min-width: 44px; min-height: 44px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.size-select button.is-selected { border-color: var(--forest); background: var(--forest); color: var(--cream); }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-table .qty-input { width: 64px; min-height: 40px; padding: .3rem .5rem; border-radius: 6px; border: 1.5px solid var(--line); }
.cart-summary { background: var(--bone); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info .item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info .icon { color: var(--brass-dark); margin-top: .2rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 1rem; }
.notfound .big { font-size: clamp(5rem, 18vw, 10rem); color: var(--brass); font-family: var(--ff-display); line-height: 1; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; z-index: 300;
  background: var(--forest-dark); color: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: .9rem;
}
.cookie-banner a { color: var(--brass); text-decoration: underline; }
.cookie-actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding-top: .5rem; }
.footer-divider { width: 100%; height: 24px; display: block; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.3rem; }
.footer-brand p { opacity: .85; max-width: 32ch; }
.footer-addr { display: flex; align-items: center; gap: .5rem; opacity: .85; }
.footer-col h3 { font-family: var(--ff-mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; color: var(--brass); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { text-decoration: underline; }
.footer-mail { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; }
.footer-mail a { text-decoration: none; }
.newsletter-form input[type="email"] { flex: 1; border-radius: 8px; border: none; padding: .7rem .9rem; min-height: 44px; }
.footer-bottom { text-align: center; padding: 1rem; border-top: 1px solid rgba(246,239,223,.15); font-size: .85rem; opacity: .8; }

/* COMPONENTS: .class - what it is
.page-hero - dark hero band used at top of every inner page
.prose - readable-measure container for long legal/body text
.breadcrumbs - small link trail under the page-hero
.notice / .notice-info / .notice-warn - callout box variants
.btn / .btn-solid / .btn-brass / .btn-outline / .btn-ghost / .btn-sweep - button base + color variants + fill-sweep hover
.form-grid / .field / .field-wide / .field-error / .form-msg - form layout, single field wrapper, full-width field, inline error, status message
.faq / .faq-item - details/summary accordion list and single item
.legal-toc - table-of-contents box for legal pages
.product-detail / .size-select - product page two-column layout and size picker buttons
.cart-table / .cart-summary / .cart-empty - cart line-item table, totals box, empty-state message
.contact-layout / .contact-info - two-column contact page shell and the info list
.card / .product-card / .product-badge / .product-body / .product-material / .product-name / .product-price / .product-actions - generic card and the full product card anatomy
.strip - horizontal scroll-snap product strip (becomes a grid on desktop)
.route / .route-path / .route-steps / .route-step / .route-marker / .route-card - home page winding timeline composition
.navigator / .navigator-form / .navigator-group / .navigator-result - the "Ponožkový Navigátor" signature feature
.hero / .hero-inner / .hero-kicker / .hero-title / .hero-lead / .hero-actions / .hero-art / .hero-grain - home hero band and its parts
.ticker / .ticker-track - infinite scrolling product-name ticker
.divider / .ornament - decorative inline SVG dividers
.reveal / .in-view / .d1-d4 - scroll-reveal base state, active state, stagger delays
.cookie-banner / .cookie-actions - fixed cookie consent banner and its button row
.notfound / .big - 404 page layout and oversized numeral
.wrap / .section / .section-tight - page width container and vertical rhythm paddings
.grid / .grid-2 / .grid-3 / .grid-4 - responsive CSS grid helpers
*/

/* wg-contrast-autofix */
div.footer-inner div.footer-brand span.logo-word.footer-logo span.logo-line1 { color: #ffffff !important; }
