/* Fokus Theme - Main Styles */

/* Reserve space for scrollbar even when hidden â€” sprjeÄava layout shift
   kad modal (cart drawer, QV) postavi body { overflow: hidden }. Bez ovog
   nestanak scrollbara Å¡iri viewport ~15px i kartice/naslovi "skoÄe" ulijevo. */
html { scrollbar-gutter: stable; }

:root {
  --color-accent: #D65A5A;
  --color-accent-hover: #c14d4d;
  --color-black: #000000;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #E6E6E6;
  --color-search-bg: #F6F6F6;
  --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --border-radius: 4px;
  --section-gap: 80px;
  --container-width: 1425px;
  --container-padding: 68px;
  --header-nav-gap: 50px;
}

/* Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: var(--section-gap) 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title { font-size: 2rem; font-weight: 700; margin: 0; white-space: nowrap; }
.section-header-line { flex: 1; height: 1.5px; background: #E6E6E6; display: block; min-width: 20px; }
.section-link { color: var(--color-accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.section-link--pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link--pill:hover { background: var(--color-accent-hover); text-decoration: none; }
.section-desc { color: var(--color-text-muted); margin-top: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; font-weight: 600; text-decoration: none; border-radius: var(--border-radius); transition: background .2s; }
.btn-accent { background: var(--color-accent); color: #fff !important; border: none; cursor: pointer; }
.btn-accent:hover { background: var(--color-accent-hover); }

/* Header - Figma Frame structure */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-bg); }
/* Sticky header — sakrij logo kad je zalijepljen/skrolano (Anja, 2026-06-10) */
.site-header.is-stuck .header-logo { display: none; }
.header-container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); width: 100%; }

