/* ═══════════════════════════════════════════════════════════
   KarloShop — Knjižara s dušom
   Design: editorial / typographic hierarchy / airy
   Palette: near-white, warm paper, pale sea-blue accent
   Fonts: Cormorant Garant (display) + Source Serif 4 (body)
          + IBM Plex Mono (labels)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Merriweather:ital,wght@0,300;0,400;1,300&family=Spectral:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Plus+Jakarta+Sans:wght@300;400;500&family=Outfit:wght@300;400;500&family=Nunito:ital,wght@0,300;0,400;1,300&family=Josefin+Sans:ital,wght@0,300;0,400;1,300&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=IBM+Plex+Mono:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css?family=IM+Fell+French+Canon:regular,italic');

:root {
  /* Colour */
  --ink:         #1a1a18;
  --ink-soft:    #4a4840;
  --ink-faint:   #8a8478;
  --paper:       #faf9f6;
  --paper-warm:  #f3f1eb;
  --paper-mid:   #ebe8e0;

  /* Accent — pale Adriatic */
  --sea:         #6fa8b8;
  --sea-light:   #9ecad6;
  --sea-pale:    #deeef2;
  --sea-wash:    #f0f8fa;

  --border:      rgba(26,26,24,0.10);
  --border-soft: rgba(26,26,24,0.06);

  /* Type scale */
  --f-display: 'Cormorant Garant', Georgia, serif;
  --f-heading: 'Outfit', system-ui, sans-serif;
  --f-body:    'Lora', Georgia, serif;
  --f-author:  'Plus Jakarta Sans', system-ui, sans-serif;
  --f-bktitle: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --sidebar-w: 210px;
  --f-heading: 'Cormorant Garant', Georgia, serif;
}


