/* Posteljina Jastučić — split-screen duality, charcoal / ivory / saffron */

:root {
  --charcoal: #211d1a;
  --charcoal-2: #2d2722;
  --ivory: #f6efe2;
  --ivory-2: #ece2cc;
  --saffron: #e6a238;
  --saffron-deep: #b9761f;
  --ink: #211d1a;
  --ink-soft: #554e45;
  --line: rgba(33, 29, 26, 0.16);
  --line-light: rgba(246, 239, 226, 0.22);
  --radius: 2px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --dur: 0.5s;
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

/* honeypot field */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== icon sprite ===== */
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: -0.2em; }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  flex-shrink: 0;
}
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; color: var(--saffron-deep); }
.footer-brand .logo-mark { color: var(--saffron); }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  display: inline-block;
}
.logo-word em { font-style: italic; color: var(--saffron-deep); display: block; }

.main-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  font-size: 0.95rem;
}
.main-nav a {
  position: relative;
  padding: 0.3rem 0.1rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--saffron-deep);
  transition: right var(--dur) var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: inline-flex; padding: 0.4rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--saffron-deep);
  color: var(--ivory);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--charcoal);
    color: var(--ivory);
    flex-direction: column;
    gap: 0;
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
    z-index: 60;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-light); font-size: 1.1rem; }
  .main-nav a::after { display: none; }
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  z-index: 55;
}
.nav-scrim.show { opacity: 1; visibility: visible; }

/* ===== reveal ===== */
.reveal { opacity: 1; transform: none; clip-path: none; }
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.js-hidden.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hidden { opacity: 1; transform: none; transition: none; }
}

/* ===== hero split ===== */
.hero {
  background: var(--charcoal);
  color: var(--ivory);
  overflow: hidden;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: min(86vh, 760px);
}
.hero-left {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--saffron);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--saffron); font-style: italic; }
.hero-lede { font-size: 1.1rem; color: var(--ivory-2); max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: currentColor;
  transition: left .4s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn-primary { background: var(--saffron); border-color: var(--saffron); color: var(--charcoal); }
.btn-primary::before { background: var(--ivory); }
.btn-primary:hover { color: var(--charcoal); }
.btn-ghost-dark { color: var(--ivory); }
.btn-ghost-dark:hover { color: var(--charcoal); }
.btn-ghost-light { color: var(--ink); }
.btn-ghost-light:hover { color: var(--ivory); }
.btn-ghost-light::before { background: var(--ink); }
.btn > * { position: relative; z-index: 1; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-photo-wrap {
  position: absolute; inset: 0;
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(var(--duotone, 1)) contrast(1.05);
  transition: filter .2s linear;
}
.hero-duotone-layer {
  position: absolute; inset: 0;
  background: var(--saffron);
  mix-blend-mode: color;
  opacity: var(--duotone-opacity, 0.9);
  transition: opacity .2s linear;
}
.hero-svg-layer {
  position: absolute;
  left: -8%; bottom: -4%;
  width: 72%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 56vw; max-height: 420px; }
  .hero-svg-layer { width: 55%; }
}

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

/* ===== section dividers ===== */
.divider { display: block; width: 100%; height: auto; color: var(--line); }
.divider-flip { transform: scaleY(-1); }
section { position: relative; }

/* ===== generic sections ===== */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-dark { background: var(--charcoal); color: var(--ivory); }
.section-ivory2 { background: var(--ivory-2); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--saffron-deep);
  display: inline-block;
  margin-bottom: 0.6rem;
}
.section-dark .kicker { color: var(--saffron); }

/* ===== feature strip (asymmetric, not cards) ===== */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-strip-item {
  flex: 1 1 220px;
  padding: 1.6rem 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-left: 1px solid var(--line);
}
.feature-strip-item:first-child { border-left: none; }
.feature-strip-item .icon { width: 1.6em; height: 1.6em; color: var(--saffron-deep); flex-shrink: 0; margin-top: 0.1em; }
.feature-strip-item h3 { font-size: 1rem; margin-bottom: 0.2em; font-family: var(--font-body); font-weight: 700; }
.feature-strip-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .feature-strip-item { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--line); }
  .feature-strip-item:first-child { border-top: none; }
}

/* ===== measure tool (signature feature) ===== */
.measure-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.measure-form, .measure-result {
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.measure-form { border-right: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3rem; }
input[type="number"], input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  accent-color: var(--saffron-deep);
}
textarea { resize: vertical; min-height: 7rem; }
.range-row { display: flex; align-items: center; gap: 0.8rem; }
input[type="range"] { flex: 1; accent-color: var(--saffron-deep); }
.range-value { font-family: var(--font-mono); font-weight: 700; min-width: 3.4em; text-align: right; color: var(--ink); }

