/* Blazine in Odeje Oblaček — luxury monogram style */

:root {
  --ink: #0e1a15;
  --ink-soft: #16261f;
  --ivory: #f6f1e6;
  --ivory-dim: #ece4d2;
  --emerald: #0f4d3a;
  --emerald-soft: #15664d;
  --gold: #c7a24a;
  --gold-soft: #ddc07c;
  --gold-deep: #7a5a15;
  --line: rgba(246, 241, 230, 0.18);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
  --dur: 0.6s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9em;
}
.hero .eyebrow, .section--dark .eyebrow, .section--emerald .eyebrow {
  color: var(--gold);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
  padding: 0.9em 1.7em;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--gold);
  z-index: -1;
  transition: left 0.4s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ivory); }

.btn--on-dark {
  border-color: var(--ivory);
  color: var(--ivory);
  background: transparent;
}
.btn--on-dark::before { background: var(--gold); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.logo svg.mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo svg.wordmark { height: 28px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}
.nav-desktop a {
  position: relative;
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { right: 0; }
.nav-desktop a.is-active { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.cart-link svg { width: 24px; height: 24px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
}
.cart-count.bump { transform: scale(1.5); }

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

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 420px) {
  .logo { gap: 8px; min-width: 0; }
  .logo svg.mark { width: 36px; height: 36px; }
  .logo svg.wordmark { height: 22px; width: auto; max-width: 100%; }
  .header-actions { gap: 10px; }
}

.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--ink);
  color: var(--ivory);
  z-index: 600;
  padding: 90px 28px 28px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
}
.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 550;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.hero-photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#duotone) saturate(1.1);
  transform: scale(1.08) translateY(var(--hero-shift, 0px));
  transition: transform 0.2s linear;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,26,21,0.35) 0%, rgba(14,26,21,0.55) 55%, rgba(14,26,21,0.92) 100%);
  z-index: 1;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.5;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 140px 0 70px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 14ch;
  margin-bottom: 0.3em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--ivory-dim);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}

