.product-intro,
.product-preview,
.product-section {
  padding: 28px 0 10px;
}

.product-intro__panel,
.product-preview__panel,
.product-section__panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.product-intro__eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-intro__title {
  margin: 0 0 12px;
  color: var(--primary-light);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
}

.product-intro__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 1200px;
}

.product-preview__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.product-gallery__main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: none;

  height: 420px;   /* 🔥 ključna linija */
}

.product-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* 🔥 važno */
}

.product-gallery__expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 177, 111, 0.26);
  border-radius: 12px;
  background: rgba(18, 18, 20, 0.78);
  color: var(--primary-light);

  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;

  backdrop-filter: blur(8px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.product-gallery__expand:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 177, 111, 0.42);
  background: rgba(18, 18, 20, 0.9);
  box-shadow: 0 0 18px rgba(199, 68, 10, 0.16);
}

/* thumbnails smaller */
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 95px));
  gap: 10px;
}

.product-gallery__thumb {
  padding: 0;
  width: 95px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 177, 111, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 177, 111, 0.08);
}

.product-gallery__thumb-image {
  display: block;
  width: 95px;
  height: 95px;
  object-fit: cover;
}

/* lightbox */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.product-lightbox.is-open {
  display: block;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(6px);
}

.product-lightbox__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1200px);
  height: min(86vh, 820px);
  transform: translate(-50%, -50%);
  border-radius: 24px;
  border: 1px solid rgba(255, 177, 111, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.product-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 177, 111, 0.22);
  border-radius: 12px;
  background: rgba(18, 18, 20, 0.82);
  color: var(--primary-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.product-lightbox__toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.product-lightbox__tool {
  min-width: 44px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 177, 111, 0.22);
  border-radius: 12px;
  background: rgba(18, 18, 20, 0.82);
  color: var(--primary-light);
  font-weight: 800;
  cursor: pointer;
}

.product-lightbox__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 70px 24px 24px;
}

.product-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease;
  cursor: zoom-in;
}

@media (max-width: 700px) {
  
  .product-gallery__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(78px, 78px));
    gap: 8px;
  }

  .product-gallery__thumb,
  .product-gallery__thumb-image {
    width: 78px;
    height: 78px;
  }

  .product-gallery__expand {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  .product-lightbox__dialog {
    width: 94vw;
    height: 82vh;
  }
  .product-gallery__main {
    height: auto;
  }

  .product-gallery__main-image {
    height: auto;
    max-height: 60vh;
  }
  /* 🔥 SMANJI PANEL */
  .product-preview__panel {
    padding: 14px;
    gap: 12px;
  }

  /* 🔥 GLAVNA SLIKA BEZ PRAZNOG PROSTORA */
  .product-gallery__main {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 🔥 UKLONI OGRANIČENJE */
  .product-gallery__main-image {
    width: 100%;
    height: auto;
    max-height: none;   /* 🔥 KLJUČNO */
    object-fit: cover;  /* ili contain ako želiš padding */
  }

  /* 🔥 THUMB GRID KOMPAKTNIJI */
  .product-gallery__thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .product-gallery__thumb,
  .product-gallery__thumb-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-info-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.product-info-row__label {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-info-row__value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

.product-info-row__value--rich {
  white-space: normal;
}

.product-section__header {
  margin-bottom: 18px;
}

.product-section__title {
  margin: 0;
  padding-bottom: 20px;
  color: var(--primary-light);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
}

.product-specs-table-wrap,
.materials-table-wrap {
  overflow-x: auto;
}

.product-specs-table,
.materials-table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs-table th,
.product-specs-table td,
.materials-table th,
.materials-table td {
  padding: 8px 14px;
  max-width: 300px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.product-specs-table th,
.materials-table th {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.02);
}

.product-specs-table td,
.materials-table td {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
}

.materials-table__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.materials-table__icon-cell {
  width: 48px;
}

.materials-table__action {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
}

.materials-table__action:hover {
  text-decoration: underline;
}

.related-blogs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-blogs__card {
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-blogs__card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 177, 111, 0.22);
  box-shadow: 0 0 20px rgba(199, 68, 10, 0.08);
}

.related-blogs__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.related-blogs__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.related-blogs__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-blogs__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-blogs__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.related-blogs__title {
  margin: 0;
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
}

.related-blogs__excerpt {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
}

@media (max-width: 1100px) {
  .product-preview__panel {
    grid-template-columns: 1fr;
  }

  .related-blogs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .product-intro__panel,
  .product-preview__panel,
  .product-section__panel {
    padding: 18px;
  }

  .product-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-blogs__grid {
    grid-template-columns: 1fr;
  }
}
.product-intro__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-intro__content {
  min-width: 0;
}

.product-intro__video {
  width: 100%;
  /* max-width: 720px; */
}

.product-intro__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: none;
  background: black;
}

@media (max-width: 980px) {
  .product-intro__panel {
    grid-template-columns: 1fr;
  }
}
.product-info-row--price {
  border-color: rgba(255, 177, 111, 0.2);
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.product-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
}

/* AVAILABLE (tamno zelen + pulse) */
.product-status--available {
  background: rgba(8, 60, 25, 0.95);
  border: 1px solid rgba(0, 180, 90, 0.6);
  color: #eafff2;

  animation: pulse-green 1.6s infinite;
}

.product-status--not-available {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.product-status--in-development {
  background: rgba(196, 55, 13, 0.16);
  border-color: rgba(196, 55, 13, 0.26);
  color: var(--text);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 100, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 200, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 100, 0); }
}

