/**
 * Visual Builder PoC — shop FE utilities for widget HTML (#box_wrapper).
 * Faza 9 (D4): legacy ls/ds/cs boje + vb-grid-section spacing/background.
 * Pairs with builder-content.js (scroll reveal + contained section parallax).
 */

/* --- Avoid .main-layout default section padding on builder sections --- */
.main-layout > section.vb-grid-section,
.main-layout > section.page_topline {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* --- Section background (grid-section) --- */
.vb-section-bg {
  background-image: var(--vb-section-bg);
}

.vb-bg-cover,
.vb-section-bg.vb-bg-cover {
  background-size: cover;
}

.vb-bg-contain {
  background-size: contain;
}

.vb-bg-stretch-x {
  background-size: 100% auto;
}

.vb-bg-no-repeat {
  background-repeat: no-repeat;
}

.vb-bg-repeat {
  background-repeat: repeat;
}

.vb-bg-repeat-x {
  background-repeat: repeat-x;
}

.vb-bg-center {
  background-position: center center;
}

.vb-bg-top {
  background-position: center top;
}

.vb-bg-bottom {
  background-position: center bottom;
}

.vb-grid-section.vb-section-bg,
section.vb-section-bg,
.vb-grid-section,
.page_topline.vb-grid-section {
  position: relative;
  isolation: isolate;
}

/* --- Parallax (contained — no background-attachment:fixed bleed into sections above) --- */
.vb-grid-section.vb-parallax.vb-section-bg,
.vb-section-bg.vb-parallax {
  background-image: none !important;
  overflow: hidden;
}

.vb-grid-section.vb-parallax.vb-section-bg::before,
.vb-section-bg.vb-parallax::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  z-index: 0;
  pointer-events: none;
  background-image: var(--vb-section-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  will-change: transform;
  transform: translate3d(0, var(--vb-parallax-y, 0), 0);
}

.vb-grid-section.vb-parallax > .container,
.vb-grid-section.vb-parallax > .container-fluid,
.vb-section-bg.vb-parallax > .container,
.vb-section-bg.vb-parallax > .container-fluid {
  position: relative;
  z-index: 1;
}

/* Legacy parallax: background on section (no CSS variable / ::before) */
.vb-section-bg.parallax,
.vb-grid-section.vb-parallax:not(.vb-section-bg),
section.vb-parallax:not(.vb-section-bg),
.parallax:not(.vb-section-bg) {
  overflow: hidden;
  background-attachment: scroll !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 767px) {
  .vb-grid-section.vb-parallax.vb-section-bg::before,
  .vb-section-bg.vb-parallax::before {
    top: 0;
    height: 100%;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-grid-section.vb-parallax.vb-section-bg::before,
  .vb-section-bg.vb-parallax::before {
    top: 0;
    height: 100%;
    transform: none;
  }
}

/* --- Shop D4 legacy section colors (grid-section + page_topline shell) --- */
.vb-grid-section.ls,
.page_topline.ls {
  background-color: #ffffff;
  color: #868686;
}

.vb-grid-section.ls h1,
.vb-grid-section.ls h2,
.vb-grid-section.ls h3,
.vb-grid-section.ls h4,
.vb-grid-section.ls h5,
.vb-grid-section.ls h6,
.page_topline.ls h1,
.page_topline.ls h2,
.page_topline.ls h3,
.page_topline.ls h4,
.page_topline.ls h5,
.page_topline.ls h6 {
  color: #343434;
}

.vb-grid-section.ls.ms,
.page_topline.ls.ms {
  background-color: #f5f5f5;
}

.vb-grid-section.ds,
.page_topline.ds {
  background-color: #343434;
  color: #b9b9b9;
}

.vb-grid-section.ds h1,
.vb-grid-section.ds h2,
.vb-grid-section.ds h3,
.vb-grid-section.ds h4,
.vb-grid-section.ds h5,
.vb-grid-section.ds h6,
.page_topline.ds h1,
.page_topline.ds h2,
.page_topline.ds h3,
.page_topline.ds h4,
.page_topline.ds h5,
.page_topline.ds h6 {
  color: #ffffff;
}

.vb-grid-section.ds.ms,
.page_topline.ds.ms {
  background-color: #232323;
}

.vb-grid-section.cs,
.page_topline.cs {
  background-color: #459de7;
  color: #ffffff;
}

.vb-grid-section.cs h1,
.vb-grid-section.cs h2,
.vb-grid-section.cs h3,
.vb-grid-section.cs h4,
.vb-grid-section.cs h5,
.vb-grid-section.cs h6,
.page_topline.cs h1,
.page_topline.cs h2,
.page_topline.cs h3,
.page_topline.cs h4,
.page_topline.cs h5,
.page_topline.cs h6 {
  color: #ffffff;
}

.vb-grid-section.cs.main_color2,
.page_topline.cs.main_color2 {
  background-color: #ffd83e;
  color: #ffffff;
}


/* Mobile-first: ~1 card + peek (override styles.css flex: 1 0 min(50%, …)) */
.page_topline .carousel-scroll-area > figure,
.page_topline .carousel-scroll-area > div,
.page_topline .carousel-scroll-area > article,
.page_topline .carousel-scroll-area > a {
  flex: 0 0 min(76vw, 18rem);
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}


/* ===================================================================
 * Paleta pozadina sekcija (branding mapa iz style/sass/_colors.scss)
 *
 * Zamjenjuje legacy `cs` / `cs main_color2` (#459de7 / #ffd83e) - te dvije
 * boje nisu iz nase palete. `.cs` pravila ostaju samo zato da se stranice
 * spremljene starim builderom ne raspadnu prije ponovnog spremanja; iz ponude
 * u CMS-u su izbacene.
 *
 * Klasa nosi SAMO vrijednosti (custom properties), a kontekst ispod ih trosi.
 * Zato ista klasa radi na tri mjesta - sekcija, `.profile-title` i tablica -
 * bez tri kopije palete. Naziv klase = naziv tokena u branding mapi.
 *
 * Izvor: cms/app/common/builder/poc/src/project/sectionSurfaces.ts
 * =================================================================== */

/* --- Brand --- */

.vb-surface-green {
  --vb-surface-bg: #8dc63f;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-green-darker {
  --vb-surface-bg: #699a24;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
}

.vb-surface-green-pale {
  --vb-surface-bg: #bfe28f;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

/* --- Neutrali (plavkasti) --- */

.vb-surface-off-white {
  --vb-surface-bg: #fafbfd;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-gray-superlight {
  --vb-surface-bg: #f7f9fc;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-gray-superlight2 {
  --vb-surface-bg: #ecf0f7;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-gray-light2 {
  --vb-surface-bg: #e9eef7;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-gray-light {
  --vb-surface-bg: #c9d0dd;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-black-cyan {
  --vb-surface-bg: #303945;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
}

/* --- Akcenti --- */

.vb-surface-orange-pale {
  --vb-surface-bg: #ffcd6f;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-orange-pale2 {
  --vb-surface-bg: #d96a45;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
}

.vb-surface-yellow-pale {
  --vb-surface-bg: #e5be49;
  --vb-surface-fg: #303945;
  --vb-surface-head: #303945;
}

.vb-surface-red-pale4 {
  --vb-surface-bg: #c63f3f;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
}

.vb-surface-red-lighter {
  --vb-surface-bg: #ff5273;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
}

/* --- Dezeni --- */

.vb-pattern-shade {
  --vb-surface-bg: #303945;
  --vb-surface-fg: #ffffff;
  --vb-surface-head: #ffffff;
  --vb-surface-overlay: rgba(0, 0, 0, 0.2);
}
/* ===================================================================
 * Kontekst 1: sekcija (grid-section i page_topline omotac widgeta)
 * =================================================================== */

.vb-grid-section[class*='vb-surface-'],
.page_topline[class*='vb-surface-'],
.vb-grid-section[class*='vb-pattern-'],
.page_topline[class*='vb-pattern-'] {
  background-color: var(--vb-surface-bg);
  color: var(--vb-surface-fg);
  position: relative;
  isolation: isolate;
}

.vb-grid-section[class*='vb-surface-'] h1,
.vb-grid-section[class*='vb-surface-'] h2,
.vb-grid-section[class*='vb-surface-'] h3,
.vb-grid-section[class*='vb-surface-'] h4,
.vb-grid-section[class*='vb-surface-'] h5,
.vb-grid-section[class*='vb-surface-'] h6,
.page_topline[class*='vb-surface-'] h1,
.page_topline[class*='vb-surface-'] h2,
.page_topline[class*='vb-surface-'] h3,
.page_topline[class*='vb-surface-'] h4,
.page_topline[class*='vb-surface-'] h5,
.page_topline[class*='vb-surface-'] h6,
.vb-grid-section[class*='vb-pattern-'] h1,
.vb-grid-section[class*='vb-pattern-'] h2,
.vb-grid-section[class*='vb-pattern-'] h3,
.vb-grid-section[class*='vb-pattern-'] h4,
.vb-grid-section[class*='vb-pattern-'] h5,
.vb-grid-section[class*='vb-pattern-'] h6,
.page_topline[class*='vb-pattern-'] h1,
.page_topline[class*='vb-pattern-'] h2,
.page_topline[class*='vb-pattern-'] h3,
.page_topline[class*='vb-pattern-'] h4,
.page_topline[class*='vb-pattern-'] h5,
.page_topline[class*='vb-pattern-'] h6 {
  color: var(--vb-surface-head);
}

.vb-grid-section[class*='vb-pattern-'],
.page_topline[class*='vb-pattern-'] {
  background-image: var(--vb-surface-image, none);
  background-repeat: repeat;
  background-position: center;
  background-size: var(--vb-surface-size, auto);
  background-attachment: scroll;
}

/*
 * Maska (`froddo-masked`) i zatamnjenje (`shade`) trebaju vlastiti sloj - bez
 * `--vb-surface-overlay` pseudoelement je proziran i nista ne radi.
 */
.vb-grid-section[class*='vb-pattern-']::after,
.page_topline[class*='vb-pattern-']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--vb-surface-overlay, transparent);
  opacity: var(--vb-surface-overlay-opacity, 1);
  -webkit-mask-image: var(--vb-surface-mask, none);
  mask-image: var(--vb-surface-mask, none);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: auto 9em;
  mask-size: auto 9em;
}

/*
 * Sadrzaj iznad sloja dezena. `vb-parallax` vec dize container na z-index 1;
 * ovdje to treba i bez pozadinske slike, jer bi `::after` inace prekrio tekst.
 */
.vb-grid-section[class*='vb-pattern-'] > [class*='container'],
.page_topline[class*='vb-pattern-'] > [class*='container'] {
  position: relative;
  z-index: 1;
}

/* Na uskom ekranu se dezen lomi na pola - smanji korak. */
@media (max-width: 767px) {
  .vb-grid-section[class*='vb-pattern-'],
  .page_topline[class*='vb-pattern-'] {
    background-size: auto 4rem;
  }
}


/* ===================================================================
 * Kontekst 2: naslov froddo heading widgeta (`.profile-title`)
 *
 * Zadano (bez klase) ostaje ono sto daje `%froddo-heading` u SCSS-u: froddo
 * dezen na #bfc8d5.
 *
 * Selektor je namjerno napisan i s pretkom: `.page_topline.ls h1` iznad je
 * (0,2,1) i nadjacao bi golo `.profile-title[class*=...]` (0,2,0), pa bi
 * naslov dobio pozadinu iz palete, ali zadrzao sivu boju slova iz `ls`.
 *
 * `background-attachment: scroll` je obavezan iako se cini suvisnim: shop
 * pise `background` skraceno s `fixed`, a skraceno pravilo postavlja i
 * `attachment`. Bez izricitog resetiranja ostao bi `fixed` iz shopa.
 * =================================================================== */

.page_topline .profile-title[class*='vb-surface-'],
.vb-grid-section .profile-title[class*='vb-surface-'],
.profile-title[class*='vb-surface-'],
.page_topline .profile-title[class*='vb-pattern-'],
.vb-grid-section .profile-title[class*='vb-pattern-'],
.profile-title[class*='vb-pattern-'] {
  background-color: var(--vb-surface-bg);
  background-image: var(--vb-surface-image, none);
  background-repeat: repeat;
  background-position: center;
  background-size: auto 3em;
  background-attachment: scroll;
  color: var(--vb-surface-head);
  position: relative;
  isolation: isolate;
}

/*
 * Naslov nema unutarnji container kao sekcija, pa sloj ide IZA teksta
 * (`z-index: -1`). `isolation: isolate` iznad drzi ga iznad vlastite pozadine.
 */
.page_topline .profile-title[class*='vb-pattern-']::after,
.vb-grid-section .profile-title[class*='vb-pattern-']::after,
.profile-title[class*='vb-pattern-']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--vb-surface-overlay, transparent);
  opacity: var(--vb-surface-overlay-opacity, 1);
  -webkit-mask-image: var(--vb-surface-mask, none);
  mask-image: var(--vb-surface-mask, none);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: auto 6em;
  mask-size: auto 6em;
}

