*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #2a6db5;
  --blue-dark: #1a4f8a;
  --accent: #e8f0fb;
  --text: #2d2d2d;
  --gray: #f4f5f7;
  --white: #ffffff;
  --max: 1200px;
}
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════
   HEADER — Prosvjeta d.o.o.
   Desktop:       [LOGO] ── [IZBORNIK] ── [SEARCH|KOŠARICA|LOGIN]
   Mobile >530px: Red 1: [LOGO] ─── [HAMBURGER]
                  Red 2: [SEARCH ──────] [KOŠARICA] [LOGIN] [REG]
   Mobile ≤530px: Red 1: [LOGO] ─── [HAMBURGER]
                  Red 2: [SEARCH ──────────────────────────────]
                  Red 3: [KOŠARICA] ──────────── [LOGIN] [REG]
   ═══════════════════════════════════════════════════ */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 16px rgba(0, 60, 130, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

nav { width: 100%; }

/* ════════════════════════════════════════
   DESKTOP — jedan red, max 1200px
   ════════════════════════════════════════ */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── LOGO ── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo a.logo { display: flex; align-items: center; }
.nav-logo a.logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo a.logo:hover img { opacity: 0.82; }

/* ── GLAVNI IZBORNIK ── */
ul.menu_slick {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  height: 64px;
  flex: 1;
  justify-content: center;
}

ul.menu_slick > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

ul.menu_slick > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

ul.menu_slick > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

ul.menu_slick > li > a:hover,
ul.menu_slick > li > a.active_main { color: var(--blue); }

ul.menu_slick > li > a:hover::after,
ul.menu_slick > li > a.active_main::after { transform: scaleX(1); }

/* Udžbenici — gumb */
ul.menu_slick > li.custom-menu-item { padding-left: 6px; }

ul.menu_slick > li.custom-menu-item > a {
  height: auto;
  padding: 7px 14px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 5px;
  font-size: 10.5px;
  box-shadow: 0 2px 8px rgba(0, 80, 180, 0.18);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

ul.menu_slick > li.custom-menu-item > a::after { display: none; }

ul.menu_slick > li.custom-menu-item > a:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0, 80, 180, 0.28);
  transform: translateY(-1px);
}

/* ── DROPDOWN ── */
ul.menu_slick > li > ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px rgba(0, 40, 100, 0.13);
  list-style: none;
  margin: 0; padding: 8px 0;
  min-width: 230px;
  z-index: 300;
  animation: dropIn 0.18s ease forwards;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

ul.menu_slick > li:hover > ul { display: block; }

ul.menu_slick > li > ul > li > a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 9px 20px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

ul.menu_slick > li > ul > li > a:hover {
  background: var(--accent);
  color: var(--blue);
  padding-left: 26px;
}

/* ════════════════════════════════════════
   UTILITY: search + košarica + login
   ════════════════════════════════════════ */
.search_content,
.basket_content,
.login_cnt {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* TRAŽILICA */
.search_content { background: transparent; border: none; }

.search_content form {
  display: flex;
  align-items: center;
  margin: 0; padding: 0;
}

.search_content input[type="search"] {
  width: 160px;
  height: 34px;
  padding: 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--text);
  background: #f0f5fb;
  border: 1.5px solid #c8d8ee;
  border-right: none;
  border-radius: 20px 0 0 20px;
  outline: none;
  transition: width 0.3s ease, border-color 0.2s, background 0.2s;
}

.search_content input[type="search"]::placeholder {
  color: #aab8cc;
  font-size: 11px;
}

.search_content input[type="search"]:focus {
  width: 200px;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 100, 200, 0.07);
  background: #fff;
}

.search_content button.search_icon {
  height: 34px;
  padding: 0 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search_content button.search_icon:hover { background: var(--blue-dark); }

/* KOŠARICA */
.basket_content { margin-left: 8px; }

.basket_content a#go_cart {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 7px 15px 7px 11px;
  border-radius: 20px;
  background: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 3px 10px rgba(0, 80, 180, 0.22);
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.basket_content a#go_cart .material-icons {
  font-size: 18px;
  color: #fff;
  transition: transform 0.2s;
}

.basket_content a#go_cart:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 5px 16px rgba(0, 80, 180, 0.32);
  transform: translateY(-1px);
}

.basket_content a#go_cart:hover .material-icons {
  transform: scale(1.15) rotate(-8deg);
}

/* LOGIN / REGISTRACIJA */
.login_cnt {
  gap: 6px;
  padding-left: 10px;
  margin-left: 6px;
  border-left: 1px solid #dde8f4;
}

.login_cnt .account_box { display: none; }

