/* ===== Babiky Hviezda — Vintage travel poster design system ===== */
:root {
  --terracotta: #c4512f;
  --terracotta-dark: #9c3c21;
  --cream: #f6ead2;
  --cream-deep: #efddb8;
  --olive: #7a7340;
  --olive-dark: #4f4a28;
  --ink: #2e2a1f;
  --sky: #e8a95f;
  --white: #fffaf0;
  --error: #a3272a;
  --success: #3f6b3a;
  --radius: 14px;
  --shadow-paper: 0 10px 24px -8px rgba(46, 42, 31, 0.35), 0 2px 6px rgba(46, 42, 31, 0.18);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { 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: var(--white); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

/* ===== Utilities ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.u-grid { display: grid; gap: 1.5rem; }
.u-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.u-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.u-mt-1 { margin-top: 1rem; } .u-mt-2 { margin-top: 2rem; } .u-mt-3 { margin-top: 3rem; }
.u-mb-1 { margin-bottom: 1rem; } .u-mb-2 { margin-bottom: 2rem; } .u-mb-3 { margin-bottom: 3rem; }
.u-center { text-align: center; }
.hp-field { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

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

/* ===== Header ===== */
.site-header { background: var(--cream); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 100; }
.site-header__row { max-width: 1180px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { flex: none; }
.logo__word svg { width: 150px; height: 32px; }
.logo-text-main { font-family: var(--font-display); font-size: 24px; fill: var(--terracotta-dark); font-weight: bold; }
.logo-text-sub { font-family: var(--font-body); font-size: 13px; letter-spacing: .2em; fill: var(--olive-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: .4rem; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); font-weight: 600; position: relative; padding: .3rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--terracotta); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.nav-close { display: none; }
.cart-link { position: relative; display: inline-flex; color: var(--ink); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--terracotta); color: var(--white); font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@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: 1rem; right: 1rem; background: none; border: none; color: var(--white); min-width: 44px; min-height: 44px; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--olive-dark); color: var(--white); flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem; padding: 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s ease; z-index: 150; }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
  .site-nav a { color: var(--white); }
  .cart-link { color: var(--white); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.6em; border-radius: 999px; border: 2px solid var(--ink); background: var(--terracotta); color: var(--white); font-weight: 700; font-size: 1rem; cursor: pointer; position: relative; overflow: hidden; min-height: 44px; transition: color .25s ease, transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--fill-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--ink); transition: left .3s ease; z-index: 0; }
