/* Ribarnica Zora — style.css — "Orbits" design system */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html, body { overflow-x: clip; }

:root {
  --ink: #0c0c0c;
  --paper: #f7f4ef;
  --paper-2: #efe9df;
  --red: #c8372a;
  --red-deep: #8f1f17;
  --white: #ffffff;
  --line: rgba(12,12,12,.14);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --radius: 2px;
  --container: 1200px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.4em; height: 1.4em; stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: -0.3em; }

/* ===== layout utilities ===== */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack-lg > * + * { margin-top: clamp(2.5rem, 6vw, 5rem); }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.u-mt-0 { margin-top: 0; }
.u-center { text-align: center; }

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

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word { font-size: 1.15rem; letter-spacing: .02em; font-weight: 700; }
.logo__word small { display: block; font-family: var(--font-body); font-size: .55rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none;
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); list-style: none; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  position: relative; padding: .3rem 0; text-transform: uppercase; font-size: .78rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { display: flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 700; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--red); color: var(--white); font-size: .72rem; font-weight: 700; padding: 0 5px;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 76px 0 0 auto; width: min(320px, 85vw); height: calc(100vh - 76px);
    background: var(--paper); border-left: 1px solid var(--line); padding: 2rem var(--gutter);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
}

/* ===== footer ===== */
.site-footer { background: var(--ink); color: var(--paper); margin-top: clamp(4rem, 10vw, 8rem); position: relative; overflow: hidden; }
.site-footer .wrap { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: 2.5rem; position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--red); margin-bottom: 1rem; font-family: var(--font-body); }
.footer-grid ul { display: flex; flex-direction: column; gap: .6rem; list-style: none; }
.footer-grid a { text-decoration: none; color: var(--paper); opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(247,244,239,.18); padding-top: 1.5rem; font-size: .82rem; opacity: .75; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 180px; background: transparent; border: 1px solid rgba(247,244,239,.35); color: var(--paper);
  padding: .7rem .9rem; border-radius: var(--radius); font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(247,244,239,.55); }