/* ---------- magazine index ---------- */
.mag-index {
  background: var(--ivory);
  border-top: 1px solid rgba(14,26,21,0.1);
  border-bottom: 1px solid rgba(14,26,21,0.1);
}
.mag-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.mag-index li {
  border-left: 1px solid rgba(14,26,21,0.12);
}
.mag-index a {
  display: block;
  padding: 22px 20px;
  height: 100%;
}
.mag-index .num {
  display: block;
  font-family: var(--font-mono);
  color: var(--gold-deep);
  font-size: 0.78rem;
  margin-bottom: 0.4em;
}
.mag-index .label {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.mag-index a:hover { background: rgba(15,77,58,0.06); }

/* ---------- sections generic ---------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section--dark {
  background: var(--ink);
  color: var(--ivory);
}
.section--emerald {
  background: var(--emerald);
  color: var(--ivory);
}
.section--ivory-dim { background: var(--ivory-dim); }

.divider {
  width: 100%;
  height: 48px;
  display: block;
  color: var(--gold);
}

.hero-illustration {
  position: absolute;
  right: clamp(8px, 4vw, 48px);
  bottom: 0;
  width: clamp(160px, 24vw, 300px);
  height: auto;
  z-index: 2;
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration { animation: none; }
}
@media (max-width: 640px) {
  .hero-illustration { display: none; }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(26px);
  clip-path: inset(0 0 12% 0);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), clip-path var(--dur) var(--ease);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- grid / cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.card-product {
  display: block;
  background: var(--ivory);
  border: 1px solid rgba(14,26,21,0.12);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card-product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-product .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-dim);
}
.card-product .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card-product:hover .thumb img { transform: scale(1.07); }
.card-product .body { padding: 20px 20px 24px; }
.card-product .cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}
.card-product h3 { font-size: 1.2rem; margin: 0.3em 0 0.3em; }
.card-product .price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--gold-deep);
}

/* mobile scroll-snap product strip */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.strip > * { scroll-snap-align: start; }
@media (min-width: 720px) {
  .strip {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    overflow-x: visible;
  }
}

/* ---------- signature feature: Oblaček Merilnik ---------- */
.sizer {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.sizer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
@media (max-width: 760px) {
  .sizer-grid { grid-template-columns: 1fr; }
}
.sizer form { display: grid; gap: 18px; }
.sizer-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .sizer-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.field input, .field select, .field textarea {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 0.75em 0.9em;
  min-height: 44px;
  font-size: 1rem;
  border-radius: var(--radius);
  accent-color: var(--gold);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.sizer-result {
  border: 1px dashed var(--line);
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.sizer-result .big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
}
.sizer-result.is-empty { color: var(--ivory-dim); opacity: 0.75; }

/* ---------- about / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- badge / seal ---------- */
.badge-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.badge-row svg { width: 72px; height: 72px; color: var(--gold-soft); flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ivory-dim);
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-newsletter input {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 0.75em 0.9em;
  min-height: 44px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-mark svg.mark { width: 36px; height: 36px; }
.footer-mark svg.wordmark { height: 24px; width: auto; }

/* ---------- forms generic ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(14,26,21,0.3);
}
.form-grid .field label { color: var(--emerald); }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-top: 14px; display: none; }
.form-msg.ok { display: block; background: rgba(15,77,58,0.12); border: 1px solid var(--emerald); color: var(--emerald); }
.form-msg.err { display: block; background: rgba(180,40,30,0.1); border: 1px solid #a3291c; color: #a3291c; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 22px;
  z-index: 800;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; margin-bottom: 1em; }
.cookie-banner a { color: var(--gold-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(14,26,21,0.12);
  text-align: left;
  vertical-align: middle;
}
.cart-table img { width: 64px; height: 64px; object-fit: cover; }
.qty-input { width: 64px; min-height: 40px; padding: 4px 8px; border: 1px solid rgba(14,26,21,0.3); }
.cart-remove { background: none; border: none; text-decoration: underline; cursor: pointer; color: #a3291c; min-height: 44px; }
.cart-summary {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}
.cart-summary .box { min-width: 280px; text-align: right; }
.cart-summary .total { font-family: var(--font-display); font-size: 1.6rem; margin: 0.4em 0 0.8em; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--emerald-soft); }

/* ---------- icon list (delivery/returns/faq pages) ---------- */
.icon-list { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.icon-list .item svg { width: 34px; height: 34px; margin-bottom: 14px; color: var(--gold); }
.icon-list .item h3 { font-size: 1.1rem; }

.faq-item { border-bottom: 1px solid rgba(14,26,21,0.14); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--gold); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- product page ---------- */
.product-view { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
@media (max-width: 800px) { .product-view { grid-template-columns: 1fr; } }
.product-view .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-view .thumb img { width: 100%; height: 100%; object-fit: cover; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.size-options label {
  border: 1px solid rgba(14,26,21,0.3);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.size-options input { accent-color: var(--emerald); margin-right: 8px; }

/* ---------- misc ---------- */
.legal-page .container { max-width: 760px; }
.legal-page h2 { margin-top: 2em; font-size: 1.4rem; }
.legal-page ul { padding-left: 1.3em; }
.table-sizes { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.table-sizes th, .table-sizes td { border: 1px solid rgba(14,26,21,0.18); padding: 10px 12px; text-align: left; }
.table-sizes th { background: var(--ivory-dim); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 18px;
  padding: 80px 0;
}
.not-found h1 { font-size: clamp(3rem, 12vw, 7rem); color: var(--gold); margin: 0; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--emerald-soft);
  margin-bottom: 1.4em;
}
.breadcrumb a { text-decoration: underline; }

.monogram-pattern-section {
  position: relative;
}
.monogram-pattern-section > svg.bg-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
}
.monogram-pattern-section > .container { position: relative; z-index: 1; }