/* Bez pozadine - tekst preuzima boju sekcije u kojoj naslov stoji. */
.page_topline .profile-title.vb-title-transparent,
.vb-grid-section .profile-title.vb-title-transparent,
.profile-title.vb-title-transparent {
  background: none;
  color: inherit;
}


/* ===================================================================
 * Kontekst 3: tablica (`table` widget, postavka "Boje tablice")
 *
 * `vb-table-default` namjerno nema nijedno pravilo - to je izgled kakav
 * tablica ima danas iz `base/tables/_tables.scss` (zeleni thead), pa ga
 * najsigurnije cuvamo tako da ga ne diramo.
 *
 * `vb-table-cart` preslikava paletu kosarice iz `components/cart/_cart.scss`:
 * tamna glava #49515c s obrubom #687484, redovi naizmjence #eff3fa / #f9f9f9,
 * hover #ffefd6.
 * =================================================================== */

table.vb-table-cart {
  border-collapse: separate;
  border-spacing: 0;
  color: #434343;
}

table.vb-table-cart caption {
  color: #687484;
}

table.vb-table-cart th {
  background-color: #49515c;
  border-bottom: 1px solid #687484;
  border-right: 1px solid #687484;
  color: #ffffff;
  font-weight: 600;
}

table.vb-table-cart th:last-child {
  border-right: 0;
}

