/* Kosare Bura - Adriatic pebble design system */
:root {
  --ink: #202b38;
  --ink-soft: #3a4a5c;
  --sand: #f4e8d4;
  --sand-deep: #e4d3ab;
  --coral: #c96f4a;
  --coral-deep: #a85536;
  --sea: #7fa6a8;
  --paper: #fbf6ec;
  --line: #d8c9a8;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px -20px rgba(32, 43, 56, 0.35);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", Avenir, Helvetica, Arial, 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);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--coral-deep); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Icon sprite ---------- */
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity 0.7s ease, transform 0.7s ease, clip-path 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.logo__word span { color: var(--coral-deep); }
.main-nav { display: flex; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
.nav-panel { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { font-weight: 600; color: var(--ink-soft); padding: 0.4rem 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--coral); transition: width 0.25s ease; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--ink); }
.cart-link { display: flex; align-items: center; gap: 0.35rem; }
.cart-count { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.75rem; min-width: 20px; display: inline-flex; justify-content: center; }
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.5rem 2rem; gap: 1.1rem; box-shadow: var(--shadow-soft);
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .nav-panel.is-open { transform: translateX(0); visibility: visible; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; font-size: 0.95rem; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { color: var(--paper); border-color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: rgba(251, 246, 236, 0.18); }
.btn--ghost { color: var(--paper); border-color: var(--paper); background: transparent; }
.btn--ghost:hover { background: rgba(251, 246, 236, 0.2); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.85rem; min-height: 38px; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: rgba(255, 255, 255, 0.25); transition: left 0.35s ease; z-index: -1; }
.btn--sweep:hover::before { left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3.5rem 1.25rem 4rem; background: linear-gradient(160deg, var(--ink) 0%, #2d4055 55%, var(--sea) 100%); color: var(--paper); overflow: hidden; }
.hero__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.12; pointer-events: none; }
.hero__noise svg { width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--sand); margin: 0 0 0.6rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 0.7rem; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero__lede { max-width: 42ch; font-size: 1.1rem; color: var(--sand); margin-bottom: 1.6rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 1; }
.hero__circle { position: absolute; inset: 0; width: 100%; height: 100%; animation: drift 10s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__photo { position: absolute; width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; top: 18%; left: 18%; border: 6px solid var(--paper); box-shadow: var(--shadow-soft); }

/* ---------- Dividers / decorative ---------- */
.divider { width: 100%; height: 20px; display: block; }
.divider--flip { transform: scaleY(-1); }
.seal { width: 56px; height: 56px; margin-bottom: 0.8rem; }

/* ---------- Section layout ---------- */
.section { padding: 4rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section__head { max-width: 60ch; margin-bottom: 2rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.lede { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Finder (signature feature) ---------- */
.section--finder { background: var(--sand); border-radius: var(--radius-lg); }
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--paper); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-soft); }
.finder__controls { display: flex; flex-direction: column; gap: 1.4rem; }
.finder__result { background: var(--sand); border-radius: var(--radius-sm); padding: 1.2rem; min-height: 140px; display: flex; align-items: center; }
.finder__card { display: flex; gap: 1rem; align-items: center; }
.finder__card img { width: 140px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea, .form-grid input, .form-grid select, .form-grid textarea {
  padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fff; accent-color: var(--coral);
}
input[type="range"] { accent-color: var(--coral); width: 100%; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field-error { color: var(--coral-deep); font-size: 0.85rem; min-height: 1.2em; }
.form-error { color: var(--coral-deep); font-size: 0.9rem; min-height: 1.2em; }
.hp-field { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.field-row { display: flex; gap: 0.6rem; }
.field-row input { flex: 1; }

/* ---------- Product cards / strip ---------- */
.product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.product-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 5/4; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.badge { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--coral); color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.product-card__body { padding: 1.1rem; }
.product-card__price { color: var(--coral-deep); font-weight: 700; margin: 0.2rem 0 0.8rem; }

@media (max-width: 640px) {
  .product-strip.scroll-snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; }
  .product-strip.scroll-snap .product-card { min-width: 220px; scroll-snap-align: start; }
}

/* ---------- Story section ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.story__img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--ink), #2d4055); color: var(--paper); padding: 3.2rem 1.25rem; text-align: left; }
.page-hero__inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--paper); }
.page-hero p { color: var(--sand); max-width: 60ch; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { max-width: 1200px; margin: 1.2rem auto 0; padding: 0 1.25rem; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.4rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; }

/* ---------- Legal TOC ---------- */
.legal-toc { background: var(--sand); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; max-width: var(--measure); margin: 2rem auto 0; }
.legal-toc h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ---------- Notice ---------- */
.notice { border-left: 4px solid var(--coral); background: var(--sand); padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1.5rem 0; max-width: var(--measure); }
.notice--success { border-color: var(--sea); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: #fff; border-radius: var(--radius-sm); padding: 0.3rem 1.2rem; box-shadow: var(--shadow-soft); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; }

/* ---------- Product detail ---------- */
.product-detail { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail__media img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-detail__price { font-size: 1.6rem; color: var(--coral-deep); font-weight: 700; }
.product-detail__meta { display: flex; gap: 1rem; color: var(--ink-soft); margin: 1rem 0; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { padding: 0.8rem; text-align: left; 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(--sand); border-radius: var(--radius-md); padding: 1.4rem; max-width: 420px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.qty-input { width: 60px; }

/* ---------- Contact layout ---------- */
.contact-layout { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__item { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-soft); }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); padding-top: 0.5rem; }
.footer-wave { display: block; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 1.8rem; }
.footer-col { min-width: 0; }
.footer-col h3 { color: var(--paper); font-size: 1rem; margin-bottom: 0.6rem; }
.footer-col a { display: block; color: var(--sand); opacity: 0.85; padding: 0.25rem 0; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-word { color: var(--paper); display: block; margin-bottom: 0.5rem; }
.footer-mail { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.newsletter-form .field-row input { border-radius: var(--radius-sm); border: none; }
.site-footer__bottom { text-align: center; padding: 1.2rem; border-top: 1px solid rgba(244, 232, 212, 0.15); font-size: 0.85rem; opacity: 0.7; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; transform: translateY(140%); transition: transform 0.4s ease; z-index: 100; }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner a { color: var(--sand); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--ink); color: var(--paper); padding: 0.8rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); transform: translateY(20px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; z-index: 200; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* ---------- Story text ---------- */
.story__text { display: flex; flex-direction: column; gap: 1.2rem; }

/* ---------- Product detail expanded ---------- */
.product-detail__info { display: flex; flex-direction: column; gap: 1.4rem; }
.product-detail__actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

/* COMPONENTS:
.btn - base button; variants .btn--primary .btn--outline .btn--ghost .btn--ghost-light .btn--small .btn--sweep (fill-sweep hover)
.site-header / .main-nav / .nav-panel / .nav-toggle / .nav-link / .cart-link / .cart-count - header & nav
.hero / .hero__inner / .hero__text / .hero__art / .hero__circle / .hero__photo / .hero__noise - home hero
.divider - SVG wave section divider (add .divider--flip to mirror)
.section / .section__head / .lede - generic content section wrapper
.section--finder / .finder / .finder__controls / .finder__result / .finder__card - Basket Finder tool
.product-strip / .product-card - product grid/strip (add .scroll-snap for mobile horizontal scroll)
.story / .story__img / .story__text / .seal - image+text feature block
.page-hero / .page-hero__inner - inner page header band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/readable text container
.legal-toc - table of contents box for legal pages
.notice / .notice--success - callout box
.faq / .faq-item - details/summary FAQ accordion
.product-detail / .product-detail__media / .product-detail__price / .product-detail__meta - product page layout
.cart-table / .cart-summary / .qty-input - cart/checkout tables
.contact-layout / .contact-info / .contact-info__item - contact page split layout
.field / .form-grid / .field-error / .form-error / .hp-field / .field-row - form elements
.container / .grid-2 / .grid-3 / .mt-1 .mt-2 .mb-1 .mb-2 / .text-center - layout utilities
.site-footer / .footer-col / .footer-wave - footer
.cookie-banner - cookie consent banner
.toast - transient confirmation message
.reveal - scroll-reveal animation hook (JS adds .in-view)
*/

/* ---------- Section story ---------- */
.section--story {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Footer newsletter ---------- */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ---------- Cart section ---------- */
.cart-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- Order form ---------- */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 2rem;
}

@media (max-width: 760px) {
  .cart-section { padding: 2rem 1.25rem 3rem; }
  .order-form { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .section--story { padding: 3rem 1.25rem; }
}

/* wg-contrast-autofix */
#pronalazac div.section__head.reveal p.eyebrow { color: #111111 !important; }
main section.section div.section__head.reveal p.eyebrow { color: #111111 !important; }
