/* Tražilica (18.11.2026.) - padajući prikaz i stranica rezultata (inc/trazilica.php) */

/* padajući prikaz: proizvodi lijevo, kategorije i djelatnosti desno (kao Unikomerc) */
.woo-custom-search { position: relative; }
ul#woo-custom-search-results, ul#woo-custom-search-mobile-results { display: block; max-height: min(75vh, 680px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border: 1px solid #e6e6e6; border-radius: 6px; margin-top: 6px; }
ul#woo-custom-search-results:empty, ul#woo-custom-search-mobile-results:empty { border: 0; box-shadow: none; }
ul#woo-custom-search-results { width: 780px; max-width: calc(100vw - 40px); left: 0; }
ul#woo-custom-search-results li[class^="dtg-tr-"], ul#woo-custom-search-mobile-results li[class^="dtg-tr-"] { display: block; padding: 0; background: none; }
ul#woo-custom-search-results li[class^="dtg-tr-"]:hover, ul#woo-custom-search-mobile-results li[class^="dtg-tr-"]:hover { background: none; }

.dtg-tr-panel { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dtg-tr-panel--jedan { grid-template-columns: 1fr; }
.dtg-tr-lijevo { padding: 14px 16px; }
.dtg-tr-desno { padding: 14px 16px; border-left: 1px solid #ececec; background: #fafafa; }
.dtg-tr-popis { list-style: none; margin: 0 0 12px; padding: 0; }
.dtg-tr-naslov { margin: 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #6C7C69; font-family: "Montserrat", sans-serif; }

.dtg-tr-proizvod a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 4px; color: #212227; text-decoration: none; }
.dtg-tr-slika { flex: 0 0 50px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.dtg-tr-slika img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dtg-tr-tekst { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dtg-tr-ime { font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dtg-tr-zaliha { font-size: 12px; }
.dtg-tr-zaliha--na-stanju { color: #2f7d4f; }
.dtg-tr-zaliha--narudzba { color: #a26b00; }
.dtg-tr-zaliha--nema { color: #b42318; }
.dtg-tr-cijena { flex: 0 0 auto; text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.dtg-tr-cijena del { display: block; font-size: 12px; font-weight: 400; color: #8a8a8a; }
.dtg-tr-cijena ins { text-decoration: none; color: #6C7C69; }
.dtg-tr-cijena .ddtech-anchor { display: block; font-size: 11px; font-weight: 400; color: #5c5f66; }

.dtg-tr-kat a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 4px; color: #212227; font-size: 14px; font-weight: 500; text-decoration: none; }
.dtg-tr-kat a span { font-size: 12px; color: #5c5f66; font-weight: 400; }

a.dtg-tr-svi { display: block; padding: 11px 14px; border-radius: 4px; background: #212227; color: #fff; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
a.dtg-tr-svi:hover, a.dtg-tr-svi.dtg-tr-aktivno { background: #6C7C69; color: #fff; }
.dtg-tr-nema { margin: 0; font-size: 14px; line-height: 1.5; color: #3b3d44; }
.dtg-tr-nema a { color: #212227; text-decoration: underline; text-decoration-color: #6C7C69; }
.dtg-tr-kat a:hover, .dtg-tr-proizvod a:hover, .dtg-tr-kat a.dtg-tr-aktivno, .dtg-tr-proizvod a.dtg-tr-aktivno { background: #eef1ed; }

@media (max-width: 767px) {
	/* mobitel: visina do dna ekrana (ispod zaglavlja), pomiče se unutar sebe */
	ul#woo-custom-search-mobile-results { border-radius: 0; margin-top: 0; max-height: calc(100dvh - 140px); }
	.dtg-tr-lijevo, .dtg-tr-desno { padding: 12px; }
	.dtg-tr-proizvod a { padding: 6px 8px; gap: 10px; }
	.dtg-tr-slika { flex-basis: 44px; width: 44px; height: 44px; }
	.dtg-tr-ime { font-size: 13px; }
	.dtg-tr-cijena { font-size: 13px; }
	.dtg-tr-panel { grid-template-columns: 1fr; }
	.dtg-tr-desno { border-left: 0; border-top: 1px solid #ececec; }
}

/* stranica rezultata */
.dtg-tr-stranica { max-width: 1140px; margin: 0 auto; padding: 24px 0 48px; }
.dtg-tr-stranica__glava { margin-bottom: 14px; }
.dtg-tr-stranica__glava h1 { margin-bottom: 14px; }
.dtg-tr-forma { display: flex; gap: 8px; max-width: 560px; margin: 0 0 10px; }
.dtg-tr-forma input[type="search"] { flex: 1 1 auto; height: 42px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 21px; background: #f1f1f1; font-size: 16px; }
.dtg-tr-forma button { height: 42px; padding: 0 20px; border: 0; border-radius: 21px; background: #212227; color: #fff; font-weight: 600; }
.dtg-tr-forma button:hover { background: #6C7C69; }
.dtg-tr-stranica__broj { font-size: 14px; color: #5c5f66; margin: 0; }
.dtg-tr-stranica__kategorije { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dtg-tr-stranica__kategorije a { display: inline-flex; gap: 6px; padding: 6px 12px; background: #f1f1f1; font-size: 13px; color: #212227; text-decoration: none; }
.dtg-tr-stranica__kategorije a span { font-size: 11px; color: #5c5f66; }
.dtg-tr-stranicenje { display: flex; justify-content: center; gap: 6px; margin: 24px 0 0; }
.dtg-tr-stranicenje .page-numbers { display: inline-block; min-width: 38px; padding: 8px 10px; border: 1px solid #dcdcdc; text-align: center; color: #212227; text-decoration: none; }
.dtg-tr-stranicenje .page-numbers.current { background: #212227; border-color: #212227; color: #fff; }
.dtg-tr-stranica__nema h2 { font-size: 20px; font-weight: 600; margin: 10px 0; }
.dtg-tr-stranica__nema p { font-size: 15px; line-height: 1.6; max-width: 760px; }
.dtg-tr-stranica__nema a { color: #212227; text-decoration: underline; text-decoration-color: #6C7C69; }

@media (max-width: 1199px) { .dtg-tr-stranica { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 767px) {
	.dtg-tr-stranica { padding: 16px 12px 36px; }
	.dtg-tr-cijena { font-size: 13px; }
}

/* mobitel: tekst u polju tražilice okomito na sredini (polje je bilo 53 px u okviru od 42 px) */
#woo-custom-search-mobile-input { top: 0; height: 100%; padding: 0 8px; line-height: normal; box-sizing: border-box; }

/* Padajući prikaz: bez retka sidrene cijene („Cijena dd.mm.: …”, dodatak ddtech-anchor-price) - ostaje na stranici rezultata i u kategorijama */
.dtg-tr-cijena .ddtech-anchor {
	display: none !important;
}
