/* Product Details page specific styles */

/* Hero Section */
.product-details-hero {
  background: linear-gradient(
    135deg,
    rgba(163, 191, 250, 0.1),
    rgba(255, 232, 214, 0.1)
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.product-details-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0.05;
  z-index: -1;
}

body[data-theme="dark"] .product-details-hero .hero-background {
  opacity: 0.1;
}

.product-details-hero .hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.product-details-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.product-details-hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body[data-theme="dark"] .product-details-hero .hero-subtitle {
  color: var(--text-muted-dark);
}

/* Product Details Content */
.product-details-content {
  background: var(--bg-light);
}

body[data-theme="dark"] .product-details-content {
  background: var(--bg-dark);
}

.product-image {
  margin-bottom: 2rem;
}

.product-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.02);
}

.product-content {
  padding: 2rem 0;
}

.product-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  li {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    gap: 12px;
    margin-bottom: 1rem;
    color: var(--text-light);
    &:before {
      content: "\f26b";
      font-family: "bootstrap-icons";
      font-size: 1.25rem;
      left: 0;
      top: 0;
      color: var(--secondary-color);
    }
    p {
      margin-bottom: 0;
    }
  }
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .product-features li {
  color: var(--text-dark);
}

.product-features i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

body[data-theme="dark"] .product-features i {
  color: var(--secondary-dark);
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sub-Products Section */
.sub-products {
  background: rgba(232, 236, 239, 0.2);
}

body[data-theme="dark"] .sub-products {
  background: rgba(26, 26, 26, 0.4);
}

.sub-product-card {
  background: var(--bg-light);
  border-radius: 20px;
  border: 1px solid rgba(163, 191, 250, 0.15);
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .sub-product-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sub-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(163, 191, 250, 0.25);
}

.sub-product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(163, 191, 250, 0.2);
  transition: transform 0.3s ease;
}

body[data-theme="dark"] .sub-product-image img {
  border-color: rgba(255, 255, 255, 0.15);
}

.sub-product-card:hover .sub-product-image img {
  transform: scale(1.03);
}

.sub-product-content {
  padding: 1rem;
}

.sub-product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

body[data-theme="dark"] .sub-product-title {
  color: var(--text-dark);
}

.sub-product-description {
  font-size: 1rem;
  color: var(--text-muted-light);
  margin-bottom: 1rem;
  line-height: 1.6;
  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }
  ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.3rem;
    li {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 12px;
      margin-bottom: 0.6rem;
      color: var(--text-light);
      &:before {
        content: "\f26b";
        font-family: "bootstrap-icons";
        font-size: 1.25rem;
        left: 0;
        top: 0;
        color: var(--secondary-color);
      }
    }
  }
}

body[data-theme="dark"] .sub-product-description {
  color: var(--text-muted-dark);
  ul {
    li {
      color: var(--text-dark);
    }
  }
}

.sub-product-references {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.6;
}

body[data-theme="dark"] .sub-product-references {
  color: var(--text-muted-dark);
}

.sub-product-references strong {
  color: var(--secondary-color);
}

body[data-theme="dark"] .sub-product-references strong {
  color: var(--secondary-dark);
}

/* Related Products Section */
.related-products {
  background: rgba(232, 236, 239, 0.3);
}

body[data-theme="dark"] .related-products {
  background: rgba(26, 26, 26, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-details-hero {
    padding: 100px 0 60px;
  }

  .product-details-hero .hero-title {
    font-size: 2.5rem;
  }

  .product-image img {
    height: 300px;
  }

  .product-content {
    padding: 1rem 0;
  }

  .product-actions {
    flex-direction: column;
  }

  .sub-product-card {
    padding: 1rem;
  }

  .sub-product-image img {
    height: 150px;
  }

  .sub-product-content {
    padding: 0.5rem 0;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.product-main {
  img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  &:hover img {
    transform: scale(1.02);
  }
}