table.vb-table-cart tbody tr:nth-child(odd) td {
  background-color: #eff3fa;
}

table.vb-table-cart tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

table.vb-table-cart tbody tr:hover td {
  background-color: #ffefd6;
}

table.vb-table-cart td {
  border-bottom: 1px solid #d9e0ec;
}

table.vb-table-cart tbody tr:last-of-type td {
  border-bottom: 0;
}

table.vb-table-cart tfoot th {
  border-bottom: 0;
  border-top: 1px solid #687484;
}

/* --- Vertical align columns (table_section checkbox) --- */
.vb-grid-section.table_section [class*='container'],
.page_topline.table_section [class*='container'] {
  height: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Only the section grid row — nested .row inside widget HTML (e.g. BS5) must stay flex. */
.vb-grid-section.table_section > [class*='container'] > .row,
.page_topline.table_section > [class*='container'] > .row {
  display: table;
  min-width: 100%;
  height: 100%;
  margin-left: 0;
  margin-right: 0;
}

.vb-grid-section.table_section > [class*='container'] > .row > [class*='col-'],
.page_topline.table_section > [class*='container'] > .row > [class*='col-'] {
  display: table-cell;
  vertical-align: middle;
  float: none;
}

@media screen and (max-width: 767px) {
  .vb-grid-section.table_section > [class*='container'] > .row,
  .page_topline.table_section > [class*='container'] > .row,
  .vb-grid-section.table_section > [class*='container'] > .row > [class*='col-'],
  .page_topline.table_section > [class*='container'] > .row > [class*='col-'] {
    display: block;
    height: auto;
  }

  .vb-grid-section.table_section.table_section_md > [class*='container'] > .row,
  .page_topline.table_section.table_section_md > [class*='container'] > .row,
  .vb-grid-section.table_section.table_section_md > [class*='container'] > .row > [class*='col-'],
  .page_topline.table_section.table_section_md > [class*='container'] > .row > [class*='col-'] {
    display: table;
    height: 100%;
  }
}

/* --- Scroll reveal (column to_animate + data-animation) --- */
.to_animate {
  visibility: hidden;
}

.animated {
  visibility: visible !important;
}

/* --- Section padding (on section — background includes padding) --- */

.vb-grid-section.section_padding_top_0,
.page_topline.section_padding_top_0 { padding-top: 0; }
.vb-grid-section.section_padding_top_5,
.page_topline.section_padding_top_5 { padding-top: 5px; }
.vb-grid-section.section_padding_top_15,
.page_topline.section_padding_top_15 { padding-top: 15px; }
.vb-grid-section.section_padding_top_25,
.page_topline.section_padding_top_25 { padding-top: 25px; }
.vb-grid-section.section_padding_top_30,
.page_topline.section_padding_top_30 { padding-top: 30px; }
.vb-grid-section.section_padding_top_50,
.page_topline.section_padding_top_50 { padding-top: 50px; }
.vb-grid-section.section_padding_top_75,
.page_topline.section_padding_top_75 { padding-top: 75px; }
.vb-grid-section.section_padding_top_100,
.page_topline.section_padding_top_100 { padding-top: 100px; }

.vb-grid-section.section_padding_bottom_0,
.page_topline.section_padding_bottom_0 { padding-bottom: 0; }
.vb-grid-section.section_padding_bottom_5,
.page_topline.section_padding_bottom_5 { padding-bottom: 5px; }
.vb-grid-section.section_padding_bottom_15,
.page_topline.section_padding_bottom_15 { padding-bottom: 15px; }
.vb-grid-section.section_padding_bottom_25,
.page_topline.section_padding_bottom_25 { padding-bottom: 25px; }
.vb-grid-section.section_padding_bottom_30,
.page_topline.section_padding_bottom_30 { padding-bottom: 30px; }
.vb-grid-section.section_padding_bottom_50,
.page_topline.section_padding_bottom_50 { padding-bottom: 50px; }
.vb-grid-section.section_padding_bottom_75,
.page_topline.section_padding_bottom_75 { padding-bottom: 75px; }
.vb-grid-section.section_padding_bottom_100,
.page_topline.section_padding_bottom_100 { padding-bottom: 100px; }

/* --- Spacing before section (margin-top, outside background) --- */
.vb-grid-section.section_spacing_before_0,
.page_topline.section_spacing_before_0 { margin-top: 0; }
.vb-grid-section.section_spacing_before_5,
.page_topline.section_spacing_before_5 { margin-top: 5px; }
.vb-grid-section.section_spacing_before_15,
.page_topline.section_spacing_before_15 { margin-top: 15px; }
.vb-grid-section.section_spacing_before_25,
.page_topline.section_spacing_before_25 { margin-top: 25px; }
.vb-grid-section.section_spacing_before_30,
.page_topline.section_spacing_before_30 { margin-top: 30px; }
.vb-grid-section.section_spacing_before_50,
.page_topline.section_spacing_before_50 { margin-top: 50px; }
.vb-grid-section.section_spacing_before_75,
.page_topline.section_spacing_before_75 { margin-top: 75px; }
.vb-grid-section.section_spacing_before_100,
.page_topline.section_spacing_before_100 { margin-top: 100px; }

/* --- Row gap (direct sibling rows in section container only) --- */

.vb-grid-section.section_row_gap_0 > .container > .row + .row,
.vb-grid-section.section_row_gap_0 > .container-fluid > .row + .row {
  margin-top: 0;
}

.vb-grid-section.section_row_gap_5 > .container > .row + .row,
.vb-grid-section.section_row_gap_5 > .container-fluid > .row + .row {
  margin-top: 5px;
}

.vb-grid-section.section_row_gap_15 > .container > .row + .row,
.vb-grid-section.section_row_gap_15 > .container-fluid > .row + .row {
  margin-top: 15px;
}

.vb-grid-section.section_row_gap_25 > .container > .row + .row,
.vb-grid-section.section_row_gap_25 > .container-fluid > .row + .row {
  margin-top: 25px;
}

.vb-grid-section.section_row_gap_30 > .container > .row + .row,
.vb-grid-section.section_row_gap_30 > .container-fluid > .row + .row {
  margin-top: 30px;
}

.vb-grid-section.section_row_gap_50 > .container > .row + .row,
.vb-grid-section.section_row_gap_50 > .container-fluid > .row + .row {
  margin-top: 50px;
}

.vb-grid-section.section_row_gap_75 > .container > .row + .row,
.vb-grid-section.section_row_gap_75 > .container-fluid > .row + .row {
  margin-top: 75px;
}

.vb-grid-section.section_row_gap_100 > .container > .row + .row,
.vb-grid-section.section_row_gap_100 > .container-fluid > .row + .row {
  margin-top: 100px;
}

/* --- Column padding (horizontal gutter on direct rows/cols) --- */
.vb-grid-section.columns_padding_0 > .container > .row,
.vb-grid-section.columns_padding_0 > .container-fluid > .row {
  margin-left: 0;
  margin-right: 0;
}

.vb-grid-section.columns_padding_0 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_0 > .container-fluid > .row > [class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}

.vb-grid-section.columns_padding_5 > .container > .row,
.vb-grid-section.columns_padding_5 > .container-fluid > .row {
  margin-left: -5px;
  margin-right: -5px;
}

.vb-grid-section.columns_padding_5 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_5 > .container-fluid > .row > [class*='col-'] {
  padding-left: 5px;
  padding-right: 5px;
}

.vb-grid-section.columns_padding_15 > .container > .row,
.vb-grid-section.columns_padding_15 > .container-fluid > .row {
  margin-left: -15px;
  margin-right: -15px;
}

.vb-grid-section.columns_padding_15 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_15 > .container-fluid > .row > [class*='col-'] {
  padding-left: 15px;
  padding-right: 15px;
}

.vb-grid-section.columns_padding_25 > .container > .row,
.vb-grid-section.columns_padding_25 > .container-fluid > .row {
  margin-left: -25px;
  margin-right: -25px;
}

.vb-grid-section.columns_padding_25 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_25 > .container-fluid > .row > [class*='col-'] {
  padding-left: 25px;
  padding-right: 25px;
}

.vb-grid-section.columns_padding_30 > .container > .row,
.vb-grid-section.columns_padding_30 > .container-fluid > .row {
  margin-left: -30px;
  margin-right: -30px;
}

.vb-grid-section.columns_padding_30 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_30 > .container-fluid > .row > [class*='col-'] {
  padding-left: 30px;
  padding-right: 30px;
}

.vb-grid-section.columns_padding_50 > .container > .row,
.vb-grid-section.columns_padding_50 > .container-fluid > .row {
  margin-left: -50px;
  margin-right: -50px;
}

.vb-grid-section.columns_padding_50 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_50 > .container-fluid > .row > [class*='col-'] {
  padding-left: 50px;
  padding-right: 50px;
}

.vb-grid-section.columns_padding_75 > .container > .row,
.vb-grid-section.columns_padding_75 > .container-fluid > .row {
  margin-left: -75px;
  margin-right: -75px;
}

.vb-grid-section.columns_padding_75 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_75 > .container-fluid > .row > [class*='col-'] {
  padding-left: 75px;
  padding-right: 75px;
}

.vb-grid-section.columns_padding_100 > .container > .row,
.vb-grid-section.columns_padding_100 > .container-fluid > .row {
  margin-left: -100px;
  margin-right: -100px;
}

.vb-grid-section.columns_padding_100 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_100 > .container-fluid > .row > [class*='col-'] {
  padding-left: 100px;
  padding-right: 100px;
}

.vb-grid-section.columns_padding_100 > .container-fluid > .row > [class*='col-'] {
  padding-left: 100px;
  padding-right: 100px;
}

/* --- Builder scroll carousels (product / image / text / brands) --- */

/*
 * Carousels can end up nested inside a ".to_animate" scroll-reveal wrapper
 * (theme-wide widget-page chrome, not builder-specific). That reveal relies on
 * an IntersectionObserver keyed off the implicit viewport root, which never
 * fires once content scrolls past the first viewport height on pages where
 * <html> stays non-scrolling and <body> is the real scroll container — so
 * anything below the fold that depends on ".animated" to become visible again
 * never does. A carousel is interactive UI, not decorative fade-in copy, so it
 * must never be left permanently invisible by that inherited "visibility:
 * hidden" — force it visible unconditionally.
 */
.carousel-wrapper {
  visibility: visible;
}

.page_topline .carousel-wrapper,
.page_topline .col-sm-12 > .carousel-wrapper,
.page_topline .col-sm-12 > section.carousel-wrapper {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Full-bleed breakout only on desktop — 100vw inside table-cell breaks mobile/tablet */
@media (min-width: 992px) {
  .page_topline .col-sm-12 > .carousel-wrapper,
  .page_topline .col-sm-12 > section.carousel-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .page_topline.table_section .row > .col-sm-12 > .carousel-wrapper,
  .page_topline.table_section .row > .col-sm-12 > section.carousel-wrapper {
    width: 100vw;
    max-width: 100vw;
  }
}

/* table_section_md keeps display:table on mobile/tablet — carousel ends up ~50% width */
@media (max-width: 991px) {
  .page_topline.table_section.table_section_md > [class*='container'] > .row:has(.carousel-wrapper),
  .vb-grid-section.table_section.table_section_md > [class*='container'] > .row:has(.carousel-wrapper) {
    display: block;
    width: 100%;
  }

  .page_topline.table_section.table_section_md > [class*='container'] > .row > [class*='col-']:has(.carousel-wrapper),
  .vb-grid-section.table_section.table_section_md > [class*='container'] > .row > [class*='col-']:has(.carousel-wrapper) {
    display: block;
    width: 100%;
    float: none;
  }

  .page_topline.table_section > [class*='container']:has(.carousel-wrapper) {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }
}

.page_topline .carousel-wrapper [class^='carousel-button'] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  z-index: 5;
  left: max(0.35rem, env(safe-area-inset-left, 0.35rem));
}

.page_topline .carousel-wrapper [class*='next'] {
  left: auto;
  right: max(0.35rem, env(safe-area-inset-right, 0.35rem));
  transform: translateY(-50%) translateZ(0) rotateY(180deg);
}

.page_topline .carousel-scroll-area {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.5rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-inline: clamp(2.5rem, 6vw, 3.5rem);
  scrollbar-width: thin;
  max-width: 100%;
}

/* Mobile-first: ~1 card + peek (override styles.css flex: 1 0 min(50%, …)) */
.page_topline .carousel-scroll-area > figure,
.page_topline .carousel-scroll-area > div,
.page_topline .carousel-scroll-area > article,
.page_topline .carousel-scroll-area > a,
.page_topline .carousel-scroll-area > img {
  flex: 0 0 min(76vw, 18rem);
  /* Replaced elements (bare <img> slides, e.g. brands-carousel) default their
     flex automatic minimum size to their intrinsic size, which overrides
     flex-basis/max-width and lets a large source image blow past the slide
     width — min-width: 0 removes that floor. */
  min-width: 0;
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}

.page_topline .carousel-scroll-area > img {
  height: auto;
  object-fit: contain;
}

.page_topline .carousel-wrapper.curated .carousel-scroll-area > article {
  flex: 0 0 min(82vw, 22rem);
  max-width: none;
  height: auto;
  align-self: stretch;
}

.page_topline .carousel-wrapper.curated .carousel-scroll-area > article .product-link,
.page_topline .carousel-wrapper.curated .carousel-scroll-area > article .product-image {
  display: block;
  width: 100%;
  height: auto;
}

.page_topline .carousel-wrapper.curated .product-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
}

