/* Novi header (preview). Scoped na .ah-nav — ne dira body/font stranice. */
.ah-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0B3A5C;
  color: #fff;
  font-family: Nunito, "Open Sans", sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.ah-skip:focus,
.ah-skip:focus-visible {
  left: 16px;
  outline: 2px solid #005E96;
  outline-offset: 2px;
}

.ah-nav {
  --ah-accent: #005E96;
  --ah-accent-hover: #004A77;
  --ah-bar: #0B3A5C;
  --ah-bar-text: #CFE2F0;
  --ah-warm: #B4532A;
  --ah-pay: #E8F1F8;
  --ah-bg: #F5F1E8;
  --ah-surface: #FFFFFF;
  --ah-cream: #FFFDF8;
  --ah-ink: #1F2623;
  --ah-muted: #5B625E;
  --ah-line: #E3DCCD;
  --ah-border: #CFC6B3;
  --ah-open: #7BD88F;
  --ah-closed: #E9B48F;
  --ah-max: 1360px;
  position: sticky;
  top: 0;
  z-index: 4000;
  background: var(--ah-surface);
  border-bottom: 1px solid var(--ah-line);
  color: var(--ah-ink);
  font-family: Nunito, "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow: visible;
}
.ah-nav *,
.ah-nav *::before,
.ah-nav *::after { box-sizing: border-box; }
.ah-nav a { color: inherit; text-decoration: none; }
.ah-nav button { font-family: inherit; }
.ah-nav :focus-visible {
  outline: 2px solid var(--ah-accent);
  outline-offset: 2px;
}

.ah-nav__inner {
  width: min(var(--ah-max), calc(100% - 32px));
  margin: 0 auto;
}

/* —— Gornja traka —— */
.ah-nav__bar {
  background: var(--ah-bar);
  color: var(--ah-bar-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.ah-nav__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 6px 0;
}
.ah-nav__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  color: #fff;
  font-weight: 800;
}
.ah-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ah-closed);
}
.ah-nav__dot--open { background: var(--ah-open); }
.ah-nav__status-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-nav__status-addr {
  font-weight: 600;
  color: var(--ah-bar-text);
}
.ah-nav__bar-links {
  display: none;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.ah-nav__bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ah-bar-text);
  font-weight: 800;
  white-space: nowrap;
}
.ah-nav__bar-link svg { color: var(--ah-closed); flex-shrink: 0; }
.ah-nav__bar-link--tel { color: #fff; }
.ah-nav__bar-phone {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* —— Glavni red —— */
.ah-nav__main-inner {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0 10px;
}
.ah-nav__burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ah-bg);
  color: var(--ah-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ah-nav__logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
}
.ah-nav__logos img {
  display: block;
  height: 30px;
  width: auto;
}
.ah-nav__logos-div {
  width: 1px;
  height: 22px;
  background: var(--ah-border);
  flex-shrink: 0;
}
.ah-nav__search {
  grid-column: 1 / -1;
  margin: 0;
}
.ah-nav__search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.ah-nav__search-field svg {
  position: absolute;
  left: 14px;
  color: var(--ah-muted);
  pointer-events: none;
}
.ah-nav__search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--ah-border);
  border-radius: 999px;
  background: var(--ah-bg);
  color: var(--ah-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.ah-nav__search-input::placeholder { color: #8A908C; font-weight: 600; }
.ah-nav__search-input:focus { border-color: var(--ah-accent); background: #fff; }

.ah-nav__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ah-nav__tool {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  gap: 2px;
  color: var(--ah-ink);
  font-size: 12px;
  font-weight: 800;
}
.ah-nav__tool svg { color: var(--ah-accent); }
.ah-nav__search-ico {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ah-ink);
  border-radius: 12px;
}

.ah-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px;
  border-radius: 999px;
  color: var(--ah-ink);
}
.ah-nav__cart-ico {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ah-ink);
}
.ah-nav__cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ah-warm);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.ah-nav__cart-count:empty { display: none; }
.ah-nav__cart-txt {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.ah-nav__cart-lab {
  font-size: 12px;
  font-weight: 800;
  color: var(--ah-muted);
}
.ah-nav__cart-amt {
  font-size: 15px;
  font-weight: 800;
  color: var(--ah-ink);
  font-variant-numeric: tabular-nums;
}

/* —— Kategorije / pilule —— */
.ah-nav__cats { border-top: 1px solid #EFE9DD; }
.ah-nav__cats-desk { display: none; }
.ah-nav__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ah-nav__chips::-webkit-scrollbar { display: none; }
.ah-nav__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ah-border);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  color: var(--ah-ink);
  white-space: nowrap;
}
.ah-nav__chip--sale {
  background: var(--ah-warm);
  border-color: var(--ah-warm);
  color: #fff;
}

