/*
  OZEN-GM custom styles.
  Palette is matched to the real Ozen compressor reference: signal red,
  graphite gray, white, and controlled black accents.
*/
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --oz-red: #d80d13;
  --oz-red-dark: #a90b10;
  --oz-graphite: #3f474d;
  --oz-charcoal: #20262b;
  --oz-slate: #69737b;
  --oz-light: #f5f7f9;
  --oz-border: #dce2e7;
  --oz-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(32, 38, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--oz-charcoal);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--oz-white);
}

a {
  color: var(--oz-red);
}

a:hover,
a:focus {
  color: var(--oz-border);
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 1rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  color: var(--oz-white);
  background: var(--oz-charcoal);
  border-radius: 0.35rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--oz-border);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--oz-white);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--oz-red), var(--oz-red-dark));
  border-radius: 0.35rem;
}

.navbar-brand span:last-child {
  color: var(--oz-graphite);
  font-size: 0.78rem;
  font-weight: 600;
}

.navbar {
    padding: 0.3rem 0;
}

.site-logo {
    display: block;
    height: 100px;
    width: auto;
}

@media (max-width: 360px) {
    .site-logo {
        height: 80px;
    }
}



.nav-link {
  color: var(--oz-graphite);
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
  color: var(--oz-red);
}

.nav-products {
  position: static;
}

.products-mega {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 1030;
  width: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--oz-border);
  border-bottom: 1px solid var(--oz-border);
  box-shadow: var(--shadow-soft);
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-products:hover .products-mega,
.nav-products:focus-within .products-mega,
.nav-products.is-mega-open .products-mega {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.products-mega::before {
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1rem;
  content: "";
}

.products-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
}

.products-mega-card {
  min-height: 13rem;
  padding: 1rem;
  background: var(--oz-light);
  border: 1px solid var(--oz-border);
}

.products-mega-title {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--oz-white);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--oz-red), var(--oz-red-dark));
}

.products-mega-title:hover,
.products-mega-title:focus {
  color: var(--oz-white);
}

.products-mega-list {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 0 0;
  margin: 0;
  list-style: none;
}

.products-mega-list a,
.products-mobile a,
.products-mobile summary {
  color: var(--oz-charcoal);
  text-decoration: none;
}

.products-mega-list a {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.6rem;
  align-items: center;
  font-weight: 600;
}

.products-mega-list a::before {
  color: var(--oz-red-dark);
  content: "›";
  font-size: 1.45rem;
  line-height: 1;
}

.products-mobile {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 5rem 0 4rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.91) 47%, rgba(255, 255, 255, 0.6) 100%),
    url("../images/ozen-compressor-osc-series.jpg") center right / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: auto auto 0 0;
  width: min(52vw, 42rem);
  height: 0.45rem;
  content: "";
  background: var(--oz-red);
}

.eyebrow {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--oz-red-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 0.14rem;
  content: "";
  background: var(--oz-red);
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  color: var(--oz-graphite);
}

.btn-primary {
  background: var(--oz-red);
  border-color: var(--oz-red);
}

.btn-primary:hover {
  background: var(--oz-red-dark);
  border-color: var(--oz-red-dark);
}


.btn-primary:focus {
  background: var(--oz-red-dark);
  border-color: var(--oz-red-dark);
}

.btn-outline-light {
  color: var(--oz-charcoal);
  border-color: var(--oz-graphite);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--oz-white);
  background: var(--oz-red-dark);
}

