/* Dodaci: jezici, rotirajuće sekcije, skriveni proizvodi, bot, admin dodaci */

[hidden] { display: none !important; }

/* Proizvodi se ne prikazuju dok korisnik ne izabere kategoriju, pretragu ili akciju */
.prod-sec:not(.is-open) { display: none; }

/* Padajući meni za jezik */
.langs { position: relative; display: inline-flex; align-items: center; margin-right: 6px; }
.lang-btn {
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); color: #fff;
  font: 800 13px/1 Nunito, system-ui, sans-serif; letter-spacing: .04em;
  padding: 9px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.lang-btn:focus-visible { outline: 3px solid #ffc928; outline-offset: 2px; }
.top.solid .lang-btn { color: #0b2a5e; background: #fff; border-color: rgba(11, 42, 94, .35); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  background: #fff; color: #1d2433; border: 1px solid #e3e8f0; border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2); padding: 6px; min-width: 150px;
}
.langs.open .lang-menu { display: block; }
.lang-opt {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font: 700 14px/1 Nunito, system-ui, sans-serif; padding: 10px 12px; border-radius: 8px; color: #1d2433;
}
.lang-opt:hover, .lang-opt:focus-visible { background: #f1f5fb; outline: none; }
.lang-opt.on { background: #0b2a5e; color: #fff; }

/* Ikonice u kategorijama "Novo" i "Akcije" */
.art.new { background: linear-gradient(135deg, #2f80ed, #56ccf2); }
.art.new .ic { width: 42%; height: 42%; color: #fff; }
.tag.new { background: #1f9d55; }

/* Rotirajuće sekcije (horizontalno, sa snap efektom) */
.rail-sec { padding-top: 8px; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.rail > .card { flex: 0 0 min(72vw, 240px); scroll-snap-align: start; }
@media (min-width: 900px) { .rail > .card { flex-basis: 250px; } }

/* Prikaz za "Akcija vrijedi do" i "Novo do" u admin listi */
.adm-tr { margin: 10px 0; border: 1px solid #e3e8f0; border-radius: 10px; padding: 8px 12px; }
.adm-tr > summary { cursor: pointer; font-weight: 700; color: #0b2a5e; }
.adm-trbox { border-top: 1px dashed #d8dee9; padding: 10px 0 4px; margin-top: 8px; }
.adm-trbox > b { display: block; margin-bottom: 6px; color: #0b2a5e; }
.adm-check { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; margin-bottom: 4px; }
.adm-check input { width: auto; }

/* Podnožje: admin link (diskretan) */
.foot-admin { margin: 6px 0 0; font-size: 12px; }
.foot-admin a { color: inherit; opacity: .55; text-decoration: none; }
.foot-admin a:hover { opacity: 1; text-decoration: underline; }

/* ===== Asistent (bot) ===== */
.bot-fab {
  position: fixed; right: 16px; bottom: 88px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: #0b2a5e; color: #fff; padding: 12px 16px; border-radius: 999px;
  font: 800 14px/1 Nunito, system-ui, sans-serif; box-shadow: 0 10px 24px rgba(11, 42, 94, .3);
}
.bot-fab .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .bot-fab { bottom: 24px; } }
.bot-fab:focus-visible { outline: 3px solid #ffc928; outline-offset: 3px; }

.bot-panel {
  position: fixed; right: 16px; bottom: 150px; z-index: 70;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 180px));
  background: #fff; color: #1d2433; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e8f0;
}
@media (min-width: 900px) { .bot-panel { bottom: 90px; } }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0b2a5e; color: #fff; }
.bot-head b { font-size: 15px; }
.bot-x { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 8px; }
.bot-x .ic { width: 20px; height: 20px; }
.bot-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f6f8fb; }
.bot-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.bot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8f0; border-bottom-left-radius: 4px; }
.bot-msg.me { align-self: flex-end; background: #0b2a5e; color: #fff; border-bottom-right-radius: 4px; }
.bot-msg.sys { align-self: center; background: #fff3c4; color: #5a4300; font-size: 13px; }
.bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e8f0; background: #fff; }
.bot-form input { flex: 1; border: 1px solid #d8dee9; border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; }
.bot-form input:focus-visible { outline: 3px solid #ffc928; outline-offset: 1px; }
.bot-form button { border: 0; background: #ffc928; color: #0b2a5e; font: 800 14px/1 Nunito, system-ui, sans-serif; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.bot-form button:disabled { opacity: .55; cursor: default; }
.bot-note { font-size: 11px; color: #6b7487; padding: 0 12px 10px; background: #fff; }

/* Na desktopu pilula sa nazivom ponavlja header i ispod nje je dugme za asistenta */
@media (min-width: 900px) { .hero-pill { display: none; } }

/* Naslovi i opisi: obična strelica umjesto kursora za unos (polja za unos ostaju sa kursorom za pisanje) */
.slogan, .hero-name, .hero-sub, .h, .lead, .tip, .tip h3, .tip p, .catname, .price, .desc, .foot-site p, .hb, .badges span { cursor: default; }

/* Slogan bez nagiba (nagib je izgledao iskrivljeno) */
.slogan { transform: none; }