.login_cnt a.login,
.login_cnt a.register {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.login_cnt a.login {
  color: var(--blue);
  border: 1.5px solid var(--blue);
  background: transparent;
}

.login_cnt a.login:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 80, 180, 0.18);
}

.login_cnt a.register {
  color: #fff;
  background: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0, 80, 180, 0.15);
}

.login_cnt a.register:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0, 80, 180, 0.28);
  transform: translateY(-1px);
}

/* slicknav skriven na desktopu */
.slicknav_menu { display: none; }

/* ════════════════════════════════════════════════════
   RESPONSIVE 531px–650px:
   Red 1: logo + hamburger
   Red 2: search + košarica + login (sve zajedno)
   ════════════════════════════════════════════════════ */
@media (max-width: 650px) {

  header {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  nav { width: 100%; order: 1; border-bottom: none; }

  .nav-inner { height: 52px; padding: 0 14px; gap: 8px; }

  ul.menu_slick { display: none; }
  .slicknav_menu { display: block; }

  .nav-logo a.logo img { height: 34px; }

  /* Utility elementi padaju u red 2 */
  .search_content {
    order: 2;
    flex: 1;
    min-width: 0;
    border-top: 1px solid #e4edf8;
    background: #f5f8fc;
    padding: 8px 6px 8px 14px;
    border-bottom: 1px solid #dde8f4;
  }

  .basket_content {
    order: 2;
    border-top: 1px solid #e4edf8;
    background: #f5f8fc;
    padding: 8px 6px;
    border-bottom: 1px solid #dde8f4;
    margin-left: 0;
  }

  .login_cnt {
    order: 2;
    border-top: 1px solid #e4edf8;
    background: #f5f8fc;
    padding: 8px 14px 8px 8px;
    border-bottom: 1px solid #dde8f4;
    border-left: 1px solid #dde8f4;
    margin-left: 0;
  }

  .search_content form { width: 100%; }

  .search_content input[type="search"] {
    width: 100%;
    height: 32px;
    font-size: 11px;
    transition: none;
  }

  .search_content input[type="search"]:focus {
    width: 100%;
    box-shadow: none;
  }

  .search_content button.search_icon {
    height: 32px;
    padding: 0 10px;
    font-size: 15px;
  }

  .basket_content a#go_cart {
    padding: 6px 12px 6px 10px;
    font-size: 11px;
  }

  .login_cnt a.login,
  .login_cnt a.register {
    padding: 6px 10px;
    font-size: 11px;
  }

  .login_cnt { gap: 4px; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE ≤530px:
   Red 1: logo + hamburger
   Red 2: tražilica (cijela širina)
   Red 3: košarica + login + registracija
   ════════════════════════════════════════════════════ */
@media (max-width: 530px) {

  /* Tražilica — cijela širina, red 2 */
  .search_content {
    order: 2;
    width: 100%;
    flex: none;
    padding: 8px 14px;
    border-bottom: 1px solid #e4edf8;
  }

  .search_content form { width: 100%; }

  .search_content input[type="search"] {
    width: 100%;
    flex: 1;
  }

  /* Košarica — red 3, lijevo */
  .basket_content {
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    padding: 8px 6px 8px 14px;
    border-top: none;
    border-bottom: 1px solid #dde8f4;
    background: #f5f8fc;
  }

  /* Login — red 3, desno */
  .login_cnt {
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
    padding: 8px 14px 8px 8px;
    border-top: none;
    border-left: 1px solid #dde8f4;
    border-bottom: 1px solid #dde8f4;
    background: #f5f8fc;
  }

  .login_cnt a.login,
  .login_cnt a.register {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  /* Drugi nav-inner mora biti flex-wrap container */
  .nav-inner:last-of-type {
    flex-wrap: wrap;
    height: auto;
    padding: 0 10px;
    gap: 0;
  }

  /* Tražilica — puna širina, red 2 */
  .nav-inner:last-of-type .search_content {
    order: 1;
    width: 100%;
    flex: 0 0 100%;
    padding: 8px 14px;
    border-bottom: 1px solid #e4edf8;
    background: #f5f8fc;
  }

  /* Košarica — red 3, lijevo */
  .nav-inner:last-of-type .basket_content {
    order: 2;
    flex: 1;
    justify-content: flex-start;
    margin-left: 0;
    padding: 8px 6px 8px 14px;
    background: #f5f8fc;
    border-bottom: 1px solid #dde8f4;
  }

  /* Login/Register — red 3, desno */
  .nav-inner:last-of-type .login_cnt {
    order: 2;
    flex: 1;
    justify-content: flex-end;
    margin-left: 0;
    padding: 11px 14px 10px 8px;
    background: #f5f8fc;
    border-left: 1px solid #dde8f4;
    border-bottom: 1px solid #dde8f4;
  }
}


/* ── HERO SLIDER (full-width) ── */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; min-height: 480px; max-height: 700px;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .9s ease;
  z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.32) 0%, rgba(0,0,0,.08) 100%);
  z-index: 2; pointer-events: none;
}
.slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; z-index: 1;
}
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 20;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.28);
  cursor: pointer; transition: background .2s, transform .2s; padding: 0;
}
.hero-dots button.active { background: var(--white); transform: scale(1.2); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; background: rgba(255,255,255,.18);
  border: none; cursor: pointer; color: white;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.38); }
