/* Objedinjena pretraga, mobilni filteri i poređenje. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.outlet-refined .ticker { height: 52px; padding: 0; display: flex; align-items: center; }
.outlet-refined .ticker-traka { animation-duration: 170s; }
.outlet-refined .ticker-brend { margin: 0 36px; }
.outlet-refined .ticker-brend img { height: 22px; }
.outlet-refined .ticker-brend.brend-veci img { height: 30px; }
.outlet-refined .ticker-brend.brend-najveci img { height: 38px; }

.outlet-refined .konzola { max-width: 1360px; margin: 24px auto 0; }
.outlet-refined .konzola-panel { padding: 22px 24px 18px; border-radius: 22px; background: linear-gradient(120deg,#202630,#10141a); }
.outlet-refined .k-naslov { margin-bottom: 18px; align-items: center; }
.outlet-refined .k-naslov h2 { font-size: 12px; letter-spacing: 2px; }
.pretraga-red { display: grid; grid-template-columns: minmax(280px,1.65fr) minmax(165px,1fr) minmax(180px,.9fr) minmax(160px,.8fr); gap: 24px; align-items: end; }
.outlet-refined .pretraga-red .dim-citac { display: grid; grid-template-columns: minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr); gap: 7px; }
.outlet-refined .pretraga-red .dim-polje select { height: 52px; font-size: 28px; border-radius: 13px; padding: 7px 25px 7px 8px; }
.outlet-refined .pretraga-red .dim-polje .etiketa, .pretraga-label { display: block; font: 600 9px var(--font-u); color: #aeb9c9; letter-spacing: 1px; text-transform: uppercase; }
.pretraga-label { margin-bottom: 7px; }
.outlet-refined .pretraga-red .dim-razmak { font-size: 24px; padding-bottom: 12px; }
.pretraga-poslovnica, .pretraga-kolicina { min-width: 0; }
#f-poslovnica { width: 100%; height: 52px; border: 1px solid #424c5a; border-radius: 13px; padding: 0 12px; font: 500 13px var(--font-u); background: #0d1119; color: #e0e5ed; cursor: pointer; }
.pretraga-red #brzi-set { height: 52px; width: 100%; gap: 2px; padding: 4px; }
.pretraga-red #brzi-set button { flex: 1; min-width: 0; padding: 6px 9px; font-size: 12px; }
.outlet-refined .pretraga-red .btn-trazi { grid-column: auto; height: 52px; padding: 12px 17px; margin: 0; font-size: 11px; letter-spacing: .7px; white-space: nowrap; }
.pretraga-red .btn-trazi span { margin-left: 10px; font-size: 17px; }
.pretraga-dno { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #ffffff12; }
.pretraga-dno .popularne-dimenzije { margin: 0; padding: 0; border: 0; gap: 12px; }
.pretraga-dno .popularne-dimenzije > span { font-size: 10px; }
.pretraga-dno #brze-dimenzije { gap: 6px; }
.pretraga-dno #brze-dimenzije button { font-size: 12px; padding: 5px 11px; min-height: 32px; }
.pretraga-dno > p { color: #a2afc1; font-size: 10px; line-height: 1.7; text-align: right; }
.pretraga-dno > p a { display: block; color: #efc875; text-decoration: none; }
.outlet-refined .sadrzaj { margin-top: 26px; }

/* Native dijalozi zadržavaju fokus i blokiraju sadržaj iza panela. */
body.filteri-otvoreni, body.poredjenje-otvoreno { overflow: hidden; }
.filter-dialog, .poredjenje-dialog { color: var(--tekst); background: #11161e; border: 1px solid #46505e; box-shadow: 0 25px 90px #000b; padding: 0; }
.filter-dialog::backdrop, .poredjenje-dialog::backdrop { background: #03060baf; backdrop-filter: blur(7px); }
.filter-dialog { inset: 0 0 0 auto; margin: 0; width: min(440px, 94vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 22px 0 0 22px; }
.filter-dialog[open], .poredjenje-dialog[open] { display: flex; flex-direction: column; }
.panel-zaglavlje { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #333d4b; }
.panel-zaglavlje h2 { margin-top: 7px; font: 600 23px var(--font-u); letter-spacing: -.4px; }
.panel-zatvori { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #4b5564; border-radius: 50%; color: #d3dce9; background: #ffffff05; font-size: 16px; cursor: pointer; }
.panel-zatvori:hover { color: #ffd679; border-color: #b68a36; }
#filter-dialog-sadrzaj { min-height: 0; overflow: auto; flex: 1; overscroll-behavior: contain; }
.outlet-refined .filter-dialog .filteri { display: block; position: static; border: 0; border-radius: 0; background: transparent; padding: 10px 24px 24px; backdrop-filter: none; }
.filter-dialog .filteri > h3 { display: none; }
.filter-dialog .check-lista { max-height: none; overflow: visible; }
.filter-dialog .check-lista label { min-height: 40px; }
.filter-dialog .filter-grupa input[type=text] { font-size: 16px; }
.filter-dialog-dno { flex-shrink: 0; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #3c4654; background: #171d27; }
.filter-dialog-dno .zuto-dugme { width: 100%; }
.zuto-dugme { min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 0; background: linear-gradient(120deg,var(--zuta),#ffce51); color: #11151c; font: 600 12px var(--font-u); cursor: pointer; }
.zuto-dugme:disabled { background: #2c3440; color: #a2adbc; cursor: default; }
.tiho-dugme { padding: 12px; min-height: 44px; border: 0; background: none; color: #b9c4d3; font: 11px var(--font-u); cursor: pointer; }

.btn-poredi { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 36px; border: 0; background: none; color: #a5b2c4; font: 11px var(--font-u); cursor: pointer; }
.poredi-kvacica { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid #576477; border-radius: 4px; font-size: 13px; }
.btn-poredi:hover, .btn-poredi[aria-pressed=true] { color: #f6d185; }
.btn-poredi[aria-pressed=true] .poredi-kvacica { border-color: #eab34a; background: #eab34a; color: #10151c; }
body.ima-poredjenje { padding-bottom: 106px; }
.poredjenje-traka { position: fixed; z-index: 110; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100% - 40px)); display: flex; align-items: center; gap: 22px; padding: 14px 18px; border: 1px solid #927340; border-radius: 20px; background: #1b222df5; backdrop-filter: blur(18px); box-shadow: 0 12px 60px #000c; }
.poredjenje-sazetak { flex-shrink: 0; }
.poredjenje-sazetak b { display: block; font: 600 12px var(--font-u); color: #e3e9f1; }
.poredjenje-sazetak > span { display: block; margin-top: 5px; color: #efc776; font: 600 17px var(--font-b); letter-spacing: .6px; }
#poredjenje-izbor { display: flex; flex: 1; min-width: 0; gap: 8px; }
.poredjenje-mini { display: flex; align-items: center; min-width: 0; flex: 1; gap: 7px; border: 1px solid #3e495a; border-radius: 11px; padding: 5px 7px; }
.poredjenje-mini img { width: 32px; height: 38px; object-fit: contain; }
.poredjenje-mini > span { min-width: 0; flex: 1; }
.poredjenje-mini b { display: block; font-size: 9px; letter-spacing: .6px; color: #dfbe7e; }
.poredjenje-mini small { display: block; margin-top: 4px; font-size: 9px; color: #a8b5c7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poredjenje-mini button, .poredjenje-ukloni { flex-shrink: 0; width: 32px; height: 36px; border: 0; border-radius: 50%; background: #ffffff05; color: #c6d1df; font-size: 21px; cursor: pointer; }
.poredjenje-traka-akcije { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.poredjenje-poruka { position: fixed; z-index: 112; left: 50%; bottom: 112px; transform: translateX(-50%); width: max-content; max-width: min(540px, calc(100% - 36px)); padding: 14px 20px; border: 1px solid #a78443; border-radius: 13px; color: #f2d18b; background: #24251e; box-shadow: 0 10px 35px #0009; font-size: 12px; line-height: 1.6; }
.poredjenje-poruka:empty { display: none; }

.poredjenje-dialog { width: min(1100px, calc(100vw - 36px)); max-width: none; max-height: 94dvh; margin: auto; border-radius: 23px; }
.poredjenje-postavke { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 24px; }
.poredjenje-postavke label { font-size: 12px; color: #c5cfdd; margin-right: 10px; }
.poredjenje-postavke select { border: 1px solid #535f71; background: #1c2532; color: #f4d590; padding: 10px 12px; border-radius: 10px; font: 600 12px var(--font-u); }
.poredjenje-postavke p { font-size: 10px; color: #a8b6c9; line-height: 1.7; text-align: right; }
.poredjenje-pomoc { display: none; }
.poredjenje-tabela { min-height: 0; overflow: auto; overscroll-behavior: contain; margin: 0 24px 24px; border: 1px solid #3b4656; border-radius: 14px; }
.poredjenje-tabela table { width: 100%; min-width: calc(120px + var(--broj-guma) * 210px); table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: left; }
.poredjenje-etiketa { width: 120px; }
.poredjenje-tabela th, .poredjenje-tabela td { padding: 13px 18px; border-bottom: 1px solid #313d4d; border-right: 1px solid #313d4d; vertical-align: middle; font-size: 13px; overflow-wrap: anywhere; }
.poredjenje-tabela tr > :last-child { border-right: 0; }
.poredjenje-tabela tbody tr:last-child > * { border-bottom: 0; }
.poredjenje-tabela tr > th:first-child { position: sticky; left: 0; z-index: 1; background: #19212d; color: #aebdd1; font-size: 11px; font-weight: 500; }
.poredjenje-tabela thead th:first-child strong { display: block; margin-top: 10px; font: 600 22px var(--font-b); color: #f1cd81; }
.poredjenje-tabela thead { background: #202a37; }
.poredjenje-proizvod { position: relative; vertical-align: top !important; padding-top: 24px !important; }
.poredjenje-proizvod .foto-kadar { width: 90px; height: 90px; margin: 0 auto 12px; }
.poredjenje-proizvod .foto-kadar img { width: 100%; height: 100%; object-fit: contain; transform: translate(var(--foto-x,0%),var(--foto-y,0%)) scale(var(--foto-scale,1)); }
.p-marka { display: block; color: #f1c568; font: 600 10px var(--font-u); letter-spacing: 1px; margin-bottom: 7px; }
.poredjenje-proizvod > strong { display: block; color: #d3ddea; font-size: 13px; font-weight: 500; line-height: 1.5; }
.poredjenje-ukloni { position: absolute; top: 9px; right: 9px; z-index: 1; }
.poredjenje-tabela .p-cijena { display: block; color: #ffce6c; font: 600 25px var(--font-b); white-space: nowrap; }
.poredjenje-ukupno td { background: #f9ae0009; }
.p-nema { display: block; color: #e3b78b; font-size: 12px; }
.poredjenje-tabela td small { display: block; color: #a2b0c4; font-size: 10px; margin-top: 5px; }
.poredjenje-tabela .btn-artikal { margin: 0; padding: 9px 14px; font-size: 11px; }

@media (max-width: 1100px) {
  .pretraga-red { grid-template-columns: minmax(240px,1.5fr) minmax(140px,1fr) minmax(140px,1fr); gap: 16px; }
  .outlet-refined .pretraga-red .btn-trazi { grid-column: 1 / -1; height: 46px; }
  .pretraga-dno { flex-wrap: wrap; }
  .pretraga-dno > p { text-align: left; }
  .pretraga-dno > p a { display: inline; margin-left: 10px; }
  .poredjenje-mini > span { display: none; }
  .poredjenje-mini { flex: 0 1 auto; }
}
@media (max-width: 700px) {
  .pretraga-red { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 12px; }
  .pretraga-red .dim-citac { grid-column: 1 / -1; }
  .outlet-refined .konzola { padding: 0 14px; margin-top: 18px; }
  .outlet-refined .konzola-panel { padding: 19px 16px 16px; border-radius: 18px; }
  .outlet-refined .k-naslov { margin-bottom: 18px; }
  .outlet-refined .k-naslov h2 { font-size: 10px; max-width: 160px; letter-spacing: 1px; }
  .outlet-refined .pretraga-red .dim-polje select { height: 46px; font-size: 27px; }
  .outlet-refined .pretraga-red .dim-razmak { padding-bottom: 10px; }
  .outlet-refined .pretraga-red .dim-polje .etiketa, .pretraga-label { font-size: 8px; }
  #f-poslovnica { height: 46px; font-size: 11px; padding: 0 7px; }
  .pretraga-red #brzi-set { height: 46px; padding: 3px; }
  .pretraga-red #brzi-set button { padding: 6px; min-height: 36px; font-size: 11px; }
  .pretraga-red #brzi-set button span { display: none; }
  .pretraga-dno { gap: 10px; margin-top: 15px; padding-top: 13px; }
  .pretraga-dno .popularne-dimenzije { gap: 8px; }
  .pretraga-dno .popularne-dimenzije > span { font-size: 9px; }
  .pretraga-dno > p { font-size: 9px; }
  .outlet-refined .sadrzaj { margin-top: 18px; }
  .btn-poredi { min-height: 40px; font-size: 10px; }
  .poredjenje-traka { width: calc(100% - 20px); bottom: max(10px,env(safe-area-inset-bottom)); padding: 12px; gap: 10px; border-radius: 17px; }
  #poredjenje-izbor { display: none; }
  .poredjenje-sazetak { flex: 1; min-width: 0; }
  .poredjenje-sazetak b { font-size: 10px; }
  .poredjenje-sazetak > span { font-size: 15px; }
  .poredjenje-traka-akcije { gap: 2px; }
  .poredjenje-traka .zuto-dugme { font-size: 10px; padding: 10px 13px; }
  .poredjenje-traka .tiho-dugme { font-size: 10px; padding: 10px 7px; }
  .poredjenje-poruka { font-size: 11px; bottom: 104px; }
  .panel-zaglavlje { padding: 17px; gap: 12px; }
  .panel-zaglavlje h2 { font-size: 21px; }
  .poredjenje-dialog { width: calc(100vw - 18px); border-radius: 19px; }
  .poredjenje-postavke { padding: 15px 17px 9px; align-items: start; flex-direction: column; gap: 10px; }
  .poredjenje-postavke p { text-align: left; }
  .poredjenje-pomoc { display: block; font-size: 10px; color: #d1b77e; margin: 0 17px 13px; }
  .poredjenje-tabela { margin: 0 12px 16px; }
  .poredjenje-tabela table { min-width: calc(94px + var(--broj-guma) * 180px); }
  .poredjenje-etiketa { width: 94px; }
  .poredjenje-tabela th, .poredjenje-tabela td { padding: 12px; font-size: 12px; }
  .poredjenje-tabela tr > th:first-child { font-size: 10px; }
  .poredjenje-tabela thead th:first-child strong { font-size: 18px; }
  .poredjenje-tabela .p-cijena { font-size: 23px; }
  .poredjenje-proizvod > strong { font-size: 12px; }
}