@media (min-width: 576px) {
  .page_topline .carousel-scroll-area > figure,
  .page_topline .carousel-scroll-area > div,
  .page_topline .carousel-scroll-area > article,
  .page_topline .carousel-scroll-area > a {
    flex-basis: min(44vw, 12rem);
  }

  .page_topline .carousel-wrapper.curated .carousel-scroll-area > article {
    flex-basis: min(46vw, 14rem);
  }
}

@media (min-width: 768px) {
  .page_topline .carousel-scroll-area > figure,
  .page_topline .carousel-scroll-area > div,
  .page_topline .carousel-scroll-area > article,
  .page_topline .carousel-scroll-area > a {
    flex-basis: min(32vw, 12rem);
  }

  .page_topline .carousel-wrapper.curated .carousel-scroll-area > article {
    flex-basis: min(34vw, 14rem);
  }
}

@media (min-width: 992px) {
  .page_topline .carousel-scroll-area > figure,
  .page_topline .carousel-scroll-area > div,
  .page_topline .carousel-scroll-area > article,
  .page_topline .carousel-scroll-area > a {
    flex-basis: clamp(9rem, 22vw, 12rem);
  }

  .page_topline .carousel-wrapper.curated .carousel-scroll-area > article {
    flex-basis: 13.5em;
  }
}

