/*!
 * hh.css - Klima Koncept header + footer
 * Učitati NAKON nivago.css (i Bootstrapa).
 * Mobile-first: osnova = mobitel/tablet (drawer), @media (min-width:1024px) = desktop.
 * Svi selektori komponenti su pod .hh-header / .hh-footer (specifičnost 0,2,0)
 * da ih ne pregaze Bootstrap-ove globalne a:hover / button / input / ul pravila.
 */

/* =========================================================
   1. Tokeni
   ========================================================= */
:root {
  /* paleta izvedena iz glavne boje #227BB7 (hue 204) */
  --hh-blue: #227BB7;
  --hh-blue-600: #1C6697;      /* hover */
  --hh-blue-700: #154E75;
  --hh-bar: #227BB7;           /* plava traka navigacije */
  --hh-active: #152D3C;        /* otvorena stavka navigacije */
  --hh-navy: #0E3A58;          /* naslovi, tekst u izborniku */
  --hh-ink: #1D2E3A;
  --hh-muted: #637683;
  --hh-placeholder: #84A0B1;
  --hh-line: #D4E3ED;
  --hh-line-2: #B5D1E3;
  --hh-soft: #E8F4FD;
  --hh-soft-2: #F3F8FC;
  --hh-tint: #D4E9F7;
  --hh-tint-2: #E0F0FA;
  --hh-ring: #77C4F8;
  --hh-red: #e0101d;
  --hh-gutter: 16px;
  --hh-logo-w: 150px;
  --hh-shadow: 0 14px 40px rgba(14, 52, 78, .18);
  --hh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. Baza / reset (unutar header i footer)
   ========================================================= */
.hh-header, .hh-header *, .hh-header *::before, .hh-header *::after,
.hh-footer, .hh-footer *, .hh-footer *::before, .hh-footer *::after {
  box-sizing: border-box;
}

.hh-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  color: var(--hh-ink);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.hh-header ul, .hh-footer ul { list-style: none; margin: 0; padding: 0; }
.hh-header li, .hh-footer li { margin: 0; padding: 0; }
.hh-header h3, .hh-footer h4 { margin: 0; }
.hh-header p, .hh-footer p { margin: 0; }

.hh-header a, .hh-header a:hover, .hh-header a:focus,
.hh-footer a, .hh-footer a:hover, .hh-footer a:focus { text-decoration: none; }
.hh-header a { color: inherit; }
.hh-footer a { color: inherit; }

.hh-header button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.hh-header :focus-visible, .hh-footer :focus-visible {
  outline: 3px solid var(--hh-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.hh-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--hh-gutter);
  padding-right: var(--hh-gutter);
}

html.hh-lock { overflow: hidden; }

/* =========================================================
   3. Gornji red: burger, logo, pretraga, akcije
   ========================================================= */
.hh-header .hh-top {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px 8px;
  padding-top: 12px;
  padding-bottom: 10px;
}

.hh-header .hh-logo { grid-column: 1; grid-row: 1; display: block; width: var(--hh-logo-w); }
.hh-header .hh-logo img { display: block; width: 100%; height: auto; }

.hh-header .hh-actions { grid-column: 2 / 4; grid-row: 1; justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.hh-header .hh-drawer-btn { grid-column: 3; grid-row: 2; justify-self: end; }
.hh-header .hh-search { grid-column: 1 / 3; grid-row: 2; }

.hh-header .hh-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 22px;
  color: var(--hh-blue);
  transition: background-color .15s;
}
.hh-header .hh-iconbtn:hover, .hh-header .hh-iconbtn[aria-expanded="true"] { background: var(--hh-soft); color: var(--hh-blue); }

/* ---------- pretraga ---------- */
.hh-header .hh-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 4px 4px 4px 14px;
  margin: 0;
  background: var(--hh-soft-2);
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.hh-header .hh-search:focus-within {
  background: #fff;
  border-color: var(--hh-blue);
  box-shadow: 0 0 0 3px rgba(34, 123, 183, .22);
}
.hh-header .hh-search__icon { flex: none; margin-right: 10px; font-size: 17px; color: var(--hh-blue); }
.hh-header .hh-search .hh-search__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  font-size: 15px;
  color: var(--hh-ink);
}
.hh-header .hh-search .hh-search__input::placeholder { color: var(--hh-placeholder); opacity: 1; }
.hh-header .hh-search__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--hh-blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background-color .15s;
}
.hh-header .hh-search__btn:hover { background: var(--hh-blue-600); color: #fff; }
.hh-header .hh-search__btn span { display: none; }

/* ---------- prijava + košarica ---------- */
.hh-header .hh-actions__item { position: static; }
.hh-header .hh-actions__item--info { display: none; }

.hh-header .hh-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--hh-navy);
  transition: background-color .15s;
}
.hh-header .hh-actions__btn:hover, .hh-header .hh-actions__item.is-open .hh-actions__btn { background: var(--hh-soft); color: var(--hh-navy); }
.hh-header .hh-actions__btn > i:first-child { font-size: 20px; color: var(--hh-blue); }
.hh-header .hh-actions__caret { font-size: 11px; transition: transform .2s; }
.hh-header .hh-actions__item.is-open .hh-actions__caret { transform: rotate(180deg); }