.btn-outline-dark {
  color: var(--oz-charcoal);
  border-color: var(--oz-graphite);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  color: var(--oz-white);
  background: var(--oz-charcoal);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 42rem;
  overflow: hidden;
  background: var(--oz-border);
  border: 1px solid var(--oz-border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.stat-strip div {
  padding: 1.1rem;
  background: var(--oz-white);
}

.stat-strip strong {
  display: block;
  color: var(--oz-red);
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  line-height: 1;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--oz-light);
}

.section-title {
  max-width: 48rem;
  margin-bottom: 2.4rem;
}

.section-title h2 {
  font-weight: 800;
  letter-spacing: 0;
}

.service-card,
.value-card,
.contact-panel {
  height: 100%;
  padding: 1.5rem;
  background: var(--oz-white);
  border: 1px solid var(--oz-border);
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.value-card:hover {
  border-color: rgba(216, 13, 19, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.icon-box {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--oz-white);
  background: var(--oz-graphite);
  border-radius: 0.45rem;
}

.icon-box svg {
  width: 1.45rem;
  height: 1.45rem;
}

.accent-rule {
  width: 4rem;
  height: 0.25rem;
  margin: 1rem 0;
  background: var(--oz-red);
}

.product-image {
  width: 100%;
  border: 1px solid var(--oz-border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.page-hero {
  position: relative;
  padding: 5rem 0;
  color: var(--oz-white);
  background:
    linear-gradient(120deg, rgba(32, 38, 43, 0.95), rgba(63, 71, 77, 0.88)),
    url("../images/ozen-compressor-osc-series.jpg") center / cover no-repeat;
}

.hero-slider,
.page-hero-slider {
  position: relative;
  overflow: hidden;
}

.hero.hero-slider {
  background: var(--oz-white);
}

.page-hero-slider {
  background: var(--oz-charcoal);
}

.hero-slider > .container,
.page-hero-slider > .container {
  position: relative;
  z-index: 2;
}

.hero.hero-slider::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.91) 47%, rgba(255, 255, 255, 0.64) 100%);
}

.page-hero-slider::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(120deg, rgba(32, 38, 43, 0.95), rgba(63, 71, 77, 0.72));
}

.hero-slider .page-hero-slides,
.page-hero-slider .page-hero-slides,
.hero-slider .page-hero-slide,
.page-hero-slider .page-hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider .page-hero-slides,
.page-hero-slider .page-hero-slides {
  z-index: 0;
}

.hero-slider .page-hero-slide,
.page-hero-slider .page-hero-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slider .page-hero-slide.is-active,
.page-hero-slider .page-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.page-hero .lead,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .eyebrow::before {
  background: var(--oz-red);
}

.products-index-hero {
  padding: 4rem 0 2rem;
  text-align: center;
  background: var(--oz-white);
}

.products-index-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 850;
  letter-spacing: 0;
}

.products-index-hero .accent-rule {
  margin-right: auto;
  margin-left: auto;
}

.products-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-index-card {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  color: var(--oz-white);
  text-decoration: none;
  background: var(--oz-graphite);
  border-radius: 0.35rem;
}

.product-index-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(145deg, rgba(32, 38, 43, 0.12), rgba(32, 38, 43, 0.62));
}

.product-index-card img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.35s ease;
}

.product-index-card span {
  position: absolute;
  inset: 50% 1rem auto;
  z-index: 1;
  color: var(--oz-white);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
}

.product-index-card:hover img,
.product-index-card:focus img {
  transform: scale(1.05);
}

.product-overview-hero {
  padding: 3.5rem 0 2rem;
  background: var(--oz-light);
}

.product-overview-hero h1 {
  margin-bottom: 1.5rem;
  color: var(--oz-red-dark);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 850;
}

.product-overview-hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border: 1px solid var(--oz-border);
}

.product-content-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: 3rem;
  align-items: start;
}

.product-sidebar h2 {
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  color: var(--oz-red-dark);
  font-size: 1.45rem;
  font-weight: 850;
  border-bottom: 1px solid var(--oz-border);
}

.product-sidebar ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-sidebar a {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.65rem;
  padding: 0.75rem 0;
  color: var(--oz-charcoal);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--oz-border);
}

.product-sidebar a::before {
  color: var(--oz-red-dark);
  content: "›";
  font-size: 1.35rem;
  line-height: 1;
}

.product-copy h2,
.product-detail-copy h1 {
  color: var(--oz-red-dark);
  font-weight: 850;
}

.product-copy p,
.product-detail-copy p {
  color: var(--oz-graphite);
  font-size: 1.2rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: start;
}

.product-detail-image {
  display: grid;
  width: 100%;
  min-height: 28rem;
  max-height: 34rem;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--oz-white);
  border: 1px solid var(--oz-border);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  max-height: 30rem;
  object-fit: contain;
  background: var(--oz-white);
}

.product-detail-grid + .product-child-series {
  margin-top: 3rem;
}