@media (min-width: 1400px) {
  .page_topline .carousel-scroll-area > figure,
  .page_topline .carousel-scroll-area > div,
  .page_topline .carousel-scroll-area > article,
  .page_topline .carousel-scroll-area > a {
    flex-basis: clamp(10rem, 16vw, 13rem);
  }
}

/* Legacy column padding (older documents) */
.vb-grid-section.columns_padding_1 > .container > .row,
.vb-grid-section.columns_padding_1 > .container-fluid > .row {
  margin-left: 0;
  margin-right: -1px;
}

.vb-grid-section.columns_padding_1 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_1 > .container-fluid > .row > [class*='col-'] {
  padding-left: 0;
  padding-right: 1px;
}

.vb-grid-section.columns_padding_2 > .container > .row,
.vb-grid-section.columns_padding_2 > .container-fluid > .row {
  margin-left: -1px;
  margin-right: -1px;
}

.vb-grid-section.columns_padding_2 > .container > .row > [class*='col-'],
.vb-grid-section.columns_padding_2 > .container-fluid > .row > [class*='col-'] {
  padding-left: 1px;
  padding-right: 1px;
}


/* --- Bootstrap grid subset za builder grid-section (bootstrap row mode) --- */
/*
 * Preuzeto iz b2b.ivancica.hr `builder-bootstrap-grid.css`, uz DVIJE namjerne
 * razlike:
 *
 * 1. Scope. Tamo su `.col-*` širine globalne; ovdje su vezane na builder
 *    sekcije. Luster storefront koristi `col-*` klase u 10 vlastitih
 *    komponenti (slider, 4box, box3, blog_standard/compact, layouts
 *    two-/three-column, banner, recently_viewed, sidebar_blog) koje računaju
 *    na to da te klase nemaju širinu — globalna pravila bi im razbila layout.
 *
 * 2. Specifičnost. U b2b verziji reset kolone
 *    (`… > [class*='container'] > .row > [class*='col-']`, 0-4-0) nadjačava
 *    globalni `.col-sm-6` (0-1-0), pa širine zapravo ne bi ni primijenile.
 *    Ovdje su i reset i širine na `… .row > …` (0-3-0), a širine dolaze
 *    kasnije u datoteci — pa pobjeđuju kako treba. `.row` je descendant, što
 *    usput pokriva i ugniježđene redove unutar kolone.
 *
 * Ne dira `.page_topline`: te sekcije imaju vlastiti table_section mehanizam
 * (display:table / table-cell, gore u ovoj datoteci) i rade. Višestupčani
 * `[Ivančica]` text widgeti ionako ne koriste bootstrap kolone nego
 * `.two-columns`/`.three-columns`/`.column-aside` iz styles.css.
 */