.hh-header .hh-cart {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  height: 44px;
  padding: 0 6px 0 8px;
  color: var(--hh-navy);
}
.hh-header .hh-cart:hover { color: var(--hh-navy); }
.hh-header .hh-cart__icon { position: relative; display: inline-flex; font-size: 24px; color: var(--hh-navy); }
.hh-header .hh-cart__text { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.hh-header .hh-cart__text strong { font-weight: 600; font-size: 15px; color: var(--hh-blue-600); }
.hh-header .hh-cart__text small { font-size: 13px; color: var(--hh-muted); }

.hh-header .hh-badge {
  position: absolute;
  top: -10px;
  right: -13px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--hh-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.hh-header .hh-badge--soft {
  position: static;
  margin-left: auto;
  background: var(--hh-soft);
  color: var(--hh-blue-600);
}


/* ---------- lebdeći paneli: login, info ---------- */
.hh-header .hh-pop {
  position: absolute;
  z-index: 1100;
  left: var(--hh-gutter);
  right: var(--hh-gutter);
  top: calc(100% - 2px);
  padding: 16px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 14px;
  box-shadow: var(--hh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s, transform .16s var(--hh-ease), visibility 0s .16s;
}
.hh-header .hh-pop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.hh-header .hh-login { display: grid; gap: 10px; margin: 0; }
.hh-header .hh-field {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 10px;
  box-shadow: none;
  font-size: 15px;
  color: var(--hh-ink);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.hh-header .hh-field:focus, .hh-header .hh-field:focus-within {
  border-color: var(--hh-blue);
  box-shadow: 0 0 0 3px rgba(34, 123, 183, .18);
}
.hh-header .hh-field::placeholder { color: var(--hh-placeholder); opacity: 1; }
.hh-header .hh-field--pass { display: flex; align-items: center; padding: 0; }
.hh-header .hh-field--pass input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  font-size: 15px;
  color: var(--hh-ink);
}
.hh-header .hh-field__eye { flex: none; width: 46px; height: 100%; color: var(--hh-navy); font-size: 17px; }

.hh-header .hh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 2px solid var(--hh-blue);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s, color .15s;
}
.hh-header .hh-btn--primary { background: var(--hh-blue); color: #fff; }
.hh-header .hh-btn--primary:hover { background: var(--hh-blue-600); border-color: var(--hh-blue-600); color: #fff; }
.hh-header .hh-btn--ghost { background: #fff; color: var(--hh-navy); }
.hh-header .hh-btn--ghost:hover { background: var(--hh-soft); color: var(--hh-navy); }

.hh-header .hh-or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--hh-muted); }
.hh-header .hh-or::before, .hh-header .hh-or::after { content: ""; flex: 1; height: 1px; background: var(--hh-line); }

/* lista linkova (info, račun, drawer extra) */
.hh-header .hh-info__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--hh-navy);
  transition: background-color .15s;
}
.hh-header .hh-info__link:hover { background: var(--hh-soft); color: var(--hh-navy); }
.hh-header .hh-info__link > i:first-child { flex: none; width: 22px; text-align: center; font-size: 18px; color: var(--hh-blue); }

/* =========================================================
   4. Brzi gumbi (Akcija / po snazi / po kvadraturi)
   ========================================================= */
.hh-header .hh-quick {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 12px;
}
.hh-header .hh-quick__item { position: static; display: flex; min-width: 0; }

.hh-header .hh-quick__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 56px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  color: var(--hh-navy);
  transition: background-color .15s, border-color .15s;
}
.hh-header .hh-quick__btn:hover, .hh-header .hh-quick__item.is-open .hh-quick__btn { background: var(--hh-soft-2); border-color: var(--hh-line-2); color: var(--hh-navy); }
.hh-header .hh-quick__btn > i:first-child { flex: none; font-size: 22px; color: var(--hh-navy); }
.hh-header .hh-quick__btn > span { flex: 1; }
.hh-header .hh-quick__caret { flex: none; font-size: 11px; color: var(--hh-blue); transition: transform .2s; }
.hh-header .hh-quick__item.is-open .hh-quick__caret { transform: rotate(180deg); }
.hh-header .hh-quick__caret--static { transform: none !important; }

.hh-header .hh-quick__btn--sale, .hh-header .hh-quick__btn--sale:hover { color: var(--hh-red); }
.hh-header .hh-quick__btn--sale > i:first-child { color: var(--hh-red); }

.hh-header .hh-drop {
  position: absolute;
  z-index: 1100;
  left: var(--hh-gutter);
  right: var(--hh-gutter);
  top: calc(100% - 6px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  box-shadow: var(--hh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s, transform .16s var(--hh-ease), visibility 0s .16s;
}
.hh-header .hh-drop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.hh-header .hh-drop__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hh-navy);
  transition: background-color .15s;
}
.hh-header .hh-drop__link:hover { background: var(--hh-soft); color: var(--hh-navy); }
.hh-header .hh-drop__link > span { flex: 1; }
.hh-header .hh-drop__icon { flex: none; width: 24px; text-align: center; font-size: 18px; color: var(--hh-blue); }
.hh-header .hh-drop__go { flex: none; font-size: 12px; color: var(--hh-blue); }
.hh-header .hh-drop__link--sale, .hh-header .hh-drop__link--sale:hover { color: var(--hh-red); font-weight: 600; }

/* =========================================================
   5. Glavna navigacija - OSNOVA = drawer (mobitel / tablet)
   ========================================================= */
.hh-header .hh-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1190;
  background: rgba(8, 31, 47, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s .2s;
}
html.hh-lock .hh-header .hh-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }

.hh-header .hh-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: var(--hh-shadow);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .26s var(--hh-ease), visibility 0s .26s;
}
.hh-header .hh-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.hh-header .hh-nav__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 20px;
  border-bottom: 1px solid var(--hh-line);
  font-weight: 700;
  color: var(--hh-navy);
}
.hh-header .hh-nav__inner { flex: 1; padding-left: 0; padding-right: 0; }