.product-detail-copy h2 {
  color: var(--oz-red-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.product-detail-lower {
  margin-top: 3rem;
}

.product-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-tab-nav button {
  padding: 0.75rem 1rem;
  color: var(--oz-charcoal);
  font-weight: 750;
  background: var(--oz-white);
  border: 1px solid var(--oz-border);
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.product-tab-nav button:hover,
.product-tab-nav button:focus,
.product-tab-nav button.is-active {
  color: var(--oz-red-dark);
  background: var(--oz-border);
}

.product-info-panel {
  display: grid;
  gap: 1.4rem;
  padding: 2rem;
  background: #d8dcdf;
  border-radius: 0 0.35rem 0.35rem 0.35rem;
}

.product-info-panel h2 {
  color: var(--oz-red-dark);
  font-size: 1.1rem;
  font-weight: 850;
}

.product-tab-panel[hidden] {
  display: none;
}

.product-tab-media {
  max-width: 42rem;
  margin: 1.5rem 0 0;
}

.product-tab-media img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(32, 38, 43, 0.12);
  border-radius: 0.35rem;
}

.product-tab-media figcaption {
  margin-top: 0.55rem;
  color: var(--oz-graphite);
  font-size: 0.95rem;
}

.product-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.gallery-card {
  height: 100%;
  overflow: hidden;
  background: var(--oz-white);
  border: 1px solid var(--oz-border);
  border-radius: 0.5rem;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  padding: 1rem;
  font-weight: 700;
}

.form-control,
.form-select {
  border-color: var(--oz-border);
  border-radius: 0.45rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--oz-red);
  box-shadow: 0 0 0 0.2rem rgba(216, 13, 19, 0.14);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--oz-charcoal);
}

.site-footer a {
  color: var(--oz-white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffb4b7;
}

.reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .products-mega {
    display: none;
  }

  .products-mobile {
    display: block;
    padding: 0.5rem 0 1rem;
  }

  .products-mobile-group {
    border-top: 1px solid var(--oz-border);
  }

  .products-mobile summary {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0.5rem 0.8rem 1.5rem;
    font-weight: 750;
    cursor: pointer;
  }

  .products-mobile summary::after {
    content: "⌄";
  }

  .products-mobile a {
    display: block;
    padding: 0.75rem 0.5rem 0.75rem 2.5rem;
    border-top: 1px solid var(--oz-border);
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.7) 100%),
      url("../images/ozen-compressor-osc-series.jpg") center bottom / contain no-repeat;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .products-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-content-layout,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .product-detail-image {
    min-height: 16rem;
    max-height: 24rem;
  }

  .product-detail-image img {
    max-height: 24rem;
  }

  .products-index-grid {
    grid-template-columns: 1fr;
  }

  .product-index-card,
  .product-index-card img {
    min-height: 14rem;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
.product-specifications th {
  text-align: left !important;
    width: 35%;
    white-space: nowrap;
    font-weight: 600;
}

.product-specifications td {
  
    padding-left: 2rem;
    text-align: left !important;
}
.eyebrow a {
    color: var(--oz-red-dark);
    text-decoration: none;
}

.eyebrow a:hover,
.eyebrow a:focus {
    color: var(--oz-graphite);
}
.footer-links li {
    margin-bottom: .45rem;
}

.footer-links a {
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--oz-red);
}
.product-highlight {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.7;
}

/* ==========================================================================
   GALERIJA - FOLDERI, KARTICE I SAMOSTALNI ZATAMNJENI LIGHTBOX
   ========================================================================== */

