/* Posteljnina Breza — design system. Split-screen duality: sky blue / sun yellow / white. */
:root {
  --ink: #142433;
  --blue: #1b3a5c;
  --blue-deep: #0f2740;
  --sky: #cfe8f3;
  --yellow: #ffd43b;
  --yellow-deep: #f4b400;
  --paper: #fbf8f1;
  --white: #ffffff;
  --line: #d8dde1;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(15, 39, 64, .35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { 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(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--dark { background: var(--blue); color: var(--sky); }
.section--sky { background: var(--sky); }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(2rem, 5vw, 4rem); }
.mb-lg { margin-bottom: clamp(2rem, 5vw, 4rem); }
.center { text-align: center; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal--stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__row { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.15rem; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__word strong { color: var(--blue); }
.menu-toggle { margin-left: auto; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.nav { display: flex; flex-direction: column; gap: 1.2rem; position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--blue); color: var(--white); padding: 5.5rem 1.6rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s; z-index: 60; }
.nav.is-open { transform: translateX(0); visibility: visible; }
.nav a { font-size: 1.05rem; padding: .3rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.nav a.is-active { color: var(--yellow); }
.nav__cart { display: flex; align-items: center; gap: .5rem; }
.cart-badge { background: var(--yellow); color: var(--blue-deep); font-weight: 700; font-size: .78rem; min-width: 1.4em; text-align: center; border-radius: 999px; padding: .1em .45em; }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; width: auto; background: none; color: inherit; padding: 0; transform: none; visibility: visible; margin-left: auto; gap: 1.5rem; }
  .nav a { border-bottom: none; font-size: .96rem; position: relative; }
  .nav a:not(.nav__cart)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--yellow-deep); transition: right .25s ease; }
  .nav a:not(.nav__cart):hover::after, .nav a.is-active::after { right: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: .95rem; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--yellow); z-index: -1; transition: left .3s ease; }
.btn--primary:hover::before { left: 0; }
.btn--primary:hover { color: var(--blue-deep); }
.btn--sweep { background: var(--yellow-deep); color: var(--blue-deep); }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--blue); z-index: -1; transition: left .3s ease; }
.btn--sweep:hover::before { left: 0; }
.btn--sweep:hover { color: var(--white); }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost-dark { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.15); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; min-height: 36px; }
.btn--block { width: 100%; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem); }
.hero__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); color: var(--white); }
.hero__title .underline { position: relative; display: inline-block; color: var(--yellow); }
.hero__title .underline svg { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .3em; }
.hero__title .underline path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { font-size: 1.15rem; max-width: 34ch; color: var(--sky); }
.hero__art { position: relative; aspect-ratio: 4/5; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.hero__card { position: absolute; left: -1.2rem; bottom: -1.6rem; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); max-width: 220px; }
@media (min-width: 900px) { .hero__card { right: -2rem; left: auto; } }
.hero__blob { position: absolute; top: -10%; right: -10%; width: 60%; height: 60%; opacity: .25; z-index: 0; }

/* grain overlay */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 999; mix-blend-mode: overlay; }

/* page hero (inner pages) */
.page-hero { background: var(--blue); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--sky); max-width: 60ch; }

/* breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--sky); display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--yellow); }

/* prose for legal text */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }

/* legal-toc */
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; max-width: 70ch; margin: 0 auto 2.5rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.3em; }

/* notice */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--white); }
.notice--info { border-color: var(--blue); background: var(--sky); }
.notice--success { border-color: #3a8a5c; background: #e6f4ea; }
.notice--error { border-color: #c0392b; background: #fbe9e7; }

/* cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); }

/* product cards + catalog strip */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__price { font-weight: 700; color: var(--blue); font-size: 1.1rem; margin-top: auto; }
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }
@media (min-width: 900px) { .product-strip { overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); } }

/* product detail */
.product-detail { display: grid; gap: 2rem; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; color: var(--blue); font-weight: 700; }
.product-detail__specs { border-top: 1px solid var(--line); margin-top: 1rem; }
.product-detail__specs dt { font-weight: 600; float: left; width: 40%; color: var(--blue); }
.product-detail__specs dd { margin: 0 0 .5em 42%; }
.product-detail__specs div { padding: .5em 0; border-bottom: 1px solid var(--line); overflow: hidden; }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.cart-summary dl { display: flex; justify-content: space-between; margin: .4em 0; }
.cart-qty { display: inline-flex; align-items: center; gap: .4rem; }
.cart-qty button { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }

