/* Hišica - design system. Maker-workshop style: lavender, graphite, mint, wood. */
:root {
  --lavender: #cdbfe0;
  --lavender-deep: #9c87c2;
  --mint: #a9d4c3;
  --mint-deep: #6fae95;
  --rose: #f3dadf;
  --wood: #8a6a51;
  --wood-dark: #5a4433;
  --graphite: #33302e;
  --cream: #fbf6ef;
  --paper: #ffffff;
  --ink: #2c2825;
  --error: #b84646;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 10px 30px -12px rgba(50, 40, 30, 0.28);
  --measure: 68ch;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", monospace;
}

* { 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(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; }
.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(--ink); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Layout helpers ===== */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flow > * + * { margin-top: 1em; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 246, 239, .92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(90, 68, 51, .12); }
.header-inner { max-width: 1180px; margin-inline: auto; padding: .8rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--wood-dark); }
.logo-mark { flex-shrink: 0; }
.logo-word svg { display: block; width: 110px; height: 23px; }
.nav-toggle { display: none; background: none; border: none; color: var(--wood-dark); cursor: pointer; padding: .4rem; min-width: 44px; min-height: 44px; }
.nav-close { display: none; background: none; border: none; color: var(--wood-dark); cursor: pointer; align-self: flex-end; min-width: 44px; min-height: 44px; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--graphite); position: relative; padding: .3rem 0; }
.main-nav a:not(.nav-cart)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--mint-deep); transition: right .25s ease; }
.main-nav a:not(.nav-cart):hover::after, .main-nav a.is-active:not(.nav-cart)::after { right: 0; }
.main-nav a.is-active { color: var(--wood-dark); }
.nav-cart { display: flex; align-items: center; gap: .4rem; background: var(--graphite); color: #fff; padding: .5rem .9rem; border-radius: 999px; }
.cart-count { background: var(--mint); color: var(--wood-dark); border-radius: 999px; padding: 0 .45em; font-size: .8rem; font-weight: 700; display: inline-block; min-width: 1.4em; text-align: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 1.2rem 1.5rem; gap: 1.1rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 150;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cart { width: 100%; justify-content: center; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 999px; padding: .75em 1.6em; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; min-height: 44px; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { background: var(--wood-dark); color: #fff; }
.btn-primary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--mint-deep); z-index: -1; transition: left .3s ease; }
.btn-primary:hover::before { left: 0; }
.btn-secondary { background: var(--mint); color: var(--wood-dark); }
.btn-secondary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--lavender); z-index: -1; transition: left .3s ease; }
.btn-secondary:hover::before { left: 0; }
.btn-ghost { background: transparent; color: var(--wood-dark); border-color: currentColor; }
.btn-ghost:hover { background: rgba(90,68,51,.08); }
.btn-outline-dark { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-dark:hover { background: #fff; color: var(--graphite); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ===== Hero (home) ===== */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem); overflow: hidden; background: linear-gradient(160deg, var(--rose) 0%, var(--cream) 55%); }
.hero-inner { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); color: var(--wood-dark); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); filter: sepia(.15) saturate(1.05); transition: filter .4s ease; }
.hero.scrolled .hero-photo { filter: sepia(.4) hue-rotate(-10deg) saturate(1.3); }
.hero-card { position: absolute; left: -10%; bottom: -8%; background: var(--paper); border-radius: var(--radius-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-card); max-width: 220px; transform: rotate(-3deg); }
.hero-card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { left: 0; bottom: -10%; }
}

/* ===== Reveal / scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Sections / dividers ===== */
.divider { width: 100%; height: 36px; color: var(--mint-deep); display: block; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--wood-dark); }
.section-kicker { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--mint-deep); display: inline-block; margin-bottom: .5rem; }