.hh-header .hh-nav__list > li { border-bottom: 1px solid var(--hh-line); }
.hh-header .hh-nav__row { display: flex; align-items: stretch; }
.hh-header .hh-nav__link {
  flex: 1;
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--hh-navy);
}
.hh-header .hh-nav__link:hover { color: var(--hh-blue); }
.hh-header .hh-nav__toggle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  border-left: 1px solid var(--hh-line);
  color: var(--hh-blue);
}
.hh-header .hh-nav__toggle i { transition: transform .2s; }
.hh-header .hh-nav__item.is-open > .hh-nav__row .hh-nav__toggle i { transform: rotate(180deg); }

.hh-header .hh-nav__extra { padding: 10px 8px 28px; }

/* mega panel kao accordion u drawer-u */
.hh-header .hh-mega {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: var(--hh-soft-2);
  transition: grid-template-rows .25s var(--hh-ease), visibility 0s .25s;
}
.hh-header .hh-mega.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.hh-header .hh-mega__inner { min-height: 0; overflow: hidden; }

.hh-header .hh-mega__col--quick { padding: 14px 12px 0; }
.hh-header .hh-mega__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hh-blue);
}
.hh-header .hh-mega__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 0; }
.hh-header .hh-mega__head .hh-mega__title { margin: 0; }
.hh-header .hh-mega__col--quick .hh-mega__title { padding: 0 4px; }
.hh-header .hh-mega__all { font-size: 14px; font-weight: 600; color: var(--hh-blue); white-space: nowrap; }
.hh-header .hh-mega__all:hover { color: var(--hh-blue-600); }

.hh-header .hh-mega__grid { display: grid; gap: 8px; padding: 12px 12px 16px; }

.hh-header .hh-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 8px;
  font-weight: 600;
  color: var(--hh-navy);
  transition: border-color .15s, background-color .15s;
}
.hh-header .hh-tile:hover { border-color: var(--hh-blue); background: var(--hh-soft-2); color: var(--hh-navy); }
.hh-header .hh-tile > i { flex: none; font-size: 13px; color: var(--hh-blue); }

.hh-header .hh-mega__sub { display: grid; gap: 2px; padding: 6px 4px 4px 18px; }
.hh-header .hh-mega__sub a { display: block; padding: 7px 10px; font-size: 14px; color: var(--hh-ink); border-radius: 6px; }
.hh-header .hh-mega__sub a:hover { background: #fff; color: var(--hh-blue); }

/* kartice "brze poveznice" */
.hh-header .hh-qcard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: var(--hh-soft);
  border-radius: 14px;
  color: var(--hh-navy);
  transition: background-color .15s;
}
.hh-header .hh-qcard:hover { background: var(--hh-tint-2); color: var(--hh-navy); }
.hh-header .hh-qcard__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--hh-tint);
  font-size: 24px;
  color: var(--hh-blue-600);
}
.hh-header .hh-qcard__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.hh-header .hh-qcard__text strong { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--hh-navy); }
.hh-header .hh-qcard__text small { font-size: 13.5px; line-height: 1.3; color: var(--hh-muted); margin-left: 0; }
.hh-header .hh-qcard__go { flex: none; font-size: 15px; color: var(--hh-blue); }

/* FILTER traka (mobitel) */
.hh-header .hh-filterbar { padding-bottom: 10px; }
.hh-header .hh-filterbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hh-navy);
}

/* compact stanje pri scrollu */
.hh-header.is-stuck { box-shadow: 0 4px 18px rgba(14, 52, 78, .12); }
.hh-header.is-stuck .hh-quick,
.hh-header.is-stuck .hh-filterbar { display: none; }
.hh-header.is-stuck .hh-top { padding-top: 8px; padding-bottom: 8px; }

/* tablet 640+ */
@media (min-width: 640px) {
  :root { --hh-gutter: 24px; --hh-logo-w: 190px; }
  .hh-header .hh-search__btn span { display: inline; }
  .hh-header .hh-search__btn { padding: 0 22px; }
  .hh-header .hh-quick__btn { font-size: 15px; padding: 8px 14px; gap: 10px; }
  .hh-header .hh-quick { gap: 12px; }
  .hh-header .hh-pop { left: auto; right: var(--hh-gutter); width: 360px; }
}

/* =========================================================
   6. DESKTOP 1024+
   ========================================================= */