.vb-grid-section > [class*='container'] > .row,
section.builder:not(.page_topline) > [class*='container'] > .row {
  --vb-gutter-x: 30px;
  --vb-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--vb-gutter-y) * -1);
  margin-right: calc(var(--vb-gutter-x) * -0.5);
  margin-left: calc(var(--vb-gutter-x) * -0.5);
}

.vb-grid-section .row > [class*='col-'],
section.builder:not(.page_topline) .row > [class*='col-'] {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--vb-gutter-x, 30px) * 0.5);
  padding-left: calc(var(--vb-gutter-x, 30px) * 0.5);
  margin-top: var(--vb-gutter-y, 0);
}

.vb-grid-section.table_section > [class*='container'] > .row,
section.builder:not(.page_topline).table_section > [class*='container'] > .row {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  height: auto;
  margin-left: calc(var(--vb-gutter-x) * -0.5);
  margin-right: calc(var(--vb-gutter-x) * -0.5);
}

.vb-grid-section.table_section > [class*='container'] > .row > [class*='col-'],
section.builder:not(.page_topline).table_section > [class*='container'] > .row > [class*='col-'] {
  display: block;
  float: none;
  vertical-align: initial;
}

@media (max-width: 991px) {
  .vb-grid-section.table_section.table_section_md > [class*='container'] > .row,
  section.builder:not(.page_topline).table_section.table_section_md > [class*='container'] > .row {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .vb-grid-section.table_section > [class*='container'] > .row,
  section.builder:not(.page_topline).table_section > [class*='container'] > .row {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 576px) {
  .vb-grid-section .row > .col-sm-3,
  section.builder:not(.page_topline) .row > .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .vb-grid-section .row > .col-sm-4,
  section.builder:not(.page_topline) .row > .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .vb-grid-section .row > .col-sm-6,
  section.builder:not(.page_topline) .row > .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .vb-grid-section .row > .col-sm-8,
  section.builder:not(.page_topline) .row > .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .vb-grid-section .row > .col-sm-9,
  section.builder:not(.page_topline) .row > .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .vb-grid-section .row > .col-sm-12,
  section.builder:not(.page_topline) .row > .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
  .vb-grid-section .row > .col-md-3,
  section.builder:not(.page_topline) .row > .col-md-3 { flex: 0 0 auto; width: 25%; }
  .vb-grid-section .row > .col-md-4,
  section.builder:not(.page_topline) .row > .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .vb-grid-section .row > .col-md-6,
  section.builder:not(.page_topline) .row > .col-md-6 { flex: 0 0 auto; width: 50%; }
  .vb-grid-section .row > .col-md-8,
  section.builder:not(.page_topline) .row > .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .vb-grid-section .row > .col-md-9,
  section.builder:not(.page_topline) .row > .col-md-9 { flex: 0 0 auto; width: 75%; }
  .vb-grid-section .row > .col-md-12,
  section.builder:not(.page_topline) .row > .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
  .vb-grid-section .row > .col-lg-3,
  section.builder:not(.page_topline) .row > .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .vb-grid-section .row > .col-lg-4,
  section.builder:not(.page_topline) .row > .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .vb-grid-section .row > .col-lg-6,
  section.builder:not(.page_topline) .row > .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .vb-grid-section .row > .col-lg-8,
  section.builder:not(.page_topline) .row > .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .vb-grid-section .row > .col-lg-9,
  section.builder:not(.page_topline) .row > .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .vb-grid-section .row > .col-lg-12,
  section.builder:not(.page_topline) .row > .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Bunny Stream semantic player (Val 2 insert; Val 3 widgets may extend) */
.ivc-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0;
  aspect-ratio: 16 / 9;
  background: #102a43;
  overflow: hidden;
}

.ivc-video--portrait {
  max-width: 450px;
  margin: 0.75rem auto;
  aspect-ratio: 9 / 16;
}

.ivc-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ivc-hero-video {
  position: relative;
  min-height: min(70vh, 42rem);
  overflow: hidden;
  background: #102a43;
  color: #fff;
}

.ivc-hero-video__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ivc-hero-video .ivc-video--cover,
.ivc-hero-video video.ivc-video--cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.ivc-hero-video__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.ivc-hero-video__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: min(70vh, 42rem);
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(to top, rgba(16, 42, 67, 0.72), rgba(16, 42, 67, 0.12) 55%, transparent);
}

.ivc-hero-video__overlay h2,
.ivc-video-banner__copy h2 {
  margin: 0;
}

.ivc-hero-video__overlay .cta-link,
.ivc-video-banner__copy .cta-link {
  align-self: flex-start;
}

.ivc-video-banner {
  display: grid;
  gap: 1.25rem;
}

.ivc-video-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .ivc-hero-video video {
    display: none;
  }

  .ivc-hero-video__fallback {
    display: block;
  }
}


/* ===================================================================
 * Dopune buildera (2026-10)
 *
 * Sve ide na KRAJ datoteke namjerno: blok od "Shop D4 legacy section
 * colors" nadalje postoji u ovoj datoteci dvaput, pa pravilo umetnuto
 * ranije pregazi kasnija kopija.
 * =================================================================== */

/* --- Pozadina: transparentno ---------------------------------------
 * Nedostajala je opcija "bez pozadine" — ponuda je isla od bijele
 * nadalje, pa se widget nije mogao postaviti preko pozadine sekcije
 * ili stranice. Token se uklapa u postojeci sustav varijabli, pa radi
 * i na sekciji (`vb-grid-section`, `page_topline`) i svugdje gdje se
 * `--vb-surface-*` cita.
 */
.vb-surface-transparent {
  --vb-surface-bg: transparent;
  --vb-surface-fg: inherit;
  --vb-surface-head: inherit;
}

