/* =========================================================
   DELTAMETAL d.o.o. – style.css
   ========================================================= */

:root {
  --navy: #29265e;          /* topbar, gumbi, kartice usluga, footer */
  --navy-text: #29265e;     /* naslovi */
  --band-text: #0a3b71;     /* tekst u traci "nudi rješenja..." */
  --bg: #e1e1e1;            /* glavna pozadina */
  --bg-2: #dedede;          /* pozadina sekcije Ponuda */
  --grey: #cbcccc;          /* nav traka, traka, "+" gumbi */
  --text: #1d1d1d;
  --muted: #8a8a8a;
  --white: #ffffff;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --container: 1170px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}
.wide-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  height: 40px;
  margin-left: 29%;
  background: var(--navy);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc((100vw - var(--container)) / 2 + 15px);
}
.topbar__social { display: flex; gap: 24px; }
.topbar__social a { display: inline-flex; }
.topbar__social svg {
  width: 13px; height: 13px;
  fill: var(--white);
  transition: opacity .2s;
}
.topbar__social a:hover svg { opacity: .7; }

/* ---------------- HEADER ---------------- */
.header { position: relative; z-index: 20; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 27px;
  padding-bottom: 30px;
}
.header__logo img { width: 360px; height: auto; }

.header__info { display: flex; gap: 26px; }
.info-item { display: flex; align-items: center; gap: 22px; }
.info-item__icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border: 1px solid #cfcfcf;
  display: flex; align-items: center; justify-content: center;
}
.info-item__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: #c4c4c4; stroke-width: 1.2;
  stroke-linejoin: round; stroke-linecap: round;
}
.info-item__title { font-size: 15px; color: #222; line-height: 1.4; }
.info-item__sub { font-size: 13px; color: var(--navy); line-height: 1.4; }
.info-item__sub--muted { color: var(--muted); }
a.info-item__sub:hover { text-decoration: underline; }

/* NAV */
.nav-wrap {
  display: flex;
  height: 66px;
  position: relative;
}
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--grey);
  padding: 0 15px;
}
.nav__menu { display: flex; align-items: center; height: 100%; }
.nav__menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav__menu > li > a {
  display: flex; align-items: center;
  height: 100%;
  padding: 0 15px;
  font-size: 16px;
  letter-spacing: .6px;
  color: #3b3b3b;
  position: relative;
  transition: color .2s;
}
.nav__menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__menu > li > a.active,
.nav__menu > li > a:hover { color: var(--navy); }
.nav__menu > li > a.active::after,
.nav__menu > li:hover > a::after { transform: scaleX(1); }

/* strelica podizbornika */
.has-sub > a { padding-right: 6px !important; }
.sub-toggle {
  border: 0; background: none; cursor: pointer;
  width: 22px; height: 22px; padding: 0; margin-right: 8px;
  position: relative;
}
.sub-toggle::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -30%);
  border: 4px solid transparent;
  border-top: 5px solid #3b3b3b;
}

.sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 250px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 50;
}
.has-sub:hover > .sub,
.has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub li a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background .2s, color .2s;
}
.sub li a:hover { background: var(--navy); color: var(--white); }

.nav__search {
  margin-left: auto;
  margin-right: 40px;
  background: none; border: 0; cursor: pointer;
  padding: 6px;
}
.nav__search svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--navy); stroke-width: 2.8; stroke-linecap: round;
}

