@charset "UTF-8";
@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:         #4ec1c2;
  --sea-light:   #9ecad6;
  --sea-pale:    #deeef2;
  --sea-wash:    #f0f8fa;
  --sea-deep:    #3f7a8a;
  --sea-rgb:     78,193,194;

  --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;
  --f-button:  'Plus Jakarta Sans', system-ui, sans-serif;

  --sidebar-w: 240px;
  --f-heading: 'Cormorant Garant', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select { font-family: inherit; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--paper-mid); border-radius: 2px; }

/* ══ TOP BAR ══ */
.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: .07em;
  padding: 7px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.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; }
.topbar-social a { color: var(--ink-faint); font-size: 12px; 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;
  align-items: center; gap: 24px;
  padding: 16px 0 12px;
}
.logo { display: block; line-height: 1; }
.logo-word { height: 26px; width: auto; display: block; }
.product-cover-note {
  display: flex; gap: 8px; align-items: baseline; margin: 12px 0 0; max-width: 380px;
  font-family: var(--f-body); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--ink-faint);
}
.product-cover-note i { font-style: normal; font-size: 12px; color: var(--sea-deep); }
.product-cover-note a { color: var(--sea-deep); text-decoration: underline; text-underline-offset: 3px; }
.logo-name {
  font-family: var(--f-heading); font-size: 26px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink); display: block;
}
.logo-sub {
  display: block; font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sea); margin-top: 3px;
}
.search-form {
  display: flex; align-items: center;
  border-bottom: 1.5px solid var(--border);
  max-width: 440px; width: 100%;
  transition: border-color .2s; justify-self: center;
}
.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; background: none; border: none;
}
.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: 15px;
  position: relative; transition: color .2s; cursor: pointer;
  background: none; border: none;
}
.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;
}
.menu-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
  background: none; border: none;
}
.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); }

/* nav { border-top: 1px solid var(--border-soft); } */
.nav-inner { display: flex; 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: .1em; text-transform: uppercase;
  color: var(--ink-soft); padding: 10px 18px;
  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;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--sea); }
/* .nav-link.hot { color: var(--sea); } */

/* ══ BREADCRUMB ══ */
.breadcrumb-bar { background: var(--paper-warm); border-bottom: 1px solid var(--border); }
.breadcrumb {
  max-width: 1380px; margin: 0 auto; padding: 10px 40px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--sea); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--ink); }

/* ══ PAGE LAYOUT ══ */
.page-wrap {
  max-width: 1380px; margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 44px;
  align-items: start;
  overflow-x: hidden;
}

.page-wrap-news {
  max-width: 1380px; margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  gap: 44px;
  align-items: start;
  overflow-x: hidden;
}

/* ══ SIDEBAR ══ */
.page-wrap .sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,24,.45); z-index: 399;
  backdrop-filter: blur(2px);
}
.page-wrap .sidebar-overlay.open { display: block; }

/* DESKTOP — sidebar u gridu, sticky — premium izgled */
.page-wrap .sidebar {
  padding: 0;
  position: sticky;
  top: 110px;
  align-self: start;
  width: 268px;
  min-width: 0;
  max-width: 268px;
  box-sizing: border-box;
  /* Bez vlastitog klizanja — top za dugi sidebar postavlja setupSidebarSticky() */
  overflow-x: hidden;
}
.page-wrap .sidebar::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 168, 184, 0.15), transparent);
  z-index: 1;
  pointer-events: none;
}

.page-wrap .sidebar::-webkit-scrollbar { width: 6px; }
.page-wrap .sidebar::-webkit-scrollbar-track { background: transparent; }
.page-wrap .sidebar::-webkit-scrollbar-thumb {
  background: var(--sea-light); border-radius: 3px;
}
.page-wrap .sidebar::-webkit-scrollbar-thumb:hover { background: var(--sea); }

/* Home main — grid child, nema vlastiti padding koji bi konfiktao */
.home-main { min-width: 0; padding: 40px 0; }

/* Sakrij filter gumb na desktopu jer je sidebar uvijek vidljiv */
@media (min-width: 1025px) {
  .home-main .filter-toggle-btn { display: none; }
  .home-main .content-toolbar { display: none; }
}
.sidebar-close-btn {
  display: none; position: absolute; top: 16px; right: 16px;
  font-size: 14px; color: var(--ink-faint); cursor: pointer;
  background: none; border: none; transition: color .2s;
}
.sidebar-close-btn:hover { color: var(--ink); }

.page-wrap .sidebar-inner {
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}
/* Sidebar naslov (shop) — elegantna traka */
.sidebar-inner > .filter-section:first-child .filter-heading {
  margin-top: 0;
  padding-top: 0;
}
.page-wrap .sidebar .sidebar-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 4px 14px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  display: block;
}
.filter-section--categories {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.filter-section--categories .filter-body {
  min-height: 0;
  overflow: hidden;
}

.filter-section {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  /* padding-bottom: 20px; */
}
.filter-section:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.filter-heading {
  font-family: var(--f-heading);
  font-size: 15px;
  /* letter-spacing: 0.2em; */
  text-transform: uppercase;
  /* color: var(--ink-faint); */
  margin-bottom: 12px;
  padding: 6px 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: color .2s;
  border-left: 2px solid transparent;
}
.filter-heading:hover { color: var(--ink-soft); border-left-color: var(--sea-pale); }
.fh-arrow {
  font-size: 15px;
  transition: transform .25s ease;
  
  color: var(--sea);
}
.filter-heading.collapsed .fh-arrow { transform: rotate(-90deg); }
.filter-body { overflow: hidden; transition: max-height .3s ease; }
.filter-body.collapsed { max-height: 0 !important; overflow: hidden; }

/* "Prikaži još" gumb (autori / keywordi) ──────────────────────────── */
.fh-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sea-pale);
  color: var(--sea);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}
.sidebar-more-btn {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  cursor: pointer;
  transition: all .15s ease;
}
.sidebar-more-btn:hover:not(:disabled) {
  border-style: solid;
  background: var(--sea-wash);
  color: var(--ink);
}
.sidebar-more-btn:disabled {
  opacity: .55;
  cursor: progress;
}

/* Scrollable category list — jedan scroll (cijeli sidebar), bez unutarnjeg trap-a */
.filter-section--categories .cat-list {
  overflow: visible;
  padding-right: 0;
}
.filter-section--categories .cat-list::-webkit-scrollbar { width: 4px; }
.filter-section--categories .cat-list::-webkit-scrollbar-thumb {
  background: var(--sea-light); border-radius: 2px;
}
.filter-section--authors .filter-body .author-list {
  height: auto; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--sea-light) transparent;
}

.cat-list { list-style: none; }
/* .cat-item:not(.cat-item--main) > a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 10px 8px 12px; font-family: var(--f-body); font-size: 14px;
  color: var(--ink-soft); border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: all .2s ease;
} */
.cat-item:not(.cat-item--main) > a:hover {
  color: var(--ink); border-left-color: var(--sea-light); padding-left: 14px; background: var(--sea-wash);
}
.cat-item:not(.cat-item--main) > a.active {
  color: var(--ink); border-left-color: var(--sea); font-weight: 500; padding-left: 14px; background: var(--sea-pale);
}
.cat-item > a.hot-link { color: var(--sea); }
.cat-item > a.hot-link:hover { color: var(--ink); background: var(--sea-wash); }
.cat-item--main { margin-top: 4px; }
.cat-item--main:first-of-type { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.cat-count { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); flex-shrink: 0; margin-left: 8px; letter-spacing: .02em; }

