/* === Brand & Logo === */
.navbar-brand,
.navbar .navbar-brand { flex: 0 0 auto; }

body {
background-color: #fcfcfc; /* vrlo lagana siva */
}

.navbar-brand img,
img.brand-logo {
  display: block;
  height: 32px;              /* malo veći default */
  max-height: 32px;
  width: auto !important;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 122, 0, 0.4));
  transition: transform .2s ease, filter .3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(255, 122, 0, 0.5));
}

img.brand-logo { width: auto !important; }

/* === Navbar modern look === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.navbar-brand { padding: .25rem 0; font-weight: 600; }
.navbar-collapse { flex: 1 1 auto; }
.navbar-nav { margin-left: auto; }
.navbar .nav-link {
  white-space: nowrap;
  font-weight: 500;
  transition: color .2s ease;
}
.navbar .nav-link:hover { color: var(--brand-orange, #ff7a00); }

/* Veći logo na većim ekranima */
@media (min-width: 768px) {
  .navbar-brand img,
  img.brand-logo {
    height: 38px;
    max-height: 38px;
  }
}

/* === Defensive: background na logotipu === */
.brand-logo { background: none !important; }

/* === Product gallery modern look === */
.product-gallery .thumb-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: .5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-gallery .thumb-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-gallery .thumb-link { display: inline-block; }

/* === Prose content (opis/specs) === */
.prose p { margin-bottom: .75rem; line-height: 1.6; }
.prose ul { margin-bottom: .75rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

/* Sticky elementi (npr. buy-box prije nego što si ga maknuo) */
@media (min-width: 992px) {
  .position-sticky { top: 80px; }
}

/* === Cards (home & offers) === */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}






/* ====== STEAMFIELD ====== */
/* ====== Article page layout ====== */
main.content { padding: 1rem 0; }

.container-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
}

.container-with-sidebar__contents { min-width: 0; }