@media (min-width: 1024px) {
  :root { --hh-gutter: 32px; --hh-logo-w: 250px; }
  .hh-header.is-stuck { --hh-logo-w: 160px; }

  .hh-header .hh-top {
    grid-template-columns: var(--hh-logo-w) minmax(0, 1fr) auto;
    gap: 0 32px;
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .hh-header .hh-drawer-btn { display: none; }
  .hh-header .hh-logo { grid-column: 1; grid-row: 1; }
  .hh-header .hh-search { grid-column: 2; grid-row: 1; height: 50px; padding-left: 18px; }
  .hh-header .hh-actions { grid-column: 3; grid-row: 1; gap: 8px; }

  .hh-header .hh-actions__item { position: relative; }
  .hh-header .hh-actions__item--info { display: block; }
  .hh-header .hh-actions__btn { padding: 0 12px; font-size: 16px; }
  .hh-header .hh-cart { padding: 0 8px 0 14px; }

  .hh-header .hh-pop { top: calc(100% + 12px); right: 0; left: auto; width: 340px; }
  .hh-header .hh-pop--info { width: 260px; padding: 8px; }
  .hh-header .hh-pop::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 26px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid var(--hh-line);
    border-left: 1px solid var(--hh-line);
    transform: rotate(45deg);
  }
  .hh-header .hh-pop--info::before { right: 14px; }

  /* brzi gumbi poravnati ispod pretrage */
  .hh-header .hh-quick {
    display: flex;
    gap: 14px;
    padding-left: calc(var(--hh-gutter) + var(--hh-logo-w) + 32px);
    padding-bottom: 16px;
  }
  .hh-header .hh-quick__item { position: relative; }
  .hh-header .hh-quick__btn { min-width: 250px; min-height: 54px; padding: 0 20px; font-size: 16px; gap: 14px; }
  .hh-header .hh-quick__btn > i:first-child { font-size: 26px; }
  .hh-header .hh-drop { left: 0; right: auto; width: max-content; min-width: 100%; top: calc(100% + 8px); }

  .hh-header .hh-overlay { display: none; }
  .hh-header .hh-filterbar { display: none; }

  /* plava traka */
  .hh-header .hh-nav {
    position: static;
    display: block;
    width: auto;
    overflow: visible;
    background: var(--hh-bar);
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .hh-header .hh-nav__head, .hh-header .hh-nav__extra { display: none; }
  .hh-header .hh-nav__inner { position: relative; flex: none; padding-left: var(--hh-gutter); padding-right: var(--hh-gutter); }

  .hh-header .hh-nav__list { display: flex; align-items: stretch; }
  .hh-header .hh-nav__list > li { flex: 1 1 auto; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, .22); }
  .hh-header .hh-nav__list > li:first-child { border-left: 0; }

  .hh-header .hh-nav__row { position: relative; justify-content: center; height: 100%; transition: background-color .15s; }
  .hh-header .hh-nav__item:hover > .hh-nav__row { background: rgba(0, 0, 0, .14); }
  .hh-header .hh-nav__item.is-open > .hh-nav__row { background: var(--hh-active); }

  .hh-header .hh-nav__link {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
    color: #fff;
  }
  .hh-header .hh-nav__link:hover { color: #fff; }
  .hh-header .hh-nav__item--mega .hh-nav__link { padding-right: 6px; }
  .hh-header .hh-nav__toggle { width: auto; height: 58px; padding: 0 18px 0 6px; border-left: 0; color: #fff; }
  .hh-header .hh-nav__toggle i { font-size: 12px; }

  /* mala strelica koja pokazuje na otvoreni panel */
  .hh-header .hh-nav__item.is-open > .hh-nav__row::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    margin-left: -9px;
    z-index: 2;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fff;
  }

  /* mega panel */
  .hh-header .hh-mega {
    position: absolute;
    z-index: 1100;
    top: 100%;
    left: var(--hh-gutter);
    right: var(--hh-gutter);
    display: block;
    padding: 24px 28px 28px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--hh-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s, transform .18s var(--hh-ease), visibility 0s .18s;
  }
  .hh-header .hh-mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .hh-header .hh-mega__inner { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); overflow: visible; }
  .hh-header .hh-mega__inner--single { grid-template-columns: minmax(0, 1fr); }

  .hh-header .hh-mega__col--quick { padding: 0 28px 0 0; border-right: 1px solid var(--hh-line); }
  .hh-header .hh-mega__col--links { padding: 0 0 0 28px; }
  .hh-header .hh-mega__inner--single .hh-mega__col--links { padding-left: 0; }

  .hh-header .hh-mega__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    font-size: 15px;
    letter-spacing: .04em;
  }
  .hh-header .hh-mega__title::after { content: ""; flex: 1; height: 1px; background: var(--hh-line); }
  .hh-header .hh-mega__col--quick .hh-mega__title { padding: 0; }
  .hh-header .hh-mega__head { padding: 0; margin-bottom: 16px; gap: 16px; }
  .hh-header .hh-mega__head .hh-mega__title { flex: 1; margin: 0; }
  .hh-header .hh-mega__all { font-size: 15px; }

  .hh-header .hh-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 0; }
  .hh-header .hh-mega__inner--single .hh-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hh-header .hh-tile { padding: 15px 18px; font-size: 16px; border-radius: 6px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hh-header .hh-nav__link { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .hh-header .hh-nav__item--mega .hh-nav__link { padding-right: 4px; }
  .hh-header .hh-nav__toggle { padding-right: 10px; }
  .hh-header .hh-quick__btn { min-width: 0; padding: 0 14px; font-size: 15px; }
  .hh-header .hh-quick { gap: 10px; }
}

/* =========================================================
   7. FOOTER (finalni vizual + upute za CTA)
   Wrapper je <div class="hh-footer" role="contentinfo"> - ne <footer>, da ne hvata
   globalna pravila iz nivago.css ("footer a", "footer h4" ... s !important).
   ========================================================= */
.hh-footer {
  position: relative;
  padding-top: 52px;
  background:
    radial-gradient(900px 380px at 88% 0%, rgba(31, 140, 255, .16), transparent 62%),
    linear-gradient(135deg, #063d70 0%, #00375f 100%);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.hh-footer .hh-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 36px;
}

.hh-footer .hh-footer__logo { display: inline-block; margin-bottom: 22px; }
.hh-footer .hh-footer__logo img { display: block; width: 230px; max-width: 100%; height: auto; }
.hh-footer .hh-footer__addr { margin: 0; font-style: normal; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .95); }
.hh-footer .hh-footer__addr p + p { margin-top: 16px; }
.hh-footer .hh-footer__addr strong { font-weight: 700; color: #fff; }

.hh-footer .hh-footer__title { margin: 0 0 16px; font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; }
.hh-footer .hh-footer__col a {
  display: inline-block;
  padding: 6px 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .92);
  transition: color .15s;
}
.hh-footer .hh-footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* kontakti i društvene mreže (prikazuju se samo kad je hhShowFooterContacts = True) */
.hh-footer .hh-footer__contact { display: grid; gap: 2px; margin-top: 18px; }
.hh-footer .hh-footer__contact a { display: inline-flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 16px; color: rgba(255, 255, 255, .92); }
.hh-footer .hh-footer__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hh-footer .hh-footer__contact i { flex: none; width: 20px; text-align: center; font-size: 16px; color: var(--hh-ring); }
.hh-footer .hh-footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hh-footer .hh-footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 18px; color: #fff;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hh-footer .hh-footer__social a:hover { background: #fff; border-color: #fff; color: var(--hh-blue); }

/* ---------- CTA gumbi (iz uputa: footer_upute.docx) ---------- */
.hh-footer .hh-footer__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
  padding-bottom: 28px;
}
.hh-footer .hh-cta {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 105px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #0b5db6 0%, #006fdf 45%, #0752a8 100%);
  border: 1px solid #1f8cff;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px rgba(0, 55, 120, .18);
  color: #fff;
  text-align: left;
  transition: filter .18s ease, transform .18s ease;
}
.hh-footer .hh-cta:hover { filter: brightness(1.06); color: #fff; }
.hh-footer .hh-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hh-footer .hh-cta__icon {
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1388ff 0%, #086bd2 45%, #064a99 100%);
  border: 1px solid rgba(77, 175, 255, .9);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .18), 0 1px 3px rgba(0, 0, 0, .15);
}
.hh-footer .hh-cta__icon svg { display: block; width: 48px; height: 48px; }
.hh-footer .hh-cta__sep { flex: 0 0 1px; width: 1px; height: 64px; margin: 0 26px; background: rgba(255, 255, 255, .85); }
.hh-footer .hh-cta__text { flex: 1; min-width: 0; }
.hh-footer .hh-cta__title { display: block; margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: #fff; }
.hh-footer .hh-cta__sub { display: block; margin-top: 5px; font-size: 17px; line-height: 1.3; font-weight: 400; color: rgba(255, 255, 255, .96); }
.hh-footer .hh-cta__arrow { flex: 0 0 20px; width: 20px; height: 20px; margin-left: 18px; }
.hh-footer .hh-cta__arrow svg { display: block; width: 100%; height: 100%; }

/* napomena + pravni red */
.hh-footer .hh-footer__note { margin-bottom: 8px; padding: 10px var(--hh-gutter); background: rgba(0, 0, 0, .18); font-size: 14px; text-align: center; }
.hh-footer .hh-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}
.hh-footer .hh-footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
.hh-footer .hh-footer__legal a:hover { color: #fff; }
.hh-footer .hh-footer__credit { flex: none; white-space: nowrap; }
.hh-footer .hh-footer__cookies { display: inline-block; margin-top: 6px; }

@media (min-width: 640px) {
  .hh-footer .hh-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .hh-footer .hh-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .hh-footer { padding-top: 56px; }
  .hh-footer .hh-footer__main { grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px 48px; padding-bottom: 44px; }
  .hh-footer .hh-footer__brand { grid-column: auto; }
  .hh-footer .hh-footer__legal { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 32px; }
}

@media (max-width: 900px) {
  .hh-footer .hh-cta { min-height: 94px; padding: 13px 18px; }
  .hh-footer .hh-cta__icon { flex-basis: 66px; width: 66px; height: 66px; }
  .hh-footer .hh-cta__icon svg { width: 42px; height: 42px; }
  .hh-footer .hh-cta__sep { height: 54px; margin: 0 20px; }
  .hh-footer .hh-cta__title { font-size: 19px; }
  .hh-footer .hh-cta__sub { font-size: 15px; }
}

/* mobitel: gumbi jedan ispod drugog, naslov "BESPLATNA DOSTAVA" ostaje u jednom redu */
@media (max-width: 700px) {
  .hh-footer { padding-top: 40px; }
  .hh-footer .hh-footer__cta { grid-template-columns: 1fr; gap: 10px; }
  .hh-footer .hh-cta { min-height: 82px; padding: 11px 14px; border-radius: 8px; }
  .hh-footer .hh-cta__icon { flex-basis: 58px; width: 58px; height: 58px; }
  .hh-footer .hh-cta__icon svg { width: 36px; height: 36px; }
  .hh-footer .hh-cta__sep { height: 48px; margin: 0 15px; }
  .hh-footer .hh-cta__title { font-size: clamp(14.5px, 4.3vw, 17px); }
  .hh-footer .hh-cta__sub { margin-top: 3px; font-size: clamp(12.5px, 3.7vw, 14px); }
  .hh-footer .hh-cta__arrow { flex-basis: 17px; width: 17px; height: 17px; margin-left: 10px; }
  .hh-footer .hh-footer__cta .hh-cta:first-child .hh-cta__title { white-space: nowrap; }
  .hh-footer .hh-footer__title { margin-bottom: 8px; }
  .hh-footer .hh-footer__col a { padding: 8px 0; }
}

@media (max-width: 400px) {
  .hh-footer .hh-cta__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .hh-footer .hh-cta__icon svg { width: 30px; height: 30px; }
  .hh-footer .hh-cta__sep { height: 40px; margin: 0 11px; }
  .hh-footer .hh-cta__arrow { margin-left: 8px; }
}

/* =========================================================
   8. Pristupačnost: smanjeno kretanje
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hh-header, .hh-header *, .hh-header *::before, .hh-header *::after,
  .hh-footer, .hh-footer *, .hh-footer *::before, .hh-footer *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   9. v2 dodaci
   ========================================================= */

/* ---------- lista želja + usporedba (ikone između prijave i košarice) ---------- */
.hh-header .hh-actions__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  border-radius: 10px;
  font-size: 21px;
  color: var(--hh-navy);
  transition: background-color .15s, color .15s;
}
.hh-header .hh-actions__icon:hover { background: var(--hh-soft); color: var(--hh-blue); }
.hh-header .hh-actions__icon .hh-badge {
  top: 3px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 18px;
}
.hh-header .hh-badge.is-zero { display: none; }

