/* Artex – performance in vizualna optimizacija */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  content-visibility: auto;
}

/* Product slider fallback (language pages) */
.product-slider {
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.product-slider__mainWrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3f3f3;
}

.product-slider__mainBtn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  position: relative;
  z-index: 1;
}

.product-slider__mainImg {
  display: block;
  width: 100%;
  height: min(460px, 60vw);
  object-fit: cover;
}

@media (max-width: 900px) {
  .product-slider__mainImg { height: min(380px, 70vw); }
}

@media (max-width: 480px) {
  .product-slider__mainImg { height: auto; }
}

.product-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  z-index: 3;
}

.product-slider__nav:hover { background: rgba(0,0,0,0.7); }

.product-slider__nav--prev { left: 10px; }
.product-slider__nav--next { right: 10px; }

.product-slider__thumbs {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.product-slider__thumbBtn {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  opacity: 0.9;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms ease;
}

.product-slider__thumbBtn:hover { opacity: 1; transform: translateY(-1px); }
.product-slider__thumbBtn.is-active { outline: 3px solid rgba(0, 123, 255, 0.75); outline-offset: 3px; opacity: 1; }

.product-slider__thumbImg {
  display: block;
  width: 120px;
  height: 84px;
  object-fit: cover;
  background: #f3f3f3;
}

/* TOPSHELF / product lightbox — not Bootstrap .modal */
.artex-gallery-modal {
  display: none;
  position: fixed;
  z-index: 10050;
  inset: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.artex-gallery-modal.open { display: flex; }

.artex-gallery-modal__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.artex-gallery-modal .close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #000;
  font-size: 32px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 0 10px;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

.artex-gallery-modal .prev,
.artex-gallery-modal .next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  z-index: 3;
  pointer-events: auto;
  line-height: 1;
}

.artex-gallery-modal.open .prev,
.artex-gallery-modal.open .next {
  display: block;
}

.artex-gallery-modal .prev { left: 10px; }
.artex-gallery-modal .next { right: 10px; }

/* Product pages: make the right-side product image look premium */
.fixit_section .cbm_wrap {
  border-radius: 12px;
  overflow: hidden;
  background: transparent !important;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  padding: 0 !important; /* override theme padding that creates a white frame */
}

.fixit_section .cbm_wrap > img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
}

.fixit_section .cbm_wrap > video {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .fixit_section .cbm_wrap > img {
    height: auto;
    object-fit: contain;
  }

  .fixit_section .cbm_wrap > video {
    height: auto;
    object-fit: contain;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

.fixit_btn,
.rev-btn a {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fixit_btn:hover {
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Header: EU / NOO / SPS funding logos in one row on the right */
.fixit_header .fixit_header_right {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  float: right;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.fixit_header .fixit_header_right #EU,
.fixit_header .fixit_header_right #SPS {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.fixit_header .fixit_header_right #EU a,
.fixit_header .fixit_header_right #SPS a {
  display: block;
  line-height: 0;
}

.fixit_header .fixit_header_right #EU a img {
  width: auto;
  max-width: min(300px, 42vw);
  height: auto;
  max-height: 58px;
  display: block;
}

.fixit_header .fixit_header_right #SPS a img {
  width: auto;
  max-width: 110px;
  height: auto;
  max-height: 58px;
  display: block;
}

/* Pages with orphaned #EU / #SPS (missing .fixit_header_right wrapper) */
.fixit_header > #EU,
.fixit_header > #SPS {
  float: right;
  clear: none;
  display: inline-block;
  vertical-align: middle;
  width: auto;
  margin-left: 10px;
}

.fixit_header > #EU a img {
  width: auto;
  max-width: min(300px, 42vw);
  max-height: 58px;
  height: auto;
  display: block;
}

.fixit_header > #SPS a img {
  width: auto;
  max-width: 110px;
  max-height: 58px;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .fixit_header .fixit_header_right #EU a img,
  .fixit_header > #EU a img {
    max-width: min(220px, 38vw);
    max-height: 48px;
  }

  .fixit_header .fixit_header_right #SPS a img,
  .fixit_header > #SPS a img {
    max-width: 90px;
    max-height: 48px;
  }
}

@media (max-width: 600px) {
  .fixit_header .fixit_header_right,
  .fixit_header > #EU,
  .fixit_header > #SPS {
    display: none !important;
  }
}

/* Družbena odgovornost – vsebinska postavitev (px: bootstrap html=10px zato rem ne velja) */
.page-druzbena .fixit_section--druzbena {
  padding: 56px 0 72px;
  background-color: #f5f7f9;
  font-size: 16px;
  line-height: 1.5;
  color: #36434d;
}

.page-druzbena .druzbena-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-druzbena .druzbena-intro h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: #36434d;
}

.page-druzbena .druzbena-cards {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.page-druzbena .druzbena-cards > [class*="col-"] {
  display: flex;
  margin-bottom: 1.75rem;
}

.page-druzbena .druzbena-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.65rem 1.65rem;
  box-shadow: 0 4px 18px rgba(54, 67, 77, 0.08);
  border-left: 4px solid #007fc2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-druzbena .druzbena-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(54, 67, 77, 0.12);
}

.page-druzbena .druzbena-card__icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #007fc2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
}

.page-druzbena .druzbena-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #36434d;
  text-align: left;
}

.page-druzbena .druzbena-card p {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #36434d;
}

.page-druzbena .druzbena-card--highlight {
  border-left-color: #36434d;
}

.page-druzbena .druzbena-card--highlight .druzbena-card__icon {
  background: #36434d;
}

@media (max-width: 767px) {
  .page-druzbena .fixit_section--druzbena {
    padding: 40px 0 48px;
    font-size: 16px;
  }

  .page-druzbena .druzbena-intro {
    margin-bottom: 28px;
  }

  .page-druzbena .druzbena-intro h2 {
    font-size: 26px;
  }

  .page-druzbena .druzbena-card h3 {
    font-size: 20px;
  }
}
