/* SM Promobox: stranica proizvoda. Boje se uzimaju iz brenda sajta. */
.smpbx-stranica {
	--sm-akcent: #EA0A1B;
	--sm-tinta: #121212;
	--sm-siva-1: #f5f5f6;
	--sm-siva-2: #e2e4e7;
	--sm-siva-3: #6b7078;
	--sm-r: 6px;
	max-width: 1222px;
	margin: 0 auto;
	padding: 0 15px 40px;
	color: var(--sm-tinta);
}
.smpbx-stranica, .smpbx-stranica *, .smpbx-stranica *::before, .smpbx-stranica *::after { box-sizing: border-box; }
.smpbx-stranica input, .smpbx-stranica select, .smpbx-stranica textarea, .smpbx-stranica button { box-sizing: border-box !important; max-width: 100%; }
.smpbx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.smpbx-putokaz { font-size: 13px; color: var(--sm-siva-3); margin: 14px 0 18px; }
.smpbx-putokaz a { color: var(--sm-siva-3); text-decoration: none; }
.smpbx-putokaz a:hover { color: var(--sm-akcent); }
.smpbx-putokaz span { margin: 0 6px; opacity: .5; }

/* ---------- vrh: galerija i podaci ---------- */
.smpbx-vrh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.smpbx-galerija { position: sticky; top: 110px; }
.smpbx-glavna { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--sm-siva-2); border-radius: var(--sm-r); padding: 24px; background: #fff; }
.smpbx-glavna img { width: 100%; height: 100%; object-fit: contain; }
.smpbx-prazna { display: block; width: 100%; height: 100%; background: var(--sm-siva-1); }
.smpbx-360 { position: absolute; right: 12px; bottom: 12px; padding: 7px 14px; border: 1px solid var(--sm-tinta); border-radius: 4px; background: rgba(255,255,255,.92); color: var(--sm-tinta); font-size: 13px; font-weight: 600; cursor: pointer; }
.smpbx-360:hover { background: var(--sm-tinta); color: #fff; }
.smpbx-slicice { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smpbx-slicice button { padding: 3px; border: 1.5px solid var(--sm-siva-2); border-radius: 4px; background: #fff; cursor: pointer; line-height: 0; }
.smpbx-slicice button[aria-current="true"] { border-color: var(--sm-tinta); }
.smpbx-slicice img { width: 62px; height: 62px; object-fit: contain; }

.smpbx-info h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.smpbx-sifra { margin: 0 0 6px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.smpbx-sep { opacity: .45; margin: 0 2px; }
.smpbx-pod { margin: 0 0 16px; color: #4a4e55; }
.smpbx-cena { margin: 0 0 20px; font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--sm-akcent); }
.smpbx-cena small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--sm-siva-3); }

.smpbx-boje { border: 0; padding: 0; margin: 0 0 18px; }
.smpbx-boje legend { padding: 0; margin-bottom: 10px; font-size: 15px; }
.smpbx-boje ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.smpbx-boje li { display: grid; justify-items: center; gap: 3px; }
.smpbx-boje button { width: 60px; height: 60px; padding: 3px; border: 1.5px solid var(--sm-siva-2); border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.smpbx-boje button img { width: 100%; height: 100%; object-fit: contain; }
.smpbx-boje button:hover { border-color: #9aa0a8; }
.smpbx-boje button[aria-pressed="true"] { border-color: var(--sm-akcent); box-shadow: inset 0 0 0 1px var(--sm-akcent); }
.smpbx-tacka { width: 36px; height: 36px; border-radius: 50%; background: var(--b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.smpbx-boja-zalihe { font-size: 12px; color: var(--sm-siva-3); font-variant-numeric: tabular-nums; }

.smpbx-kockice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.smpbx-kockica { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--sm-siva-1); border-radius: var(--sm-r); color: var(--sm-siva-3); }
.smpbx-kockica span { display: block; font-size: 12px; font-weight: 600; }
.smpbx-kockica strong { display: block; color: var(--sm-tinta); font-size: 18px; font-variant-numeric: tabular-nums; }

.smpbx-forma { padding: 18px; border: 1px solid var(--sm-siva-2); border-radius: var(--sm-r); }
.smpbx-velicine { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.smpbx-velicine th, .smpbx-velicine td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--sm-siva-1); font-size: 15px; }
.smpbx-velicine thead th { font-size: 12px; color: var(--sm-siva-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.smpbx-velicine td:last-child { width: 104px; }
.smpbx-velicine input { width: 96px; padding: 7px 10px; border: 1px solid #c9cdd2; border-radius: 4px; background: #fff; }
.smpbx-velicine tr.smpbx-nula th, .smpbx-velicine tr.smpbx-nula td { color: var(--sm-siva-3); }

.smpbx-kolicina { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 600; }
.smpbx-polje { display: inline-flex; border: 1px solid #c9cdd2; border-radius: var(--sm-r); overflow: hidden; background: #fff; }
.smpbx-polje button { width: 42px; border: 0; background: var(--sm-siva-1); cursor: pointer; font-size: 18px; line-height: 1; color: var(--sm-tinta); }
.smpbx-polje button:hover { background: var(--sm-siva-2); }
.smpbx-polje input { width: 92px; border: 0; text-align: center; padding: 10px 0; -moz-appearance: textfield; font-size: 16px; background: #fff; }
.smpbx-polje input::-webkit-inner-spin-button, .smpbx-polje input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.smpbx-korak { margin: 0 0 12px; font-size: 13px; color: var(--sm-siva-3); }

.smpbx-stranica .smpbx-forma .smpbx-dugme { width: 100%; padding: 15px 20px; border: 0; border-radius: var(--sm-r); background: var(--sm-akcent) !important; color: #fff !important; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none; }
.smpbx-stranica .smpbx-forma .smpbx-dugme:hover { background: #c70816 !important; color: #fff !important; }
.smpbx-stranica .smpbx-forma .smpbx-dugme[disabled] { opacity: .6; cursor: default; }
.smpbx-stranica .smpbx-polje button { background: var(--sm-siva-1) !important; color: var(--sm-tinta) !important; padding: 0; min-width: 0; }
.smpbx-stranica .smpbx-polje button:hover { background: var(--sm-siva-2) !important; }
.smpbx-stranica .smpbx-360 { background: rgba(255,255,255,.92) !important; color: var(--sm-tinta) !important; }
.smpbx-stranica .smpbx-360:hover { background: var(--sm-tinta) !important; color: #fff !important; }
.smpbx-poruka { margin: 10px 0 0; font-size: 14px; }
.smpbx-poruka:empty { margin: 0; }
.smpbx-poruka.smpbx-ok { color: #1e7a32; }
.smpbx-poruka.smpbx-err { color: var(--sm-akcent); }
.smpbx-poruka a { color: inherit; font-weight: 600; text-decoration: underline; }

.smpbx-tehnike { margin-top: 18px; }
.smpbx-tehnike > p { margin: 0 0 8px; font-size: 14px; color: var(--sm-siva-3); }
.smpbx-tehnike ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.smpbx-tehnike li { padding: 4px 10px; background: var(--sm-siva-1); border: 1px solid var(--sm-siva-2); border-radius: 4px; font-size: 14px; font-weight: 500; }
.smpbx-napomena { margin: 10px 0 0; font-size: 13px; color: var(--sm-siva-3); }

/* ---------- detalji ---------- */
.smpbx-detalji { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--sm-siva-2); margin-top: 32px; align-items: start; }
.smpbx-blok { padding: 26px 0 0; }
.smpbx-blok h2 { font-size: 20px; margin: 0 0 14px; }
.smpbx-tekst { color: #3f444b; }
.smpbx-tekst p { margin: 0 0 10px; }
.smpbx-specifikacije { width: 100%; border-collapse: collapse; }
.smpbx-specifikacije th, .smpbx-specifikacije td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--sm-siva-1); vertical-align: top; font-size: 15px; }
.smpbx-specifikacije th { width: 42%; color: var(--sm-siva-3); font-weight: 500; padding-right: 16px; }
.smpbx-crtez { margin: 0; border: 1px solid var(--sm-siva-2); border-radius: var(--sm-r); padding: 16px; background: #fff; }
.smpbx-crtez img { width: 100%; height: auto; display: block; }

/* ---------- upit i slični ---------- */
.smpbx-upit { margin-top: 36px; padding: 28px clamp(18px, 3vw, 32px); background: var(--sm-siva-1); border-radius: var(--sm-r); }
.smpbx-upit h2 { margin: 0 0 8px; font-size: 22px; }
.smpbx-upit > p { margin: 0 0 18px; color: #3f444b; max-width: 70ch; }

.smpbx-slicni { margin-top: 40px; }
.smpbx-slicni h2 { font-size: 22px; margin: 0 0 16px; }
.smpbx-mreza { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.smpbx-kartica { display: block; text-decoration: none; color: inherit; border: 1px solid var(--sm-siva-2); border-radius: var(--sm-r); padding: 12px; background: #fff; }
.smpbx-kartica:hover { border-color: var(--sm-akcent); }
.smpbx-kartica-slika { display: block; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.smpbx-kartica-slika img { width: 100%; height: 100%; object-fit: contain; }
.smpbx-kartica-naziv { display: block; font-weight: 600; font-size: 15px; }
.smpbx-kartica-cena { display: block; margin-top: 4px; font-size: 14px; color: var(--sm-siva-3); }

/* ---------- 360 ---------- */
.smpbx-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.smpbx-modal-in { position: relative; width: min(900px, 100%); aspect-ratio: 1; max-height: 90vh; background: #fff; }
.smpbx-modal iframe { width: 100%; height: 100%; border: 0; }
.smpbx-modal-x { position: absolute; top: -38px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 1024px) {
	.smpbx-mreza { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.smpbx-vrh { grid-template-columns: 1fr; }
	.smpbx-galerija { position: static; }
	.smpbx-detalji { grid-template-columns: 1fr; }
	.smpbx-kockice { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.smpbx-velicine .smpbx-v-cena { display: none; }
	.smpbx-boje button { width: 52px; height: 52px; }
	.smpbx-velicine td:last-child { width: 82px; }
	.smpbx-velicine input { width: 76px; }
}