/* ===== Cards ===== */
.card { background: var(--paper); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -14px rgba(50,40,30,.35); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.2rem 1.4rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.card-price { font-weight: 700; color: var(--wood-dark); font-family: var(--font-mono); }

/* ===== Product strip (home) ===== */
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { flex: 0 0 240px; scroll-snap-align: start; }
@media (min-width: 820px) {
  .product-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .product-strip .card { flex: initial; }
}

/* ===== Signature feature: Hišni Načrtovalec (room planner) ===== */
.planner { background: var(--graphite); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.planner h2, .planner .section-kicker { color: var(--cream); }
.planner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.planner-room { position: relative; aspect-ratio: 1/1; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 20px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 20px); background-color: #403c39; border-radius: var(--radius-md); overflow: hidden; touch-action: none; }
.planner-item { position: absolute; width: 60px; height: 60px; background: var(--mint); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; cursor: grab; user-select: none; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.planner-item:active { cursor: grabbing; }
.planner-tray { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.planner-tray .planner-item { position: static; }
.planner-total { font-family: var(--font-mono); font-size: 1.3rem; margin-top: 1rem; }
.planner-controls { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .planner-grid { grid-template-columns: 1fr; } }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: linear-gradient(160deg, var(--lavender) 0%, var(--cream) 70%); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--wood-dark); }
.page-hero p { max-width: 60ch; font-size: 1.1rem; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; font-family: var(--font-mono); color: var(--wood); display: flex; gap: .4em; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; color: var(--wood-dark); }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--paper); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; max-width: var(--measure); margin: 0 auto 2rem; box-shadow: var(--shadow-card); }
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid; margin-block: 1rem; }
.notice-info { background: rgba(169, 212, 195, .25); border-color: var(--mint-deep); }
.notice-warn { background: rgba(243, 218, 223, .5); border-color: var(--rose); }
.notice-error { background: rgba(184, 70, 70, .08); border-color: var(--error); color: var(--error); }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: .7em .9em; border-radius: var(--radius-sm); border: 1.5px solid rgba(90,68,51,.3);
  background: var(--paper); accent-color: var(--mint-deep);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lavender-deep); }