.product-info-row--price {
  border-color: rgba(255, 177, 111, 0.2);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.product-purchase {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.product-purchase__button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;           /* oko 10% veće */
  padding: 0 24px;            /* oko 10% veće */
  border-radius: 15px;
  border: 1px solid rgba(255, 177, 111, 0.28);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.04rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.product-purchase__button:hover {
  transform: translateY(-2px);
}

.product-purchase__button--cart {
  background: linear-gradient(
    135deg,
    rgba(199, 68, 10, 0.18),
    rgba(255, 177, 111, 0.12)
  );
  color: var(--text);
}

.product-purchase__button--cart:hover {
  border-color: rgba(255, 177, 111, 0.5);
  box-shadow: 0 0 20px rgba(199, 68, 10, 0.25);
}

.product-purchase__button--inquiry {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-light);
}

.product-purchase__button--inquiry:hover {
  border-color: rgba(255, 177, 111, 0.38);
  box-shadow: 0 0 18px rgba(199, 68, 10, 0.12);
}

.product-purchase__icon {
  font-size: 1.08rem;
  line-height: 1;
}

.software-overview-block {
  margin-top: 26px;
}

.software-overview-block__title {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.software-highlights-grid,
.software-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.software-highlight-card,
.software-module-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.software-highlight-card__title,
.software-module-card__title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
}

.software-highlight-card__desc,
.software-module-card__desc {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .software-highlights-grid,
  .software-modules-grid {
    grid-template-columns: 1fr;
  }
}
.product-intro__description {
  margin: 5px 0 0;
  max-width: 100%;
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

.product-options-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.product-options-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-section__subtitle {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}

.product-option-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.product-option-row:first-child {
  border-top: 1px solid var(--line);
}

.product-option-row__label {
  color: var(--muted);
  font-weight: 700;
}

.product-option-row__value {
  color: var(--text);
  line-height: 1.7;
}

.product-specs-table__group th {
  padding: 16px 14px;
  color: var(--primary-light);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.02em;
  background:
    linear-gradient(90deg, rgba(196, 55, 13, 0.18), rgba(196, 55, 13, 0.04));
  border-top: 1px solid rgba(255, 177, 111, 0.14);
  border-bottom: 1px solid rgba(255, 177, 111, 0.14);
}

.product-specs-table__group:first-child th {
  border-top: none;
}

.product-specs-table--matrix thead th:first-child {
  color: var(--primary);
  text-align: left;
  font-weight: 800;
}

.product-specs-table--matrix thead th:not(:first-child) {
  color: var(--primary-light);
  text-align: center;
}

.product-specs-table--matrix th:first-child {
  width: 260px;
}

.product-specs-table--matrix td {
  text-align: center;
}

.product-specs__common td {
  text-align: left;
  opacity: 0.95;
}

.product-specs-highlight {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 177, 111, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(196, 55, 13, 0.10), rgba(196, 55, 13, 0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  animation: pulse-cta 2.2s infinite;
}

.product-specs-highlight__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-specs-highlight__title {
  margin: 0;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
}

.product-specs-highlight__text {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.product-specs-highlight__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;

  /* NEW */
  animation: pulse-cta 1.1s infinite;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.product-specs-highlight__button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.product-device-description__text {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.product-device-description__video-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.product-device-description__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

@media (max-width: 900px) {
  .product-specs-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-option-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .product-device-description__video {
    min-height: 220px;
  }
}

/* FIX: first column header ("Current range") should look like normal labels */
.product-specs-table--matrix thead th:first-child {
  color: var(--primary);       /* same as row labels */
  text-align: left;
  font-weight: 800;
}

/* keep variant values (5A / 2A / 0.5A) styled as before */
.product-specs-table--matrix thead th:not(:first-child) {
  color: var(--primary-light);
  text-align: center;
}

.product-specs-table--matrix thead th {
  text-align: center;
  color: var(--primary-light);
  font-weight: 800;
}

.product-specs-table--matrix td {
  text-align: center;
}

.product-specs__common td {
  text-align: center;
  opacity: 1;
}

.product-device-description__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.product-device-description__heading {
  margin: 0;
  color: var(--primary-light);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 800;
}

.product-device-description__subtitle {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: 1.06rem;
  line-height: 1.25;
  font-weight: 800;
}

.product-device-description__paragraph {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
}

.product-device-description__list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-device-description__list-item {
  line-height: 1.75;
}
@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 120, 60, 0.35);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 120, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 120, 60, 0);
  }
}