/* Top bar - 44px */
.header-top-bar { background: var(--color-black); color: #fff; height: 44px; display: flex; align-items: center; }
.header-top-bar .header-container { display: flex; align-items: center; justify-content: flex-end; width: 100%; position: relative; }
.header-promo { margin: 0; font-size: 14px; font-weight: 400; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; cursor: default; user-select: none; }
.header-top-icons { display: flex; align-items: center; gap: 20px; }
.header-top-eu-link { color: #fff; font-size: 13px; font-weight: 400; text-decoration: none; letter-spacing: 0.3px; transition: opacity 0.2s; }
.header-top-eu-link:hover { opacity: 0.8; }
.header-top-icon { color: #fff; display: flex; align-items: center; }
.header-top-icon:hover { opacity: 0.8; }

/* Main header - logo, search, actions */
.header-main { border-bottom: 1px solid var(--color-border); min-height: 115px; display: flex; align-items: center; }
.header-main .header-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.header-logo { flex-shrink: 0; }
.header-logo a {
  text-decoration: none; color: var(--color-text); display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-logo a:hover {
  transform: scale(1.08) translateY(-4px);
}
.header-logo img,
.header-logo .header-logo-img {
  max-height: 90px; width: auto; height: 90px; object-fit: contain; display: block;
  transition: filter 0.3s ease;
}
.header-logo a:hover img,
.header-logo a:hover .header-logo-img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}
.header-logo .site-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.header-search-wrap { flex: 1; min-width: 200px; max-width: 550px; position: relative; }
.header-search-form { width: 100%; position: relative; display: flex; align-items: stretch; }

.search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
}
.ac-list { list-style: none; margin: 0; padding: 6px 0; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
}
.ac-item:hover,
.ac-item.is-focused { background: #faf5f5; }
.ac-img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f0f0f0;
}
.ac-img--empty { display: block; width: 44px; height: 60px; border-radius: 4px; background: #f0f0f0; flex-shrink: 0; }
.ac-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ac-title { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-author { font-size: 0.78rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-price { font-size: 0.875rem; font-weight: 600; color: var(--color-accent); white-space: nowrap; flex-shrink: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.ac-footer { border-top: 1px solid var(--color-border); padding: 10px 16px; }
.ac-view-all { font-size: 0.8125rem; color: var(--color-accent); font-weight: 600; text-decoration: none; display: block; text-align: center; }
.ac-view-all:hover { text-decoration: underline; }
.ac-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 0.85rem; color: #666; font-weight: 500; }
.ac-spinner { width: 18px; height: 18px; border: 2.5px solid #e6e6e6; border-top-color: var(--color-accent); border-radius: 50%; animation: ac-spin 0.6s linear infinite; flex-shrink: 0; }
@keyframes ac-spin { to { transform: rotate(360deg); } }
.header-search-input { width: 100%; height: 48px; padding: 0 60px 0 20px; border: 2px solid var(--color-search-bg); background: var(--color-search-bg); border-radius: 50px; font-family: var(--font-primary); font-size: 14px; }
.header-search-input::placeholder { color: var(--color-text); opacity: 0.7; }
.header-search-input:focus { outline: none; border-color: var(--color-border); }
.header-search-btn { position: absolute; right: 0; top: 0; width: 55px; height: 48px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-text); }
.header-search-btn:hover { color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-action { display: flex; align-items: center; position: relative; color: var(--color-text); padding: 4px; }
.header-action:hover { color: var(--color-accent); }
.header-action svg { display: block; height: 26px; width: 26px }
.header-cart, .login-modal-toggle { border: none; background: transparent; cursor: pointer; }
.header-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 16px; padding: 0 5px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.header-count:empty { display: none; }

/* Nav bar - 72px */
.header-nav { background: #fff; min-height: 72px; display: flex; align-items: center; border-bottom: 1px solid var(--color-border); position: relative; }
.header-nav .header-container { width: 100%; display: flex; justify-content: center; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--header-nav-gap); flex-wrap: wrap; justify-content: center; }
.nav-menu li { margin: 0; position: relative; }
.nav-menu > li { position: relative; }
.nav-menu a {
  text-decoration: none; color: var(--color-text); font-size: 16px; font-weight: 600;
  padding: 22px 0; display: flex; align-items: center; justify-content: center; gap: 5px; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; background: var(--color-accent);
  border-radius: 50%;
  opacity: 0; transition: opacity 0.2s;
}
.nav-menu a:hover { color: var(--color-accent); }
.nav-menu a:hover::after { opacity: 1; }
/* Aktivna (trenutna) stavka — isti stil kao hover. WP automatski dodaje current-* klase. */
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-menu-parent > a,
.nav-menu .current_page_item > a,
.nav-menu .current_page_ancestor > a,
.nav-menu li.active > a { color: var(--color-accent); }
.nav-menu .current-menu-item > a::after,
.nav-menu .current-menu-ancestor > a::after,
.nav-menu .current-menu-parent > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current_page_ancestor > a::after,
.nav-menu li.active > a::after { opacity: 1; }
/* Dropdown arrow */
.nav-menu .menu-item-has-children > a::before {
  content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-left: 4px; position: relative; bottom: -2px;
}
/* Submenu dropdown */
.nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; padding: 12px 0; margin: 0; list-style: none;
  background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.12); border-radius: var(--border-radius);
  z-index: 100; white-space: nowrap;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li { margin: 0; position: relative; }
.nav-menu .sub-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 500;
  justify-content: flex-start; white-space: nowrap;
}
.nav-menu .sub-menu a::after,
.nav-menu .sub-menu a::before { display: none; }
.nav-menu .sub-menu a:hover { background: rgba(214, 90, 90, 0.08); color: var(--color-accent); }
.nav-menu .sub-menu .current-menu-item > a,
.nav-menu .sub-menu .current_page_item > a,
.nav-menu .sub-menu li.active > a { background: rgba(214, 90, 90, 0.08); color: var(--color-accent); }
/* Nested submenu */
.nav-menu .sub-menu .sub-menu { top: 0; left: 100%; transform: none; margin-left: 4px; }

/* â”€â”€ Megamenu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* KnjiÅ¾ara li â€” izlazi iz relative konteksta da megamenu bude full-width */
.nav-menu li.has-megamenu { position: static; }

/* Chevron za megamenu trigger â€” desno od teksta, rotira kad je otvoren */
.nav-menu li.has-megamenu > a::before {
  display: inline-block !important;
  content: '' !important;
  order: 1;
  width: 6px !important; height: 6px !important;
  border: none !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg);
  transition: transform .2s ease;
  position: relative !important;
  bottom: 2px !important;
  margin-left: 5px !important;
  flex-shrink: 0;
}
.nav-menu li.has-megamenu:hover > a::before,
.nav-menu li.has-megamenu:focus-within > a::before {
  transform: rotate(-135deg);
  bottom: -2px !important;
}

/* Megamenu panel â€” apsolutno na dnu .header-nav */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  /* visibility se odgaÄ‘a da premosti prazninu izmeÄ‘u nav linka i panela */
  transition: opacity .18s ease, transform .18s ease, visibility 0s ease .2s;
}

/* Nevidljivi most iznad panela koji premoÅ¡Ä‡uje fiziÄku prazninu */
.megamenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* PrikaÅ¾i na hover ili focus-within */
.nav-menu li.has-megamenu:hover > .megamenu,
.nav-menu li.has-megamenu:focus-within > .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* Inner: centriran container, 4 kolumne */
.megamenu-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px var(--container-padding);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Kolumna naslovi */
.megamenu-col-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  transition: color .15s;
}
/* Override .nav-menu a za Beletristika link â€” mora izgledati kao ostali naslovi */
.megamenu a.megamenu-col-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 0 10px !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
.megamenu a.megamenu-col-title::after { display: none !important; }
a.megamenu-col-title:hover { color: var(--color-accent); }
.megamenu-col-title--label { cursor: default; }

/* Lista linkova unutar kolumne */
.megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.megamenu-list li { margin: 0; }
.megamenu-list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.megamenu-list a::after,
.megamenu-list a::before { display: none !important; }
.megamenu-list a:hover { color: var(--color-accent); padding-left: 5px; }

/* Novi naslovi â€” istaknut link */
.megamenu-link--new { font-weight: 600; }
.megamenu-link--new::after { display: none !important; }

/* Promo kartice (Akcija / Outlet) */
.megamenu-promo-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.megamenu-promo-card {
  display: flex; flex-direction: column;
  padding: 16px 18px; border-radius: 8px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.megamenu-promo-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.megamenu-promo-card::after, .megamenu-promo-card::before { display: none !important; }
.megamenu-promo-card-label { font-size: 16px; font-weight: 700; line-height: 1.2; }
.megamenu-promo-card-sub { font-size: 12px; margin-top: 4px; opacity: .88; font-weight: 400; }
/* ViÅ¡i selektor da pobijedi .nav-menu a { color: var(--color-text) } */
.megamenu .megamenu-promo-card--akcija  { background: var(--color-accent); color: #fff; }
.megamenu .megamenu-promo-card--outlet  { background: #1f1f1f; color: #fff; }
.megamenu .megamenu-promo-card--booklet { background: var(--color-accent); color: #fff; }
.megamenu .megamenu-promo-card--akcija:hover,
.megamenu .megamenu-promo-card--outlet:hover,
.megamenu .megamenu-promo-card--booklet:hover { color: #fff; }

/* â”€â”€ Kolumna 3: Najprodavanija knjiga na akciji â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.megamenu-col--feature { min-width: 0; }

.megamenu .megamenu-feature-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--color-border, #e6e6e6);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  background: #fff;
}
.megamenu .megamenu-feature-card::after,
.megamenu .megamenu-feature-card::before { display: none !important; }
.megamenu .megamenu-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.megamenu-feature-cover {
  position: relative;
  display: block;
  background: #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}
.megamenu-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.megamenu-feature-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 7px;
  border-radius: 3px;
}

.megamenu-feature-meta { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.megamenu-feature-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.megamenu-feature-author { font-size: 12px; color: #666; }
.megamenu-feature-price { font-size: 14px; font-weight: 600; color: var(--color-accent); margin-top: 2px; }
.megamenu-feature-price del { color: #999; font-weight: 400; margin-right: 4px; }
.megamenu-feature-price ins { background: none; color: var(--color-accent); text-decoration: none; }

/* Na tabletu i manjem megamenu je skriven (koristi se mobilni meni) */
@media (max-width: 992px) {
  .megamenu { display: none !important; }
}

/* Screen reader utility */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* Hero - Swiper: infinite loop, autoplay, swipe */
.hero-section { margin-bottom: 0; }
.hero-slider-wrap { position: relative; }
/*Hero slider nav strelice Ã¢â‚¬â€ isti stil kao ostale sekcije*/
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  color: var(--color-text);
  padding: 0;
}
.hero-slider-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(214,90,90,.25);
}
.hero-slider-nav.swiper-button-disabled { opacity: 0.3; pointer-events: none; }
.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }
/* Hero strelice samo na širinama ≥1400px (Anja, 2026-06-10) — autoplay/swipe ostaju */
@media (max-width: 1399px) {
  .hero-slider-nav { display: none; }
}
@media (max-width: 768px) {
  .hero-slider-prev { left: 10px; }
  .hero-slider-next { right: 10px; }
  .hero-slider-nav { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .hero-slider-nav { display: none; }
}
.hero-slider {
  position: relative;
  height: 600px;
  width: 100%;
  overflow: hidden;
}
.hero-slides {

  height: 100%;
}
.hero-slide {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
}
/* hero-bg: both <picture> (ACF) and <div> (placeholder) use same base */
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #eee; }
picture.hero-bg { display: block; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-placeholder { background: linear-gradient(135deg, #666 0%, #333 100%); }
.hero-bg-placeholder { background-image: none !important; }
.hero-bg-placeholder.hero-bg-1 { background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%); }
.hero-bg-placeholder.hero-bg-2 { background: linear-gradient(135deg, #3d2c4a 0%, #1f1526 100%); }
.hero-bg-placeholder.hero-bg-3 { background: linear-gradient(135deg, #2d3a4a 0%, #16202a 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; }

#hero-swiper .hero-pagination {
  position: absolute;
  bottom: 24px;
  left: 50% !important;        /* override Swiper: left: 0 */
  width: auto !important;      /* override Swiper: width: 100% */
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(0,0,0,.35);
  border-radius: 20px;
  pointer-events: auto;
}
#hero-swiper .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
  opacity: 1;                  /* override Swiper: opacity: 0.2 na neaktivnim */
}
#hero-swiper .hero-dot:hover { background: rgba(255,255,255,.8); }
#hero-swiper .hero-dot.is-active { width: 22px; background: #fff; opacity: 1; }
.hero-nadnaslov { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; opacity: 0.85; }
.hero-title { font-size: 3.4rem; font-weight: 700; line-height: 1.12; margin: 0 0 12px; }
.hero-podnaslov { font-size: 1.125rem; font-weight: 400; line-height: 1.5; margin: 0 0 18px; opacity: 0.88; max-width: 520px; }
.hero-author { margin: 0 0 12px; opacity: .9; }
.hero-price { font-size: 1.875rem; font-weight: 600; margin: 0 0 24px; }
.hero-content .btn { padding: 14px 36px; font-size: 1rem; }

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-nadnaslov,
.hero-title,
.hero-podnaslov,
.hero-author,
.hero-price,
.hero-content .btn {
  opacity: 0;
}
.swiper-slide-active .hero-nadnaslov { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.05s forwards; }
.swiper-slide-active .hero-title      { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.18s forwards; }
.swiper-slide-active .hero-podnaslov  { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.30s forwards; }
.swiper-slide-active .hero-author     { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.30s forwards; }
.swiper-slide-active .hero-price      { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.40s forwards; }
.swiper-slide-active .hero-content .btn { animation: hero-slide-up .55s cubic-bezier(.22,.68,0,1.2) 0.50s forwards; }
/* Hero genre tabs section â€” pill linkovi na product_cat archive, ispod banera */
.hero-genre-tabs-section { padding: 60px 0; }
.hero-genre-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 var(--container-padding);
  align-items: center;
  justify-content: center;
}
.hero-genre-tabs .genre-tab { text-decoration: none; }
.hero-genre-tabs .genre-tab {
  padding: 7px 20px;
  background: transparent;
  border: 1.5px solid var(--color-border, #E6E6E6);
  border-radius: 50px;
  color: var(--color-text, #000);
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.4;
}
.hero-genre-tabs .genre-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(214,90,90,0.06);
}
.hero-genre-tabs .genre-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(214,90,90,0.28);
}

/* CSS Scroll-snap sliders */
.slider-scroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.slider-scroll::-webkit-scrollbar { height: 6px; }
.slider-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.slider-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.slider-track { display: flex; gap: 20px; padding: 10px 0; min-width: min-content; }
.slider-slide { flex-shrink: 0; scroll-snap-align: start; scroll-snap-stop: always; }

/* Hero slider - Swiper handles slide sizing */

/*Najprodavanije Ã¢â‚¬â€ Slick slider*/
/* Bestsellers â€” autor slika ispod section-headera */
.bestsellers-author {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}
.bestsellers-author__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-border, #e8e8e8);
}

.bestsellers-slick-wrap {
  position: relative;
  margin: 0 -12px;
}
.bestsellers-slick-wrap .slick-list {
  overflow: hidden;
  margin: 0; /* Slick Ã„Âita ul.width() direktno, bez additional negative margin trika */
}
.bestsellers-slick-wrap .slick-slide {
  height: auto;
  box-sizing: border-box;
}
.bestsellers-slick-wrap .slick-slide > div {
  height: 100%;
}
.bestsellers-slick-wrap .slick-track {
  align-items: stretch;
}
/* Nav strelice Ã¢â‚¬â€ identiÃ„Âan stil hero i rec carouselu */
.bestsellers-slick-wrap .slick-prev,
.bestsellers-slick-wrap .slick-next {
  position: absolute;
  /* top: 50% Ã¢Ë†â€™ 55px Ã¢â€ â€™ centar na sliku korice (ne na cijelu karticu s tekstom ispod) */
  top: calc(50% - 55px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.bestsellers-slick-wrap .slick-prev:hover,
.bestsellers-slick-wrap .slick-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214,90,90,0.28);
}
/* ul je 12px Ã…Â¡iri od content areae na svakoj strani.
   left/right: -10px Ã¢â€ â€™ button edge na Ã‚Â±(12+10)=22px od content ruba Ã¢â€ â€™ centar toÃ„Âno na content rubu Ã¢Å“â€œ */
.bestsellers-slick-wrap .slick-prev { left: -10px; }
.bestsellers-slick-wrap .slick-next { right: -10px; }
.bestsellers-slick-wrap .slick-prev::before,
.bestsellers-slick-wrap .slick-next::before { display: none; }
.bestsellers-slick-wrap .slick-prev svg,
.bestsellers-slick-wrap .slick-next svg { display: block; flex-shrink: 0; }
/* Dots su iskljuÃ„Âeni (dots: false u JS-u) */
@media (max-width: 480px) {
  .bestsellers-slick-wrap .slick-prev,
  .bestsellers-slick-wrap .slick-next { display: none; }
}

/* TOP naslovi: strelice maknute (arrows:false u JS-u) — dot paginacija ispod (Anja, 2026-06-10) */
.bestsellers-slick-wrap .slick-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.bestsellers-slick-wrap .slick-dots li { margin: 0; line-height: 0; }
.bestsellers-slick-wrap .slick-dots li button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9d9d9;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.bestsellers-slick-wrap .slick-dots li button::before { display: none; }
.bestsellers-slick-wrap .slick-dots li.slick-active button {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* Reset browser-default ul padding Ã¢â‚¬â€ Slick ne resetira <ul>, browser dodaje padding-left: 40px Ã…Â¡to pomiÃ„Âe slick-list udesno */
.bestsellers-slick { padding: 0 !important; margin: 0; list-style: none; }

/*Bestsellers Slick Ã¢â‚¬â€ .fk-card items, padding izmeÃ„â€˜u slajdova (mora biti = apsolutna vrijednost slick-list margin) */
.bestsellers-slick .slick-slide > div { height: 100%; }
.bestsellers-slick .product.fk-card {
  padding: 0 12px; /* = abs(slick-list margin) = 12px Ã¢â€ â€™ gap izmeÃ„â€˜u slajdova = 24px */
  margin: 0;
  list-style: none;
  border: none;
  height: 100%;
}

/* Shared Slick wrap Ã¢â‚¬â€ Novi naslovi (isti setup kao Najprodavanije) */
.fk-slick-wrap {
  position: relative;
  margin: 0 -12px;
}
.fk-slick-wrap .slick-list {
  overflow: hidden;
  margin: 0;
}
.fk-slick-wrap .slick-slide {
  height: auto;
  box-sizing: border-box;
}
.fk-slick-wrap .slick-slide > div {
  height: 100%;
}
.fk-slick-wrap .slick-track {
  align-items: stretch;
}
.fk-slick-wrap .slick-prev,
.fk-slick-wrap .slick-next {
  position: absolute;
  top: calc(50% - 55px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.fk-slick-wrap .slick-prev:hover,
.fk-slick-wrap .slick-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214,90,90,0.28);
}
.fk-slick-wrap .slick-prev { left: -10px; }
.fk-slick-wrap .slick-next { right: -10px; }
.fk-slick-wrap .slick-prev::before,
.fk-slick-wrap .slick-next::before { display: none; }
.fk-slick-wrap .slick-prev svg,
.fk-slick-wrap .slick-next svg { display: block; flex-shrink: 0; }
@media (max-width: 480px) {
  .fk-slick-wrap .slick-prev,
  .fk-slick-wrap .slick-next { display: none; }
}
.fk-slick { padding: 0 !important; margin: 0; list-style: none; }
.fk-slick .slick-slide > div { height: 100%; }
.fk-slick .product.fk-card {
  padding: 0 12px;
  margin: 0;
  list-style: none;
  border: none;
  height: 100%;
}


.bestsellers-slick:not(.slick-initialized),
.fk-slick:not(.slick-initialized) { opacity: 0; }
.bestsellers-slick.slick-initialized,
.fk-slick.slick-initialized { opacity: 1; transition: opacity 0.3s ease; }


.sale-section { background: #fff; padding-top: 0}
.sale-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 30px;
  align-items: stretch;
}
.sale-books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.sale-promo {
    display: flex;
  align-items: stretch;
}
.sale-promo-box {
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  padding: 32px 32px 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  position: relative;
  overflow: hidden;
}
/*Background % icon Ã¢â‚¬â€ upper half*/
.sale-promo-icon {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
/*Bubble effect (discount icons) Ã¢â‚¬â€ fizzy water, uvijek prikazano*/
.sale-promo-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sale-promo-bubble {
  position: absolute;
  bottom: var(--bubble-start, 0%);
  left: var(--bubble-left, 50%);
  margin-left: calc(var(--bubble-size, 40px) / -2);
  width: var(--bubble-size, 40px);
  height: auto;
  object-fit: contain;
  animation: sale-bubble-rise 4s ease-out infinite;
  animation-delay: var(--bubble-delay, 0s);
}
.sale-promo-bubble:nth-child(odd) {
  animation-duration: 3.2s;
}
.sale-promo-bubble:nth-child(3n) {
  animation-duration: 5.2s;
}
@keyframes sale-bubble-rise {
  0% {
    transform: translateY(0) scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-150%) scale(1);
    opacity: 0;
  }
}
.sale-promo-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}
.sale-promo-badge {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.sale-promo-desc {
  font-size: 0.85rem;
  margin: 0 0 28px;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}
.sale-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #fff;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: filter .2s;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}
.sale-promo-btn:hover { filter: brightness(0.96); }
.sale-empty { grid-column: 1 / -1; color: var(--color-text-muted); font-style: italic; padding: 20px; }


.recommendation-section { background: #fff; }
/* Cap stretch on 4K â€” container 1425 + max 200 = 1625 */
.recommendation-section .container,
.rec-wrap {
  max-width: calc(var(--container-width, 1425px) + 200px);
  margin-left: auto;
  margin-right: auto;
}
.rec-wrap {
  margin-top: 24px;
}
/* Wrapper: nav buttons outside overflow:hidden swiper */
.rec-swiper-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
/* FOUC prevention Ã¢â‚¬â€ hide until Swiper adds .swiper-initialized */
.rec-viewport:not(.swiper-initialized) { opacity: 0; }
.rec-viewport.swiper-initialized { transition: opacity 0.3s ease; }
/* .rec-track = swiper-wrapper Swiper manages flex/transform */
/* Card width controlled by Swiper slidesPerView */
.rec-viewport .swiper-slide { height: auto; }
.rec-card {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 24px;
  padding: 28px 24px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  background: #F6F5F4;
  box-shadow: none;
  transition: box-shadow .3s;
  height: 100%;
  box-sizing: border-box;
}
.rec-card:hover { opacity: .75 }
.rec-card-cover {
  flex: 0 0 auto;
  align-self: flex-start; /* prevent flex stretch from overriding aspect-ratio */
  width: 140px;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
}
.rec-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rec-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.rec-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
.rec-stars { color: #e0e0e0; letter-spacing: 1px; }
.rec-star.filled { color: #f0b429; }
.rec-rating-num { font-weight: 600; color: #333; }
.rec-rating-count { color: var(--color-text-muted); font-size: 0.8rem; }
.rec-card-author { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }
.rec-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card-price {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}
.rec-card-price del { color: var(--color-text-muted); font-weight: 400; margin-right: 4px; font-size: 0.9rem; }
.rec-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.rec-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214,90,90,0.28);
}
.rec-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 480px) {
  .rec-nav { display: none; }
}
.rec-empty { padding: 40px 20px; color: var(--color-text-muted); text-align: center; flex: 1; }
/*Pagination dots ''...'Ã¢â‚¬â€ slick-dots stil*/
/*Dots paginacija ''...'Ã¢â‚¬â€ van swiper containera, overflow:hidden ne utjece*/
.rec-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 18px 0 0;
}
.rec-pagination .swiper-pagination-bullet {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: #ccc;
  opacity: 1;
  cursor: pointer;
  transition: background .25s, width .25s;
  margin: 0;
}
.rec-pagination .swiper-pagination-bullet-active {
  background: var(--color-accent);
  width: 22px;
}
@media (max-width: 768px) {
  .rec-prev { left: 10px; }
  .rec-next { right: 10px; }
  .rec-card-cover { width: 110px; }
  .rec-nav { top: 111px; }
  .rec-card-title { font-size: 1.1rem; }
}

/* Author of the Month */
.author-month-section { background: #fff; }
.am-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.am-popular {
  background: #F6F6F6;
  border-radius: 16px;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
.am-popular-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #000;
}
.am-popular-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.am-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--color-text);
  transition: color .2s;
}
.am-popular-item:hover { color: var(--color-accent); }
.am-popular-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.am-popular-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-popular-name { flex: 1; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.am-popular-count { font-size: 0.8rem; color: var(--color-text-muted); flex-shrink: 0; }
.am-popular-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000;
  transition: background .2s, color .2s;
}
.am-popular-item:hover .am-popular-arrow { background: var(--color-accent); color: #fff; }

.am-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Autor info horizontalni red */
.am-info {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.am-photo-wrap {
  width: 140px;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
  flex-shrink: 0;
}
.am-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.am-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  width: 100%;
  height: 100%;
}
.am-meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.am-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--color-accent);
}
.am-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}
.am-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 4px 0 0;
}
.am-bio p:first-child { margin-top: 0; }

.am-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.am-book {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 20px;
}
.am-book:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.am-book-cover {
  width: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.am-book:hover .am-book-cover { transform: translateY(-3px); }
.am-book-img {
  width: 100%;
  height: auto;
  display: block;
}
.am-book-info { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.am-book-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}
.am-book-author {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.am-book-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 6px;
}
.am-book-price del {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: 4px;
}
.am-empty { color: var(--color-text-muted); font-style: italic; }
.subsection-title { font-size: 1.25rem; margin: 0 0 20px; }
.book-title { display: block; font-size: 0.875rem; font-weight: 500; }
.book-title:not(:last-child) { margin-bottom: 4px; }

/* Genres Swiper */
.genres-swiper-wrap {
  position: relative;
  margin-top: 24px;
}
.genres-swiper {
  overflow: hidden;
}
.genres-swiper:not(.swiper-initialized) { opacity: 0; }
.genres-swiper.swiper-initialized { transition: opacity 0.3s ease; }
.genres-swiper .swiper-wrapper {
  padding: 8px 0;
}
.genres-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .2s;
}
.genres-prev { left: -22px; }
.genres-next { right: -22px; }
.genres-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214,90,90,0.28);
}
.genres-nav.swiper-button-disabled { opacity: 0.25; cursor: default; }
.genre-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  background: var(--color-accent);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  min-height: 180px;
  overflow: hidden;
  position: relative;
  transition: filter .2s;
  height: 100%;
}
.genre-card:hover { filter: brightness(1.08); }
.genre-card-icon {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.genre-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.genre-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.genre-label {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  position: relative;
  z-index: 1;
  line-height: 1.3;
  text-align: left;
}

/* Newsletter */
.newsletter-section {
  background: #F6F6F6;
  padding: 64px 20px;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.newsletter-content {
  flex: 1;
  min-width: 0;
}
.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px;
  line-height: 1.2;
}
.newsletter-desc {
  font-size: 1rem;
  color: #333;
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 480px;
}
.newsletter-form { margin: 0; }
.newsletter-input-wrap {
  display: flex;
  gap: 0;
  max-width: 520px;
  border: 1.5px solid #000;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}
.newsletter-input-wrap input[type="email"] {
  flex: 1;
  padding: 14px 24px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 0;
}
.newsletter-input-wrap input[type="email"]::placeholder {
  color: #999;
}
.newsletter-btn {
  flex-shrink: 0;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: #222; }

/* Spinner Ã¢â‚¬â€ vidljiv samo dok form ima .is-loading */
.newsletter-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletter-spin 0.7s linear infinite;
}
@keyframes newsletter-spin {
  to { transform: rotate(360deg); }
}
.newsletter-form.is-loading .newsletter-btn-text   { display: none; }
.newsletter-form.is-loading .newsletter-btn-spinner { display: block; }
.newsletter-form.is-loading .newsletter-btn { cursor: default; pointer-events: none; }

/* Status poruka */
.newsletter-msg {
  margin: 10px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.newsletter-msg.is-success { color: #15803d; }
.newsletter-msg.is-error   { color: #b91c1c; }

/* Honeypot Ã¢â‚¬â€ nevidljivo za ljude, vidljivo botovima */
.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.newsletter-form { position: relative; }

.newsletter-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-image img {
  width: 280px;
  height: auto;
  display: block;
}

/* Blog */
/* Recenzije â€” 3 jednake kartice */
@keyframes blogFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: blogFadeUp 0.5s ease both;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}
.blog-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
.blog-card-author::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}
.blog-card:hover .blog-card-title { color: var(--color-accent); }

/* Gift cards */
.gift-cards-header { text-align: center; margin-bottom: 24px; }
.gift-cards-title { font-size: 2rem; font-weight: 700; color: #000; margin: 0 0 12px; }
.gift-cards-desc { font-size: 1rem; font-weight: 400; color: #333; margin: 0; max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.gift-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.gift-card {
  display: block;
  position: relative; /* sadrži apsolutno pozicionirani .screen-reader-text — inače bježi na html i radi horizontalni overflow na mobu */
  aspect-ratio: 8/4;
  min-height: 160px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gift-card:hover { transform: scale(1.03); }

/* Footer */
.site-footer { background: #111; color: #fff; }
.footer-top { padding: 72px 0 64px; }
.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col-logo { display: flex; flex-direction: column; gap: 0; }
.footer-logo-link { display: inline-block; margin-bottom: 0; }
.footer-logo-img { display: block; height: 66px; width: auto; }
.footer-col-title {
  color: #fff;
  margin: 0 0 16px;
  padding-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: none;
  transition: color .2s, padding-left .15s;
}
.footer-menu a:hover { color: #fff; padding-left: 4px; }
.footer-contact { margin: 0 0 8px; font-size: 0.875rem; line-height: 1.5; color: rgba(255,255,255,0.6); }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { color: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: border-color .2s, color .2s, background .2s; flex-shrink: 0; }
.footer-social a:hover { border-color: var(--color-accent); color: var(--color-accent); background: rgba(214,90,90,0.1); }
.footer-social svg { display: block; width: 18px; height: 18px; }
.footer-bottom { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-bottom .copyright { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }
.footer-bottom .footer-cards { justify-self: center; }
.footer-cards { height: 22px; width: auto; max-width: 380px; object-fit: contain; opacity: 0.7; }
.footer-bottom .footer-credit { margin: 0; font-size: 0.8125rem; color: rgba(255,255,255,0.45); justify-self: end; }
.footer-bottom .footer-credit a { color: inherit; text-decoration: none; transition: color .2s ease; }
.footer-bottom .footer-credit a:hover { color: #fff; }

.onsale { position: absolute; top: 8px; left: 8px; background: var(--color-accent); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.woocommerce ul.products li .button { margin-top: 8px; padding: 8px 16px; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1200px) {
  :root { --container-padding: 40px; }
}
@media (max-width: 992px) {
  :root { --container-padding: 24px; --section-gap: 48px; }
  /* Hero */
  .hero-slider, .hero-slide { height: 480px; }
  .hero-title { font-size: 2.4rem; }
  .hero-podnaslov { font-size: 1rem; }
  .hero-price { font-size: 1.5rem; }
  .hero-genre-tabs-section { padding: 28px 0; }
  .hero-genre-tabs { gap: 8px; }
  .hero-genre-tabs .genre-tab { padding: 6px 15px; font-size: 0.875rem; }
  /* Section headers */
  .section-title { font-size: 1.35rem; }
  /* Sale */
  .sale-grid { grid-template-columns: 1fr; }
  .sale-books { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .sale-promo { grid-row: auto; }
  /* Sale bubble animation Ã¢â‚¬â€ pauzirano na tabletu/mobu (uÃ…Â¡tedina CPU/GPU) */
  .sale-promo-bubble { animation-play-state: paused; }
  /* Header Ã¢â‚¬â€ na mobiju additions.css skriva nav+search, ostaje hamburger+logo+ikone u redu */
  .header-main { min-height: 72px; }
  .header-main .header-container { gap: 16px; }
  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  /* Gift cards */
  .gift-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gift-cards-title { font-size: 1.6rem; }
  /* Footer */
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .footer-top { padding: 56px 0 48px; }
  /* Products grid */
  .products { grid-template-columns: repeat(2, 1fr); }
  /* Newsletter */
  .newsletter-inner { gap: 32px; }
  .newsletter-image img { width: 220px; }
  /* Author month */
  .am-layout { grid-template-columns: 240px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  :root { --container-padding: 20px; --section-gap: 40px; }
  /* Hero */
  .hero-slider, .hero-slide { height: 400px; }
  .hero-title { font-size: 1.75rem; }
  .hero-podnaslov { font-size: 0.9375rem; max-width: 100%; }
  .hero-price { font-size: 1.25rem; }
  .hero-content .btn { padding: 10px 24px; font-size: 0.875rem; }
  .hero-genre-tabs-section { padding: 20px 0; }
  .hero-genre-tabs { gap: 7px; padding: 0 var(--container-padding); flex-wrap: wrap; justify-content: center; }
  .hero-genre-tabs .genre-tab { font-size: 0.875rem; padding: 6px 14px; }
  /* Section headers — naslov i gumb u istom redu i na mobu (Anja, 2026-06-10) */
  .section-header {
    gap: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .section-header-line { display: none; }
  .section-title { font-size: 1.2rem; }
  .section-link { font-size: 0.8125rem; }
  /* Sale */
  .sale-books { grid-template-columns: repeat(2, 1fr); }
  /* Header */
  /* Topbar mob (Anja, 2026-06-10): samo "Besplatna dostava" tekst, centriran.
     EU fondovi + društvene ikone skrivene na mobu (EU fondovi dostupan u footeru/izborniku). */
  .header-top-bar { font-size: 11px; height: auto; min-height: 40px; }
  .header-promo {
    display: block;
    position: static;
    transform: none;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
  }
  .header-top-bar .header-container { justify-content: center; }
  .header-top-icons { display: none; }
  .header-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-menu { justify-content: flex-start; padding: 0 20px; }
  /* Footer */
  .footer-columns { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { justify-content: center; }
  .footer-bottom .container { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-bottom .footer-credit { justify-self: center; }
  .footer-bottom .copyright { text-align: center; }
  /* Products grid */
  .products { grid-template-columns: 1fr; }
  /* Newsletter */
  .newsletter-inner { flex-direction: column-reverse; text-align: center; gap: 24px; }
  /* min-width:0 sprjecava da intrinzicna sirina inputa razvuce shrink-to-fit content izvan containera */
  .newsletter-content { width: 100%; min-width: 0; }
  .newsletter-form { width: 100%; }
  .newsletter-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .newsletter-input-wrap { max-width: 100%; }
  .newsletter-image img { width: 180px; }
  /* Author month Ã¢â‚¬â€ slaganje slike i texta vertikalno */
  .am-layout { grid-template-columns: 1fr; gap: 24px; }
  .am-books { grid-template-columns: 1fr; }
  .am-name { font-size: 1.4rem; }
  .am-info { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .am-photo-wrap { width: 120px; margin: 0 auto; }
  /* Blog (Recenzije) & Gift cards â€” horizontalni swipe na mobu */
  .blog-grid,
  .gift-cards-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    margin-left: calc(var(--container-padding) * -1);
    margin-right: calc(var(--container-padding) * -1);
    padding: 4px var(--container-padding) 16px;
  }
  .blog-grid::-webkit-scrollbar,
  .gift-cards-grid::-webkit-scrollbar { display: none; }
  .blog-card { flex: 0 0 min(280px, 82%); scroll-snap-align: start; }
  .gift-card { flex: 0 0 min(320px, 82%); scroll-snap-align: start; min-height: 140px; }
  .gift-cards-grid { margin-top: 24px; }
  .gift-cards-title { font-size: 1.5rem; }
  /* Search autocomplete */
  .search-autocomplete { width: 100%; left: 0; right: 0; }
}
@media (max-width: 480px) {
  :root { --container-padding: 20px; --section-gap: 32px; }
  /* Hero */
  .hero-slider, .hero-slide { height: 340px; }
  .hero-title { font-size: 1.4rem; }
  .hero-nadnaslov { font-size: 0.75rem; }
  .hero-podnaslov { font-size: 0.875rem; margin-bottom: 12px; }
  .hero-price { font-size: 1.1rem; margin-bottom: 16px; }
  .hero-content .btn { padding: 10px 20px; font-size: 0.8125rem; }
  .hero-genre-tabs-section { padding: 16px 0; }
  .hero-genre-tabs { padding: 0 var(--container-padding); gap: 6px; }
  .hero-genre-tabs .genre-tab { font-size: 0.8125rem; padding: 5px 12px; }
  /* Section headers */
  .section-title { font-size: 1.1rem; }
  /* Pagination */
  #hero-swiper .hero-pagination { padding: 6px 10px; }
  /* Genres Ã¢â‚¬â€ sakrivamo nav strelice, korisnik swipa prstom */
  .genres-prev, .genres-next { display: none; }
  /* Gift cards */
  .gift-cards-title { font-size: 1.25rem; }
  .gift-cards-desc { font-size: 0.9rem; }
  /* Author month */
  .am-name { font-size: 1.2rem; }
  .am-bio { font-size: 0.9rem; }
  .am-book-cover { width: 60px; flex-shrink: 0; }
  .am-book-title { font-size: 0.9375rem; }
  /* Newsletter */
  .newsletter-title { font-size: 1.5rem; }
  .newsletter-inner { gap: 12px; }
  .newsletter-image { display: none; }
  /* Na malom ekranu input i gumb idu okomito da placeholder ne bude rezan */
  .newsletter-input-wrap {
    flex-direction: column;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    gap: 10px;
  }
  .newsletter-input-wrap input[type="email"] {
    width: 100%;
    border: 1.5px solid #000;
    border-radius: 50px;
    background: #fff;
    text-align: center;
  }
  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .blog-card-title { font-size: 0.9375rem; }
  .blog-card-body { padding: 14px 16px 18px; }
  /* Footer cards Ã¢â‚¬â€ responsive u footer-bottom centeru */
  .footer-cards { max-width: 100%; }
}
 



   .woocommerce-breadcrumb {
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 20px 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border: none;
    background: none;
}

.woocommerce-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover {
    color: var(--color-accent);
}

/* Zadnji item accent boja */
.woocommerce-breadcrumb > span:last-child {
    color: var(--color-accent);
}

.breadcrumb-separator { margin: 0 10px }

/* =========================================
   Featured product hero â€” kategorija arhiva
   ========================================= */
.cat-featured-product {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border, #e8e8e8);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.cat-featured-product__img-wrap {
    position: relative;
    flex: 0 0 280px;
    width: 280px;
    min-height: 340px;
    display: block;
    background: #f5f5f5;
}

.cat-featured-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-featured-product__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.cat-featured-product__info {
    flex: 1 1 auto;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-featured-product__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-featured-product__label {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 3px;
}

.cat-featured-product__cat {
    font-size: 0.8125rem;
    color: var(--color-text-muted, #888);
    font-weight: 500;
}

.cat-featured-product__title {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--font-primary);
}

.cat-featured-product__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-featured-product__title a:hover {
    color: var(--color-accent);
}

.cat-featured-product__author {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted, #888);
}

.cat-featured-product__author a {
    color: var(--color-text-muted, #888);
    text-decoration: none;
    font-weight: 600;
}

.cat-featured-product__author a:hover {
    color: var(--color-accent);
}

.cat-featured-product__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted, #666);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-featured-product__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-featured-product__price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.cat-featured-product__price del,
.cat-featured-product__price del .woocommerce-Price-amount {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted, #aaa);
    opacity: 0.7;
}

.cat-featured-product__price ins {
    text-decoration: none;
    color: var(--color-accent);
}

.cat-featured-product__atc {
    white-space: nowrap;
}

.cat-featured-product__atc--oos {
    background: #e0e0e0;
    color: #888;
    cursor: default;
}

@media (max-width: 992px) {
    .cat-featured-product {
        gap: 28px;
    }
    .cat-featured-product__img-wrap {
        flex: 0 0 220px;
        width: 220px;
        min-height: 280px;
    }
    .cat-featured-product__info {
        padding: 24px 24px 24px 0;
    }
    .cat-featured-product__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 768px) {
    .cat-featured-product {
        flex-direction: column;
        gap: 0;
    }
    .cat-featured-product__img-wrap {
        flex: none;
        width: 100%;
        min-height: 240px;
        max-height: 320px;
    }
    .cat-featured-product__info {
        padding: 20px;
    }
}