/* Folder Cards Styling */
.folder-card {
  background: var(--oz-white, #ffffff);
  border: 1px solid var(--oz-border, #e5e5e5);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.folder-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #000;
}

.folder-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.folder-card:hover .folder-card-img-wrapper img {
  transform: scale(1.06);
  opacity: 1;
}

.folder-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.folder-card-body {
  padding: 1.25rem;
}

.folder-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--oz-red-dark, #222222);
}

/* Gallery Card Layout */
.gallery-card {
  position: relative;
  overflow: hidden;
  background: var(--oz-white, #ffffff);
  border: 1px solid var(--oz-border, #e5e5e5);
  border-radius: 0.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
}

.gallery-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.gallery-card a {
  display: block;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card figcaption {
  padding: 1rem;
  font-weight: 700;
  color: var(--oz-charcoal, #222222);
}

/* SAMOSTALNI LIGHTBOX (Full-screen Overlay) */
.custom-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.custom-lightbox-caption {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
}

/* Dugme za zatvaranje (X) */
.custom-lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.2s ease, transform 0.2s ease;
}

.custom-lightbox-close:hover {
  color: var(--oz-red, #e30613);
  transform: scale(1.15);
}

/* Strelice za navigaciju (Lijevo / Desno) */
.custom-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  font-size: 2.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}

.custom-lightbox-arrow:hover {
  background: rgba(227, 6, 19, 0.85); /* Oz Red barva pri prelazu */
  color: #ffffff;
}

.custom-lightbox-prev {
  left: 20px;
  border-radius: 4px;
}

.custom-lightbox-next {
  right: 20px;
  border-radius: 4px;
}
/* Skrivanje naziva fotografije u gridu galerije */
.gallery-card figcaption {
  display: none !important;
}

/* Skrivanje natpisa fotografije u Lightbox modalu */
#custom-lightbox-caption {
  display: none !important;
}
/* Centriranje naslova otvorenog foldera */
#current-folder-title {
  text-align: center;
  width: 100%;
  color: var(--oz-red-dark, #a3040d) !important;
}
/* Hide image title/caption on hover */
.gallery-card:hover figcaption {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.custom-lightbox-trigger {
  cursor: pointer;
}

/* Recursive product catalog tree */
.product-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-tree li {
  position: relative;
}

.product-tree-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.product-tree-item > .product-tree {
  grid-column: 1 / -1;
}

.product-tree-link {
  min-width: 0;
}

.product-tree-current {
  color: var(--oz-red-dark) !important;
  font-weight: 850;
}

.product-tree-level {
  margin-top: 0;
}

.product-tree-level .product-tree-level {
  margin-left: 1.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--oz-border);
}

.product-tree-toggle {
  width: 1.5rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  color: var(--oz-red-dark);
  background: transparent;
  cursor: pointer;
}

.product-tree-toggle::before {
  content: "v";
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 850;
  transition: transform 0.18s ease;
}

.product-tree-item.is-collapsed > .product-tree-toggle::before {
  transform: rotate(-90deg);
}

.product-tree-item.is-collapsed > .product-tree {
  display: none;
}

.product-breadcrumbs {
  margin-bottom: 1.5rem;
}

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--oz-graphite);
}

.product-breadcrumbs li + li::before {
  content: ">";
  margin-right: 0.45rem;
  color: var(--oz-red-dark);
}

.product-breadcrumbs a {
  color: inherit;
}

.product-breadcrumbs [aria-current="page"] {
  color: var(--oz-red-dark);
  font-weight: 750;
}

@media (max-width: 991.98px) {
  .product-tree-level .product-tree-level {
    margin-left: 0.85rem;
  }
}
.product-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-downloads .btn {
    margin: 0 !important;
}


/* ==========================================================================
   OZEN GM - SERTIFIKATI / CERTIFICATION CARDS
   ========================================================================== */

.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.certification-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--oz-white);
  border: 1px solid var(--oz-border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.certification-card:hover,
.certification-card:focus-within {
  border-color: rgba(216, 13, 19, 0.38);
  box-shadow: 0 22px 48px rgba(32, 38, 43, 0.17);
  transform: translateY(-4px);
}

.certification-card-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  background: var(--oz-white);
  border: 0;
  cursor: zoom-in;
}

.certification-card-button:focus-visible {
  outline: 3px solid rgba(216, 13, 19, 0.35);
  outline-offset: -3px;
}

.certification-card-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f8f9;
  transition: transform 0.35s ease;
}

.certification-card:hover .certification-card-button img {
  transform: scale(1.025);
}

.certification-card-body {
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
  border-top: 1px solid var(--oz-border);
}

.certification-card-body h3 {
  margin-bottom: 0.45rem;
  color: var(--oz-red-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.certification-card-body p {
  margin-bottom: 0;
  color: var(--oz-graphite);
}

.certification-card-meta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--oz-slate);
  font-size: 0.88rem;
  font-weight: 650;
}

.certification-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 23, 26, 0.94);
}

.certification-lightbox.is-open {
  display: flex;
}

.certification-lightbox-content {
  position: relative;
  display: flex;
  max-width: min(94vw, 1400px);
  max-height: 94vh;
  align-items: center;
  justify-content: center;
}

.certification-lightbox-image {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.2rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.certification-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: var(--oz-white);
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.certification-lightbox-close:hover,
.certification-lightbox-close:focus {
  color: var(--oz-white);
  background: var(--oz-red);
  transform: scale(1.06);
}

body.certification-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .certification-lightbox {
    padding: 1rem;
  }

  .certification-lightbox-image {
    max-width: 96vw;
    max-height: 84vh;
  }

  .certification-lightbox-close {
    top: 0.65rem;
    right: 0.65rem;
  }
}
.section + .certification-section {
    padding-top: 1rem;
}
 .certification-section + .section {
    padding-top: 1rem;
}
/* Širi uvodni tekst u sekcijama */
.certification-section .section-title,
.section-muted .section-title {
    max-width: none;
} 