.chk-subheading {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 12px 0 2px;
  padding-left: 12px;
}
.chk-group { display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.chk-label {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px;
  font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: all .2s; user-select: none;
  border-radius: 6px; border-left: 2px solid transparent;
}
.chk-label:hover { color: var(--ink); background: var(--sea-wash); border-left-color: var(--sea-pale); }
.chk-label input { width: 14px; height: 14px; accent-color: var(--sea); flex-shrink: 0; }
.chk-label span { flex: 1; font-family: var(--f-body); }
.chk-c { font-family: var(--f-mono); font-size: 9px; color: var(--ink-faint); }

/* ══ RANGE INPUTS (price & year) ══ */
.range-inputs-group {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 2px 0 12px;
}
.range-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.range-input-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.range-input-field {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--paper-warm, #faf9f6);
  transition: border-color .2s, box-shadow .2s;
}
.range-input-field:focus-within {
  border-color: var(--sea); box-shadow: 0 0 0 3px rgba(var(--sea-rgb), .12);
}
.range-input-field input[type=number] {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 8px 6px 8px 10px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink);
  outline: none;
  -moz-appearance: textfield;
}
.range-input-field input[type=number]::-webkit-outer-spin-button,
.range-input-field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range-input-unit {
  font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint);
  padding-right: 8px; flex-shrink: 0;
}
.range-dash {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint);
  padding-bottom: 10px; flex-shrink: 0;
}

.range-group { padding: 4px 8px 8px; }
.range-inputs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.range-inputs input[type=number] {
  width: 60px; border: none; border-bottom: 1px solid var(--border);
  background: transparent; padding: 5px 0;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink); outline: none; transition: border-color .2s;
}
.range-inputs input:focus { border-bottom-color: var(--sea); }
.range-inputs span { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); }

.slider-wrap { position: relative; height: 20px; display: flex; align-items: center; }
.slider-track { position: absolute; left: 0; right: 0; height: 2px; background: var(--border); border-radius: 2px; }
.slider-fill { position: absolute; height: 2px; background: var(--sea); border-radius: 2px; }
input[type=range] {
  position: absolute; width: 100%; -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none; height: 34px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sea); border: 2px solid white; box-shadow: 0 1px 4px rgba(26,26,24,.2);
  pointer-events: all; cursor: pointer; transition: background .2s;
}
input[type=range]::-webkit-slider-thumb:hover { background: var(--ink); }

.kw-cloud { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 8px; }
.kw-tag {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em;
  padding: 4px 9px; border: 1px solid var(--border); color: var(--ink-faint);
  cursor: pointer; transition: all .18s; user-select: none;
}
.kw-tag:hover { border-color: var(--sea-deep); color: var(--sea-deep); background: var(--sea-wash); }
.kw-tag.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kw-tag.active-sea { background: var(--sea-deep); color: white; border-color: var(--sea-deep); }
.kw-sublabel {
  font-family: var(--f-mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); padding: 6px 8px 4px;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; }
.active-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sea-pale); color: var(--sea);
  border: 1px solid var(--sea-light);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; padding: 5px 9px;
}
.active-filter-tag .rm { cursor: pointer; opacity: .6; font-size: 10px; transition: opacity .15s; }
.active-filter-tag .rm:hover { opacity: 1; }
.clear-all {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); cursor: pointer; padding: 5px 0;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; background: none;
}
.clear-all:hover { color: var(--sea); border-bottom-color: var(--sea); }

/* ══ CLASSIFICATION PILLS ══ */
.classification-pills {
  display: flex; gap: 8px; padding: 4px 2px 10px; flex-wrap: wrap;
}
.clf-pill {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  color: var(--ink-faint); transition: all .2s ease; user-select: none;
}
.clf-pill:hover { border-color: var(--sea-light); color: var(--sea); background: var(--sea-wash); }
.clf-pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.filter-section--classification {
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
}
.filter-section--classification .classification-pills {
  padding: 0 0 8px;
}

.cat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border-soft);
}
.cat-quick .quick-chip {
  text-decoration: none;
}

/* Browse compact: sakrij kategorije izvan top-N (JS dodaje is-below-fold) */
.cat-list:not(.cat-list--browse-expanded):not(.cat-list--drilldown) .cat-item--main.is-below-fold {
  display: none;
}
.cat-list--browse-expanded .cat-item--main.is-below-fold {
  display: list-item;
}
.sidebar.is-searching .cat-list:not(.cat-list--drilldown) .cat-item--main.is-below-fold {
  display: block;
}
.filter-section--categories .filter-body:not(.collapsed) {
  overflow: visible;
  max-height: none !important;
}
.cat-item--main.is-hidden-by-classification {
  display: none !important;
}
.cat-more-btn {
  margin-top: 10px;
}
.cat-list--drilldown ~ .cat-more-btn,
.sidebar.is-searching .cat-more-btn {
  display: none !important;
}

/* ══ HIERARCHICAL CATEGORY TREE ══ */
.cat-main-row {
  display: flex; align-items: center; gap: 4px; width: 100%;
}
.cat-main-link {
  flex: 1; display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 10px 8px 12px; font-family: var(--f-body); font-size: 14px; font-weight: 500;
  color: var(--ink-soft); border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: all .2s ease;
}
.cat-main-link .cat-label { flex: 1; }
.cat-main-link:hover { color: var(--ink); border-left-color: var(--sea-light); padding-left: 14px; background: var(--sea-wash); }
.cat-main-link.active { color: var(--ink); border-left-color: var(--sea); font-weight: 600; padding-left: 14px; background: var(--sea-pale); }
.cat-toggle {
  flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink-faint); cursor: pointer;
  font-size: 12px; transition: transform .25s, color .18s, background .18s; border-radius: 6px;
}
.cat-toggle:hover { color: var(--sea); background: var(--sea-wash); }
.cat-toggle-icon { display: inline-block; transform: rotate(0deg); }
.cat-item--main.expanded .cat-toggle-icon { transform: rotate(90deg); }

/* Subcategory list — collapsible */
.cat-sub {
  list-style: none;
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.cat-item--main.expanded .cat-sub { max-height: 800px; }

.cat-item--sub > a {
  padding: 6px 10px 6px 28px !important;
  font-size: 13px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--ink-faint);
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  transition: all .2s ease;
}
.cat-item--sub > a .cat-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item--sub > a::before {
  content: '\203A'; opacity: .4; font-size: 10px; flex-shrink: 0; color: var(--sea);
}
.cat-item--sub > a:hover { color: var(--ink); border-left-color: var(--sea-light); padding-left: 26px !important; background: var(--sea-wash); }
.cat-item--sub > a.active { color: var(--sea); border-left-color: var(--sea); font-weight: 500; padding-left: 26px !important; background: var(--sea-pale); }

/* ══ KATEGORIJE — DRILL-DOWN (CSS klasa na cat-list, toggle via JS) ══ */

/* Back-button: uvijek u DOM-u, vidljiv samo u drill-down modu */
.cat-back-item { display: none; margin-bottom: 2px; }
.cat-list--drilldown .cat-back-item { display: block; }
.cat-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); border-radius: 6px; transition: color .18s, background .18s;
}
.cat-back:hover { color: var(--sea); background: var(--sea-wash); }
.cat-back-arrow { font-size: 14px; line-height: 1; }

/* Drill-down: sakrij sve kategorije osim aktivne */
.cat-list--drilldown .cat-item--main { display: none; }
.cat-list--drilldown .cat-item--active-main { display: block !important; }

/* Aktivna kategorija u drill-down modu: naglašeniji prikaz */
.cat-list--drilldown .cat-item--active-main > .cat-main-row > .cat-main-link {
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-left-color: var(--sea);
  background: var(--sea-pale);
  padding-left: 14px;
}
.cat-list--drilldown .cat-item--active-main > .cat-main-row > .cat-main-link .cat-count {
  color: var(--sea);
}

/* Podkategorije aktivne grane: uvijek razvijene, s vizualnom vodilicom */
.cat-list--drilldown .cat-item--active-main > .cat-sub {
  max-height: none !important;
  overflow: visible;
  padding-left: 6px;
  border-left: 1px dashed var(--border);
}

/* Sakrij toggle gumb kad smo u drill-down (podkategorije su uvijek vidljive) */
.cat-list--drilldown .cat-item--active-main .cat-toggle { display: none; }