.field-error { color: var(--error); font-size: .85rem; min-height: 1.2em; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.is-success { color: var(--mint-deep); font-weight: 700; }
.form-msg.is-error { color: var(--error); font-weight: 700; }
.newsletter-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-row input { flex: 1; min-width: 180px; }

/* ===== FAQ ===== */
.faq { max-width: var(--measure); margin-inline: auto; }
.faq-item { background: var(--paper); border-radius: var(--radius-sm); margin-bottom: .8rem; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-item summary { padding: 1rem 1.3rem; font-weight: 700; cursor: pointer; 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(--mint-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item div { padding: 0 1.3rem 1.1rem; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.product-gallery img { border-radius: var(--radius-md); aspect-ratio: 1/1; object-fit: cover; }
.product-info h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.product-price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--wood-dark); font-weight: 700; }
.product-specs { border-collapse: collapse; width: 100%; margin-top: 1rem; }
.product-specs th, .product-specs td { text-align: left; padding: .5em .8em .5em 0; border-bottom: 1px solid rgba(90,68,51,.15); font-size: .95rem; }
.qty-input { width: 70px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9em .6em; border-bottom: 1px solid rgba(90,68,51,.15); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: var(--paper); border-radius: var(--radius-md); padding: 1.4rem; box-shadow: var(--shadow-card); max-width: 360px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary-total { font-weight: 700; font-size: 1.2rem; font-family: var(--font-mono); }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info-item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info-item svg { flex-shrink: 0; color: var(--mint-deep); }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== Icon list (used for delivery/returns steps) ===== */
.icon-list { display: grid; gap: 1.4rem; }
.icon-list-item { display: flex; gap: 1rem; align-items: flex-start; }
.icon-list-item svg { flex-shrink: 0; color: var(--wood-dark); background: var(--mint); border-radius: 50%; padding: .5rem; width: 44px; height: 44px; box-sizing: border-box; }

/* ===== Badge / seal ===== */
.seal { width: 90px; height: 90px; color: var(--wood-dark); }

/* ===== Toast ===== */
.hisicka-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 20px); background: var(--graphite); color: #fff; padding: .8em 1.4em; border-radius: 999px; opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 300; }
.hisicka-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Footer ===== */
.site-footer { background: var(--wood-dark); color: var(--rose); margin-top: 4rem; position: relative; }
.footer-divider { width: 100%; height: 30px; display: block; color: var(--mint); margin-top: -29px; }
.footer-inner { max-width: 1180px; margin-inline: auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 1.5rem; display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: .6rem; color: var(--rose); }
.footer-brand svg { color: var(--mint); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); color: var(--mint); margin-bottom: .6rem; }
.footer-cols a { display: block; color: var(--rose); text-decoration: none; opacity: .85; margin-bottom: .45rem; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form h3 { color: var(--rose); font-family: var(--font-display); font-size: 1.1rem; }
.newsletter-form input { border-radius: var(--radius-sm); border: none; padding: .7em .9em; }
.footer-bottom { text-align: center; padding: 1rem; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin-inline: auto; background: var(--graphite); color: #fff; border-radius: var(--radius-md); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-card); z-index: 250; display: flex; flex-direction: column; gap: .8rem; }
.cookie-banner a { text-decoration: underline; color: var(--mint); }
.cookie-actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Grain texture overlay (optional use) ===== */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

/* ===== 404 ===== */
.not-found { text-align: center; padding-block: clamp(3rem, 10vw, 7rem); }
.not-found h1 { font-size: clamp(3rem, 10vw, 6rem); }

/*
COMPONENTS:
.wrap - centered max-width container with responsive side padding
.section - vertical rhythm padding block for page sections
.grid / .grid-2 / .grid-3 - responsive CSS grid helpers
.flow - vertical spacing between stacked children
.site-header / .header-inner - sticky site header
.logo / .logo-mark / .logo-word - SVG logo lockup
.nav-toggle / .nav-close / .main-nav / .nav-cart - responsive nav + off-canvas mobile menu
.cart-count - cart item count badge (.bump animates on change)
.btn / .btn-primary / .btn-secondary / .btn-ghost / .btn-outline-dark / .btn-block - button variants with fill-sweep hover
.hero / .hero-inner / .hero-lead / .hero-actions / .hero-visual / .hero-photo / .hero-card - home hero with duotone scroll shift
.reveal / .reveal-stagger / .in-view - scroll reveal animation hooks
.divider / .section-title / .section-kicker - section dividers and headings
.card / .card-media / .card-body / .card-price - product/content card with hover lift + image zoom
.product-strip - horizontal scroll-snap product strip (grid on desktop)
.planner / .planner-grid / .planner-room / .planner-item / .planner-tray / .planner-total / .planner-controls - signature room-planner feature
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb trail
.prose - readable long-form text measure for legal pages
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-warn / .notice-error - callout boxes
.form-grid / .field / .field-error / .hp-field / .form-msg - form layout, validation and honeypot
.newsletter-row - inline email + submit row
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .product-gallery / .product-info / .product-price / .product-specs / .qty-input - product page layout
.cart-table / .cart-summary / .cart-summary-row / .cart-summary-total - cart & checkout layout
.contact-layout / .contact-info / .contact-info-item - contact page split layout
.icon-list / .icon-list-item - icon + text step list (delivery/returns)
.seal - small badge/seal SVG sizing
.hisicka-toast - transient toast notification
.site-footer / .footer-divider / .footer-inner / .footer-brand / .footer-cols / .newsletter-form / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
.grain-overlay - optional fixed full-bleed grain texture
.not-found - 404 page layout
.sr-only / .skip-link - accessibility helpers
*/

/* wg-contrast-autofix */
#mainNav a.nav-cart { color: #ffffff !important; }
#main section.section.wrap p.section-kicker { color: #111111 !important; }
#main section.section.wrap .planner p.section-kicker { color: var(--cream) !important; }
#cookieDecline { color: #ffffff !important; }