.btn--fill-sweep:hover::before { left: 0; }
.btn--fill-sweep span, .btn--fill-sweep { position: relative; z-index: 1; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .15); }
.btn--small { padding: .5em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* ===== Hero ===== */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero__blob { position: absolute; z-index: 0; top: -10%; right: -10%; width: 60vw; max-width: 640px; opacity: .9; }
.hero__blob path { animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { d: path("M300 40c90 0 160 70 160 160s-70 160-160 160S140 290 140 200 210 40 300 40Z"); }
  50% { d: path("M300 60c110 0 150 90 140 170s-100 140-180 120S120 270 130 190 190 60 300 60Z"); }
}
@media (prefers-reduced-motion: reduce) { .hero__blob path { animation: none; } }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero__headline { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--terracotta-dark); }
.hero__lead { font-size: 1.15rem; max-width: 36ch; }
.hero__art { position: relative; }
.hero__photo { border-radius: var(--radius); box-shadow: var(--shadow-paper); border: 6px solid var(--white); position: relative; z-index: 2; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero__sticker { position: absolute; z-index: 3; width: 110px; height: 110px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.hero__sticker--1 { top: -24px; left: -30px; }
.hero__sticker--2 { bottom: -20px; right: -18px; width: 90px; height: 90px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__blob { width: 90vw; } }

/* ===== Dividers / ornaments ===== */
.divider { width: 100%; display: block; }
.ornament-row { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--olive-dark); color: var(--cream); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .breadcrumbs a { color: var(--cream-deep); }
.page-hero .breadcrumbs span { color: var(--white); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { list-style: none; display: flex; gap: .4rem; flex-wrap: wrap; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .6; }

/* ===== Prose (legal text) ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2rem; color: var(--terracotta-dark); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--olive); padding: .5rem .7rem; text-align: left; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--white); border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: var(--measure); margin: 0 auto 2rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.2rem 0; border: 1px solid var(--olive); background: var(--white); }
.notice--info { border-color: var(--olive); }
.notice--success { border-color: var(--success); background: #eef5ea; }
.notice--error { border-color: var(--error); background: #f9eceb; }

/* ===== Cards (shop) ===== */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); transition: transform .25s ease; position: relative; }
.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 .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.product-card__badge { position: absolute; top: .8rem; left: .8rem; background: var(--terracotta); color: var(--white); font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; z-index: 2; }
.product-card__price { font-weight: 700; color: var(--terracotta-dark); font-size: 1.1rem; }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: visible; } }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media img { border-radius: var(--radius); box-shadow: var(--shadow-paper); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.product-detail__price { font-size: 1.6rem; color: var(--terracotta-dark); font-weight: 700; margin: .4rem 0 1rem; }
.product-detail__qty { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; }
.product-detail__qty input { width: 4rem; text-align: center; padding: .5em; border: 2px solid var(--ink); border-radius: 8px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 46rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  padding: .7em .9em; border: 2px solid var(--ink); border-radius: 10px; font: inherit; background: var(--white); accent-color: var(--terracotta);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terracotta); }
.field-error { color: var(--error); font-size: .85rem; min-height: 1.1em; }
.form-msg { font-weight: 700; min-height: 1.4em; }
.form-msg.is-success { color: var(--success); }
.form-msg.is-error { color: var(--error); }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: .6em .9em; border-radius: 999px; border: 2px solid var(--olive); }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { padding: .8rem .6rem; border-bottom: 1px solid var(--cream-deep); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table__remove { background: none; border: none; color: var(--error); cursor: pointer; font-weight: 700; min-height: 44px; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-paper); max-width: 26rem; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .4rem 0; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .7rem; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-paper); }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-info li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info svg { flex: none; color: var(--terracotta-dark); }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: var(--measure); margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: .8rem; padding: .3rem 1.2rem; box-shadow: var(--shadow-paper); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; }

/* ===== Size comparator (signature feature) ===== */
.comparator { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-paper); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.comparator__controls { display: grid; gap: 1.1rem; }
.comparator__controls label { font-weight: 700; display: block; margin-bottom: .3rem; }
.comparator__controls input[type="range"] { width: 100%; accent-color: var(--terracotta); }
.comparator__stage { position: relative; height: 260px; display: flex; align-items: flex-end; justify-content: center; gap: 2.5rem; border-bottom: 3px solid var(--ink); }
.comparator__bar { width: 54px; background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dark)); border-radius: 8px 8px 0 0; position: relative; transition: height .35s ease; }
.comparator__bar--item { background: linear-gradient(180deg, var(--olive), var(--olive-dark)); }
.comparator__bar-label { position: absolute; top: -1.6rem; left: 0; right: 0; text-align: center; font-weight: 700; font-size: .85rem; }
.comparator__verdict { font-weight: 700; text-align: center; margin-top: .5rem; }
@media (max-width: 760px) { .comparator { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--olive-dark); color: var(--cream); margin-top: 3rem; position: relative; }
.footer-wave { display: block; margin-top: -1px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer a { color: var(--cream-deep); }
.site-footer a:hover { color: var(--white); }
.footer-col h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-col--brand p { margin: .6rem 0; }
.site-footer__bottom { text-align: center; padding: 1rem 0 1.6rem; font-size: .85rem; color: var(--cream-deep); border-top: 1px solid rgba(255, 255, 255, .15); margin: 0 1.25rem; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; background: var(--olive-dark); color: var(--white); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-paper); z-index: 300; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner a { color: var(--cream); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ===== Toast ===== */
.bh-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--ink); color: var(--white); padding: .8em 1.3em; border-radius: 10px; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; z-index: 400; }
.bh-toast.is-visible { opacity: 1; transform: none; }

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

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 4rem 0; }
.error-404 h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--terracotta-dark); }