/* ══ AUTHOR FILTER LIST ══ */
.author-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.author-item { }
.author-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px 7px 12px; font-family: var(--f-body); font-size: 13px;
  color: var(--ink-soft); border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: all .2s ease;
}
.author-link:hover { color: var(--ink); border-left-color: var(--sea-light); padding-left: 14px; background: var(--sea-wash); }
.author-link.active {
  color: var(--sea); border-left-color: var(--sea); font-weight: 500; padding-left: 14px; background: var(--sea-pale);
}
.author-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-style: italic; font-size: 13px;
}
.author-link .cat-count {
  font-family: var(--f-mono); font-size: 9px; color: var(--ink-faint);
  background: var(--paper-mid, #f0ede8); border-radius: 10px;
  padding: 1px 7px; flex-shrink: 0; letter-spacing: .02em;
  transition: background .2s;
}
.author-link:hover .cat-count { background: var(--sea-light); }
.author-link.active .cat-count { background: var(--sea-pale); color: var(--sea); }
.author-clear { font-family: var(--f-mono); font-size: 9px; color: var(--sea); opacity: .7; flex-shrink: 0; }
.author-link.active:hover .author-clear { opacity: 1; }

/* ══ KEYWORD PILLS ══ */
.keyword-pills {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 10px;
}
.kw-pill {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .05em;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 16px;
  color: var(--ink-faint); transition: all .2s ease; user-select: none; text-transform: lowercase;
}
.kw-pill:hover { border-color: var(--sea-light); color: var(--sea); background: var(--sea-wash); }
.kw-pill.active { background: var(--sea-pale); color: var(--sea); border-color: var(--sea-light); }

/* ══ ACTIVE FILTERS CLEAR ══ */
.active-filters-wrap { padding: 10px 4px 0; }
.clear-filters-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--border); padding: 6px 4px 4px;
  border-radius: 4px; transition: color .18s, border-color .18s, background .18s;
}
.clear-filters-btn:hover { color: var(--sea-deep); border-color: var(--sea-deep); background: var(--sea-wash); }

/* ══ FILTER BADGE (mobile) ══ */
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sea); color: white;
  font-family: var(--f-mono); font-size: 9px; margin-left: 4px;
}

.btn-apply-filter {
  display: block; width: 100%; margin-top: 10px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 14px; text-align: center; border: none; cursor: pointer; border-radius: 7px;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn-apply-filter:hover { background: var(--sea-deep); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(var(--sea-rgb),.28); }
.btn-apply-filter:active { transform: translateY(0); }

/* ══ MAIN ══ */
.main-col { padding: 36px 0; min-width: 0; }
.shop-main {
  min-width: 0;
  max-width: 100%;
  /* overflow-x: hidden; */
  padding: 8px 0 0;
}

/* ══ SHOP TOOLBAR (naslov + sort + filter na mobu) ══ */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  max-width: 100%;
}
.toolbar-center {
  flex: 1 1 280px;
  text-align: left;
  min-width: 0;
}
.toolbar-sort {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}
.shop-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 1.2vw + 12px, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.toolbar-count {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}
.shop-sort-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
}
.toolbar-sort .sort-select {
  min-width: 0;
  max-width: 200px;
}
.toolbar-sort .sort-select--count {
  max-width: 156px;
}

.filter-toggle-btn {
  grid-column: 1;
  justify-self: start;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
  border-radius: 8px;
  transition: background 0.2s, transform 0.1s;
  min-height: 44px;
}
.filter-toggle-btn:hover { background: var(--sea-deep); transform: translateY(-1px); }
.filter-toggle-btn .filter-badge { margin-left: 2px; }

.cat-hdr { margin-bottom: 28px; }
.cat-hdr-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sea); margin-bottom: 6px;
}
.cat-hdr h1 {
  font-family: var(--f-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; letter-spacing: -.01em; line-height: 1.05; color: var(--ink);
}
.cat-hdr h1 em { font-style: italic; }
.cat-hdr-desc {
  font-family: var(--f-body); font-style: italic; font-size: 15px;
  color: var(--ink-faint); margin-top: 8px; line-height: 1.7;
}

.results-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 28px; flex-wrap: wrap;
}
.results-count { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-faint); }
.results-count strong { color: var(--ink); font-weight: 400; }
.meta-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sort-select {
  border: none; border-bottom: 1px solid var(--border); background: transparent;
  padding: 6px 24px 16px 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-soft); outline: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238a8478'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; transition: border-color .2s;
}

select option {
  padding: 10px; /* često se ignorira */
}


.sort-select:focus { border-bottom-color: var(--sea); }
.view-toggle { display: flex; border: 1px solid var(--border); overflow: hidden; }
.view-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-faint); cursor: pointer; transition: all .18s; background: transparent; border: none;
}
.view-btn.active, .view-btn:hover { background: var(--ink); color: var(--paper); }

/* ══ BOOK GRID ══ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr));
  gap: 36px 24px;
}
.results-grid.list-view { grid-template-columns: 1fr; gap: 0; }

/* ── BOOK CARD ── */


/* Ribbons */
.ribbon,
.ribbon-new,
.ribbon-sale,
.ribbon-out,
.ribbon-out-of-stock {
  position: absolute; top: 10px; right: 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  padding: 3px 8px; color: white; pointer-events: none;
  text-transform: uppercase;
}

.ribbon-new { background: var(--sea-deep); }
.ribbon-sale { background: var(--ink); }
.ribbon-out { background: var(--ink-faint); }
.ribbon-out-of-stock {
  background: var(--ink-faint);
  color: white;
}

