/* Universal Product Page CSS */

/* Back Dugme */
.product-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 0 max(calc((100% - 1200px) / 2), 60px);
  padding: 8px 14px;
  color: #d1d1d1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 20px;
  background-color: rgba(19, 25, 29, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.product-back-btn:hover {
  color: #fff;
  background-color: rgba(19, 25, 29, 0.9);
}

@media (max-width: 1024px) {
  .product-back-btn {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .product-back-btn {
    margin: 15px 0 0 15px;
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Hero Sekcija */
.product-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 50px 100px;
  position: relative;
}

.product-hero-content {
  max-width: 800px;
}

.product-hero-logo {
  height: 96px;
  width: auto;
  margin-bottom: 20px;
}

.product-title {
  font-size: 4.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.product-title .red-text {
  color: var(--bs-red, #ef1d3e);
}

.product-powered-by {
  font-size: 16px;
  color: #d1d1d1;
  font-weight: 100;
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 20px;
}

.product-hero-description {
  font-size: 16px;
  color: #d1d1d1;
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Datasheet Dugmad */
.product-datasheet-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.product-ds-btn {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-top: 0 !important;
}

@media (max-width: 576px) {
  .product-datasheet-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Section Kartice */
.product-section-card {
  background-color: var(--bs-background-container-color, #13191d);
  border-radius: 50px;
  padding: 50px 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
  -webkit-box-shadow: 0px 18px 48px 11px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0px 18px 48px 11px rgba(0, 0, 0, 0.6);
  box-shadow: 0px 18px 48px 11px rgba(0, 0, 0, 0.6);
}

.product-section-card h2 {
  font-family: "San Francisco", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  color: #fff;
  margin-bottom: 30px;
}

.product-section-card p {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}

.product-bold-statement {
  font-weight: 600 !important;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Tagovi (CCPM) */
.product-resource-tags {
  margin-top: 25px;
  margin-bottom: 15px;
}

.product-resource-tags-label {
  font-size: 14px;
  color: #d1d1d1;
  margin-bottom: 12px;
}

.product-resource-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(239, 29, 62, 0.1);
  border: 1px solid rgba(239, 29, 62, 0.2);
  border-radius: 20px;
  padding: 8px 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 400;
}

.product-resource-tags .tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--bs-red, #ef1d3e);
  border-radius: 50%;
}

/* Video/Screenshot wrapper */
.product-media-container {
  border: 2px solid var(--bs-red, #ef1d3e);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.product-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Features Grid */
.product-features-subtitle {
  margin-bottom: 40px;
}

.product-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-feature-card {
  background-color: var(--bs-background-container-color, #13191d);
  border: 1px solid #2a3039;
  border-radius: 16px;
  padding: 30px;
  position: relative;
}

.product-feature-number {
  width: 32px;
  height: 32px;
  background-color: var(--bs-red, #ef1d3e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.product-feature-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.product-feature-card p {
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 1300px) {
  .product-section-card h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
  }
}

@media (max-width: 1024px) {
  .product-section-card {
    margin: 0 20px 40px;
    padding: 35px 40px;
  }
}

@media (max-width: 991px) {
  .product-section-card {
    max-width: 90%;
    margin: 0 auto 40px;
    padding: 35px 40px;
  }

  .product-section-card h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 110px 30px 60px;
  }

  .product-title {
    font-size: 3rem;
  }

  .product-section-card {
    padding: 30px 25px;
    border-radius: 30px;
  }

  .product-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 2.2rem;
  }

  .product-hero {
    padding: 100px 20px 40px;
  }

  .product-section-card {
    padding: 15px 20px;
  }

  .product-section-card p {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .product-section-card h2 {
    font-size: 25px;
    line-height: 1.4;
  }

  .product-feature-card p {
    font-size: 15px;
  }
}