/* ══════════════════════════════════════════
   FONT SWITCHER — klijentski test
══════════════════════════════════════════ */
.font-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(250,249,246,0.97);
  border: 1px solid var(--border);
  padding: 14px 16px 12px;
  box-shadow: 0 8px 32px rgba(26,26,24,0.12);
  backdrop-filter: blur(12px);
  min-width: 360px;
}
.fs-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--ink-faint);
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.fs-close:hover { color: var(--ink); }
.fs-group { display: flex; flex-direction: column; gap: 6px; }
.fs-label {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fs-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fs-btn {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.fs-btn:hover { border-color: var(--sea); color: var(--sea); }
.fs-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.fs-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}
@media (max-width: 600px) {
  .font-switcher {
    bottom: 0; right: 0; left: 0;
    min-width: 0;
    border-left: none; border-right: none; border-bottom: none;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ══════════════════════════════════════════
   TOP BAR — understated, mono, sea underline
══════════════════════════════════════════ */
.topbar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  color: var(--ink-faint);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a {
  color: var(--sea);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar a:hover { border-bottom-color: var(--sea); }
.topbar-social { display: flex; gap: 14px; flex-shrink: 0; }
.topbar-social a { color: var(--ink-faint); font-size: 11px; border-bottom: none; }
.topbar-social a:hover { color: var(--sea); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,249,246,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    padding: 16px 0 12px;
    justify-items: center;
}

/* Logo — like a title page */
.logo {
  display: block;
  line-height: 1;
}
.logo-name {
  font-family: var(--f-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: block;
}
.logo-sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  margin-top: 3px;
  font-weight: 400;
}

/* Search — minimal, underline style */
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  max-width: 440px;
  width: 100%;
  transition: border-color .2s;
}
.search-form:focus-within { border-bottom-color: var(--sea); }
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-family: var(--f-body);
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search-form input::placeholder { color: var(--ink-faint); }
.search-form button {
  padding: 8px 4px 8px 12px;
  color: var(--ink-faint);
  font-size: 13px;
  transition: color .2s;
  flex-shrink: 0;
}
.search-form button:hover { color: var(--sea); }

.header-actions { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  position: relative;
  transition: color .2s;
  cursor: pointer;
}
.icon-btn:hover { color: var(--sea); }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--sea);
  color: white;
  width: 14px; height: 14px;
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 100%; height: 1px;
  background: var(--ink);
  transition: all .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ──── Navigation — spaced, mono, italic active ──── */
nav { border-top: 1px solid var(--border-soft); }
.nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 18px;
  display: block;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 18px; right: 18px;
  height: 1px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.hot { color: var(--sea); }

/* ══════════════════════════════════════════
   HERO — typographic, no heavy blocks
══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 480px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.hero-left {
  padding: 64px 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 5vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
}
.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 420px;
  margin-top: 24px;
  font-style: italic;
}
.hero-btns { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; align-items: center; }

/* Buttons — understated */
.btn-primary {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 11px 24px;
  transition: background .2s, color .2s;
  display: inline-block;
  font-weight: 400;
}
.btn-primary:hover { background: var(--sea); }

/* Keep old class names working */
.btn-copper { 
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 11px 24px;
  transition: background .2s;
  display: inline-block;
}
.btn-copper:hover { background: var(--sea); }

.btn-ghost {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
  transition: color .2s, border-color .2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--sea); border-color: var(--sea); }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Hero right — featured book, quiet */
.hero-right {
  background: var(--sea-wash);
  display: flex;
  flex-direction: column;
}
.hero-feat-label {
  padding: 14px 24px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.hero-slides { flex: 1; position: relative; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.slide-cover {
  flex: 0 0 115px;
  height: 172px;
  box-shadow: 3px 5px 18px rgba(26,26,24,0.14);
  overflow: hidden;
}
.slide-cover img { width: 100%; height: 100%; object-fit: cover; }
.slide-info { flex: 1; }
.slide-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
}
.slide-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 6px;
  color: var(--ink);
}
.slide-author {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 3px;
}
.slide-blurb {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 10px;
  font-style: italic;
}
.slide-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.slide-price .cur {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.slide-price .old {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.slide-price .tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  background: var(--sea-pale);
  color: var(--sea);
}
.btn-add {
  margin-top: 14px;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 10px 16px;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.btn-add:hover { background: var(--sea); }
.hero-dots {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.hero-dot.active { background: var(--sea); transform: scale(1.4); }


/* ═══════════════════════════════════════════════════
   filter-toggle-btn — 4 opcije animacije
   Zadrži samo jednu, ostale izbriši
═══════════════════════════════════════════════════ */




@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.filter-toggle-btn {
  animation: slideInLeft .5s cubic-bezier(.25,.46,.45,.94) .4s both;
}
/* Na hover — ikona malo skoči desno */
.filter-toggle-btn:hover .fa-sliders {
  transform: translateX(3px);
  transition: transform .2s ease;
}
.filter-toggle-btn .fa-sliders {
  transition: transform .2s ease;
} 


/* ══════════════════════════════════════════
   MAIN LAYOUT — sidebar je uvijek off-canvas
   main je full-width
══════════════════════════════════════════ */

/* Sidebar je uvijek fixed off-canvas, nema grid */
.main-content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}
.content-inner {
  padding: 48px 0;
}

/* Toolbar — filter button + count */
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
   position: sticky;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
   z-index: 190;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: all .2s;
}
.filter-toggle-btn:hover { color: var(--sea); border-color: var(--sea); }
.toolbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.toolbar-count {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ════════════════════════════
   CHAPTER HEADER — knjišká hijerarhija
   label   = "Poglavlje I"  (mono, sitno)
   title   = "Nove knjige"  (Cormorant, veliko, light)
   more    = "Sve nove →"   (mono, sitno)
════════════════════════════ */
.chapter-hdr {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.chapter-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
  flex-shrink: 0;
  padding-top: 2px;
}
.chapter-label-light {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.3);
}
.chapter-title {
  font-family: var(--f-heading);
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 300;
  font-variant: small-caps;
  letter-spacing: 0.01em;
  line-height: 1;
  flex: 1;
  color: var(--ink);
}
.chapter-title em { font-style: normal; color: var(--ink); }
.chapter-more {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chapter-more:hover { color: var(--sea); border-color: var(--sea); }

/* Promo quote — umjesto napadnog sale banera */
.promo-quote {
  border-left: 2px solid var(--sea-light);
  padding: 32px 40px;
  margin-bottom: 64px;
  background: var(--sea-wash);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.promo-season {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
  display: none; /* shown via ::before on .promo-discount */
}
.promo-discount {
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: 300;
  font-style: italic;
  color: var(--sea);
  line-height: 1;
  flex-shrink: 0;
}
.promo-text {
  flex: 1;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  min-width: 180px;
}
.promo-text em { color: var(--ink-faint); }

/* Stara .sec-hdr / .sec-title kompatibilnost — ostaviti ako se koriste drugdje */
.sec-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.sec-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
}
.sec-title em { font-style: italic; color: var(--sea); }
.sec-more {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-more:hover { color: var(--sea); border-color: var(--sea); }

/* ──── SIDEBAR — uvijek fixed off-canvas ──── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: 280px;
  background: var(--paper);
  z-index: 300;
  padding: 64px 20px 40px;
  overflow-y: auto;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.25,0,0,1);
  box-shadow: 4px 0 32px rgba(26,26,24,.08);
  border-right: 1px solid var(--border);
}
.sidebar.open { transform: translateX(0); }
.sidebar-close-btn { display: block; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-heading {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.cat-list { list-style: none; }
.cat-item a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 0;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: all .2s;
  cursor: pointer;
}
.cat-item a:hover { color: var(--ink); border-left-color: var(--sea-light); }
.cat-item a.active { color: var(--ink); border-left-color: var(--sea); font-style: italic; }
.cat-item a .cat-count {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.cat-item a.hot-link { color: var(--sea); }

/* Filter elements */
.filter-group { margin-bottom: 3px; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s;
}
.filter-group label:hover { color: var(--ink); }
.filter-group input[type=checkbox] {
  width: 12px; height: 12px;
  accent-color: var(--sea);
  flex-shrink: 0;
}
.price-range {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
}
.price-range input[type=number] {
  width: 60px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 4px 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.price-range input:focus { border-bottom-color: var(--sea); }
.price-range span { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); }
.btn-apply-filter {
  margin: 10px 8px 0;
  display: block;
  width: calc(100% - 16px);
  background: var(--sea-pale);
  color: var(--sea);
  border: 1px solid var(--sea-light);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  text-align: center;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn-apply-filter:hover { background: var(--sea); color: white; }

/* Mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.4);
  z-index: 299;
}
.sidebar-overlay.open { display: block; }
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
}

/* ──── MAIN CONTENT ──── */
.main-content { padding: 40px 0; min-width: 0; }

/* Section header — chapter heading style */
.sec-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.sec-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
}
.sec-title em {
  font-style: italic;
  color: var(--sea);
}
.sec-more {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sec-more:hover { color: var(--sea); border-color: var(--sea); }

/* ──── CAROUSEL ──── */
.carousel-wrap { position: relative; }
.carousel-clip { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(.25,0,0,1);
}
.carousel-track .book-card { flex: 0 0 calc((100% - 3*20px) / 4); }

.car-btn {
  position: absolute;
  top: 38%;
  width: 30px; height: 30px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  z-index: 10;
  cursor: pointer;
  transition: all .2s;
}
.car-btn:hover { background: var(--sea-pale); color: var(--sea); border-color: var(--sea-light); }
.car-btn.prev { left: -15px; }
.car-btn.next { right: -15px; }

/* ──── BOOK CARD ──── */
.book-card { cursor: pointer;
  text-align: center;
}
.book-card-img {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.book-card:hover .book-card-img img { transform: scale(1.04); }
.book-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,24,0);
  display: flex; align-items: flex-end; justify-content: stretch;
  transition: background .3s;
  padding: 12px;
}
.book-card:hover .book-overlay { background: rgba(26,26,24,0.3); }
.ov-btn {
    background: var(--ink);
    color: #faf9f6;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 9px 14px;
    opacity: 1;
    
    transition: all .25s;
    border: none;
    cursor: pointer;
    width: 50%;
    text-align: center;
}


/* ═══════════════════════════════════════════════
   Book card — hover: "Kupi" → "Kupi KNJIGU"
   Slova se pojavljuju jedno po jedno
═══════════════════════════════════════════════ */

/* Svako slovo dobiva vlastitu keyframe animaciju */
@keyframes letterIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Base stanje gumba */
/* .ov-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
} */

/* Wrapper za animirana slova — skriven dok nema hovera */
.ov-btn .knjigu {
  display: inline-flex;
  gap: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0s, opacity 0s;
}

/* Svako slovo */
.ov-btn .knjigu span {
  display: inline-block;
  opacity: 0;
}

/* Na hover — pokreni animaciju */
.book-card:hover .ov-btn {
  opacity: 1;
  background-color: #9ecad6;
  color: #1a1a18;
}

.book-card:hover .ov-btn .knjigu {
  max-width: 120px;
  opacity: 1;
  transition: max-width 0.01s;
}

/* Svako slovo posebno — stagger delay */
.book-card:hover .ov-btn .knjigu span:nth-child(1) { animation: letterIn .2s  ease forwards .00s; } /* razmak */
.book-card:hover .ov-btn .knjigu span:nth-child(2) { animation: letterIn .25s ease forwards .05s; } /* K */
.book-card:hover .ov-btn .knjigu span:nth-child(3) { animation: letterIn .25s ease forwards .12s; } /* N */
.book-card:hover .ov-btn .knjigu span:nth-child(4) { animation: letterIn .25s ease forwards .19s; } /* J */
.book-card:hover .ov-btn .knjigu span:nth-child(5) { animation: letterIn .25s ease forwards .26s; } /* I */
.book-card:hover .ov-btn .knjigu span:nth-child(6) { animation: letterIn .25s ease forwards .33s; } /* G */
.book-card:hover .ov-btn .knjigu span:nth-child(7) { animation: letterIn .25s ease forwards .40s; } /* U */

.ribbon-new, .ribbon-sale {
  position: absolute;
  top: 8px; right: 0;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  padding: 3px 8px;
  font-weight: 500;
}
.ribbon-new { background: var(--sea); color: white; }
.ribbon-sale { background: var(--ink); color: white; }

.book-info{
  margin-bottom: 10px;
}

.book-info .bk-title {
  font-family: var(--f-bktitle, 'Libre Baskerville', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.book-info .bk-author {
  font-family: var(--f-author);
  text-align: center;
 
  font-size: 18px;
  color: var(--ink-faint);
  margin-top: 3px;
}
.book-info .bk-price {
  font-family: var(--f-display);
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  margin-top: 6px;
  color: var(--ink);
}
.book-info .bk-old {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: line-through;
  font-weight: 400;
}
.book-mock {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: transform .4s ease;
}

/* ──── SALE BANNER — editorial, not sportswear ──── */
.sale-banner {
  background: var(--sea-wash);
  border: 1px solid var(--sea-pale);
  border-left: 3px solid var(--sea);
  padding: 40px 40px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.sale-big {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--sea);
  line-height: 1;
  flex-shrink: 0;
  font-style: italic;
}
.sale-banner-text {}
.sale-banner h2 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.sale-banner p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 5px;
  font-style: italic;
}
.sale-banner .btn-copper { margin-top: 16px; }


/* ══════════════════════════════════════════
   FLYER STRIP — slike letaka/postera
══════════════════════════════════════════ */
.flyers-strip {
  /* border-bottom: 1px solid var(--border); */
  background: var(--paper);
}
.flyers-inner {
  /*max-width: 380px;*/
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.flyer-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 12/4;          /* portretni format letka */
  background: var(--paper-mid); /* placeholder dok nema slike */
  transition: opacity .25s;
}
.flyer-img-link:hover { opacity: 0.88; }
.flyer-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.flyer-img-link:hover img { transform: scale(1.02); }

@media (max-width: 1024px) {
  .flyers-inner { grid-template-columns: repeat(4, 1fr); padding: 20px 28px; gap: 12px; }
}
@media (max-width: 768px) {
  .flyers-inner { grid-template-columns: repeat(2, 1fr); padding: 16px 20px; gap: 10px; }
}
@media (max-width: 480px) {
  .flyers-inner { grid-template-columns: repeat(1, 1fr); gap: 8px; padding: 12px 16px; }
}

/* ──── SELL STRIP ──── */
.sell-strip {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sell-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.sell-content h2 {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
}
.sell-content h2 em { font-style: italic; color: var(--sea); }
.sell-content p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.8;
  font-style: italic;
  max-width: 380px;
}
.btn-navy {
  display: inline-block;
  margin-top: 24px;
  background: var(--ink);
  color: white;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 11px 24px;
  transition: background .2s;
}
.btn-navy:hover { background: var(--sea); }
.sell-steps { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; }
.sell-step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: 0 0 28px;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--sea-light);
  line-height: 1;
  text-align: center;
}
.step-text h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}
.step-text p { font-size: 14px; color: var(--ink-faint); font-style: italic; margin-top: 2px; }


/* ══════════════════════════════════════════
   INTERLUDE — tipografski separator bez pozadine
   Zamjena za promo-quote / sale-banner blok
══════════════════════════════════════════ */
.interlude {
  padding: 40px 0;
  margin-bottom: 64px;
}
.interlude-rule {
  height: 1px;
  background: var(--border);
  width: 100%;
}
.interlude-core {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.interlude-aside {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.interlude-main {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.interlude-ghost {
  font-family: var(--f-display);
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--sea-light);
  line-height: 1;
  flex-shrink: 0;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.interlude-main:hover .interlude-ghost {
  color: var(--sea-pale);
  -webkit-text-stroke-color: var(--sea);
}
.interlude-label {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.interlude-link {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  text-decoration: none;
}
.interlude-link:hover { border-bottom-color: var(--sea); }

/* ══════════════════════════════════════════
   SELL VISUAL — otkup knjiga, bez pozadine
   Tipografski, s TOC-style koracima
══════════════════════════════════════════ */
.sell-visual {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.sell-visual-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 64px;
  align-items: start;
}
.sv-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-ornament {
  font-size: 28px;
  color: var(--sea-light);
  line-height: 1;
  margin-bottom: 4px;
}
.sv-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 3.5vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
}
.sv-title em { font-style: italic; color: var(--sea); }
.sv-sub {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 340px;
}
.sv-cta {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: color .2s, border-color .2s;
  text-decoration: none;
  align-self: flex-start;
}
.sv-cta:hover { color: var(--sea); border-color: var(--sea); }
.sv-divider {
  background: var(--border);
  width: 1px;
  height: 100%;
  min-height: 120px;
}
.sv-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}
.sv-step {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sv-step:first-child { border-top: 1px solid var(--border-soft); }
.sv-n {
  font-family: var(--f-display);
  font-size: 13px;
  font-style: italic;
  color: var(--sea-light);
  flex: 0 0 28px;
  line-height: 1;
}
.sv-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 10px;
  position: relative;
  top: -5px;
}
.sv-text {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  flex: 0 0 auto;
  max-width: 240px;
  text-align: right;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   NL VISUAL — newsletter, bez pozadine
   Centriran, na golom papiru, ornament gore
══════════════════════════════════════════ */
.nl-visual {
  border-top: 1px solid var(--border);
  padding: 72px 40px;
  text-align: center;
}
.nl-visual-inner {
  max-width: 480px;
  margin: 0 auto;
}
.nl-ornament {
  font-size: 20px;
  color: var(--sea-light);
  margin-bottom: 16px;
  letter-spacing: 0.4em;
}
.nl-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.nl-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}
.nl-title em { font-style: italic; color: var(--sea); }
.nl-desc {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-faint);
  margin-top: 10px;
  line-height: 1.7;
}
.nl-form-bare {
  display: flex;
  align-items: center;
  max-width: 380px;
  margin: 28px auto 0;
  border-bottom: 1px solid var(--ink);
  transition: border-color .2s;
}
.nl-form-bare:focus-within { border-color: var(--sea); }
.nl-form-bare input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  outline: none;
}
.nl-form-bare input::placeholder { color: var(--ink-faint); }
.nl-form-bare button {
  background: transparent;
  border: none;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-faint);
  padding: 6px 0 6px 12px;
  cursor: pointer;
  transition: color .2s;
}
.nl-form-bare button:hover { color: var(--sea); }
.nl-note {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .interlude { padding: 28px 0; margin-bottom: 44px; }
  .interlude-core { gap: 16px; padding: 14px 0; }
  .interlude-ghost { font-size: 48px; }

  .sell-visual { padding: 48px 0; }
  .sell-visual-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 20px;
  }
  .sv-divider { display: none; }
  .sv-text { max-width: none; text-align: left; }

  .nl-visual { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .interlude-ghost { font-size: 36px; }
  .interlude-label { font-size: 14px; }
  .sv-title { font-size: 32px; }
}

/* ──── NAKLADA — dark, but with book warmth ──── */
.naklada { background: var(--ink); color: rgba(250,249,246,0.9); }
.naklada-inner { max-width: 1380px; margin: 0 auto; padding: 64px 40px; }
.naklada-hdr { margin-bottom: 44px; }
.naklada-hdr h2 {
  font-family: var(--f-heading);
  font-size: 40px;
  font-weight: 300;
  color: rgba(250,249,246,0.9);
  letter-spacing: 0.01em;
}
.naklada-hdr h2 em { font-style: italic; color: var(--sea-light); }
.naklada-hdr p {
  font-size: 15px;
  color: rgba(250,249,246,0.4);
  max-width: 440px;
  margin-top: 8px;
  font-style: italic;
}
.naklada .book-info .bk-title { color: rgba(250,249,246,0.9); }
.naklada .book-info .bk-author { color: rgba(250,249,246,0.35); }
.naklada .book-info .bk-price { color: var(--paper); }
.naklada .car-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: rgba(250,249,246,0.5);
}
.naklada .car-btn:hover { background: var(--sea); border-color: var(--sea); color: white; }