/* ── Book info ── */
.book-card {
  /* overflow:hidden na kartici inače svede min-visinu na 0 i povuče gumb pod naslovnicu */
  min-height: min-content;
  height: auto;
}
.book-card-link {
  flex-shrink: 0;
}
.book-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.bk-title {
  font-family: var(--f-heading); font-size: 20px; font-weight: 500;
  color: var(--ink); line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bk-author {
  font-family: var(--f-author); font-size: 18px;
  color: var(--ink-faint); margin-top: 3px;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-author-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.bk-author-link:hover {
  color: var(--sea);
  text-decoration: underline;
}
.bk-author-sep { color: var(--ink-faint); }
.bk-publisher {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-faint);
  margin-top: 2px;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-card-foot {
  margin-top: auto;
}
.bk-publisher-link {
  color: inherit;
  text-decoration: none;
}
.bk-publisher-link:hover {
  color: var(--sea);
  text-decoration: underline;
}
.bk-price {
  font-family: var(--f-display); font-size: 17px; font-weight: 600;
  margin-top: 6px; color: var(--ink);
  display: flex; align-items: baseline; gap: 6px; justify-content: center; flex-wrap: wrap;
  max-width: 100%;
}
.bk-old { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); text-decoration: line-through; }
.bk-anchor {
  display: block; width: 100%;
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  color: var(--ink-faint); line-height: 1.3; text-align: center;
}
.stock-yes {
  font-family: var(--f-mono); font-size: 8px; color: var(--green); letter-spacing: .06em;
  margin-top: 4px; display: flex; align-items: center; gap: 4px; justify-content: center;
}
.stock-yes::before { content: '\25CF'; font-size: 6px; }
.stock-no {
  font-family: var(--f-mono); font-size: 8px; color: var(--ink-faint); letter-spacing: .06em;
  margin-top: 4px; display: flex; align-items: center; gap: 4px; justify-content: center;
}
.stock-no::before { content: '\25CB'; font-size: 6px; }
.bk-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; justify-content: center; }
.bk-tag {
  font-family: var(--f-mono); font-size: 8px; padding: 2px 6px;
  background: var(--sea-wash); color: var(--sea); letter-spacing: .05em;
  border: 1px solid var(--sea-pale);
}
.bk-vendor-badge {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .03em;
  color: var(--ink-faint); margin-top: 6px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.bk-vendor-badge i { font-size: 8px; }

/* ══════════════════════════════════════════
   OV-BTN — uvijek vidljiv ispod kartice
   Na hover: ikona + "Kupi" → + "KNJIGU" letterIn
══════════════════════════════════════════ */
@keyframes letterIn {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.ov-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  flex-shrink: 0;
  min-height: 44px;
  box-sizing: border-box;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-button);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.naklada .ov-btn { font-size: 11px; letter-spacing: .07em; color: var(--paper); border-color: rgba(250,249,246,.55); }
.naklada .book-card:hover .ov-btn,
.naklada .book-card .ov-btn:hover,
.naklada .ov-btn:active { background-color: #4ec1c2; color: var(--ink); border-color: #4ec1c2; }
.naklada .ov-btn:focus-visible { outline-color: var(--sea-light); }
.naklada .book-card .ov-btn.is-added { background-color: #4ec1c2; color: var(--ink); border-color: #4ec1c2; }
.naklada .ov-btn--wishlist-link,
.naklada .book-card:hover .ov-btn--wishlist-link { background: transparent; color: rgba(250,249,246,.7); border: 1px dashed rgba(250,249,246,.4); }
.naklada .book-card .ov-btn--wishlist-link:hover { background: transparent; color: var(--paper); border-style: solid; border-color: var(--paper); }
.ov-btn i {
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .2s;
}
.book-card:hover .ov-btn { background-color: #4ec1c2; color: var(--ink); border-color: #4ec1c2; }
.book-card .ov-btn:hover { background-color: #4ec1c2; color: var(--ink); border-color: #4ec1c2; }
.book-card:hover .ov-btn i { transform: scale(1.12); }
.ov-btn:active { transform: translateY(1px); background-color: #4ec1c2; color: var(--ink); border-color: #4ec1c2; }
.ov-btn:focus-visible { outline: 2px solid #4ec1c2; outline-offset: 2px; }
.ov-btn.is-added,
.book-card:hover .ov-btn.is-added { background-color: #4ec1c2; border-color: #4ec1c2; color: var(--ink); }
.ov-btn.is-added i { animation: buyPop .4s ease; }
@keyframes buyPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* "KNJIGU" — skriveni dio koji se pojavljuje slovo po slovo */
.ov-btn .knjigu {
  display: inline-flex;
  gap: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .01s, opacity .01s;
}
.ov-btn .knjigu span {
  display: inline-block;
  opacity: 0;
}
.book-card:hover .ov-btn .knjigu {
  max-width: 100px;
  opacity: 1;
}
/* stagger — 7 slova: razmak + K N J I G U */
.book-card:hover .ov-btn .knjigu span:nth-child(1) { animation: letterIn .18s ease forwards .00s; }
.book-card:hover .ov-btn .knjigu span:nth-child(2) { animation: letterIn .2s  ease forwards .05s; }
.book-card:hover .ov-btn .knjigu span:nth-child(3) { animation: letterIn .2s  ease forwards .11s; }
.book-card:hover .ov-btn .knjigu span:nth-child(4) { animation: letterIn .2s  ease forwards .17s; }
.book-card:hover .ov-btn .knjigu span:nth-child(5) { animation: letterIn .2s  ease forwards .23s; }
.book-card:hover .ov-btn .knjigu span:nth-child(6) { animation: letterIn .2s  ease forwards .29s; }
.book-card:hover .ov-btn .knjigu span:nth-child(7) { animation: letterIn .2s  ease forwards .35s; }

/* Out-of-stock: link na stranicu (lista želja / obavijesti me) */
.ov-btn--wishlist-link {
  text-decoration: none;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
.ov-btn--wishlist-link,
.book-card--out-of-stock .ov-btn--wishlist-link,
.book-card:hover .ov-btn--wishlist-link {
  background: transparent; color: var(--ink-soft); border: 1px dashed var(--ink-faint);
}
.book-card .ov-btn--wishlist-link:hover,
.ov-btn--wishlist-link:active { background: transparent; color: var(--ink); border-style: solid; border-color: var(--ink); }

/* ── LIST VIEW ── */
.results-grid.list-view .book-card {
  display: flex; gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.results-grid.list-view .book-card-img {
  flex: 0 0 76px; height: 114px; aspect-ratio: unset; margin-bottom: 0;
}
.results-grid.list-view .book-info {
  flex: 1; text-align: left; display: flex; flex-direction: column; justify-content: space-between;
}
.results-grid.list-view .bk-title { font-size: 18px; }
.bk-desc {
  font-family: var(--f-body); font-style: italic; font-size: 14px;
  color: var(--ink-faint); line-height: 1.65; margin-top: 6px;
}
.bk-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 12px; flex-wrap: wrap; gap: 10px;
}
.results-grid.list-view .bk-card-foot { margin-top: 8px; }
.results-grid.list-view .bk-price { justify-content: flex-start; }
.results-grid.list-view .bk-tags { justify-content: flex-start; }
.results-grid.list-view .stock-yes,
.results-grid.list-view .stock-no { justify-content: flex-start; }
.results-grid.list-view .ov-btn,
.results-grid.list-view .ov-btn--wishlist-link {
  margin-top: 0; width: auto; min-height: 42px; padding: 11px 20px; align-self: flex-end;
}

/* No results */
.no-results { text-align: center; padding: 72px 20px; }
.no-results h3 { font-family: var(--f-display); font-size: 32px; font-weight: 300; color: var(--ink-faint); }
.no-results p { font-family: var(--f-body); font-style: italic; font-size: 15px; color: var(--ink-faint); margin-top: 10px; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; gap: 3px; justify-content: center; padding: 40px 0 0; }
.pg-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-family: var(--f-mono); font-size: 10.5px;
  color: var(--ink-faint); cursor: pointer; background: transparent; transition: all .18s;
}
.pg-btn:hover, .pg-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pg-btn.active { pointer-events: none; }
.pg-btn.wide { min-width: 44px; }
.pg-dots { font-family: var(--f-mono); font-size: 10px; color: var(--ink-faint); padding: 0 4px; }

/* ══ KOŠARICA DRAWER ══ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(26,26,24,0);
  z-index: 800; pointer-events: none; transition: background .35s ease, backdrop-filter .35s ease;
}
.cart-overlay.open { background: rgba(26,26,24,0.42); pointer-events: all; backdrop-filter: blur(3px); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw; background: var(--paper);
  z-index: 99801; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s cubic-bezier(.22,.8,.24,1);
  box-shadow: -18px 0 48px rgba(26,26,24,.14), -1px 0 0 var(--border);
}
.cart-drawer.open { transform: translateX(0); }

.cart-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px 20px; flex-shrink: 0;
}
.cart-hdr-left { display: flex; align-items: baseline; gap: 12px; }
.cart-hdr-title {
  font-family: var(--f-display); font-size: 15px; font-weight: 600;
  letter-spacing: .01em; line-height: 1; color: var(--ink);
}
.cart-hdr-count {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.cart-close {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  color: var(--ink-soft); cursor: pointer; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s, transform .3s ease;
}
.cart-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(90deg); }
.cart-close:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

.cart-ship-progress {
  margin: 0 28px 4px; padding: 12px 14px 13px;
   flex-shrink: 0;
}
.cart-ship-progress[hidden] { display: none; }
.cart-ship-msg {
  font-family: var(--f-heading); font-size: 14px; color: var(--ink-soft); line-height: 1.35; margin-bottom: 9px;
}
.cart-ship-msg strong { color: var(--ink); font-weight: 600; }
.cart-ship-msg i { color: #4c8a5d; margin-right: 4px; }
.cart-ship-bar { height: 4px; border-radius: 4px; background: rgba(111,168,184,.18); overflow: hidden; }
.cart-ship-bar span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--sea-light), var(--sea));
  transition: width .5s cubic-bezier(.22,.8,.24,1);
}
.cart-ship-progress.is-free { background: #f1f7f2; border-color: #d6e9da; }
.cart-ship-progress.is-free .cart-ship-bar span { background: linear-gradient(90deg, #8fc39d, #4c8a5d); }

.cart-items {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--paper-mid) transparent;
  padding: 8px 0;
}
.cart-item {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr;
  gap: 16px; margin: 0 28px; padding: 18px 28px 18px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start; animation: cartItemIn .35s ease both;
  transition: opacity .2s ease, transform .2s ease;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: transparent; }
.cart-item.removing { animation: none; opacity: 0; transform: translateX(24px); pointer-events: none; }
@keyframes cartItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.cart-cover {
  aspect-ratio: 2/3; overflow: hidden; background: var(--paper-mid); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(26,26,24,.10), 0 6px 14px -6px rgba(26,26,24,.28);
}
.cart-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-title {
  font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.18;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-author { font-family: var(--f-body); font-style: italic; font-size: 13.5px; color: var(--ink-faint); line-height: 1.3; }
.cart-format {
  align-self: flex-start; margin-top: 5px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--paper-warm); padding: 3px 7px; border-radius: 3px;
}
.cart-vendor-badge {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--sea); margin-top: 4px;
}
.cart-vendor-badge i { margin-right: 3px; }
.cart-item-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px;
}
.cart-qty-row {
  display: inline-flex; align-items: center; width: fit-content;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; overflow: hidden;
}
.qty-btn {
  width: 30px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink-soft); font-size: 15px; line-height: 1; cursor: pointer;
  font-family: var(--f-mono); transition: background .15s, color .15s;
}
.qty-btn:hover { background: var(--paper-warm); color: var(--ink); }
.qty-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.qty-num {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink);
  min-width: 22px; text-align: center; line-height: 28px;
}
.cart-price { font-family: var(--f-heading); font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-remove {
  position: absolute; top: 14px; right: 0;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%;
  color: var(--ink-faint); font-size: 12px; cursor: pointer; transition: color .15s, background .15s;
}
.cart-remove:hover { color: #b04a3c; background: #f7ebe8; }
.cart-remove:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 32px; gap: 10px; color: var(--ink-faint); text-align: center; min-height: 100%;
}
.cart-empty-icon {
  width: 76px; height: 76px; border-radius: 50%; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-warm); color: var(--sea); font-size: 28px;
}
.cart-empty-title { font-family: var(--f-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.cart-empty-sub { font-family: var(--f-body); font-style: italic; font-size: 14px; color: var(--ink-faint); max-width: 240px; }
.cart-empty-btn {
  margin-top: 14px; padding: 12px 26px;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none;
  font-family: var(--f-button); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.cart-empty-btn:hover { background: var(--ink); color: var(--paper); }

.cart-footer {
  padding: 20px 28px 26px; flex-shrink: 0; display: flex; flex-direction: column; gap: 9px;
  background: var(--paper-warm); border-top: 1px solid var(--border);
  box-shadow: 0 -10px 24px -18px rgba(26,26,24,.25);
}
.cart-footer[hidden] { display: none; }
.cart-subtotal-row, .cart-shipping-row, .cart-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-subtotal-lbl, .cart-shipping-lbl, .cart-total-lbl {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.cart-subtotal-val { font-family: var(--f-heading); font-size: 15px; color: var(--ink-soft); }
.cart-shipping-val { font-family: var(--f-heading); font-size: 14px; color: var(--ink-soft); }
.cart-total-row { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); align-items: center; }
.cart-total-lbl { font-size: 11px; color: var(--ink); }
.cart-total-val { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--f-button); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 16px; margin-top: 10px; border: none; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(26,26,24,.6);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.cart-checkout-btn:hover,
.cart-checkout-btn:focus-visible { background: #4ec1c2; color: var(--ink); box-shadow: 0 10px 22px -10px rgba(78,193,194,.7); }
.cart-checkout-btn:active { transform: translateY(1px); background: #4ec1c2; color: var(--ink); }
.cart-checkout-btn i { transition: transform .2s; }
.cart-checkout-btn:hover i { transform: translateX(4px); }
.cart-continue-btn {
  align-self: center; background: none; border: none; font-family: var(--f-heading); font-size: 14px;
  color: var(--ink-soft); cursor: pointer; padding: 6px 2px 0;
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.cart-continue-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

@media (max-width: 480px) {
  .cart-hdr { padding: 20px 20px 16px; }
  .cart-ship-progress { margin: 0 20px 4px; }
  .cart-item { margin: 0 20px; }
  .cart-footer { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-item, .cart-ship-bar span, .cart-close { transition: none; animation: none; }
}

/* ══ RESPONSIVE ══ */
/* ══ HOME PAGE SIDEBAR (isti premium izgled) ══ */
.page-wrap .sidebar-section {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 22px;
}
.page-wrap .sidebar-section:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.page-wrap .sidebar-heading {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  padding: 6px 0 6px 2px;
  border-left: 2px solid transparent;
  transition: color .2s;
}
.page-wrap .sidebar-heading:hover { color: var(--ink-soft); border-left-color: var(--sea-pale); }
.page-wrap .sidebar .cat-item a {
  padding: 8px 10px 8px 12px;
  border-radius: 0 6px 6px 0;
  transition: all .2s ease;
}
.page-wrap .sidebar .cat-item a:hover { background: var(--sea-wash); padding-left: 14px; }
.page-wrap .sidebar .cat-item a.active { background: var(--sea-pale); padding-left: 14px; font-weight: 500; }
.page-wrap .sidebar .filter-group label {
  padding: 7px 10px 7px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all .2s;
}
.page-wrap .sidebar .filter-group label:hover { background: var(--sea-wash); border-left-color: var(--sea-pale); }
.page-wrap .sidebar .price-range { padding: 6px 10px 12px; }
.page-wrap .sidebar .price-range input[type=number] {
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 8px 10px;
}

@media (max-width: 1024px) {
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 0 max(28px, env(safe-area-inset-right, 0px)) 60px max(28px, env(safe-area-inset-left, 0px));
    max-width: 100vw;
  }
  .page-wrap .sidebar {
    position: fixed; top: 0; left: 0; right: auto;
    height: 100%; width: 320px; max-width: 88vw;
    background: linear-gradient(180deg, #fdfcfb 0%, var(--paper-warm) 100%);
    z-index: 400; padding: 56px 22px 40px;
    overflow-y: auto; overflow-x: hidden;
    transform: translateX(-110%);
    transition: transform .35s cubic-bezier(.25,0,0,1);
    box-shadow: 8px 0 40px rgba(26,26,24,.12); border-right: 1px solid var(--border);
    max-height: none; bottom: auto;
    
  }
  .page-wrap .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: block; }
  .filter-toggle-btn { display: inline-flex; }
  .main-col { padding-top: 12px; }
  .header-inner { padding: 0 28px; }
}
@media (max-width: 768px) {
  .topbar { padding: 6px max(20px, env(safe-area-inset-right, 0px)) 6px max(20px, env(safe-area-inset-left, 0px)); font-size: 9.5px; }
  .header-inner { padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
  .header-top { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0; padding: 10px 0 0; }
  .logo { grid-column: 1; grid-row: 1; padding-bottom: 10px; }
  .header-actions { grid-column: 2; grid-row: 1; padding-bottom: 10px; }
  .search-form { grid-column: 1 / -1; grid-row: 2; max-width: none; border-top: 1px solid var(--border); border-bottom: 2px solid var(--ink); }
  .search-form input { padding: 12px 4px; font-size: 16px; }
  .logo-sub { display: none; }
  .logo-word { height: 22px; }
  .menu-toggle { display: flex; }
  nav { display: none; }
  nav.open { display: block; border-top: 1px solid var(--border); }
  .nav-inner { flex-direction: column; }
  .nav-link { padding: 11px 20px; border-bottom: 1px solid var(--border-soft); }
  .nav-link::after { display: none; }
  .breadcrumb { padding: 8px max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px)); }
  .page-wrap { padding: 0 16px max(48px, env(safe-area-inset-bottom, 0px)) 16px; max-width: 100vw; }
  .shop-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .filter-toggle-btn {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
  .toolbar-center {
    grid-column: 1;
    max-width: none;
    text-align: left;
    justify-self: stretch;
  }
  .toolbar-sort {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
  .shop-sort-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-sort .sort-select,
  .toolbar-sort .sort-select--count {
    max-width: none;
    width: 100%;
    padding: 12px 28px 12px 12px;
    font-size: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--paper-warm);
  }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .cart-drawer { width: 100vw; max-width: 100%; }
  .classification-pills {
    gap: 8px;
  }
  .clf-pill {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .results-grid.list-view .book-card { flex-direction: column; }
  .results-grid.list-view .book-card-img { width: 76px; height: auto; aspect-ratio: 2/3; }
  .cat-hdr h1 { font-size: 28px; }
  /* Niže naslovnice na mobu — manje „telefonskog“ scrolla */
  .bk-title { font-size: 16px; -webkit-line-clamp: 3; min-height: 3.9em; }
  .bk-author { font-size: 14px; }
  .bk-publisher { font-size: 10px; }
  .bk-price { font-size: 14px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .5s ease both; }

/* ═══════════════════════════════════════════════════════════════════════
   ══ SIDEBAR v2.0 — Cockpit, Active Chips, Presetovi, Mobile CTA ═════════
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Cockpit blok na vrhu sidebara ───────────────────────────────────── */
.sidebar-cockpit {
  margin: -2px -4px 14px;
  padding: 0 0 12px;
  background: none;
  border-radius: 0;
  position: relative;
}
.sidebar-cockpit::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}
.cockpit-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cockpit-tools .cockpit-search {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.cockpit-tools .cockpit-reset {
  flex-shrink: 0;
}
/* Cockpit ostaje prikvačen na vrhu dok se sidebar skrola (samo desktop). */
@media (min-width: 1025px) {
  .page-wrap .sidebar-cockpit {
    position: sticky;
    top: 0;
    z-index: 6;
    margin-left: -4px;
    margin-right: -4px;
    padding: 8px 4px 12px;
    background: var(--paper);
    box-shadow: 0 8px 14px -10px rgba(26,26,24,.18);
  }
}

.cockpit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cockpit-count-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.cockpit-count {
  font-family: var(--f-serif, var(--f-body));
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.cockpit-count-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cockpit-reset {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 11px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(26,26,24,.04);
}
.cockpit-reset:hover {
  color: var(--sea);
  border-color: var(--sea-light);
  background: var(--sea-wash);
  transform: rotate(-90deg);
}
.cockpit-reset.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

/* Cockpit search ─────────────────────────────────────────────────────── */
.cockpit-search {
  position: relative;
  margin-bottom: 12px;
}
.cockpit-search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-faint);
  pointer-events: none;
}
.cockpit-search-input {
  width: 100%;
  padding: 9px 32px 9px 30px;
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.cockpit-search-input::placeholder {
  color: var(--ink-faint);
  font-size: 12px;
}
.cockpit-search-input:focus {
  border-color: var(--sea-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111,168,184,0.08);
}
.cockpit-search-input::-webkit-search-cancel-button { display: none; }
.cockpit-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  display: none;
  align-items: center; justify-content: center;
  background: var(--paper-mid);
  color: var(--ink-faint);
  border: none;
  border-radius: 50%;
  font-size: 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cockpit-search-clear.is-visible { display: inline-flex; }
.cockpit-search-clear:hover { background: var(--ink); color: var(--paper); }

/* Quick filter chips (Novo / Akcija / cjenovni presetovi) ────────────── */
.cockpit-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  user-select: none;
}
.quick-chip i {
  font-size: 9px;
  opacity: .75;
}
.quick-chip:hover {
  border-color: var(--sea-deep);
  color: var(--sea-deep);
  background: var(--sea-wash);
  transform: translateY(-1px);
}
.quick-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.quick-chip.is-active i { opacity: 1; }
.quick-chip--sale.is-active {
  background: #b85a3a;
  border-color: #b85a3a;
}
.quick-chip--sale:not(.is-active):hover {
  border-color: #b85a3a;
  color: #b85a3a;
  background: rgba(184,90,58,0.06);
}

/* ── Price histogram + dual-range slider ────────────────────────────── */
.price-histogram-wrap {
  margin: 6px 0 14px;
  user-select: none;
}
.price-histogram {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  padding: 0 2px;
  margin-bottom: 4px;
}
.price-bar {
  flex: 1 1 0;
  min-width: 0;
  height: var(--bar-h, 0%);
  min-height: 2px;
  background: linear-gradient(180deg, var(--sea-light) 0%, var(--sea-pale) 100%);
  border-radius: 2px 2px 0 0;
  transition: background .25s ease, opacity .25s ease;
  opacity: .45;
}
.price-bar.is-in-range {
  background: linear-gradient(180deg, var(--sea) 0%, var(--sea-light) 100%);
  opacity: 1;
}

.price-slider {
  position: relative;
  height: 24px;
  margin: 0 -2px;
}
.price-slider-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  margin-top: -1.5px;
  background: var(--border);
  border-radius: 2px;
}
.price-slider-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--sea);
  border-radius: 2px;
  left: 0; width: 100%;
  pointer-events: none;
  transition: left .05s linear, width .05s linear;
}
.price-slider-input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.price-slider-input::-webkit-slider-runnable-track {
  background: transparent;
  height: 24px;
}
.price-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--sea);
  box-shadow: 0 2px 6px rgba(26,26,24,0.18);
  pointer-events: auto;
  cursor: grab;
  margin-top: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  z-index: 2;
}
.price-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(111,168,184,0.4);
}
.price-slider-input:active::-webkit-slider-thumb { cursor: grabbing; }
.price-slider-input::-moz-range-track {
  background: transparent;
  height: 24px;
}
.price-slider-input::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--sea);
  box-shadow: 0 2px 6px rgba(26,26,24,0.18);
  pointer-events: auto;
  cursor: grab;
  transition: transform .15s ease;
}
.price-slider-input::-moz-range-thumb:hover {
  transform: scale(1.12);
}
.price-slider-input--min { z-index: 3; }
.price-slider-input--max { z-index: 4; }