/* --- Sirina kontejnera ---------------------------------------------
 * Postavka "Sirina kontejnera" (container / container-fluid) nije
 * imala NIJEDNO pravilo u shopu: oba su se renderirala punom sirinom.
 * Sirina prati `%layout-content-width2` iz SCSS-a (92rem), tj. istu
 * koju ima ostatak stranice. Postavlja se SAMO `max-width`: horizontalni
 * padding kontejnera namjerno ostaje 0 jer ga vec nuliraju pravila za
 * `table_section`, a razmak stupaca radi postavka "Column paddings" —
 * dodavanje paddinga ovdje pomaknulo bi sadrzaj na svim postojecim
 * stranicama.
 *
 * Selektor je vezan uz builder sekciju da ne dira `.container` koji
 * `html.view.php` stavlja oko NE-builder widgeta.
 */
.vb-grid-section > .container,
.page_topline > .container {
  width: 100%;
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
}

.vb-grid-section > .container-fluid,
.page_topline > .container-fluid {
  width: 100%;
  max-width: none;
}

/* --- Poravnanje naslova (froddo heading) ----------------------------
 * `text-center` iz legacy predlozaka nema pravilo nigdje u shopu, pa
 * naslov nije bilo moguce poravnati. Vlastite klase umjesto ozivljavanja
 * `text-center`, koji nosi jos dosta legacy markupa i promijenio bi
 * izgled postojecih widgeta.
 */
.profile-title.vb-align-left { text-align: left; }
.profile-title.vb-align-center { text-align: center; }
.profile-title.vb-align-right { text-align: right; }

/* --- Padding sekcije i ploha naslova --------------------------------
 * Padding stoji na sekciji, a pozadina naslova na `<h1>`-u, pa je ploha
 * zavrsavala tik uz tekst dok je prostor paddinga ostajao u boji
 * sekcije. Varijable ispod nose odabranu vrijednost do naslova, a
 * negativna margina jednaka paddingu razvuce plohu preko njega —
 * sekcija zadrzava svoju visinu i svoju pozadinu.
 */
.vb-grid-section.section_padding_top_0,
.page_topline.section_padding_top_0 { --vb-shell-pad-top: 0px; }
.vb-grid-section.section_padding_top_5,
.page_topline.section_padding_top_5 { --vb-shell-pad-top: 5px; }
.vb-grid-section.section_padding_top_15,
.page_topline.section_padding_top_15 { --vb-shell-pad-top: 15px; }
.vb-grid-section.section_padding_top_25,
.page_topline.section_padding_top_25 { --vb-shell-pad-top: 25px; }
.vb-grid-section.section_padding_top_30,
.page_topline.section_padding_top_30 { --vb-shell-pad-top: 30px; }
.vb-grid-section.section_padding_top_50,
.page_topline.section_padding_top_50 { --vb-shell-pad-top: 50px; }
.vb-grid-section.section_padding_top_75,
.page_topline.section_padding_top_75 { --vb-shell-pad-top: 75px; }
.vb-grid-section.section_padding_top_100,
.page_topline.section_padding_top_100 { --vb-shell-pad-top: 100px; }

.vb-grid-section.section_padding_bottom_0,
.page_topline.section_padding_bottom_0 { --vb-shell-pad-bottom: 0px; }
.vb-grid-section.section_padding_bottom_5,
.page_topline.section_padding_bottom_5 { --vb-shell-pad-bottom: 5px; }
.vb-grid-section.section_padding_bottom_15,
.page_topline.section_padding_bottom_15 { --vb-shell-pad-bottom: 15px; }
.vb-grid-section.section_padding_bottom_25,
.page_topline.section_padding_bottom_25 { --vb-shell-pad-bottom: 25px; }
.vb-grid-section.section_padding_bottom_30,
.page_topline.section_padding_bottom_30 { --vb-shell-pad-bottom: 30px; }
.vb-grid-section.section_padding_bottom_50,
.page_topline.section_padding_bottom_50 { --vb-shell-pad-bottom: 50px; }
.vb-grid-section.section_padding_bottom_75,
.page_topline.section_padding_bottom_75 { --vb-shell-pad-bottom: 75px; }
.vb-grid-section.section_padding_bottom_100,
.page_topline.section_padding_bottom_100 { --vb-shell-pad-bottom: 100px; }

/*
 * Vrijedi samo kad naslov IMA vlastitu pozadinu — bez nje nema sto
 * razvlaciti, a zadani razmak oko naslova treba ostati kakav je.
 */
.profile-title[class*='vb-surface-'],
.profile-title[class*='vb-pattern-'] {
  margin-top: calc(-1 * var(--vb-shell-pad-top, 0px));
  margin-bottom: calc(-1 * var(--vb-shell-pad-bottom, 0px));
  padding-top: calc(var(--vb-shell-pad-top, 0px) + var(--vb-title-pad, 0.3em));
  padding-bottom: calc(var(--vb-shell-pad-bottom, 0px) + var(--vb-title-pad, 0.3em));
  padding-left: var(--vb-title-pad, 0.3em);
  padding-right: var(--vb-title-pad, 0.3em);
}


/* ===================================================================
 * Link section—Plain (cta7) — redizajn po skicama
 *
 * Desktop: svijetla ploha s tekstom lijevo, slika uz nju desno, obje
 * iste visine. Mobitel: tekst na bijelom, slika ispod punom sirinom.
 *
 * Vlastiti imenski prostor umjesto `banner-cta`: taj omotac hvata
 * `[class*='banner-cta']` (albatross flex, gumb, centrirani h2) i
 * borio bi se s ovim rasporedom. Stari markup ostaje netaknut.
 *
 * Boje su tokeni iz `sass/_colors.scss`: light-gray2 #f0f0f0,
 * black-cyan #303945, dark-bluish-gray #49515c, dark-gray2 #686868.
 * =================================================================== */

.ivc-link-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: stretch;
}

.ivc-link-section__panel {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 3.5vw, 3rem);
  min-width: 0;
}

.ivc-link-section__content {
  max-width: 32em;
  min-width: 0;
}

/* Tema h2 pise verzalom; skica ima obican slog, pa se resetira. */
.ivc-link-section__heading {
  display: flex;
  flex-direction: column;
  margin: 0 0 0.9em;
  text-align: left;
  text-transform: none;
}

.ivc-link-section__heading strong {
  color: #303945;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.ivc-link-section__heading span {
  color: #49515c;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
}

/* Tekst dolazi iz richtexta, pa se cilja i omotac i odlomci u njemu. */
.ivc-link-section__content p {
  color: #686868;
  font-size: calc(15rem / 16);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 1em;
}

.ivc-link-section__link {
  color: #303945;
  display: inline-block;
  font-size: calc(15rem / 16);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.2em;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
}