.hero-arrow.left { left: 24px; }
.hero-arrow.right { right: 24px; }

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
  color: var(--blue); text-align: center; text-transform: uppercase;
  margin-bottom: 36px;
}

/* ── SECTION PADDING (full-width bg, inner 1200px) ── */
.section-pad { padding: 56px 0 48px; }

/* ── WEBSHOP CATEGORIES ── */
.webshop-section { background: var(--white); }
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 680px; margin: 0 auto;
}
.category-card {
  border: 1.5px solid #d8e4f0; border-radius: 8px;
  padding: 22px 14px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.category-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(42,109,181,.15);
  transform: translateY(-3px);
}
.category-card .material-icons { font-size: 32px; color: var(--blue); }
.category-card .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text);
}

/* ── FEATURED PRODUCTS (full-width bg) ── */
.featured-section {
  position: relative;
  background: var(--blue);
  width: 100%;
}
.featured-bg {
  position: absolute; inset: 0;
  opacity: .16;
  overflow: hidden;
}
.featured-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.featured-section .section-title { color: var(--white); position: relative; }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.product-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.product-img { height: 165px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 14px; }
.product-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.product-info .author { font-size: 11px; color: #888; margin-bottom: 10px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: var(--blue); }
.btn-detail {
  background: var(--blue); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px; cursor: pointer; display: inline-block;
  transition: background .2s;
}
.btn-detail:hover { background: var(--blue-dark); }

/* ── ABOUT (full-width bg, text overlay at 1200px) ── */
.about-section {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
}
.about-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.about-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.about-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.1) 100%);
}
.about-section > .about-content-wrap {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px;
}
.about-text-box { max-width: 520px; }
.about-text-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px; font-weight: 800; color: var(--blue); margin-bottom: 18px;
}
.about-text-box p { font-size: 14px; line-height: 1.8; color: #333; margin-bottom: 26px; }
.btn-more {
  display: inline-block; border: 2px solid var(--blue); color: var(--blue);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 9px 22px; border-radius: 4px;
  transition: background .2s, color .2s;
}
.btn-more:hover { background: var(--blue); color: var(--white); }

/* ── IZDAVASTVO (full-width blue bg) ── */
.publishing-section { background: var(--blue); width: 100%; }
.publishing-section .section-title { color: var(--white); }
.publishing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pub-card {
  background: var(--white); border-radius: 8px; padding: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.pub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pub-cover { width: 60px; height: 80px; border-radius: 3px; flex-shrink: 0; overflow: hidden; background: #ddd; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.pub-info p { font-size: 11px; color: #666; line-height: 1.5; margin-bottom: 8px; }
.btn-detail-sm {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 8px; background: var(--blue); color: var(--white); border-radius: 2px;
  transition: background .2s;
}
.btn-detail-sm:hover { background: var(--blue-dark); }

/* ── NOVOSTI ── */
.news-section { background: var(--gray); width: 100%; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr) auto;
  gap: 20px; align-items: center;
}
.news-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.news-card img { width: 100%; height: 130px; object-fit: cover; }
.news-body { padding: 14px; }
.news-body h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.news-body .subtitle { font-size: 11px; color: #888; margin-bottom: 6px; }
.news-body .desc { font-size: 11px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; }
.news-meta .date { font-size: 10px; color: #aaa; }
.btn-all-news {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 13px 22px; border-radius: 4px;
  transition: background .2s; white-space: nowrap;
}
.btn-all-news:hover { background: var(--blue-dark); }

/* ── PARTNERI ── */
.partners-section { background: var(--white); width: 100%; }
.partners-grid {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.partner-card {
  border: 1.5px solid #ddd; border-radius: 8px;
  width: 200px; height: 86px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden;
}
.partner-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(42,109,181,.14);
  transform: translateY(-2px);
}
.partner-card img {
  max-height: 52px; max-width: 160px;
  object-fit: contain; filter: grayscale(50%); opacity: .8;
  transition: filter .2s, opacity .2s;
}
.partner-card:hover img { filter: grayscale(0); opacity: 1; }

/* ── LOKACIJE (full-width section, inner 1200px split) ── */
.locations-section {
  background: var(--accent);
  width: 100%;
}
.locations-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.locations-text { padding: 56px 40px 56px 24px; }
.locations-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 16px;
}
.locations-text article em {
  font-size: 14px; color: #555; margin-bottom: 22px; line-height: 1.7;
  font-style: italic; display: block;
}
.location-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px;
}
.location-item .material-icons { font-size: 26px; color: var(--blue); }
.locations-map { overflow: hidden; }
.locations-map iframe { width: 100%; height: 100%; border: none; display: block; min-height: 320px; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark, #1a4f8a);
  color: rgba(255,255,255,.85);
  width: 100%;
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ── Logo ── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-wrap img {
  max-height: 80px;
  width: auto;
}

/* ── Kontakt sekcije (aside grid) ── */
footer > div.footer-top > section {
  width: 100%;
}
footer aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 24px;
  width: 100%;
}
footer aside section {
  border-left: 2px solid rgba(255,255,255,.18);
  padding-left: 16px;
}
footer aside h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 10px;
}
footer aside p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,.65);
}