/* COMPONENTS: .container - centered max-width wrapper */
/* COMPONENTS: .u-grid / .u-grid-2 / .u-grid-3 - responsive grid helpers */
/* COMPONENTS: .reveal / .reveal--clip / .reveal--stagger - scroll reveal animation hooks */
/* COMPONENTS: .site-header / .site-nav / .nav-toggle / .cart-link / .cart-count - header & nav */
/* COMPONENTS: .btn, .btn--fill-sweep, .btn--outline, .btn--ghost-dark, .btn--small, .btn--block - buttons */
/* COMPONENTS: .hero / .hero__blob / .hero__grid / .hero__art / .hero__sticker - home hero composition */
/* COMPONENTS: .divider / .ornament-row - decorative SVG dividers */
/* COMPONENTS: .page-hero - inner page title banner */
/* COMPONENTS: .breadcrumbs - breadcrumb trail list */
/* COMPONENTS: .prose - long-form legal/readable text block */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .notice / .notice--info / .notice--success / .notice--error - callout boxes */
/* COMPONENTS: .product-card / .product-strip - catalog product card and scroll-snap strip */
/* COMPONENTS: .product-detail - product page two-column layout */
/* COMPONENTS: .form-grid / .field / .field-error / .form-msg - form layout and validation */
/* COMPONENTS: .cart-table / .cart-summary - cart and checkout layout */
/* COMPONENTS: .contact-layout / .contact-info - contact page layout */
/* COMPONENTS: .faq / .faq-item - FAQ accordion (details/summary) */
/* COMPONENTS: .comparator - signature size-comparator tool */
/* COMPONENTS: .site-footer / .footer-col - site footer */
/* COMPONENTS: .cookie-banner - GDPR cookie consent banner */
/* COMPONENTS: .bh-toast - transient status toast */
/* COMPONENTS: .grain - subtle noise texture overlay */
/* COMPONENTS: .error-404 - 404 page layout */

/* ===== Product Strip (catalog grid) ===== */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .product-strip { grid-template-columns: repeat(2, 1fr); } }

/* ===== Product Card ===== */
.product-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(46, 42, 31, 0.4); }
.product-card__badge { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--terracotta); color: var(--white); padding: 0.375rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; z-index: 10; }
.product-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-deep); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { padding: 1rem; }
.product-card__body h3 { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.3; }
.product-card__price { margin: 0.5rem 0 1rem; font-size: 1.25rem; font-weight: 600; color: var(--terracotta); }

/* ===== Product Detail Page ===== */
.product-detail { max-width: 1000px; margin: 0 auto; }
.product-detail__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.product-detail__image { }
.product-detail__body { }
.product-detail__price { font-size: 1.75rem; font-weight: 600; color: var(--terracotta); margin: 1rem 0; }
.product-detail__meta { background: var(--cream-deep); padding: 1rem; border-radius: var(--radius); margin: 1.5rem 0; }
.product-detail__meta p { margin: 0.5rem 0; }
.product-detail__actions { margin-top: 2rem; }
@media (max-width: 760px) { .product-detail__grid { grid-template-columns: 1fr; } }

/* ===== Cart and Checkout ===== */
.cart-content { min-height: 300px; }
.cart-item { }
.cart-summary { }
.checkout-form { }
.order-success { }
.form-group { }

/* ===== Newsletter Form ===== */
.newsletter-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 1rem; }
.newsletter-form input[type="email"] { flex: 1; padding: 0.75rem; border: 1px solid var(--olive-dark); border-radius: 4px; font-family: inherit; }
@media (max-width: 600px) { .newsletter-form { flex-direction: column; } .newsletter-form input[type="email"] { width: 100%; } }