.ivc-link-section__link:focus,
.ivc-link-section__link:hover {
  color: #000000;
  text-decoration: underline;
}

.ivc-link-section__img {
  display: block;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  width: 100%;
}

/*
 * Mobitel: ploha gubi podlogu i pada u punu sirinu, slika ide ISPOD
 * teksta (redoslijed u markupu je vec takav, pa nema `order`).
 */
@media (max-width: 767px) {
  .ivc-link-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .ivc-link-section__panel {
    background-color: transparent;
    padding: 0 0 clamp(1.5rem, 6vw, 2.5rem);
  }

  .ivc-link-section__content {
    max-width: none;
  }

  .ivc-link-section__img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}


/* ===================================================================
 * Link section — sive varijante (cta5/cta8 i cta6/cta9)
 *
 * `banner-cta-gray` i `banner-cta-graydark` nisu imale NIJEDNO vlastito
 * pravilo: hvatao ih je samo genericki `[class*='banner-cta']`, koji
 * postavlja bijelu podlogu, pa su se "Light gray" i "Dark gray" u
 * paleti renderirale jednako kao "Plain".
 *
 * Boje su tokeni iz `sass/_colors.scss`: light-gray2 #f0f0f0 i
 * black-cyan #303945.
 * =================================================================== */

.banner-cta-gray {
  background-color: #f0f0f0;
}

.banner-cta-graydark {
  background-color: #303945;
  color: #ffffff;
}

/*
 * Naslovi se pisu i s pretkom: `.page_topline.ls h2` iz bloka iznad je
 * (0,2,1) i nadjacao bi golo `.banner-cta-graydark h2` (0,1,1), pa bi
 * naslov ostao taman na tamnoj plohi.
 */
.page_topline .banner-cta-graydark h2,
.page_topline .banner-cta-graydark h3,
.page_topline .banner-cta-graydark p,
.vb-grid-section .banner-cta-graydark h2,
.vb-grid-section .banner-cta-graydark h3,
.vb-grid-section .banner-cta-graydark p,
.banner-cta-graydark h2,
.banner-cta-graydark h3,
.banner-cta-graydark p {
  color: #ffffff;
}

/* Gumb na tamnoj plohi: obrnuti kontrast, inace bijeli tekst na bijelom. */
.banner-cta-graydark .cta-link {
  background-color: #ffffff;
  color: #303945;
}

.banner-cta-graydark .cta-link:focus,
.banner-cta-graydark .cta-link:hover {
  background-color: #e9eef7;
  color: #303945;
}


/* ===================================================================
 * Podloga teksta na Image Ad bannerima (`linkimg2/3/4`)
 *
 * Postavka je nudila `ad-plate-light` / `ad-plate-dark`, ali te klase
 * nisu imale CSS nigdje u projektu — izbor nije radio nista. Ploha ide
 * samo iza `.ad-content`, ne preko cijele slike.
 *
 * Specificnost je namjerno 0,3,0 (dvije klase + dijete): genericko
 * `.ad-banner > [class*=content]` iz `styles.css` postavlja padding i
 * boju, pa bi inace pobijedilo.
 * =================================================================== */

.ad-banner.ad-plate-light > .ad-content,
.ad-banner-center.ad-plate-light > .ad-content,
.ad-banner-right.ad-plate-light > .ad-content {
  background-color: rgba(255, 255, 255, 0.9);
  color: #303945;
  padding: 1em 1.5em;
}

.ad-banner.ad-plate-light > .ad-content h2,
.ad-banner-center.ad-plate-light > .ad-content h2,
.ad-banner-right.ad-plate-light > .ad-content h2,
.ad-banner.ad-plate-light > .ad-content p,
.ad-banner-center.ad-plate-light > .ad-content p,
.ad-banner-right.ad-plate-light > .ad-content p {
  color: #303945;
}

.ad-banner.ad-plate-dark > .ad-content,
.ad-banner-center.ad-plate-dark > .ad-content,
.ad-banner-right.ad-plate-dark > .ad-content {
  background-color: rgba(48, 57, 69, 0.85);
  color: #ffffff;
  padding: 1em 1.5em;
}

.ad-banner.ad-plate-dark > .ad-content h2,
.ad-banner-center.ad-plate-dark > .ad-content h2,
.ad-banner-right.ad-plate-dark > .ad-content h2,
.ad-banner.ad-plate-dark > .ad-content p,
.ad-banner-center.ad-plate-dark > .ad-content p,
.ad-banner-right.ad-plate-dark > .ad-content p {
  color: #ffffff;
}


/* --- Link section, zrcalna varijanta (cta7-mirror) ------------------
 * Slika lijevo, ploha s tekstom desno. Samo od `l` breakpointa: na
 * mobitelu obje varijante zadrzavaju isti redoslijed (tekst pa slika),
 * jer je sadrzaj prije slike bolji redoslijed citanja.
 */
@media (min-width: 768px) {
  .ivc-link-section--mirror {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  }

  .ivc-link-section--mirror .ivc-link-section__img {
    order: 1;
  }

  .ivc-link-section--mirror .ivc-link-section__panel {
    order: 2;
  }
}

/* --- Video widgeti (nalaz 18.10.2026.) ---------------------------------
 * Hero video: ispod 768px ćelija stupca se sruši na širinu 0 jer joj je sav
 * sadržaj apsolutno pozicioniran, pa je na mobitelu ostajao prazan blok.
 */
.ivc-hero-video { width: 100%; }

.page_topline.table_section > [class*='container'] > .row > [class*='col-']:has(.ivc-hero-video),
.vb-grid-section.table_section > [class*='container'] > .row > [class*='col-']:has(.ivc-hero-video) {
  width: 100%;
}

/* Podjela banera ovisi o širini banera, ne ekrana: flex s prelomom umjesto
   media queryja, pa se u uskom stupcu slaže jedno ispod drugog. */
.ivc-video-banner:has(.ivc-video-banner__copy) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ivc-video-banner:has(.ivc-video-banner__copy) > * {
  flex: 1 1 18rem;
  min-width: 0;
}

.ivc-video-banner__copy h2 { overflow-wrap: break-word; }

/* Gumb ima fiksnu minimalnu širinu (~170px); radije prelom nego stršenje. */
.ivc-hero-video__overlay .cta-link,
.ivc-video-banner__copy .cta-link {
  max-width: 100%;
  text-align: center;
}