/* ──── EVENTS — like a journal ──── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.event-card {
  background: var(--paper);
  padding: 28px;
  cursor: pointer;
  transition: background .2s;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.event-card:hover { background: var(--sea-wash); }
.ev-date {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 8px;
}
.ev-title {
  font-family: var(--f-bktitle, 'Libre Baskerville', Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.ev-desc {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 7px;
  font-style: italic;
  line-height: 1.7;
}
.ev-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
  border-bottom: 1px solid var(--sea-pale);
  transition: border-color .2s;
}
.ev-link:hover { border-color: var(--sea); }

/* ──── NEWSLETTER ──── */
.newsletter {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 64px 40px;
}
.newsletter h2 {
  font-family: var(--f-heading);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink);
}
.newsletter h2 em { font-style: italic; color: var(--sea); }
.newsletter p { font-size: 15px; color: var(--ink-faint); margin-top: 8px; font-style: italic; }
.nl-form {
  display: flex;
  max-width: 420px;
  margin: 24px auto 0;
  border-bottom: 1.5px solid var(--ink);
  overflow: visible;
  transition: border-color .2s;
}
.nl-form:focus-within { border-bottom-color: var(--sea); }
.nl-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  font-style: italic;
  outline: none;
  min-width: 0;
}
.nl-form input::placeholder { color: var(--ink-faint); }
.nl-form button {
  background: transparent;
  color: var(--ink);
  border: none;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 0 10px 16px;
  cursor: pointer;
  transition: color .2s;
  flex-shrink: 0;
}
.nl-form button:hover { color: var(--sea); }
.nl-note { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); margin-top: 12px; letter-spacing: 0.05em; }

