<style>

/* ── Wrap ── */
.sp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: #111;
}

/* ── Naziv ── */
.sp-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 32px;
  text-transform: uppercase;
  text-align: center;
}

/* ── Body grid ── */
.sp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Lijeva kolona ── */
.sp-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.sp-price {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.sp-price-value {
  color: #1a8a3a;
}


/* Glavna slika wrap */
.sp-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
}

/* Strelice */
.sp-img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  transition: opacity 0.15s, background 0.15s;
  padding: 0;
}
.sp-img-arrow:hover { background: rgba(255,255,255,0.97); }
.sp-img-arrow--prev { left: 8px; }
.sp-img-arrow--next { right: 8px; }
.sp-img-arrow.is-hidden { opacity: 0; pointer-events: none; }

.sp-main-img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f3f3f3;
}

.sp-main-img.is-active {
  display: block;
}

/* Carousel — desktop: višeredni wrap */
.sp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.sp-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.sp-thumb:hover,
.sp-thumb.is-active {
  border-color: #111;
}

/* ── Desna kolona ── */
.sp-right {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-desc-line {
  display: block;
  padding-left: 4px;
}

/* Company blok iznad meta */
.sp-company {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.sp-company-logo {
  max-height: 36px;
  max-width: 110px;
  object-fit: contain;
}

/* Meta podaci */
.sp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  color: #444;
}

.sp-meta-row {
  font-size: 18px;
  font-weight: 400;
}
.sp-meta-row:empty { display: none; }
.sp-meta-row strong {
  font-weight: 700;
  color: #111;
}

/* Lead time ispod actions */
.sp-lead-row {
  font-size: 18px;
  font-weight: 400;
  color: #444;
  padding: 4px 0;
}
.sp-lead-row:empty { display: none; }
.sp-lead-row strong { font-weight: 700; color: #111; }

/* CTA */
.sp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.sp-btn-primary {
  background: #111;
  color: #fff !important;
}
.sp-btn-primary:hover { background: #333; }

.sp-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sp-btn-viber {
  background: #7360f2;
  color: #fff !important;
}
.sp-btn-viber:hover { background: #5a4ad1; }

.sp-btn-whatsapp {
  background: #25d366;
  color: #fff !important;
}
.sp-btn-whatsapp:hover { background: #1aab52; }

.sp-btn-contact {
  background: #e87722;
  color: #fff !important;
}
.sp-btn-contact:hover { background: #c9661a; }

.sp-btn-scenes {
  background: #fff;
  color: #111 !important;
  border: 1px solid #ddd;
}
.sp-btn-scenes:hover { background: #111; color: #fff !important; }

/* ── Scenes section ── */
.sp-scenes-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #ddd;
}
@media (max-width: 768px) {
  .sp-scenes-section { margin-top: 0; }
}
.sp-scenes-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  margin: 0 0 10px;
}
.sp-scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sp-scene-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  opacity: 0.88;
  transition: opacity 0.15s;
}
.sp-scene-img:hover { opacity: 1; }

/* ── Mini floating video ── */
.sp-mini-wrap {
  position: fixed;
  top: 130px;
  right: 4px;
  z-index: 9998;
  touch-action: none;
  cursor: move;
}
.sp-mini-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 0 0 0 6px;
  font-size: 14px;
  cursor: pointer;
  line-height: 22px;
  text-align: center;
  z-index: 2;
  padding: 0;
}
.sp-mini-holder {
  width: 70px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.sp-mini-holder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 769px) {
  .sp-mini-wrap {
    top: auto;
    bottom: 50px;
    right: 30px;
  }
  .sp-mini-holder {
    width: 200px;
    height: 200px;
    border-radius: 14px;
  }
  .sp-mini-close {
    width: 26px;
    height: 26px;
    font-size: 16px;
    line-height: 26px;
    border-radius: 0 0 0 8px;
  }
}

/* ── Lightbox ── */
#spLightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.splb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.93);
}
.splb-img {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 100px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
  user-select: none;
}
.splb-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.splb-close:hover { background: rgba(255,255,255,0.28); }
.splb-arr {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}
.splb-arr:hover { background: rgba(255,255,255,0.28); }
.splb-arr.is-hidden { opacity: 0; pointer-events: none; }
.splb-arr--prev { left: 10px; }
.splb-arr--next { right: 10px; }
.splb-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.06em;
  z-index: 2;
}
@media (max-width: 768px) {
  .splb-img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
    border-radius: 8px;
  }
  .splb-arr { width: 40px; height: 40px; font-size: 28px; }
  .splb-arr--prev { left: 4px; }
  .splb-arr--next { right: 4px; }
}

/* ── Video modal ── */
#spVideoModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}
.spm-box {
  position: relative;
  z-index: 1;
  width: 92vw;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.spm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.spm-close:hover { background: rgba(255,255,255,0.15); }
.spm-video-wrap video {
  width: 100%;
  display: block;
  max-height: 82vh;
  object-fit: contain;
}

/* ── Related ── */
.sp-related {
  margin-top: 20px;
}

.sp-related-title {
  font-size: 18px !important;
  font-weight: 700;
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif !important;
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sp-related-card {
  display: block;
  text-decoration: none;
  color: #111;
}

.sp-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f3f3;
  transition: opacity 0.15s;
}

.sp-related-card:hover img { opacity: 0.85; }

.sp-related-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.sp-related-price {
  font-size: 13px;
  color: #1a8a3a;
  font-weight: 600;
}

/* ── Mobilni ── */
@media (max-width: 768px) {
  .sp-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
  }

  .sp-price {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
  }

  .sp-meta-row { font-size: 16px; }
  .sp-lead-row { font-size: 16px; }

  .sp-meta {
    margin-top: -15px;
  }

  .sp-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sp-right {
    position: static;
  }

  /* Mobilni: scroll snap slider */
  .sp-img-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transition: height 0.25s ease;
  }
  .sp-img-wrap::-webkit-scrollbar { display: none; }

  .sp-main-img {
    display: block !important;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
  }

  /* Strelice sakrivene na mobilnom */
  .sp-img-arrow { display: none; }

  /* Thumbnails — horizontalni skrol */
  .sp-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sp-thumbs::-webkit-scrollbar { display: none; }

  .sp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

  .sp-thumb.is-active {
    border-width: 3px;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
  }

  .sp-btn { font-size: 13px; }

  .sp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

</style>