/* ---------- dropdowni "po snazi / po kvadraturi": red "Sve ..." ---------- */
.hh-header .hh-drop__foot { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hh-line); }
.hh-header .hh-drop__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hh-blue);
  transition: background-color .15s;
}
.hh-header .hh-drop__all:hover { background: var(--hh-soft); color: var(--hh-blue-600); }

/* ---------- login: validacija (bootstrapValidator) ---------- */
.hh-header .hh-fg { margin: 0; }
.hh-header .hh-fg__err:empty { display: none; }
.hh-header .hh-fg__err, .hh-header .hh-fg .help-block {
  display: block;
  margin: 5px 2px 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: #c62828;
}
.hh-header .hh-fg.has-error .hh-field { border-color: #c62828; }
.hh-header .hh-fg.has-error .hh-field:focus,
.hh-header .hh-fg.has-error .hh-field:focus-within { box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.hh-header .hh-login__forgot {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--hh-blue);
}
.hh-header .hh-login__forgot:hover { color: var(--hh-blue-600); text-decoration: underline; }

/* ---------- tile: gumb za podkategorije (samo desktop) ---------- */
.hh-header .hh-tile__more { display: none; }

/* ---------- dropdown košarice (samo desktop s mišem) ---------- */
.hh-header .hh-cartpop { display: none; }

.hh-header .hh-cartpop__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--hh-line); }
.hh-header .hh-cartpop__head strong { font-size: 17px; color: var(--hh-navy); }
.hh-header .hh-cartpop__head span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--hh-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.hh-header .hh-cartpop__list { max-height: 300px; overflow-y: auto; margin: 0 -6px; padding: 6px; }
.hh-header .hh-cartpop__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  color: var(--hh-navy);
  transition: background-color .15s;
}
.hh-header .hh-cartpop__link:hover { background: var(--hh-soft-2); color: var(--hh-navy); }
.hh-header .hh-cartpop__img {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid var(--hh-line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  color: var(--hh-line-2);
}
.hh-header .hh-cartpop__img img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.hh-header .hh-cartpop__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.hh-header .hh-cartpop__text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hh-navy);
}
.hh-header .hh-cartpop__text small { font-size: 12.5px; color: var(--hh-muted); margin-left: 0 !important; }
.hh-header .hh-cartpop__qty { flex: none; font-size: 15px; font-weight: 700; color: var(--hh-blue-700); }
.hh-header .hh-cartpop__sum { padding-top: 12px; border-top: 1px solid var(--hh-line); }
.hh-header .hh-cartpop__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 15px; color: var(--hh-ink); }
.hh-header .hh-cartpop__row--total { margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--hh-navy); }
.hh-header .hh-cartpop__note { margin: 6px 0 12px; font-size: 12px; color: var(--hh-muted); text-align: right; }
.hh-header .hh-cartpop__btn { width: 100%; gap: 10px; }