/* ──── FOOTER ──── */
footer { background: var(--ink); color: rgba(250,249,246,0.5); }
.footer-main {
  max-width: 1380px; margin: 0 auto;
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-f {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: rgba(250,249,246,0.9);
}
.footer-brand .logo-f span {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--sea);
  text-transform: uppercase;
  margin-top: 3px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(250,249,246,0.35);
  margin-top: 14px;
  line-height: 1.8;
  font-style: italic;
  max-width: 240px;
}
.footer-soc { display: flex; gap: 8px; margin-top: 20px; }
.footer-soc a {
  width: 30px; height: 30px;
  border: 1px solid rgba(250,249,246,0.10);
  color: rgba(250,249,246,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: all .2s;
}
.footer-soc a:hover { border-color: var(--sea); color: var(--sea); }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-family: var(--f-body);
  font-size: 15px;
  color: rgba(250,249,246,0.4);
  transition: color .2s;
}
.footer-col ul li a:hover { color: rgba(250,249,246,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(250,249,246,0.06);
  max-width: 1380px; margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .07em;
  color: rgba(250,249,246,0.2);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(250,249,246,0.2); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(250,249,246,0.5); }

/* ──── SCROLLBAR ──── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ──── FILTER TOGGLE MOBILE ──── */
/* filter-toggle-btn defined in .content-toolbar above */

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .6s ease both; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* ── 1200px: 3 knjige u carouselu ── */
@media (max-width: 1200px) {
  .main-content { padding: 0 28px; }
  .carousel-track .book-card { flex: 0 0 calc((100% - 2*20px) / 3); }
  .chapter-title { font-size: 34px; }
}

/* ── 1024px: hero bez slidera, sell/footer u jednom stupcu ── */
@media (max-width: 1024px) {
  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 52px 40px 44px; }

  /* Layout */
  .main-content { padding: 0 28px; }
  .content-inner { padding: 36px 0; }
  .content-toolbar { margin-bottom: 40px; }

  /* Carousel — 3 vidljive */
  .carousel-track .book-card { flex: 0 0 calc((100% - 2*20px) / 3); }

  /* Promo */
  .promo-quote { gap: 28px; padding: 28px 32px; }
  .promo-discount { font-size: 48px; }

  /* Sell strip */
  .sell-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 40px; }

  /* Naklada */
  .naklada-inner { padding: 52px 40px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 48px 40px; }
  .footer-bottom { padding: 16px 40px; }
}