.measure-result {
  background: var(--charcoal);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.measure-result .result-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--saffron); }
.measure-result .result-value { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.measure-result .result-note { font-size: 0.9rem; color: var(--ivory-2); }
.measure-result hr { border: none; border-top: 1px solid var(--line-light); margin: 0.9rem 0; }
@media (max-width: 760px) {
  .measure-tool { grid-template-columns: 1fr; }
  .measure-form { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ===== product strip / grid ===== */
.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 300px);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem 1.4rem;
}
.product-card {
  scroll-snap-align: start;
  display: block;
  background: var(--ivory);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -16px rgba(33,29,26,.35);
}
.product-card .thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-2); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.07); }
.product-card .body { padding: 1.1rem 1.1rem 1.3rem; }
.product-card .cat { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--saffron-deep); }
.product-card h3 { font-size: 1.05rem; margin: 0.25em 0 0.3em; }
.product-card .price { font-weight: 700; font-family: var(--font-mono); }

/* ===== about / split content ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ===== badge / seal ===== */
.seal { width: 150px; height: 150px; flex-shrink: 0; }

/* ===== newsletter / footer ===== */
.site-footer { background: var(--charcoal); color: var(--ivory-2); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-word { color: var(--ivory); }
.footer-brand .logo-word em { color: var(--saffron); }
.footer-brand p { color: var(--ivory-2); font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 10rem; background: var(--charcoal-2); border-color: var(--line-light); color: var(--ivory); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-links h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--saffron); font-family: var(--font-body); margin-bottom: 0.8rem; }
.footer-links a { display: block; padding: 0.3rem 0; font-size: 0.92rem; color: var(--ivory-2); }
.footer-links a:hover { color: var(--ivory); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: var(--ivory-2); }
.footer-bottom a { color: var(--ivory-2); }
.footer-bottom a:hover { color: var(--saffron); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
.form-msg { font-size: 0.85rem; margin-top: 0.6rem; }
.form-msg.ok { color: #7bc67e; }
.form-msg.err { color: #e78a8a; }

/* ===== page hero (non-home) ===== */
.page-hero { background: var(--charcoal); color: var(--ivory); padding: clamp(2.6rem, 6vw, 4rem) 0; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { color: var(--ivory-2); max-width: 40ch; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin: 0 auto;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--line-light);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  z-index: 300;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  transform: translateY(130%);
  transition: transform .5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 0.9rem; color: var(--ivory-2); }
.cookie-banner a { text-decoration: underline; color: var(--ivory); }
.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.88rem; }

/* ===== cart / checkout ===== */
.table-scroll { overflow-x: auto; margin-bottom: 2rem; }
.cart-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; }
.qty-input { width: 4.5rem; }
.cart-remove { color: var(--saffron-deep); font-size: 0.85rem; text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.cart-summary { display: flex; justify-content: flex-end; gap: 2rem; font-size: 1.1rem; font-weight: 700; margin-bottom: 2rem; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.order-summary { background: var(--ivory-2); border: 1px solid var(--line); padding: 1.4rem; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }
/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.2rem 0.2rem;
  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 .q-icon { transition: transform .35s var(--ease); flex-shrink: 0; color: var(--saffron-deep); }
.faq-item[open] summary .q-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 0.2rem 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* ===== legal pages ===== */
.legal-content h2 { margin-top: 2em; font-size: 1.4rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content li { margin-bottom: 0.5em; margin-left: 1.2em; }

/* ===== 404 ===== */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; }
.notfound .big { font-size: clamp(4rem, 14vw, 9rem); color: var(--saffron-deep); line-height: 1; }

/* ===== continuous subtle element ===== */
.thread-line {
  position: absolute;
  top: 0; right: 6%;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--saffron) 20%, var(--saffron) 80%, transparent);
  opacity: 0.35;
  animation: thread-pulse 6s ease-in-out infinite;
}
@keyframes thread-pulse { 0%,100% { opacity: 0.15; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .thread-line { animation: none; } }

/* ===== product detail page ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.product-gallery { aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-2); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-info .cat { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--saffron-deep); }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0.3em; }
.product-info .price { font-size: 1.6rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: 1rem; }
.spec-list { margin: 1.4rem 0; border-top: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-list dt { color: var(--ink-soft); }
.qty-select-row { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.breadcrumbs a { text-decoration: underline; }

.pattern-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.5;
}