.price-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-readout-value {
  padding: 4px 8px;
  background: var(--sea-pale);
  color: var(--sea);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.price-readout-dash {
  color: var(--ink-faint);
  font-size: 10px;
}

/* "Točan unos" expander for precise number inputs */
.price-fine-tune {
  margin-top: 8px;
}
.price-fine-tune > summary {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.price-fine-tune > summary::-webkit-details-marker { display: none; }
.price-fine-tune > summary::before {
  content: '\203A';
  display: inline-block;
  font-size: 10px;
  color: var(--sea);
  transition: transform .2s;
}
.price-fine-tune[open] > summary::before {
  transform: rotate(90deg);
}
.price-fine-tune > summary:hover { color: var(--sea); }

/* ── Preset chips u price/year sekciji ──────────────────────────────── */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 12px;
}
.preset-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all .18s ease;
  white-space: nowrap;
}
.preset-chip:hover {
  border-color: var(--sea-deep);
  color: var(--sea-deep);
  background: var(--sea-wash);
}
.preset-chip.is-active {
  background: var(--sea-pale);
  color: var(--sea);
  border-color: var(--sea-light);
  font-weight: 500;
}

.author-list.is-az-loading {
  opacity: .55;
  pointer-events: none;
}

/* ── Active filter chips bar (iznad rezultata) ──────────────────────── */
.active-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  /* background: linear-gradient(180deg, rgba(111,168,184,0.05), rgba(111,168,184,0.02));
  border: 1px solid var(--border-soft); */
  border-radius: 10px;
  flex-wrap: wrap;
}
.active-chips-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.active-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 11px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .18s ease;
  max-width: 100%;
}
.active-chip i {
  font-size: 9px;
  color: var(--ink-faint);
  opacity: .75;
}
.active-chip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.active-chip-x {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper-mid);
  color: var(--ink-faint);
  font-size: 9px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.active-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.active-chip:hover .active-chip-x {
  background: var(--ink);
  color: var(--paper);
}
.active-chip--sea {
  background: var(--sea-pale);
  border-color: var(--sea-light);
  color: var(--sea);
}
.active-chip--sea i { color: var(--sea); opacity: 1; }
.active-chip--sea .active-chip-x { background: rgba(111,168,184,0.25); color: var(--sea); }
.active-chip--sale {
  background: rgba(184,90,58,0.08);
  border-color: rgba(184,90,58,0.2);
  color: #b85a3a;
}
.active-chip--sale i { color: #b85a3a; opacity: 1; }
.active-chip--sale .active-chip-x { background: rgba(184,90,58,0.15); color: #b85a3a; }
.active-chips-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.active-chips-clear:hover {
  color: var(--sea);
  border-bottom-color: var(--sea);
}

/* ── Mobile filter chip bar (sticky iznad rezultata) ───────────────── */
.mobile-filter-bar { display: none; }

@media (max-width: 1024px) {
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 50;
    margin: -8px -16px 16px;
    padding: 10px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    background: rgba(250, 249, 246, 0.92);
  }
  .mobile-filter-bar::-webkit-scrollbar { display: none; }

  .mfb-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(111,168,184,0.18);
  }
  .mfb-chip i {
    font-size: 9px;
    color: var(--ink-faint);
  }
  .mfb-chip:active {
    transform: scale(0.96);
  }
  .mfb-chip--all {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .mfb-chip--all i { color: var(--paper); opacity: .9; }
  .mfb-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 16px; height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sea);
    color: var(--paper);
    font-size: 9px;
    font-weight: 600;
    margin-left: 4px;
  }
}