/* ── 768px: mobile nav, manji hero, 2 knjige ── */
@media (max-width: 768px) {
 /* Header */
  .header-inner { padding: 0 20px; }
  .header-top {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 10px 0 0;
  }

  .ov-btn{
    width: 100%;
  }
  /* Red 1: logo lijevo, akcije desno */
  .logo          { grid-column: 1; grid-row: 1; align-self: center; padding-bottom: 10px; }
  .header-actions{ grid-column: 2; grid-row: 1; align-self: center; padding-bottom: 10px; }
  /* Red 2: search puna širina na dnu */
  .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
    border-bottom: 2.5px solid var(--ink);
    padding: 0;
    margin: 0;
  }
  .search-form input  { padding: 13px 4px; font-size: 16px; }
  .search-form button { padding: 13px 16px; font-size: 17px; }
  .logo-sub { display: none; }
  .menu-toggle { display: flex; }

  /* Nav — collapsible */
  nav { display: none; }
  nav.nav-open {
    display: block;
    border-top: 1px solid var(--border);
  }
  .nav-inner {
    flex-direction: column;
    padding: 4px 0 8px;
  }
  .nav-link {
    padding: 11px 20px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 11px;
  }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-left { padding: 36px 20px 32px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 15px; }
  .hero-blurb { display: none; }        /* previše teksta na malom ekranu */
  .hero-btns { margin-top: 24px; }
  .hero-colophon { gap: 24px; margin-top: 24px; padding-top: 20px; }
  .col-num { font-size: 22px; }

  /* Main content */
  .main-content { padding: 0 20px; }
  .content-inner { padding: 28px 0; }
  .content-toolbar { margin-bottom: 32px; }
  .chapter-title { font-size: clamp(17px, 5.5vw, 28px); }
  .chapter-label { font-size: 9px; }

  /* Carousel — 2 vidljive */
  .carousel-track .book-card { flex: 0 0 calc((100% - 20px) / 2); }
  .car-btn.prev { left: -10px; }
  .car-btn.next { right: -10px; }

  /* Promo */
  .promo-quote { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .promo-discount { font-size: 44px; }
  .promo-text { font-size: 14px; }

  /* Events */
  .events-grid { grid-template-columns: 1fr; }

  /* Sell strip */
  .sell-inner { padding: 40px 20px; gap: 28px; }
  .sell-content h2 { font-size: 32px; }

  /* Naklada */
  .naklada-inner { padding: 40px 20px; }
  .naklada-hdr h2 { font-size: 30px; }

  /* Newsletter */
  .newsletter { padding: 48px 20px; }
  .newsletter h2 { font-size: 30px; }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px;
    gap: 24px;
  }
  .footer-brand { grid-column: 1 / -1; } /* brand full width */
  .footer-bottom { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-links { gap: 14px; }
}