/* ---------- typeahead (pretraga): biblioteka ubacuje span.twitter-typeahead oko inputa ---------- */
.hh-header .hh-search .twitter-typeahead {
  position: static !important;
  display: block !important;
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
}
.hh-header .hh-search .twitter-typeahead .hh-search__input { width: 100%; }
.hh-header .hh-search .tt-hint { display: none !important; }
.hh-header .hh-search .tt-menu {
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  z-index: 1100 !important;
  width: auto !important;
  max-height: min(70vh, 585px);
  margin: 0;
  padding: 6px 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 14px;
  box-shadow: var(--hh-shadow);
}
.hh-header .hh-search .tt-suggestion { padding: 0; font-size: 15px; line-height: 1.35; cursor: pointer; color: var(--hh-ink); }
.hh-header .hh-search .tt-suggestion:hover,
.hh-header .hh-search .tt-suggestion.tt-cursor { background: var(--hh-soft-2); color: var(--hh-ink); }
.hh-header .hh-search .row-hint:hover { background: var(--hh-soft) !important; }
.hh-header .hh-search .tt-highlight { color: var(--hh-blue); font-weight: 700; }

/* ---------- MOBITEL / TABLET (< 1024) ---------- */
@media (max-width: 1023px) {
  /* naslov "Kategorije" u drawer-u ne smije biti uz sam vrh kad nema brzih poveznica */
  .hh-header .hh-mega__head { padding-top: 16px; }
  .hh-header .hh-mega__col--quick + .hh-mega__col--links .hh-mega__head { padding-top: 6px; }
  .hh-header .hh-tile { min-height: 52px; }
}