/* ── Mobile bottom-sheet ──────────────────────────────────────────── */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 60000;
  pointer-events: none;
  visibility: hidden;
}
.mobile-sheet[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}
.mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 24, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-sheet[aria-hidden="false"] .mobile-sheet-backdrop {
  opacity: 1;
}
.mobile-sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fdfcfb 0%, var(--paper-warm) 100%);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -16px 48px rgba(26, 26, 24, 0.22);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.25, 1, .35, 1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-sheet[aria-hidden="false"] .mobile-sheet-panel {
  transform: translateY(0);
}
.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 10px auto 6px;
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  touch-action: none;
}
.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.mobile-sheet-title {
  font-family: var(--f-serif, var(--f-body));
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.mobile-sheet-close {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all .15s;
}
.mobile-sheet-close:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}
.mobile-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 18px 12px;
  -webkit-overflow-scrolling: touch;
}
.mobile-sheet-body .filter-section {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.mobile-sheet-body .filter-heading {
  display: none; /* title je već u sheet header-u */
}
.mobile-sheet-body .filter-body,
.mobile-sheet-body .filter-body.collapsed {
  max-height: none !important;
  overflow: visible !important;
}
.mobile-sheet-body .filter-section--classification {
  border-bottom: none;
  margin-bottom: 0;
}
.mobile-sheet-body .filter-section--categories .filter-body {
  display: block;
}
.mobile-sheet-body .filter-section--categories .cat-list {
  flex: none;
  overflow: visible;
  max-height: none;
}
.mobile-sheet-footer {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0));
  background: var(--paper-warm);
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.mobile-sheet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.mobile-sheet-cta .cta-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .8;
}
.mobile-sheet-cta .cta-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.mobile-sheet-cta .cta-arrow {
  font-size: 11px;
  margin-left: 4px;
  transition: transform .2s;
}
.mobile-sheet-cta:hover { background: var(--sea-deep); }
.mobile-sheet-cta:hover .cta-arrow { transform: translateX(3px); }
.mobile-sheet-cta:active { transform: translateY(1px); }