/* ── 480px: sve u jednom stupcu, mali hero ── */
@media (max-width: 480px) {
  /* Header */
   .header-top { grid-template-columns: 1fr auto; }
  .logo-name { font-size: 22px; }

  /* Hero */
  .hero-title { font-size: 32px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-colophon { flex-direction: column; gap: 12px; border-top: none; padding-top: 16px; }
  .col-divider { display: none; }

  /* Toolbar */
  .toolbar-count { display: none; }

  /* Chapter */
  .chapter-hdr { flex-wrap: wrap; gap: 4px 16px; }
  .chapter-title { font-size: 26px; width: 100%; }
  .chapter-more { margin-left: auto; }

  /* Carousel — 2 knjige, uži gap */
  .carousel-track { gap: 12px; }
  .carousel-track .book-card { flex: 0 0 calc((100% - 12px) / 2); }
  .car-btn { width: 26px; height: 26px; font-size: 11px; }
  .car-btn.prev { left: -6px; }
  .car-btn.next { right: -6px; }

  /* Promo */
  .promo-quote { padding: 20px 16px; }
  .promo-discount { font-size: 36px; text-align: center;}

  /* Events */
  .ev-title { font-size: 16px; }

  /* Sell */
  .sell-content h2 { font-size: 28px; }
  .sell-inner { padding: 32px 16px; }

  /* Naklada */
  .naklada-inner { padding: 36px 16px; }

  /* Newsletter */
  .newsletter { padding: 40px 16px; }
  .newsletter h2 { font-size: 26px; }
  .nl-form {
    flex-direction: column;
    border-bottom: none;
    border: 1px solid var(--border);
  }
  .nl-form input { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .nl-form button { padding: 11px 14px; text-align: left; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; padding: 36px 16px; }
  .footer-bottom { padding: 12px 16px; }
  .footer-bottom-links { gap: 10px; flex-wrap: wrap; }
}

/* ── 360px: najmanji ekrani ── */
@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .carousel-track .book-card { flex: 0 0 calc((100% - 12px) / 2); }
  .promo-discount { font-size: 30px; }
}


/* ════════════════════════════════════════════
   KOŠARICA — off-canvas sidebar drawer
════════════════════════════════════════════ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0);
  z-index: 800;
  pointer-events: none;
  transition: background .35s ease;
}
.cart-overlay.open {
  background: rgba(26,26,24,0.5);
  pointer-events: all;
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--paper);
  z-index: 801;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(26,26,24,0.10);
}
.cart-drawer.open {
  transform: translateX(0);
}

/* ── Header ── */
.cart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-hdr-left { display: flex; align-items: baseline; gap: 10px; }
.cart-hdr-title {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-hdr-count {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.cart-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 12px;
  transition: all .18s;
}
.cart-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Items scrollable area ── */
.cart-items {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-mid) transparent;
}
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--paper-mid); }