.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.sidebar__item {
  display: block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  color: #0f172a;
  text-decoration: none;
}
.sidebar__item:hover { background: #f1f5f9; }

/* ====== Breadcrumbs ====== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  font-size: .95rem;
  color: #475569;
}
.breadcrumbs__link { color: #475569; text-decoration: none; }
.breadcrumbs__link:hover { text-decoration: underline; }
.breadcrumbs__last-item { color: #0f172a; }

/* ====== Article ====== */
.article { background: #fff; }
.article h1 { margin-bottom: .25rem; }
.article-category {
  display: inline-block;
  margin: .25rem 0 1rem 0;
  font-size: .875rem;
  padding: .125rem .5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  text-decoration: none;
}
.article__metadata {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

/* share buttons (minimal) */
.share-button {
  display: inline-block;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  vertical-align: middle;
}
.share-button + .share-button { margin-left: .5rem; }

/* ====== Content helpers ====== */
.image-center { text-align: center; }
.image-center img { max-width: 100%; height: auto; border-radius: .5rem; }
.footnote { font-size: .9rem; color: #64748b; }

.note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: .5rem;
  padding: .75rem .9rem;
  margin: 1rem 0;
  font-weight: 500;
}

/* ====== Dropdown (mobile “Ostali članci”) ====== */
.content-dropdown {
  display: none;             /* desktop off */
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: #fff;
  cursor: pointer;
  margin-bottom: 1rem;
}
@media (max-width: 992px) {
  .container-with-sidebar { grid-template-columns: 1fr; }
  .content-dropdown { display: block; }
  .sidebar { position: static; order: 2; }
}

/* ====== Disqus container spacing ====== */
#disqus_thread { margin-top: 2rem; }

/* ====== Your existing StreamField typographic rules ====== */
.streamfield-content h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; }
.streamfield-content h3 { font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: .75rem; font-weight: 500; }
.streamfield-content h4 { font-size: 1.25rem; margin-top: 1rem; margin-bottom: .5rem; font-weight: 500; }
.streamfield-content .richtext p { margin-bottom: 1rem; line-height: 1.6; }
.streamfield-content blockquote { border-left: 4px solid #d35400; padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #555; }
.streamfield-content figure { margin: 1.5rem auto; }
.streamfield-content figure img { max-width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.streamfield-content pre { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: .5rem; padding: 1rem; overflow-x: auto; margin: 1.25rem 0; }



.share-button {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  vertical-align: middle;
}
.share-button + .share-button { margin-left: .5rem; }
.share-button svg { display: block; }
.share-button--facebook { color: #1877f2; }
.share-button--x { color: #0f172a; }


.article-share {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 18px;
  text-decoration: none;
}

.article-share a:hover {
  background: #d35400;
  color: #fff;
}

.article-page {
  margin-bottom: 2rem;
  line-height: 1.7;
}


/* ====== SLIKA I TEKST U JEDNOM BLOKU ====== */

/* Media & Text blok */
.media-text { padding: 1rem 0; }
.media-text--muted { background: #f6f7f9; }
.media-text--brand { background: var(--brand-blue, #223F99); color: #fff; }
.media-text--brand a { color: #fff; text-decoration: underline; }

.media-text__grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.media-text__grid--2-1 { grid-template-columns: 2fr 1fr; }
.media-text__grid--1-2 { grid-template-columns: 1fr 2fr; }
.media-text__grid--reverse { direction: rtl; }
.media-text__grid--reverse > * { direction: ltr; }

.media-text__image img { width: 100%; height: auto; display: block; border-radius: 10px; }
.media-text__image--placeholder {
  padding: 32px; background: #f8f9fa; border: 1px dashed #ccc; text-align: center; color: #666;
}

.media-text__content { display: flex; flex-direction: column; gap: .6rem; }
.media-text__content.v-start { justify-content: flex-start; }
.media-text__content.v-center { justify-content: center; }
.media-text__content.v-end { justify-content: flex-end; }
.media-text__heading { margin: 0 0 .25rem; }

@media (max-width: 768px){
  .media-text__grid,
  .media-text__grid--2-1,
  .media-text__grid--1-2 { grid-template-columns: 1fr; }
  .media-text__grid--reverse { direction: ltr; }
}


:root{
  --brand-orange:#FF7A00;
  --brand-blue:#1A2D6B;
  --brand-blue-2:#223F99;
  --glass-bg: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.35);
  --text-muted-2: rgba(255,255,255,0.8);
}

body{ font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* -------- Navbar (glass) -------- */
.navbar-glass{
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--glass-bg) 70%, #f8f9fa);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.navbar-glass .navbar-brand .brand-text{ color: var(--brand-orange); letter-spacing:.2px; }
.navbar-scrolled{ box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.navbar-glass .nav-link{
  padding: .6rem .8rem;
  border-radius: .8rem;
  transition: background-color .15s ease, color .15s ease;
}
.navbar-glass .nav-link:hover{ background: rgba(34,63,153,0.08); }
.navbar-glass .nav-link.active{ color: var(--brand-blue-2); font-weight:600; }

/* -------- Buttons -------- */
.btn-brand{
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: #ff8b22;
  --bs-btn-hover-border-color: #ff8b22;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: .9rem;
  padding: .55rem 1rem;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(255,122,0,.25);
}

/* -------- Hero -------- */
.header-hero{
  --hero-top: var(--brand-blue);
  background:
    radial-gradient(1200px 400px at 80% -20%, rgba(255,122,0,.20), transparent 60%),
    radial-gradient(800px 300px at 10% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  margin-top: 64px; /* compensate fixed navbar */
  color:#fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.16) 50%, transparent 50%),
                    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.10) 50%, transparent 50%);
  background-size: 120px 120px, 160px 160px;
  opacity:.4; pointer-events:none;
}
.header-hero .hero-logo{ height:80px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.25)); }
.header-hero .opacity-90{ opacity:.9; }
.py-6{ padding-top:4.5rem; padding-bottom:4.5rem; }

/* -------- Content card spacing -------- */
.content-wrap{ padding-top: 2rem; padding-bottom: 3rem; }

/* -------- Footer -------- */
.site-footer{
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
  padding: 1.25rem 0;
}
.text-muted-2{ color: rgba(0,0,0,.55) !important; }
.link-muted{ color: rgba(0,0,0,.7); }
.link-muted:hover{ color: var(--brand-blue-2); }

/* -------- Search dropdown -------- */
.nav-search{ min-width: 320px; }
/* Manja tražilica u navbaru */
.nav-search-input {
  padding: 0.4rem 0.75rem; /* prije je bilo 0.7rem 1rem */
  font-size: 0.9rem;
  border-radius: 0.6rem;
}

.nav-search .btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 0.6rem;
}
.nav-search-dropdown{
  position: absolute;
  top: calc(100% + .5rem);
  right: 0; left: 0;
  z-index: 2000;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.10);
  max-height: 420px; overflow: auto;
  padding: .25rem;
}

/* -------- Utility -------- */
a{text-decoration: none;}
a:hover{text-decoration: underline;}
.rounded-2xl{ border-radius: 1.25rem; }
.shadow-soft{ box-shadow: 0 12px 32px rgba(0,0,0,.08); }

/* Prefer smooth scrolling for subtle polish */
html:focus-within{ scroll-behavior: smooth; }

@media (max-width: 991.98px){
  .nav-search{ min-width: 100%; margin-top: .75rem; }
}


/* --- Cards: mekša sjena + lagani hover lift --- */
.card { border-radius: 1rem; }
.card.shadow-sm { box-shadow: 0 8px 24px rgba(0,0,0,.06) !important; }
.card:hover { transform: translateY(-2px); transition: transform .15s ease; }

/* --- List / list-group u “kartici” --- */
.card-list { border-radius: 1rem; overflow: hidden; }
.card-list .list-group-item { border: 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.card-list .list-group-item:last-child { border-bottom: 0; }

/* --- Pagination zaobljena + suptilna sjena --- */
.pagination .page-link { border-radius: .8rem !important; }
.pagination { --bs-pagination-focus-box-shadow: 0 6px 18px rgba(34,63,153,.15); }

/* --- Link akcenti --- */
a.link-body-emphasis, a.text-reset { text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .1em; }

/* --- Badge “cijena” --- */
.badge-price { background: rgba(76,175,80,.1); color:#2e7d32; border: 1px solid rgba(76,175,80,.25); }
.badge-muted { background: rgba(0,0,0,.05); color: rgba(0,0,0,.6); }

/* --- Offers table: kompaktnije + sticky header --- */
.table.offers-table thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.table.offers-table td, .table.offers-table th { padding-top:.65rem; padding-bottom:.65rem; }

/* --- Buttons: brand narančasta (koristi .btn-brand) --- */
.btn-brand{
  --bs-btn-bg: var(--brand-orange, #FF7A00);
  --bs-btn-border-color: var(--brand-orange, #FF7A00);
  --bs-btn-hover-bg: #ff8b22;
  --bs-btn-hover-border-color: #ff8b22;
  --bs-btn-color: #fff; --bs-btn-hover-color:#fff;
  border-radius: .9rem; padding: .5rem .95rem; font-weight:600;
  box-shadow: 0 6px 18px rgba(255,122,0,.22);
}

/* --- Search (kako si tražio — manje) + responsivno --- */
.nav-search { min-width: 240px; }
.nav-search-input{ padding:.42rem .7rem; font-size:.92rem; border-radius:.6rem; }
.nav-search .btn{ padding:.38rem .85rem; font-size:.92rem; border-radius:.6rem; }
@media (max-width: 991.98px){ .nav-search{ min-width: 100%; } }


/* Isključi underline na hoveru za logo / brand link */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  text-decoration: none !important;
}

.category-article {
    margin-bottom: 2rem;
}

.category-article__body-inner {
    display: -webkit-box;
    -webkit-line-clamp: 2;        /* ⇐ 2 reda */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-article__body-inner.is-expanded {
    -webkit-line-clamp: initial;
    max-height: none;
}

.category-article__toggle {
    margin-top: 0.5rem;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}


.category-card {
    background: #fff;
    border-radius: 14px;
    padding: 6px 10px;
    min-height: 50px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    display: flex;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
}

.category-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.category-arrow {
    font-size: 26px;
    font-weight: 300;
    color: #9ca3af;
    margin-left: auto;
}