/* Body lock kad je sheet otvoren */
body.has-mobile-sheet-open {
  overflow: hidden;
}

/* AJAX osvježavanje rezultata: chipovi filtera ostaju klikabilni */
[data-shop-main].is-shop-loading .shop-toolbar,
[data-shop-main].is-shop-loading .results-grid,
[data-shop-main].is-shop-loading .pagination-wrap,
[data-shop-main].is-shop-loading .active-chips-bar,
[data-shop-main].is-shop-loading .empty-state {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity .2s;
}
[data-shop-main].is-shop-loading .mobile-filter-bar {
  pointer-events: auto;
}

/* ── Mobile sticky CTA ("Prikaži X knjiga") ────────────────────────── */
.sidebar-mobile-cta { display: none; }
.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .1s;
  box-shadow: 0 6px 20px rgba(26,26,24,0.18);
}
.sidebar-cta-btn .cta-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .8;
}
.sidebar-cta-btn .cta-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sidebar-cta-btn .cta-arrow {
  font-size: 11px;
  margin-left: 4px;
  transition: transform .2s;
}
.sidebar-cta-btn:hover { background: var(--sea-deep); }
.sidebar-cta-btn:hover .cta-arrow { transform: translateX(3px); }
.sidebar-cta-btn:active { transform: translateY(1px); }

/* ── Sidebar search filter — utility klase ─────────────────────────── */
.is-hidden-by-search { display: none !important; }
.is-empty-by-search { display: none !important; }
.cat-item--main.is-expanded-by-search > .cat-sub {
  max-height: 800px !important;
}
.cat-item--main.is-expanded-by-search .cat-toggle-icon {
  transform: rotate(90deg);
}
.sidebar.is-searching .filter-heading.collapsed + .filter-body.collapsed {
  max-height: 800px !important;
}

/* ═══ MOBILE TWEAKS (≤1024px) za nove komponente ════════════════════ */
@media (max-width: 1024px) {
  /* Sidebar-mobile CTA: sticky na dnu drawer-a */
  .sidebar-mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    left: 0; right: 0;
    margin: 24px -22px -40px;
    padding: 14px 22px 22px;
    background: linear-gradient(180deg, rgba(253,252,251,0) 0%, var(--paper-warm) 35%, var(--paper-warm) 100%);
    z-index: 5;
    pointer-events: auto;
  }

  /* Cockpit u drawer-u — kompaktnije */
  .sidebar-cockpit {
    margin: 0 0 18px;
    padding: 14px 12px 12px;
  }
  .cockpit-count { font-size: 24px; }

  /* Active chips bar — scroll horizontalno na uskim ekranima */
  .active-chips-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .active-chips-clear { margin-left: 0; }
}