@media (max-width: 639px) {
  /* usko: prijava bez teksta, košarica samo s iznosom */
  .hh-header .hh-actions__label { display: none; }
  .hh-header .hh-cart__text strong { display: none; }
  .hh-header .hh-cart { gap: 6px; padding: 0 4px 0 6px; }
  .hh-header .hh-actions__btn { padding: 0 6px; }

  /* Akcija / po snazi / po kvadraturi: ikona iznad teksta da tekst stane u 2 reda */
  .hh-header .hh-quick { gap: 8px; }
  .hh-header .hh-quick__btn {
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 74px;
    padding: 10px 6px 8px;
    font-size: 13px;
    text-align: center;
  }
  .hh-header .hh-quick__btn > span { flex: none; }
  .hh-header .hh-quick__btn > i:first-child { font-size: 22px; }

  .hh-header .hh-drop { max-height: min(60vh, 440px); overflow-y: auto; }
}

@media (max-width: 399px) {
  .hh-header .hh-cart__text { display: none; }
  .hh-header .hh-actions__icon { width: 36px; }
}

@media (max-width: 359px) {
  .hh-header .hh-quick__btn { font-size: 12px; }
}

/* ---------- DESKTOP (>= 1024) ---------- */
@media (min-width: 1024px) {
  .hh-header .hh-actions__icon { width: 46px; height: 46px; font-size: 22px; }
  .hh-header .hh-actions__icon .hh-badge { top: 4px; right: 2px; }

  /* dvije kolone za dugu listu m² */
  .hh-header .hh-drop--cols { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); column-gap: 6px; }
  .hh-header .hh-drop--cols .hh-drop__foot { grid-column: 1 / -1; }

  /* pločice u mega meniju: sve jednake visine, naslov max 2 reda */
  .hh-header .hh-mega__grid { grid-auto-rows: 1fr; }
  .hh-header .hh-mega__item { position: relative; display: flex; }
  .hh-header .hh-mega__item > .hh-tile { flex: 1; min-height: 64px; }
  .hh-header .hh-tile > span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* pločica s podkategorijama + flyout */
  .hh-header .hh-tile--sub { padding-right: 62px; }
  .hh-header .hh-tile__more {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border-left: 1px solid var(--hh-line);
    border-radius: 0 6px 6px 0;
    color: var(--hh-blue);
    transition: background-color .15s;
  }
  .hh-header .hh-tile__more:hover,
  .hh-header .hh-mega__item--sub.is-open .hh-tile__more { background: var(--hh-soft); }
  .hh-header .hh-tile__more i { font-size: 13px; transition: transform .2s; }
  .hh-header .hh-mega__item--sub.is-open .hh-tile__more i { transform: rotate(180deg); }
  .hh-header .hh-mega__item--sub.is-open > .hh-tile { border-color: var(--hh-blue); background: var(--hh-soft-2); }

  .hh-header .hh-mega__sub {
    position: absolute;
    z-index: 6;
    left: 0; right: 0;
    top: calc(100% - 2px);
    display: block;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--hh-blue);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--hh-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .14s, transform .14s var(--hh-ease), visibility 0s .14s;
  }
  .hh-header .hh-mega__sub.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .hh-header .hh-mega__sub a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--hh-navy); }
  .hh-header .hh-mega__sub a:hover { background: var(--hh-soft); color: var(--hh-blue); }
}

/* dropdown košarice: hover/focus, bez JS-a */
@media (min-width: 1024px) and (hover: hover) {
  .hh-header .hh-actions__item--cart { position: relative; }
  .hh-header .hh-cartpop {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 12px);
    right: 0;
    display: block;
    width: 420px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--hh-line);
    border-radius: 14px;
    box-shadow: var(--hh-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s, transform .16s var(--hh-ease), visibility 0s .22s;
  }
  /* nevidljivi most preko razmaka da hover ne pukne */
  .hh-header .hh-cartpop::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .hh-header .hh-cartpop::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 34px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid var(--hh-line);
    border-left: 1px solid var(--hh-line);
    transform: rotate(45deg);
  }
  .hh-header .hh-actions__item--cart.has-pop:hover .hh-cartpop,
  .hh-header .hh-actions__item--cart.has-pop:focus-within .hh-cartpop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

/* =========================================================
   10. v3: dropdown po stupcima, scroll u mega meniju, plutajuće ikone
   ========================================================= */