/* Mega */
.ah-nav__megas {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  pointer-events: none;
}
.ah-nav--mega .ah-nav__megas { pointer-events: auto; }
.ah-nav__mega {
  position: relative;
  background: var(--ah-surface);
  box-shadow: 0 24px 40px rgba(31, 38, 35, .14);
  border-top: 1px solid #EFE9DD;
  pointer-events: auto;
}
.ah-nav__mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.ah-nav__mega[hidden] { display: none !important; }
.ah-mega__inner { padding: 8px 0 0; }
.ah-mega__body {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  padding: 22px 0 24px;
  align-items: stretch;
}
.ah-mega__cols {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 28px;
  align-content: start;
  min-width: 0;
}
.ah-mega__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ah-accent);
  line-height: 1.3;
}
.ah-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ah-mega__list li + li { margin-top: 4px; }
.ah-mega__list a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ah-ink);
  line-height: 1.45;
  padding: 4px 0;
  min-height: 32px;
}
.ah-mega__list a:hover,
.ah-mega__list a:focus-visible {
  color: var(--ah-accent);
  text-decoration: underline;
}
.ah-mega__list small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ah-muted);
  text-decoration: none;
}
.ah-mega__promo {
  display: flex;
  flex-direction: column;
  flex: 1.5 1 240px;
  max-width: 340px;
  min-width: 220px;
  min-height: 100%;
  background: var(--ah-cream);
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ah-ink);
}
.ah-mega__promo--nophoto { justify-content: flex-start; }
.ah-mega__promo:hover { border-color: var(--ah-accent); }
.ah-mega__promo img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--ah-bg);
}
.ah-mega__promo-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.ah-mega__promo-tag {
  align-self: flex-start;
  background: var(--ah-warm);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.ah-mega__promo-body strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}
.ah-mega__promo-body p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ah-muted);
  line-height: 1.45;
}
.ah-mega__promo-go {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--ah-accent);
}
.ah-mega__promo:hover .ah-mega__promo-go { color: var(--ah-accent-hover); }
.ah-mega__help {
  background: var(--ah-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--ah-ink);
}
.ah-mega__help-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 12px 0;
  min-height: 44px;
}
.ah-mega__help p { margin: 0; flex: 1 1 240px; }
.ah-mega__help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ah-accent);
  font-weight: 800;
  white-space: nowrap;
}
.ah-mega__help a:hover { text-decoration: underline; }
.ah-mega__help svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--ah-accent);
}

@media (min-width: 1024px) {
  .ah-nav__bar { font-size: 13px; }
  .ah-nav__bar-inner {
    min-height: 36px;
    padding: 0;
  }
  .ah-nav__status { min-height: 36px; }
  .ah-nav__status-addr { display: inline; }
  .ah-nav__bar-phone { display: none; }
  .ah-nav__bar-links { display: flex; }

  .ah-nav__main-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    padding: 14px 0;
  }
  .ah-nav__burger,
  .ah-nav__search-ico { display: none; }
  .ah-nav__logos img { height: 46px; }
  .ah-nav__logos-div { height: 32px; }
  .ah-nav__search {
    grid-column: auto;
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }
  .ah-nav__search-input { height: 50px; }
  .ah-nav__tools { gap: 8px; }
  .ah-nav__tool { display: inline-flex; }
  .ah-nav__cart {
    padding: 6px 14px 6px 8px;
    border: 1.5px solid var(--ah-line);
  }
  .ah-nav__cart-txt { display: flex; }

  .ah-nav__chips { display: none; }
  .ah-nav__cats-desk {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
  }
  .ah-nav__cat-list {
    display: flex;
    align-items: stretch;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .ah-nav__cat-list > li { display: flex; position: static; }
  .ah-nav__bar { max-height: 48px; overflow: hidden; }
  .ah-nav__cats { max-height: 72px; overflow: visible; }
  .ah-nav--mega .ah-nav__cats { max-height: none; overflow: visible; }
  .ah-nav__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ah-ink);
    border-bottom: 3px solid transparent;
  }
  .ah-nav__cat svg { color: var(--ah-muted); }
  .ah-nav__cat:hover,
  .ah-nav__cat.is-on {
    color: var(--ah-accent);
    border-bottom-color: var(--ah-accent);
  }
  .ah-nav__cat.is-on svg { transform: rotate(180deg); }
  .ah-nav__pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .ah-nav__pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ah-ink);
  }
  .ah-nav__pill:hover { color: var(--ah-accent); }
  .ah-nav__pill--sale {
    background: var(--ah-warm);
    color: #fff;
  }
  .ah-nav__pill--sale:hover { background: #9A4624; color: #fff; }

  .ah-nav__bar,
  .ah-nav__cats,
  .ah-nav__main-inner,
  .ah-nav__logos img,
  .ah-nav__logos-div,
  .ah-nav__search-input {
    transition: max-height .2s ease, opacity .2s ease, padding .2s ease, height .2s ease, min-height .2s ease, box-shadow .2s ease;
  }
  .ah-nav--down,
  .ah-nav--up {
    box-shadow: 0 6px 18px rgba(31, 38, 35, .10);
  }
  .ah-nav--down .ah-nav__bar,
  .ah-nav--up .ah-nav__bar {
    max-height: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .ah-nav--down .ah-nav__cats {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top-width: 0;
    pointer-events: none;
  }
  .ah-nav--down .ah-nav__main-inner,
  .ah-nav--up .ah-nav__main-inner {
    padding: 8px 0;
  }
  .ah-nav--down .ah-nav__logos img,
  .ah-nav--up .ah-nav__logos img { height: 34px; }
  .ah-nav--down .ah-nav__logos-div,
  .ah-nav--up .ah-nav__logos-div { height: 24px; }
  .ah-nav--down .ah-nav__search-input,
  .ah-nav--up .ah-nav__search-input { height: 42px; }
  .ah-nav--down .ah-nav__tool--store,
  .ah-nav--up .ah-nav__tool--store { display: none; }
}

@media (max-width: 1023px) {
  .ah-nav__mega { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-nav__bar,
  .ah-nav__cats,
  .ah-nav__main-inner,
  .ah-nav__logos img,
  .ah-nav__logos-div,
  .ah-nav__search-input {
    transition: none !important;
  }
}

@media (max-width: 1023px) {
  .ah-nav__status-addr { display: none; }
}
@media (min-width: 1024px) {
  .ah-nav__status-city { display: none; }
}