@media (max-width: 768px) {
  /* Active chips: jedan red, horizontalni scroll bez clear gumba inline */
  .active-chips-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: -16px;
    margin-right: -16px;
    padding: 10px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .active-chips-bar::-webkit-scrollbar { display: none; }
  .active-chips-list {
    flex-wrap: nowrap;
    flex: 0 0 auto;
  }
  .active-chips-label { display: none; }
  .active-chips-clear {
    margin-left: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--paper);
  }
  .active-chip-label { max-width: 160px; }

  /* Cockpit quick chips: scroll horizontalno na mobu */
  .cockpit-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 0 4px 4px;
    -webkit-overflow-scrolling: touch;
  }
  .cockpit-quick::-webkit-scrollbar { display: none; }
  .quick-chip { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Vinyl record card — square sleeve cover, sized by format
   LP / 12" = full slot · 10" / EP ≈ 83% · 7" / Single ≈ 58%
   ═══════════════════════════════════════════════════════════ */

.book-card--vinyl {
  --vinyl-sleeve-size: 100%;
}
.book-card--vinyl-10 { --vinyl-sleeve-size: 83.333%; }
.book-card--vinyl-7  { --vinyl-sleeve-size: 58.333%; }

.book-card--vinyl .book-card-img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.book-card--vinyl .book-card-img::before,
.book-card--vinyl .book-card-img::after {
  content: none;
  display: none;
}

.book-card--vinyl .book-card-sleeve {
  position: relative;
  width: var(--vinyl-sleeve-size);
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-mid, #efece6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.book-card--vinyl .book-card-img img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  position: static;
  top: auto;
  left: auto;
  transform: none;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.book-card--vinyl:hover .book-card-img {
  transform: none;
}

.book-card--vinyl:hover .book-card-img img {
  transform: scale(1.04);
}

.book-card--vinyl .ribbon-new,
.book-card--vinyl .ribbon-sale,
.book-card--vinyl .ribbon-out-of-stock {
  top: 10px;
  right: 0;
  bottom: auto;
  left: auto;
  transform: none;
}

.book-card--vinyl .book-overlay {
  border-radius: 0;
}

.book-card--vinyl .book-info {
  margin-top: 4px;
}

.results-grid.list-view .book-card--vinyl .book-card-img {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
}

@media (max-width: 480px) {
  .results-grid.list-view .book-card--vinyl .book-card-img {
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
  }
}

/* ══ NAV — padajući izbornici (Kategorije, Događanja, O nama) ══ */
#mainNav { position: relative; }
/* Panel se pozicionira prema navu, ne prema .nav-inner (koji ima overflow-x i rezao bi ga) */
.nav-item { position: static; flex-shrink: 0; }
button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.nav-link--cats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-item.is-open .nav-burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-item.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-item.is-open .nav-burger span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-caret {
  font-size: 8px;
  margin-left: 5px;
  vertical-align: 2px;
  opacity: .6;
  transition: transform .2s ease;
}
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-caret--mobile { display: none; }
.nav-item.is-open > .nav-link { color: var(--ink); }
.nav-item.is-open > .nav-link::after { transform: scaleX(1); }

[data-nav-panel] { z-index: 260; }
.nav-item.is-open > [data-nav-panel] { animation: navPanelIn .18s ease both; }
@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mali padajući izbornik */
.nav-drop {
  position: absolute;
  top: 100%;
  min-width: 210px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(26,26,24,0.12);
}
.nav-drop-link {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-drop-link:hover,
.nav-drop-link:focus-visible { background: var(--sea-wash); color: var(--ink); }
.nav-drop-link.active { color: var(--sea); font-weight: 600; }

/* Mega izbornik kategorija */
.nav-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}
.nav-mega-inner {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 28px 56px rgba(26,26,24,0.14);
  padding: 18px 24px 22px;
}
.nav-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-mega-eyebrow {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-mega-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mega-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s, color .15s;
}
.nav-mega-chip i { font-size: 10px; color: var(--sea); }
.nav-mega-chip:hover { background: var(--sea-wash); border-color: var(--sea-light); color: var(--ink); }
.nav-mega-chip--sale i { color: #b5533c; }
.nav-mega-all {
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sea);
}
.nav-mega-all:hover { color: var(--ink); }

.nav-mega-body {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
}
.nav-mega-mains {
  list-style: none;
  margin: 0;
  padding: 0 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 14px;
  align-content: start;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-mega-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.nav-mega-main-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-mega-main.is-active,
.nav-mega-main:hover { background: var(--sea-wash); color: var(--ink); }
.nav-mega-main.is-active .nav-mega-main-name { font-weight: 600; }
.nav-mega-count {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.nav-mega-panes {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--border-soft);
}
.nav-mega-pane-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-mega-pane-title span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sea);
}
.nav-mega-pane-title:hover span { color: var(--ink); }
.nav-mega-subs {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}
.nav-mega-subs li { break-inside: avoid; }
.nav-mega-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.nav-mega-sub:hover { background: var(--sea-wash); color: var(--ink); }
.nav-mega-empty {
  margin: 14px 0 0;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
}

@media (max-width: 1200px) {
  .nav-mega-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .nav-mega-subs { columns: 1; }
}

/* Mobitel: sve unutar hamburger izbornika, kao harmonika */
@media (max-width: 768px) {
  .nav-item { width: 100%; }
  .nav-item > .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .nav-link--cats .nav-burger { display: none; }
  .nav-caret--mobile { display: inline-block; }
  .nav-drop,
  .nav-mega {
    position: static;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--paper-warm);
  }
  .nav-drop-link { padding: 11px 32px; border-radius: 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
  .nav-mega-inner { padding: 0; border: none; border-radius: 0; box-shadow: none; background: transparent; }
  .nav-mega-head { padding: 10px 20px; margin: 0; }
  .nav-mega-eyebrow { display: none; }
  .nav-mega-quick { flex-wrap: wrap; }
  .nav-mega-body { display: block; }
  .nav-mega-mains {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .nav-mega-main {
    padding: 11px 32px 11px 32px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-mega-main.is-active { background: none; }
  .nav-mega-main.is-active .nav-mega-main-name { font-weight: 400; }
  .nav-mega-panes { display: none; }
}

/* ══ POČETNA — puna širina bez sidebara ══ */
.page-wrap--home { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1025px) {
  .page-wrap--home .carousel-track .book-card { flex: 0 0 calc((100% - 4 * 20px) / 5); }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .page-wrap--home .carousel-track .book-card { flex: 0 0 calc((100% - 3 * 20px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item.is-open > [data-nav-panel] { animation: none; }
}

/* ══ SIDEBAR — oznaka odabira, pretraga autora, automatska primjena ══ */
.fh-active {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  vertical-align: 2px;
  line-height: 1.4;
}
.fh-active[hidden] { display: none; }

.author-search {
  position: relative;
  margin: 0 0 10px;
}
.author-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-faint);
  pointer-events: none;
}
.author-search-input {
  width: 100%;
  padding: 9px 10px 9px 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.author-search-input::placeholder { color: var(--ink-faint); font-style: italic; }
.author-search-input:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(111,168,184,0.16);
}
.author-search-empty {
  margin: 4px 2px 10px;
  font-family: var(--f-body);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
}
.author-search-empty[hidden] { display: none; }

/* Gumb ostaje u formi radi Entera, ali se filter primjenjuje sam */
.btn-apply-filter--auto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══ AKTIVNA STANJA — jedna tirkizna iz loga (#4ec1c2) ══ */
:root {
  --accent:       #4ec1c2;
  --accent-tint:  rgba(78,193,194,.14);
  --accent-hover: rgba(78,193,194,.07);
}

/* Kategorije, podkategorije i autori u sidebaru */
.cat-main-link:hover,
.cat-item:not(.cat-item--main) > a:hover,
.cat-item--sub > a:hover,
.author-link:hover,
.page-wrap .sidebar .cat-item a:hover {
  background: var(--accent-hover);
  border-left-color: rgba(78,193,194,.5);
  color: var(--ink);
}
.cat-main-link.active,
.cat-item:not(.cat-item--main) > a.active,
.cat-item--sub > a.active,
.author-link.active,
.page-wrap .sidebar .cat-item a.active,
.cat-list--drilldown .cat-item--active-main > .cat-main-row > .cat-main-link {
  color: var(--ink);
  font-weight: 600;
  background: var(--accent-tint);
  border-left-color: var(--accent);
  box-shadow: inset 1px 0 0 var(--accent);
}
.cat-item--sub > a.active::before { color: var(--accent); opacity: 1; }
.cat-main-link.active .cat-count,
.cat-item > a.active .cat-count,
.author-link.active .cat-count,
.cat-list--drilldown .cat-item--active-main > .cat-main-row > .cat-main-link .cat-count {
  color: var(--ink);
  background: var(--accent);
  border-radius: 10px;
  padding: 1px 7px;
}
.author-link:hover .cat-count { background: var(--accent-tint); }
.author-clear { color: var(--ink-soft); }
.cat-toggle:hover { color: var(--ink); background: var(--accent-hover); }

/* Stanje knjige / omota (checkbox) */
.chk-label input,
.page-wrap .sidebar input[type="checkbox"],
.page-wrap .sidebar input[type="radio"] { accent-color: var(--accent); }
.chk-label:hover { background: var(--accent-hover); border-left-color: rgba(78,193,194,.5); }
.chk-label:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
  background: var(--accent-tint);
  border-left-color: var(--accent);
}
.chk-label:has(input:checked) .chk-c { color: var(--ink-soft); }

/* Ključne riječi, brzi rasponi cijene, oznake */
.kw-pill:hover,
.preset-chip:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-hover); }
.kw-pill.active,
.preset-chip.is-active,
.kw-tag.active-sea {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.fh-active { background: var(--accent); color: var(--ink); font-weight: 600; }

/* Odabrani filteri iznad rezultata */
.active-chip--sea {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--ink);
}
.active-chip--sea i { color: var(--ink); }
.active-chip--sea .active-chip-x { background: var(--accent); color: var(--ink); }

/* Brzi filteri „Nove knjige / Dostupne” (Akcija ostaje terakota) */
.quick-chip:not(.quick-chip--sale):hover { border-color: var(--accent); color: var(--ink); background: var(--accent-hover); }
.quick-chip.is-active:not(.quick-chip--sale) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* Glavni izbornik i mega izbornik kategorija */
.nav-link.active,
.nav-drop-link.active { color: var(--ink); }
.nav-link::after { background: var(--accent); height: 2px; }
@media (min-width: 769px) {
  .nav-mega-main.is-active,
  .nav-mega-main:hover { background: var(--accent-tint); box-shadow: inset 2px 0 0 var(--accent); }
}

/* Straničenje */
.pg-btn:hover { background: var(--accent-hover); color: var(--ink); border-color: var(--accent); }
.pg-btn.active { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }

/* Fokus tipkovnicom na filterima */
.page-wrap .sidebar a:focus-visible,
.page-wrap .sidebar button:focus-visible,
.chk-label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