/* ── Single item ── */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  animation: cartItemIn .3s ease both;
  transition: background .15s;
}
.cart-item:hover { background: var(--paper-warm); }
.cart-item.removing {
  animation: cartItemOut .28s ease forwards;
  pointer-events: none;
}
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes cartItemOut {
  to { opacity: 0; transform: translateX(20px); max-height: 0; padding: 0 24px; }
}

/* Cover */
.cart-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--paper-mid);
}
.cart-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Info */
.cart-info { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.cart-title {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.cart-author {
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-faint);
}
.cart-format {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sea);
  margin-top: 4px;
}

/* Qty controls */
.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  width: fit-content;
  border: 1px solid var(--border);
}
.qty-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--f-mono);
  transition: background .15s, color .15s;
}
.qty-btn:hover { background: var(--ink); color: var(--paper); }
.qty-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  width: 26px;
  text-align: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 26px;
}

/* Right col: remove + price */
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 1px;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 11px;
  cursor: pointer;
  padding: 2px;
  transition: color .15s;
  line-height: 1;
}
.cart-remove:hover { color: var(--ink); }
.cart-price {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ── Empty state ── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  color: var(--ink-faint);
  text-align: center;
}
.cart-empty i { font-size: 32px; opacity: .3; }
.cart-empty-title {
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.cart-empty-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Footer ── */
.cart-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
}
.cart-subtotal-row,
.cart-shipping-row,
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-subtotal-lbl,
.cart-shipping-lbl,
.cart-total-lbl {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cart-subtotal-val {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.cart-shipping-val {
  font-family: var(--f-mono);
  font-size: 8.5px;
  color: var(--sea);
  letter-spacing: .04em;
}
.cart-total-row {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cart-total-lbl {
  font-size: 11px;
  color: var(--ink);
}
.cart-total-val {
  font-family: var(--f-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px;
  margin-top: 8px;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.cart-checkout-btn:hover { background: var(--sea); color: white; }
.cart-checkout-btn i { transition: transform .2s; }
.cart-checkout-btn:hover i { transform: translateX(4px); }

.cart-continue-btn {
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 6px 0 0;
  text-align: center;
  transition: color .15s;
}
.cart-continue-btn:hover { color: var(--ink); }

/* ── Mobile ── */
@media (max-width: 480px) {
  .cart-drawer { width: 100vw; }
}