/* ---------- "Klime po kvadraturi": prvo cijeli lijevi stupac odozgo prema dolje, pa desni ---------- */
@media (min-width: 1024px) {
  .hh-header .hh-drop--cols { grid-auto-flow: column; grid-template-rows: repeat(8, auto); }
  .hh-header .hh-drop--cols .hh-drop__foot { grid-column: 1 / -1; grid-row: 9; }

  /* dropdowni i mega meni ne smiju prelaziti visinu ekrana: scroll unutar panela */
  .hh-header .hh-drop { max-height: calc(100vh - 220px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .hh-header .hh-mega {
    max-height: var(--hh-mega-max, calc(100vh - 240px));
    overflow-y: auto;
    overscroll-behavior: contain;    /* scroll na kraju panela ne prelazi na stranicu: izbornik ostaje otvoren */
    scrollbar-width: thin;
    scrollbar-color: var(--hh-line-2) transparent;
  }
}

/* ---------- plutajuće ikone: Tidio chat (dolje) + povratak na vrh (iznad, razmak 14 px) ---------- */
.hh-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 900;                       /* ispod headera/drawera (1000+) i Bootstrap modala (1050) */
  width: 58px;
  height: 58px;
}
.hh-fab *, .hh-fab *::before, .hh-fab *::after { box-sizing: border-box; }
.hh-fab .hh-fab__btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(8, 50, 92, .28));
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, opacity .2s ease, visibility 0s;
}
.hh-fab .hh-fab__btn img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.hh-fab .hh-fab__btn:hover { transform: translateY(-2px) scale(1.05); }
.hh-fab .hh-fab__btn:focus-visible { outline: 3px solid #7ab8ff; outline-offset: 3px; }
.hh-fab .hh-fab__chat[hidden] { display: none; }

.hh-fab .hh-fab__top {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: transform .2s ease, opacity .2s ease, visibility 0s .2s;
}
.hh-fab .hh-fab__top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hh-fab .hh-fab__top.is-visible:hover { transform: translateY(-2px) scale(1.05); }

/* dok je chat otvoren, naše ikone se sklanjaju da ne prekrivaju Tidio prozor */
html.hh-chat-open .hh-fab { display: none; }

/* Tidio ima vlastiti launcher - skriven je dok koristimo našu ikonu (prozor chata ostaje Tidio-v) */
html.hh-tidio-managed:not(.hh-chat-open) #tidio-chat,
html.hh-tidio-managed:not(.hh-chat-open) #tidio-chat-iframe { visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 767px) {
  .hh-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-fab .hh-fab__btn { transition: none; }
}

/* =========================================================
   11. v4: sticky (kompaktna traka), glavni linkovi gumba, CTA "Zatraži besplatan savjet"
   ========================================================= */

/* ---------- sticky ----------
 * Pun header ostaje u toku stranice i normalno se skrola. Tek kad cijeli izađe iz ekrana, JS mu dodaje .is-stuck:
 * postaje fiksna KOMPAKTNA traka (desktop: logo + pretraga + radnje, bez plave trake i brzih gumba;
 * mobitel: pretraga + košarica + izbornik u jednom redu). Visinu u toku stranice drži #hhHeaderSpacer,
 * pa nema skakanja sadržaja ni treperenja.
 */
.hh-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: hh-stick-in .22s ease-out;
}
@keyframes hh-stick-in { from { top: -26px; opacity: .3; } to { top: 0; opacity: 1; } }
#hhHeaderSpacer { display: block; height: 0; }

@media (min-width: 1024px) {
  .hh-header.is-stuck .hh-nav { display: none; }
  .hh-header.is-stuck .hh-search { height: 44px; }
}

@media (max-width: 1023px) {
  .hh-header.is-stuck .hh-top { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 0 6px; }
  .hh-header.is-stuck .hh-logo { display: none; }
  .hh-header.is-stuck .hh-search { grid-column: 1; grid-row: 1; }
  .hh-header.is-stuck .hh-actions { grid-column: 2; grid-row: 1; }
  .hh-header.is-stuck .hh-drawer-btn { grid-column: 3; grid-row: 1; }
  .hh-header.is-stuck .hh-actions__item--account,
  .hh-header.is-stuck .hh-actions__icon,
  .hh-header.is-stuck .hh-cart__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-header.is-stuck { animation: none; }
}

/* ---------- Akcija / po snazi / po kvadraturi: naziv je pravi link (djeljiv URL), strelica otvara popis ---------- */
.hh-header .hh-quick__main { flex: 1; min-width: 0; color: inherit; text-align: inherit; }
.hh-header .hh-quick__main:hover, .hh-header .hh-quick__main:focus { color: inherit; }
/* link se razvuče preko cijelog gumba (klik bilo gdje = otvara glavnu stranicu); strelica je iznad njega */
.hh-header .hh-quick__main::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 10px; }
.hh-header .hh-quick__main:focus-visible { outline: none; }
.hh-header .hh-quick__main:focus-visible::after { outline: 3px solid var(--hh-ring); outline-offset: 2px; }
.hh-header .hh-quick__toggle {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -8px -4px 0;
  border-radius: 8px;
  color: var(--hh-blue);
  transition: background-color .15s;
}
.hh-header .hh-quick__toggle:hover { background: var(--hh-soft); }

@media (max-width: 639px) {
  .hh-header .hh-quick__main { flex: none; text-align: center; }
  .hh-header .hh-quick__toggle { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; margin: 0; }
  .hh-header .hh-quick__caret--static { position: absolute; top: 7px; right: 9px; }
}

/* ---------- CTA "ZATRAŽI BESPLATAN SAVJET" ---------- */
.hh-header .hh-pop__cta,
.hh-header .hh-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--hh-blue-600), var(--hh-blue));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 16px rgba(34, 123, 183, .30);
  transition: filter .18s ease, transform .18s ease;
}
.hh-header .hh-pop__cta:hover, .hh-header .hh-cta-btn:hover { color: #fff; filter: brightness(1.08); }
.hh-header .hh-pop__cta i, .hh-header .hh-cta-btn i { flex: none; font-size: 17px; color: #fff; }

/* desktop dropdown (hamburger): na vrhu popisa, iznad stavki */
.hh-header .hh-pop__cta { margin: 0 0 8px; }
.hh-header .hh-pop--info { width: 290px; }

/* mobilni izbornik: na samom kraju, odvojen od običnih stavki, preko cijele širine uz bočne margine */
.hh-header .hh-nav__cta { margin-top: 10px; padding: 16px 16px 4px; border-top: 1px solid var(--hh-line); }
.hh-header .hh-cta-btn { min-height: 54px; font-size: 15px; border-radius: 12px; }