.btn-inquiry {
  width: 195px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  transition: background .2s;
}
.btn-inquiry:hover { background: #3a3680; }

.nav__toggle { display: none; }

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(41, 38, 94, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
  z-index: 1000;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay__form { display: flex; width: min(700px, 90%); }
.search-overlay__form input {
  flex: 1;
  font: inherit; font-size: 22px;
  padding: 14px 18px;
  border: 0; background: var(--white);
}
.search-overlay__form button {
  font: inherit; border: 0; cursor: pointer;
  padding: 0 28px;
  background: var(--grey); color: var(--navy); font-weight: 500;
}
.search-overlay__close {
  position: absolute; top: 20px; right: 30px;
  background: none; border: 0; color: var(--white);
  font-size: 50px; cursor: pointer; line-height: 1;
}

/* ---------------- HERO ---------------- */
.hero {
  margin-top: -36px;          /* slika ide ispod nav trake kao u originalu */
  position: relative;
  z-index: 1;
}
.hero img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

/* ---------------- NASLOVI SEKCIJA ---------------- */
.section { padding: 40px 0 70px; }
.section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  color: var(--navy-text);
  line-height: 1.2;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 22px;
}
.section-title::before,
.section-title::after {
  content: "";
  position: absolute; left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: var(--navy);
}
.section-title::before { bottom: 5px; width: 50px; }
.section-title::after  { bottom: 0;   width: 26px; }

/* ---------------- PONUDA ---------------- */
.ponuda { background: var(--bg-2); padding-bottom: 75px; }
.ponuda__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 30px;
}
.ponuda-card {
  background: var(--bg);
  border-radius: 40px;
  min-height: 248px;
  display: flex; flex-direction: column; align-items: center;
  padding: 45px 20px 30px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.ponuda-card img { height: 75px; width: auto; margin-bottom: 26px; }
.ponuda-card span {
  font-size: 19px;
  font-weight: 500;
  color: var(--navy-text);
}
.ponuda-card:hover { box-shadow: 0 10px 30px rgba(41,38,94,.15); transform: translateY(-3px); }

/* ---------------- BAND ---------------- */
.band {
  background: var(--grey);
  padding: 58px 20px;
  text-align: center;
}
.band p {
  font-size: 28px;
  font-weight: 500;
  color: var(--band-text);
  line-height: 1.3;
}

/* ---------------- USLUGE ---------------- */
.usluge { padding-top: 30px; padding-bottom: 80px; }
.usluge__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}
.usluga {
  background: var(--navy);
  color: var(--white);
  min-height: 540px;
  padding: 35px 10px 45px;
  display: flex; flex-direction: column;
}
.usluga__icon { height: 70px; width: auto; align-self: flex-start; margin-bottom: 55px; }
.usluga h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 70px;
}
.usluga p {
  font-size: 15px;
  line-height: 2;
}
.usluga__plus {
  margin-top: auto;
  width: 50px; height: 50px;
  background: var(--grey);
  color: var(--white);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.usluga__plus:hover { background: var(--white); color: var(--navy); }

.dots {
  position: absolute;
  left: 295px; bottom: -40px;
  width: 105px; height: 70px;
  background-image: radial-gradient(#222 1.3px, transparent 1.4px);
  background-size: 12px 12px;
  z-index: 1;
}

/* ---------------- O NAMA ---------------- */
.about {
  display: grid;
  grid-template-columns: 702px 1fr;
  gap: 60px;
  align-items: start;
  padding: 0 60px 30px 0;
}
.about__img img { width: 100%; height: auto; }
.about__text { padding: 25px 0 0 167px; max-width: 1040px; }
.about__hatch {
  display: block;
  width: 110px; height: 10px;
  margin-bottom: 18px;
  background: repeating-linear-gradient(115deg, #777 0 1px, transparent 1px 5px);
}
.about__text h2 {
  font-size: 44px;
  font-weight: 400;
  color: #111;
  line-height: 1.1;
  margin-bottom: 30px;
}
.about__text p { font-size: 16px; line-height: 1.9; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 40px;
}
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 48px; line-height: 1.1; color: #222; }
.stat__label { font-size: 16px; color: #222; margin-top: 8px; }
.stat--inline { flex-direction: row; align-items: baseline; gap: 14px; }
.stat--inline .stat__label { margin-top: 0; }

.btn-light {
  display: inline-block;
  padding: 16px 30px;
  background: var(--grey);
  color: var(--white);
  font-size: 15px;
  transition: background .2s;
}
.btn-light:hover { background: var(--navy); }

/* ---------------- EU ---------------- */
.eu { text-align: center; padding: 20px 20px 55px; }
.eu__logos {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
.eu__logos img { height: 66px; width: auto; }
.eu p { font-size: 15px; color: #222; }

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer__col h4 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 36px;
}
.footer__col p { font-size: 15px; line-height: 2; margin-bottom: 14px; }
.footer__strong { font-weight: 600; text-decoration: underline; }
.footer__list li { font-size: 15px; margin-bottom: 18px; }
.footer__list a:hover,
.footer__menu a:hover { text-decoration: underline; }

.footer__menu li { margin-bottom: 11px; }
.footer__menu a {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.footer__logo { box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.footer__logo--minpo { width: 200px; margin: 0 0 30px 30px; }
.footer__logo--hamag { width: 200px; margin: 60px 0 0 30px; }
.footer__logo--ngeu  { width: 262px; margin-top: 65px; }

.footer__bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 13px;
}
.footer__bottom-right { text-align: right; }
.footer__bottom-right ul { display: flex; justify-content: flex-end; gap: 30px; margin-bottom: 14px; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------------- NA VRH + COOKIE ---------------- */
.to-top {
  position: fixed; right: 32px; bottom: 30px;
  width: 70px; height: 50px;
  background: var(--grey);
  color: var(--white);
  border: 0; cursor: pointer;
  font: inherit; font-size: 14px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, background .2s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy); }

.cookie-btn {
  position: fixed; left: 18px; bottom: 18px;
  width: 54px; height: 54px;
  background: none; border: 0; padding: 0; cursor: pointer;
  z-index: 90;
}
.cookie-btn svg { width: 100%; height: 100%; fill: #3d4a66; }
.cookie-panel {
  position: fixed; left: 18px; bottom: 84px;
  width: min(360px, calc(100% - 36px));
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  font-size: 14px;
  z-index: 91;
}
.cookie-panel a { color: var(--navy); text-decoration: underline; }
.cookie-panel__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-panel__actions button {
  font: inherit; font-size: 14px; border: 0; cursor: pointer;
  padding: 9px 18px;
}
.cookie-accept { background: var(--navy); color: var(--white); }
.cookie-decline { background: var(--grey); color: var(--navy); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1700px) {
  .about { grid-template-columns: 45% 1fr; }
  .about__text { padding-left: 40px; }
}

@media (max-width: 1400px) {
  .usluge__grid { grid-template-columns: repeat(3, 1fr); }
  .dots { display: none; }
}

@media (max-width: 1199px) {
  .header__inner { flex-direction: column; align-items: flex-start; }
  .header__info { flex-wrap: wrap; }
  .nav__menu > li > a { padding: 0 10px; font-size: 15px; }
  .nav__search { margin-right: 10px; }
  .ponuda__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; padding: 0 0 30px; }
  .about__text { padding: 0 30px; }
}

@media (max-width: 991px) {
  .topbar { margin-left: 0; clip-path: none; padding-right: 15px; }
  .header__logo img { width: 280px; }

  .nav-wrap { height: 60px; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 3px; background: var(--navy); }
  .nav__menu {
    position: absolute; top: 100%; left: 15px; right: 15px;
    flex-direction: column; align-items: stretch;
    height: auto;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu > li { height: auto; flex-wrap: wrap; border-bottom: 1px solid #eee; }
  .nav__menu > li > a { flex: 1; padding: 14px 20px; }
  .nav__menu > li > a::after { display: none; }
  .sub-toggle { width: 50px; height: 50px; margin: 0; }
  .sub {
    position: static; width: 100%;
    box-shadow: none; transform: none;
    display: none; opacity: 1; visibility: visible;
    background: #f5f5f5;
  }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .sub li a { padding-left: 35px; }

  .btn-inquiry { width: 160px; font-size: 15px; }

  .hero { margin-top: 0; }
  .hero img { height: 420px; }

  .usluge__grid { grid-template-columns: repeat(2, 1fr); }
  .usluga { min-height: 0; }
  .usluga h3, .usluga__icon { margin-bottom: 30px; }
  .usluga p { margin-bottom: 30px; }

  .section-title { font-size: 38px; }
  .band p { font-size: 22px; }
}

@media (max-width: 600px) {
  .header__info { flex-direction: column; gap: 14px; }
  .btn-inquiry { width: 120px; font-size: 13px; text-align: center; }
  .hero img { height: 260px; }
  .wide-container { padding: 0 15px; }
  .ponuda__grid, .usluge__grid, .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat--inline { flex-direction: column; gap: 0; }
  .about__text h2 { font-size: 34px; }
  .eu__logos { flex-wrap: wrap; }
  .eu__logos img { height: 50px; }
  .footer__logo--minpo, .footer__logo--hamag { margin-left: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__bottom-right { text-align: left; }
  .footer__bottom-right ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* === GRAĐEVINSKA LIMARIJA (kategorija proizvoda) === */
/* Stranice kategorija na originalu imaju bijelu pozadinu */
body.page-white { background: var(--white); }

/* Banner s naslovom i breadcrumbom (ide ispod nav trake kao .hero) */
.page-banner {
  margin-top: -36px;
  position: relative;
  z-index: 1;
  padding: 80px 0 50px;
  background: #848484 url("../images/page-banner.f7c51f21b72f.jpg") no-repeat 0 0 / cover;
  text-align: center;
  color: var(--white);
}
.page-banner__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; justify-content: center;
  padding: 8px 15px 0;
  font-size: 14px;
  line-height: 26px;
}
/* separator "/" ide uz prethodnu stavku – kod prijeloma reda ostaje na kraju retka, kao na originalu */
.breadcrumb li:not(:last-child)::after {
  content: "/";
  padding: 0 7px 0 6px;
  color: rgba(255,255,255,.55);
}
.breadcrumb a { color: var(--white); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .75; }

/* Naslov kategorije */
.category { padding: 40px 0 122px; }
.category__title {
  margin: 20px 0 10px;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: #303030;
}

/* Alatna traka: prikaz / redoslijed / rezultati / broj po stranici */
.category-toolbar {
  display: flex; align-items: center; flex-wrap: wrap;
  min-height: 58px;
  margin-bottom: 40px;
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid #ebebeb;
  font-size: 13px;
  font-weight: 300;
  color: #444;
}
.category-toolbar__views { flex: 0 0 41.666%; display: flex; }
.view-btn {
  background: none; border: 0; padding: 0; margin: 8px 5px; cursor: pointer;
  line-height: 0;
}
.view-btn svg { width: 24px; height: 20px; fill: #000; transition: fill .3s; }
.view-btn.active svg,
.view-btn:hover svg { fill: #1d1850; }

.category-toolbar__right { flex: 1; display: flex; align-items: center; flex-wrap: wrap; }
.orderlist-wrap { display: flex; align-items: center; position: relative; }
.orderlist-wrap__title { padding: 0 10px; line-height: 40px; }
.active-order { position: relative; display: flex; align-items: center; }
.active-order__dir,
.active-order__toggle {
  font: inherit; color: #444; background: none; border: 0; cursor: pointer;
}
.active-order__dir { height: 40px; padding: 0 15px; white-space: pre; }
.active-order__dir:hover { color: var(--navy); }
.active-order__toggle { width: 32px; height: 40px; position: relative; }
.active-order__toggle::after {
  content: "";
  position: absolute; left: 50%; top: 14px;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top: 5px solid #444;
}
.orderlist {
  position: absolute; top: 40px; left: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid #cac9c9;
  z-index: 30;
  display: none;
}
.orderlist-wrap:hover .orderlist,
.orderlist.open { display: block; }
.orderlist button {
  display: block; width: 100%;
  padding: 2px 12px 1px;
  font: inherit; font-size: 12px; text-align: left;
  color: #404040; background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.orderlist button:hover { color: #eee; background: #cac9c9; }

.category-toolbar__counter { margin-left: auto; padding: 6px 5px; }
.category-toolbar__limit {
  -webkit-appearance: none; appearance: none;
  font: inherit; color: #444;
  border: 0; background: none;
  padding: 6px 5px 6px 25px;
  cursor: pointer;
}

/* Mreža proizvoda */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.product-card { padding: 0 15px; margin-bottom: 78px; }
.product-card[hidden] { display: none; }
.product-card__media { display: inline-block; vertical-align: top; }
.product-card__media img {
  height: 180px; width: auto;
  border: 1px solid #f7f7f7;
}
.product-card__title {
  margin-top: 48px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}
.product-card__title a { display: block; padding: 10px 0; color: #000; transition: color .2s; }
.product-card__title a:hover { color: #1e1850; }

/* Prikaz u popisu */
.product-grid.is-list { grid-template-columns: 1fr; text-align: left; }
.product-grid.is-list .product-card {
  display: flex; align-items: center; gap: 30px;
  margin-bottom: 30px;
}
.product-grid.is-list .product-card__title { margin-top: 0; }

/* Paginacija (kad ima više proizvoda od odabranog broja po stranici) – izgled kao na originalu */
.pagination { margin: -2px 0 -19px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; padding-left: 40px; }
.pagination li > * {
  display: block;
  min-width: 40px;
  padding: 7px 4px;
  margin-left: -1px;
  font: inherit; font-size: 16px; line-height: 25px; text-align: center;
  background: #fafafa;
  border: 1px solid #aaa;
  color: #555;
}
.pagination li > span { border-color: #c7c7c7; color: #acacac; position: relative; z-index: 0; }
.pagination li > button { cursor: pointer; position: relative; z-index: 1; transition: background .2s, color .2s; }
.pagination li > button:hover { background: var(--navy); color: var(--white); }
.pagination__counter { display: block; margin-top: 13px; text-align: right; font-size: 16px; color: #212121; }

@media (max-width: 991px) {
  .page-banner { margin-top: 0; padding: 17px; }
  .page-banner__title { font-size: 18px; line-height: 3; }
  .breadcrumb { padding-top: 0; }
  .category-toolbar__views { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .page-banner { padding: 20px; }
  .page-banner__title { font-size: 16px; line-height: 1.6; }
  .breadcrumb { font-size: 12px; margin-top: 10px; }
  .category__title { font-size: 28px; }
  .category-toolbar { padding: 8px 15px; }
  .category-toolbar__right { flex-direction: column; align-items: flex-start; }
  .orderlist-wrap__title { padding-left: 5px; }
  .category-toolbar__counter { margin-left: 0; }
  .category-toolbar__limit { padding-left: 5px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { padding: 0 8px; margin-bottom: 40px; }
  .product-card__media img { height: auto; width: 100%; }
  .product-card__title { margin-top: 15px; line-height: 1.6; }
  .product-grid.is-list .product-card { gap: 15px; }
  .product-grid.is-list .product-card__media { flex: 0 0 45%; }
}

/* === LOPATE ZA SNIJEG === */
/* Opis kategorije iznad naslova (VirtueMart "category_description") */
.category__desc { text-align: center; font-size: 16px; color: #222; }
.category__desc p { margin-bottom: 14px; }

/* === SNJEGOBRANI === */
/* Opis kategorije poravnat lijevo, s popisom (original: inline text-align:left) */
.category__desc { line-height: 30px; }
.category__desc--left { text-align: left; }
.category__desc ul { list-style: disc; padding-left: 40px; margin-bottom: 10px; }

/* === PROIZVODI (popis svih proizvoda) === */
/* Stranica koristi predložak kategorije; ovdje samo prilagodba paginacije za mobitel */
@media (max-width: 600px) {
  .pagination ul { padding-left: 0; }
  .pagination__counter { text-align: center; }
}

/* === METALNE KUTIJE I ORMARI (popis podkategorija) === */
.category--subcats { padding: 40px 0 124px; }
.subcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.subcat {
  display: block;
  padding: 0 18.75px 18.75px;
  margin-bottom: 20px;
  text-align: center;
  color: #3a3a3a;
}
.subcat__media {
  display: block;
  height: 180px;
  background: #f7f7f7;
  overflow: hidden;
}
.subcat__media img {
  display: inline-block;
  height: 180px; width: auto; max-width: 100%;
  object-fit: contain;
  transition: transform 2s cubic-bezier(0, 0, 0.44, 1.18);
}
.subcat__media img:hover { transform: scale(1.2); }
.subcat__title {
  margin: 20px 0 10px;
  font-family: "Josefin Sans", var(--font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #3a3a3a;
  text-shadow: 2px 2px 10px #fff;
}
/* podcrta koja se "razvuče" pri prelasku mišem */
.subcat__title span { display: inline-block; position: relative; }
.subcat__title span::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: #000;
  transition: width 1s cubic-bezier(0.19, 1, 0.22, 1) .1s;
}
.subcat:hover .subcat__title span::after { width: 100%; }

@media (max-width: 991px) {
  .subcat__media { height: auto; aspect-ratio: 4 / 3; max-height: 180px; }
  .subcat__media img { height: 100%; }
  .subcat__title span::after { display: none; }
}

@media (max-width: 600px) {
  .subcat-grid { grid-template-columns: 1fr; }
  .subcat__media { aspect-ratio: auto; height: 180px; }
}

/* === ELEKTROSTATSKO PLASTIFICIRANJE (stranica usluge / članak) === */
.article-page { padding: 40px 0 100px; }
.content-links { border-bottom: 1px solid #ddd; }
.content-links a {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  line-height: 24px;
  color: #1e1850;
  overflow-wrap: anywhere;   /* dugi URL ne smije širiti stranicu na mobitelu */
  transition: background .2s;
}
.content-links a:hover { background: #eee; }
.article__body { font-size: 16px; line-height: 1.9; color: #212121; }
.article__body p { margin-bottom: 13px; }
.article__body ul { list-style: disc; padding-left: 40px; margin-bottom: 10px; }
.article__body strong { font-weight: 600; }
.article__thumb { display: block; width: max-content; max-width: 100%; margin: 0 auto; }
.article__thumb img { display: block; max-width: 100%; height: auto; }

/* Lightbox (povećanje slike na klik, kao Lightbox2 na originalu) */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 50px 20px 20px;   /* kao Lightbox2: slika uz vrh ekrana, ne u sredini */
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__frame { background: var(--white); padding: 4px; border-radius: 3px; max-width: 100%; }
.lightbox__frame img { max-width: calc(100vw - 48px); max-height: calc(100vh - 120px); width: auto; height: auto; }
.lightbox__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: 100%; max-width: var(--lb-w, 900px);
  padding-top: 8px;
  color: #ccc; font-size: 13px;
}
.lightbox__caption { color: #fff; font-weight: 600; }
.lightbox__close {
  background: none; border: 0; cursor: pointer; padding: 0;
  width: 30px; height: 30px; opacity: .7;
}
.lightbox__close svg { width: 100%; height: 100%; stroke: #fff; stroke-width: 2; }
.lightbox__close:hover { opacity: 1; }

@media (max-width: 600px) {
  .article__body ul { padding-left: 25px; }
}

/* === PROBIJANJE I ŠTANCANJE LIMOVA === */
/* Slike unutar teksta članka (inline, poravnate po sredini retka kao na originalu) */
.article__body p > img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
.article__body .text-center { text-align: center; }
.article__body a { color: #1e1850; transition: color .2s; }
.article__body a:hover { color: #2e257a; }

/* === REZANJE LIMOVA === */
/* Razdjelnici i slike poravnate lijevo uz tekst (kao <hr> i float:left na originalu) */
.article__body hr { margin: 20px 0; border: 0; border-top: 1px solid #f1f2f7; }
.article__body img.article__img-left { display: block; float: left; margin-right: 10px; max-width: 100%; height: auto; }
.article__body::after { content: ""; display: table; clear: both; }

@media (max-width: 600px) {
  .article__body img.article__img-left { float: none; margin: 0; }
}

/* === SAVIJANJE LIMOVA === */
.article__h4 { margin: 10px 0; font-size: 20px; line-height: 22px; color: #303030; }
.article__h4 img,
.article__thumb-inline img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
.article__lead { font-size: 24px; color: #000; }          /* 18pt naslov na originalu */
.article__new { font-size: 24px; color: #ff0000; }        /* crveni "NOVO!!!" natpis */

/* Lightbox galerija: strelice preko lijeve/desne polovice slike (kao Lightbox2) */
.lightbox__frame { position: relative; }
.lightbox__nav {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: none; border: 0; cursor: pointer;
  opacity: 0; transition: opacity .3s;
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__nav:hover,
.lightbox__nav:focus-visible { opacity: 1; }
.lightbox__nav::before {
  content: "";
  position: absolute; top: 50%;
  width: 22px; height: 22px;
  border: solid #fff; border-width: 0 4px 4px 0;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.6));
}
.lightbox__nav--prev::before { left: 25px; transform: translateY(-50%) rotate(135deg); }
.lightbox__nav--next::before { right: 25px; transform: translateY(-50%) rotate(-45deg); }
.lightbox__nav[hidden] { display: none; }

/* === STROJNI PARK === */
/* Slike s float:left bez razmaka (raspored na originalu određuju prazni odlomci ispod) */
.article__body img.article__img-float { display: block; float: left; max-width: 100%; height: auto; }
.article__body sub { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; bottom: -.25em; }


/* === VOZNI PARK === */
.article__lead-sm { font-size: 18.67px; }                 /* 14pt naslov na originalu */
.article__body .text-justify { text-align: justify; }

/* === O NAMA === */
.about-intro { padding-top: 90px; font-size: 16px; line-height: 1.9; }
.about-intro p { margin-bottom: 13px; }
.about-intro .text-center { text-align: center; }
.about-intro__title { text-align: center; font-size: 32px; line-height: 1.9; color: #003366; padding: 0 43px; }
.about-intro__title strong { font-weight: 700; }
.about-intro__img {
  display: inline-block; max-width: 100%; height: auto;
  box-shadow: 0 2px 2px rgba(0,0,0,.06), 0 4px 4px rgba(0,0,0,.06), 0 8px 8px rgba(0,0,0,.06),
              0 16px 16px rgba(0,0,0,.06), 0 32px 32px rgba(0,0,0,.06);
}
.article-page--about { padding: 91px 0 46px; }

/* Galerija sličica (bijeli okvir + sjena kao na originalu) */
.article__body .gallery { display: flex; flex-wrap: wrap; list-style: none; padding: 8px 0; margin: 8px 0; }
.gallery li { margin: 5px; padding: 0 5px 5px 0; }
.gallery a {
  display: block;
  margin: -5px 0 0 -5px;
  padding: 4px;
  background: var(--white);
  border: 1px solid #ccc;
  box-shadow: 3px 3px 5px #888;
}
.gallery img { display: block; width: 360px; height: 280px; object-fit: none; object-position: 50% 50%; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

/* Siva traka ispod članka */
.info-band { background: #c0c0c0; padding: 60px 0; font-size: 16px; line-height: 1.9; color: #212121; }
.info-band__inner { display: grid; grid-template-columns: 1fr 1fr; }
.info-band__title { padding: 0 15px; margin: 20px 0 10px; font-size: 24px; font-weight: 700; line-height: 1.1; color: #303030; }
.info-band__text { padding: 0 15px; }
.info-band + .eu { padding-top: 80px; }   /* razmak traka → EU logotipi kao na originalu */

@media (max-width: 1199px) {
  .gallery img { width: 100%; max-width: 360px; }
}
@media (max-width: 991px) {
  .about-intro { padding-top: 50px; }
  .about-intro__title { padding: 0; }
}
@media (max-width: 600px) {
  .info-band__inner { grid-template-columns: 1fr; }
  .gallery li { width: 100%; }
  .gallery img { max-width: none; }
}

/* === KONTAKT === */
/* 3 kartice s ikonama */
.contact-cards { padding-top: 60px; font-size: 16px; line-height: 1.9; color: #212121; }
.contact-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.contact-card {
  padding: 30px;
  margin-bottom: 30px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(27, 25, 42, .1);
  text-align: center;
}
.contact-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin: 0 auto 25px;   /* 15px + 10px (h6) – na originalu inline-block, margine se ne spajaju */
  border-radius: 50%;
  background: #1d1850;
}
.contact-card__icon svg { width: 25px; height: 25px; fill: var(--white); }
.contact-card h6 { margin: 10px 0; font-size: 19px; font-weight: 700; line-height: 1.1; color: #303030; }
.contact-card > span:last-child { display: block; }
.contact-card a { text-decoration: underline; }
.contact-card a:hover { color: var(--navy); }

/* Kontakt obrazac */
.contact-page { padding: 60px 0 49px; font-size: 16px; line-height: 1.9; color: #212121; }
.contact-form__title {
  margin: 20px 0; padding: 15px 0;
  font-size: 14px; font-weight: 700; line-height: 1; text-transform: uppercase; color: #666;
  border-bottom: 1px solid #eee;
}
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 20px; font-size: 14px; line-height: 1.9; color: #666; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 700; color: #4f5861; }
.contact-form .star { color: #dd4b39; }
.contact-form input,
.contact-form textarea {
  display: block; width: 100%;
  padding: 6px 12px;
  font: inherit; font-size: 14px; line-height: 20px; color: #4f5861;
  background: var(--white);
  border: 1px solid #f1f2f7; border-radius: 0;
  transition: border-color .2s;
}
.contact-form input { height: 34px; }
.contact-form textarea { height: 214px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form__captcha { min-height: 78px; }
.contact-form__actions { width: calc(41.667% + 15px); margin-left: -15px; padding: 0 15px; text-align: right; }
.contact-form button {
  padding: 6px 12px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.43;
  color: var(--white); background: #1e1850;
  border: 2px solid #1e1850; border-radius: 3px;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.contact-form button:hover { background: #3a3680; border-color: #3a3680; }

/* Kontakt podaci (osobe) */
.contact-misc h4 { margin: 10px 0; padding-top: 40px; text-align: center; font-size: 20px; font-weight: 700; line-height: 1.1; color: #303030; }
.contact-misc__body p { margin-bottom: 13px; }
.contact-misc__body .text-center,
.contact-misc__heading { text-align: center; }
.contact-misc__heading { clear: both; width: 100%; }
.contact-misc__body a { color: #1e1850; }
.contact-misc__body a:hover { color: #2e257a; }
.contact-misc__body strong { font-weight: 700; }
.contact-misc__body ul { list-style: disc; padding-left: 40px; margin-bottom: 10px; }
.contact-person { float: left; width: 50%; padding: 0 15px; }
.contact-person table { border-collapse: collapse; line-height: 1.428571; }
.contact-person td { padding: 0; }
.contact-person img { display: block; max-width: 100%; height: auto; }
.contact-misc__body::after { content: ""; display: table; clear: both; }

/* Karta */
.map-section { background: #f8f8f9; padding: 30px 0; }
.map-section__map { display: block; width: 100%; height: 400px; border: 0; }
.map-section + .eu { padding-top: 73px; }   /* razmak karta → EU logotipi kao na originalu */

@media (max-width: 1199px) {
  .contact-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .contact-person { float: none; width: 100%; }
}
@media (max-width: 600px) {
  .contact-cards__grid,
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__actions { width: auto; margin-left: 0; padding: 0; text-align: left; }
  .contact-person table { width: 100%; }
}

/* === IZBORNIK: širina podizbornika === */
/* Original ima podizbornike široke 300px (dugi nazivi usluga, npr. "Elektrostatsko plastificiranje metala") */
@media (min-width: 992px) {
  .sub { min-width: 300px; }
}