.footer-orbit { position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; opacity: .25; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .footer-orbit { animation: spin 90s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 700; font-size: .88rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border: 1px solid transparent;
  overflow: hidden; isolation: isolate; min-height: 44px;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%; z-index: 0;
  transition: left .35s ease;
}
.btn:hover::before { left: 0; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary::before { background: var(--red); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(247,244,239,.5); }
.btn-ghost::before { background: rgba(247,244,239,.18); }
.btn-ghost:hover { color: var(--white); }
.btn-sm { padding: .55rem 1.1rem; font-size: .76rem; min-height: 38px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== hero (home) ===== */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 2; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--red); font-weight: 700; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
.hero-sub { max-width: 34ch; font-size: 1.05rem; opacity: .85; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-orbit-ring { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-orbit-ring { animation: spin 140s linear infinite; }
  .hero-orbit-ring.alt { animation-duration: 100s; animation-direction: reverse; }
}

/* ===== numbered grid section (home composition) ===== */
.number-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .number-grid { grid-template-columns: repeat(3, 1fr); } }
.number-card { padding: clamp(1.8rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 760px) { .number-card { border-right: 1px solid var(--line); } .number-card:last-child { border-right: none; } }
.number-card__num { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); color: var(--paper-2); -webkit-text-stroke: 1.5px var(--ink); color: transparent; line-height: 1; margin-bottom: 1rem; }
.number-card h3 { font-size: 1.2rem; }
.number-card p { opacity: .8; font-size: .95rem; }

/* ===== section dividers / patterns ===== */
.divider { width: 100%; height: auto; display: block; }
.badge-seal { width: 110px; height: 110px; }

/* ===== product card / catalog strip ===== */
.product-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: .5rem; -webkit-overflow-scrolling: touch;
}
@media (min-width: 760px) { .product-strip { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.product-card {
  scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none; color: inherit;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px -20px rgba(12,12,12,.35); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.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__badge {
  position: absolute; top: .7rem; left: .7rem; background: var(--red); color: var(--white); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .3rem .6rem; border-radius: var(--radius); font-weight: 700;
}
.product-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 700; }
.product-card__price { font-weight: 700; margin-top: auto; font-size: 1.05rem; }

/* ===== product detail page ===== */
.product-detail { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-detail__media { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); }
.qty-field { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.qty-field button { width: 44px; height: 44px; border: none; background: none; font-size: 1.1rem; cursor: pointer; }
.qty-field input { width: 56px; border: none; background: none; text-align: center; font-size: 1rem; }

/* ===== page hero (inner pages) ===== */
.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-hero p { max-width: 60ch; opacity: .8; }

/* ===== breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; font-size: .82rem; opacity: .7; list-style: none; flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ===== prose (legal pages) ===== */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose p, .prose li { opacity: .88; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; background: var(--white); }
.legal-toc h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.legal-toc ol { list-style: decimal; padding-left: 1.2em; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ===== notice ===== */
.notice { border-left: 3px solid var(--red); background: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .92rem; }
.notice--info { border-left-color: var(--ink); }

/* ===== forms ===== */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; font-size: .96rem;
  background: var(--white); color: var(--ink); accent-color: var(--red); font-family: inherit; min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--red-deep); font-size: .8rem; min-height: 1.1em; }
.field--full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result { font-size: .92rem; min-height: 1.3em; }
.form-result--ok { color: #2f6e3a; }
.form-result--error { color: var(--red-deep); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 70ch; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--red); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.3rem 1.2rem; opacity: .85; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cart-table th { text-align: left; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table__product { display: flex; gap: .8rem; align-items: center; }
.cart-table__product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--white); max-width: 360px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; }
.cart-summary__row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; }

/* ===== contact layout ===== */
.contact-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: .9fr 1.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: none; margin-top: .2rem; }

/* ===== Zorin tanjur (signature feature) ===== */
.zorin-tanjur { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(1.6rem, 4vw, 3rem); overflow: hidden; }
.zt-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .zt-grid { grid-template-columns: 1fr 1fr; } }
.zt-controls { display: flex; flex-direction: column; gap: 1.1rem; }
.zt-controls .field { max-width: 280px; }
.zt-output { font-size: 1.05rem; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; }
.zt-rings { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.zt-rings svg { width: 100%; height: 100%; }
.zt-ring-fill { stroke-dasharray: 1 1; transition: stroke-dashoffset .5s ease; }

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

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; z-index: 200;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.5rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 260px; }
.cookie-banner a { color: var(--paper); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.page-404 .number-card__num { font-size: clamp(5rem, 20vw, 12rem); display: block; margin: 0 auto 1rem; }

/* COMPONENTS: .wrap - centered max-width container
   COMPONENTS: .grid/.grid-2/.grid-3 - responsive grid helpers
   COMPONENTS: .reveal/.in-view/.reveal-stagger - scroll reveal animation hooks
   COMPONENTS: .site-header/.logo/.nav-toggle/.site-nav/.header-actions/.cart-link/.cart-count - header & nav
   COMPONENTS: .site-footer/.footer-grid/.footer-bottom/.newsletter-form/.footer-orbit - footer
   COMPONENTS: .btn/.btn-primary/.btn-outline/.btn-ghost/.btn-sm - buttons with fill-sweep hover
   COMPONENTS: .hero/.hero-grid/.hero-kicker/.hero-sub/.hero-art/.hero-cta/.hero-orbit-ring - home hero
   COMPONENTS: .number-grid/.number-card/.number-card__num - oversized-number home sections
   COMPONENTS: .divider/.badge-seal - decorative SVG dividers and seals
   COMPONENTS: .product-strip/.product-card - catalog grid / scroll-snap strip
   COMPONENTS: .product-detail/.qty-field - product page layout
   COMPONENTS: .page-hero - inner page hero banner
   COMPONENTS: .breadcrumbs - breadcrumb trail
   COMPONENTS: .prose/.legal-toc - long-form legal text and table of contents
   COMPONENTS: .notice/.notice--info - callout boxes
   COMPONENTS: .form-grid/.field/.field-error/.honeypot/.form-result - form system
   COMPONENTS: .faq/.faq-item - FAQ accordion (details/summary)
   COMPONENTS: .cart-table/.cart-summary - cart & checkout
   COMPONENTS: .contact-layout/.contact-info - contact page layout
   COMPONENTS: .zorin-tanjur/.zt-grid/.zt-controls/.zt-output/.zt-rings - signature feature widget
   COMPONENTS: .grain-overlay - SVG feTurbulence texture layer
   COMPONENTS: .cookie-banner - cookie consent banner
   COMPONENTS: .page-404 - not-found page layout
*/