footer aside p a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}
footer aside p a::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}
footer aside p a[href^="tel:"]::before {
  background: #7dd3fc;
}
footer aside p a[href^="mailto:"]::before {
  background: #86efac;
}
footer aside p a:hover {
  border-bottom-color: white;
  color: white;
}

/* ── Divider ── */
.footer-divider {
  width: 100%;
  max-width: 900px;
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* ── Nav ── */
.footer-nav {
  width: 100%;
  max-width: 700px;
}
.footer-nav-group ul.nav-logo {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-nav-group ul.nav-logo li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .4px;
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-group ul.nav-logo li a:hover,
.footer-nav-group ul.nav-logo li a.active {
  color: white;
}

/* ── Social ── */
.footer-social ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: background .2s, border-color .2s;
}
.footer-social ul li a:hover {
  background: rgba(255,255,255,.15);
  border-color: white;
}
.footer-social ul li a img {
  width: 20px; height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .8;
}

/* ── Footer bottom ── */
.footer-bottom {
  background: rgba(0,0,0,.25);
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.8;
}
.footer-bottom a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: white; }
.footer-bottom p { margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-top { padding: 40px 20px 32px; gap: 28px; }

  footer aside {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .footer-nav-group ul.nav-logo {
    gap: 8px 16px;
  }
}

@media (max-width: 480px) {
  footer aside {
    grid-template-columns: 1fr;
  }

  .footer-nav-group ul.nav-logo {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-social ul { gap: 10px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .nav-links { gap: 12px; }
  .products-grid, .publishing-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .btn-all-news { display: none; }
  .locations-inner { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .nav-inner > ul { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* SlickNav — sakrij na desktopu, prikaži na mobitelu */
.slicknav_menu {
  display: none;
}

@media (max-width: 650px) {
  .nav-inner > ul.menu_slick {
    display: none !important;
  }
  .slicknav_menu {
    display: block !important;
  }
}

.product_price_cnt {
    margin: 12px 0;
}

.product_price_cnt > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kn_price {
    font-size: 22px;
    font-weight: 700;
    color: #0073c8;
    width: 100%;
}

.kn_oldprice {
    font-size: 15px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

/* ── SHOP FOOTER FUNCTIONS ── */
.shop_footer_functions {
  background: white;
  width: 100%;
  border-top: 4px solid var(--blue, #1a6bbf);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shop_footer_functions nav {
  background: none;
  width: 100%;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.shop_footer_functions nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.shop_footer_functions nav ul::-webkit-scrollbar { display: none; }

.shop_footer_functions nav ul li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.shop_footer_functions nav ul li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(0,0,0,.2);
  margin: 0 2px;
}

.shop_footer_functions nav ul li a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  padding: 4px 12px;
  white-space: nowrap;
  transition: color .2s;
}

.shop_footer_functions nav ul li a:hover {
  color: var(--blue, #1a6bbf);
}

/* ── Kartice ── */
.footer_cards_pay_cnt {
  padding: 14px 24px;
}

.footer_cards_pay_cnt ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer_cards_pay_cnt ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 6px 12px;
  height: 38px;
  transition: opacity .2s, transform .2s;
}

.footer_cards_pay_cnt ul li a:hover {
  opacity: .75;
  transform: translateY(-2px);
}

.footer_cards_pay_cnt ul li a img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .shop_footer_functions nav ul {
    justify-content: flex-start;
  }
  .shop_footer_functions nav,
  .footer_cards_pay_cnt {
    padding: 12px 16px;
  }
}