/* forms */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--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 select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); accent-color: var(--blue); min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #c0392b; font-size: .82rem; min-height: 1.2em; margin: 0; }
.field-inline { display: flex; gap: .6rem; flex-wrap: wrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* faq */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 70ch; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .2rem 1.1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; color: #3b4a56; }

/* contact */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.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(--blue); }

/* odejomer feature */
.odejomer { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .odejomer { grid-template-columns: 1fr 1fr; align-items: center; } }
.odejomer__controls .field { margin-bottom: 1rem; }
.odejomer__gauge { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--yellow)); }
.odejomer__needle { position: absolute; top: -10px; left: 0%; width: 4px; height: 34px; background: var(--blue-deep); border-radius: 2px; transition: left .35s ease; }
.odejomer__readout { text-align: center; margin-top: 1.2rem; }
.odejomer__tog { font-family: var(--font-display); font-size: 2.4rem; color: var(--blue); display: block; }

/* divider svg */
.divider { width: 100%; height: 48px; display: block; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--blue-deep); color: var(--white); padding: .8rem 1.4rem; border-radius: 999px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; background: var(--blue-deep); color: var(--white); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); z-index: 150; max-width: 640px; margin: 0 auto; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--blue-deep); color: var(--sky); padding-top: 0; }
.footer-divider { display: block; }
.site-footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem 1rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; } }
.footer-brand .logo__word { color: var(--white); }
.footer-brand .logo__word strong { color: var(--yellow); }
.footer-col h3 { color: var(--white); font-size: .95rem; margin-bottom: .7em; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; color: var(--white); }
.footer-copy { text-align: center; color: rgba(255,255,255,.6); font-size: .82rem; padding: 1rem 0 1.6rem; }

/* COMPONENTS: .wrap - centered max-width container */
/* COMPONENTS: .section / .section--tight / .section--dark / .section--sky - page section wrappers */
/* COMPONENTS: .grid / .grid--2 / .grid--3 / .grid--4 - responsive grid layouts */
/* COMPONENTS: .reveal / .reveal--stagger - scroll-reveal animation hooks */
/* COMPONENTS: .site-header / .nav / .menu-toggle / .cart-badge - site header and navigation */
/* COMPONENTS: .btn, .btn--primary/--sweep/--outline/--ghost-dark/--sm/--block - button variants */
/* COMPONENTS: .hero / .hero__title / .hero__lead / .hero__art / .hero__card / .hero__blob - home hero */
/* 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/--success/--error - inline alert boxes */
/* COMPONENTS: .card - generic elevated card */
/* COMPONENTS: .product-card / .product-strip - catalog product card and scroll strip */
/* COMPONENTS: .product-detail - product page layout */
/* COMPONENTS: .cart-table / .cart-summary / .cart-qty - cart/checkout table and summary */
/* COMPONENTS: .form-grid / .field / .field-error / .field-inline / .hp - form layout primitives */
/* COMPONENTS: .faq / .faq-item - accordion FAQ */
/* COMPONENTS: .contact-layout / .contact-info - contact page layout */
/* COMPONENTS: .odejomer - signature duvet-warmth-recommender feature */
/* COMPONENTS: .divider - decorative SVG section divider */
/* COMPONENTS: .toast - transient confirmation message */
/* COMPONENTS: .cookie-banner - GDPR cookie consent banner */
/* COMPONENTS: .site-footer - footer with link columns and newsletter */

/* New page components */
.catalog-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.catalog-filter-btn { padding: 0.6rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; cursor: pointer; font-weight: 500; color: var(--blue); transition: all 0.3s ease; }
.catalog-filter-btn:hover { background: var(--sky); }
.catalog-filter-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.product-grid { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.product-view__media { flex-shrink: 0; }
.product-view__info { display: flex; flex-direction: column; }

.hp { display: none; }

@media (max-width: 720px) {
  .product-view { grid-template-columns: 1fr !important; }
}

/* unstyled component classes */
.footer-newsletter {
  padding: 1.5rem 0;
}

.product-view__price {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue);
}

.product-view__specs {
  padding: 1.5rem;
  background: var(--sky);
  border-radius: var(--radius-sm);
}

.product-view__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
