/* ===================================
   Product Detail Page Styles
   =================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) 0;
  font-size: var(--text-sm);
  color: var(--color-gray);
}

.breadcrumb a {
  color: var(--color-gray);
  transition: var(--transition-base);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-gray-light);
}

/* Product Detail Hero */
.product-detail-hero {
  margin-top: 72px;
  background: #f5f5f5;
  padding: 0;
}

.product-detail-hero-image {
  max-width: 1728px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-detail-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product Detail Section */
.product-detail-section {
  padding: 3rem 0 4rem;
  background-color: #ffffff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-main-image {
  position: relative;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-main-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  bottom: 1.5rem;
  background-color: #F9F9F9;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
  background-color: #EEEEEE;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.gallery-nav-prev {
  right: 5rem;
}

.gallery-nav-next {
  right: 1.5rem;
}

.product-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid #e0e0e0;
  border-radius: 0.375rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #4a4a4a;
}

.thumbnail.active {
  background-color: #000000;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.product-brand {
  font-size: 1rem;
  font-weight: 400;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.product-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #4a4a4a;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
}

.product-brand-logo {
  flex-shrink: 0;
}

.product-brand-logo img {
  max-width: 125px;
  height: 75px;
  object-fit: contain;
}

.product-description-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-description-text {
  color: #4a4a4a;
  font-size: 0.9375rem;
  line-height: 1.7;
  font-family: 'DM Sans', sans-serif;
}

.product-description-text p {
  margin-bottom: 1.25rem;
}

.product-description-text p:last-of-type {
  margin-bottom: 1.5rem;
}

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

.product-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.product-features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4a4a4a;
  font-weight: 700;
}

.product-detail-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 2rem;
  width: 100%;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.btn-download-brochure {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #e9483f;
  color: #ffffff;
  padding: 0.875rem 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-download-brochure:hover {
  background-color: #d13028;
  box-shadow: 0 4px 12px rgba(233, 72, 63, 0.3);
}

.btn-download-brochure svg {
  width: 20px;
  height: 20px;
}

/* Related Products Section */
.related-products-section {
  padding: 4rem 0 5rem;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.related-products-wrapper {
  position: relative;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.related-products-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #4a4a4a;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
  padding-top: 0.5rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.related-product-card {
  background-color: #F9F9F9;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-product-card:hover {
  background-color: #EEEEEE;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #4a4a4a;
  text-align: center;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  order: -1;
}

.related-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background-color: transparent;
}

.related-product-image img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.related-nav {
  position: absolute;
  bottom: 0;
  background-color: #F9F9F9;
  color: #2a2a2a;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.related-nav:hover {
  background-color: #EEEEEE;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.related-nav svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.related-nav-prev {
  right: 5rem;
}

.related-nav-next {
  right: 0;
}

/* Mobile Improvements */
@media (max-width: 767px) {
  /* Hero mobile */
  .product-detail-hero {
    margin-top: 65px;
  }

  /* Product detail section mobile */
  .product-detail-section {
    padding: 2rem 0 3rem;
  }

  .product-detail-grid {
    gap: 2rem;
  }

  /* Gallery mobile */
  .product-main-image {
    padding: 1.5rem;
    min-height: 300px;
  }

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

  /* Gallery navigation mobile */
  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .gallery-nav svg {
    width: 24px;
    height: 24px;
  }

  .gallery-nav-prev {
    right: 4rem;
  }

  .gallery-nav-next {
    right: 1rem;
  }

  /* Thumbnails mobile */
  .product-thumbnails {
    gap: 0.75rem;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }

  /* Product info mobile */
  .product-info {
    gap: 1rem;
  }

  .product-info-header {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .product-brand {
    font-size: 0.875rem;
  }

  .product-title {
    font-size: 1.625rem;
    line-height: 1.3;
  }

  .product-brand-logo img {
    max-width: 125px;
    height: 75px;
  }

  /* Description mobile */
  .product-description-grid {
    gap: 1.5rem;
  }

  .product-description-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .product-description-text p {
    margin-bottom: 1rem;
  }

  .product-features li {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
  }

  /* Detail image mobile */
  .product-detail-image {
    padding: 1.5rem;
  }

  .product-detail-image-wrapper {
    gap: 1.25rem;
  }

  /* Download button mobile - full width for easier tapping */
  .btn-download-brochure {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Related products mobile */
  .related-products-section {
    padding: 3rem 0 4rem;
  }

  .related-products-wrapper {
    padding-bottom: 3rem;
    gap: 1.5rem;
  }

  .related-products-title {
    font-size: 1.5rem;
  }

  .related-products-grid {
    gap: 1.25rem;
  }

  .related-product-card {
    padding: 1.25rem;
  }

  .related-product-name {
    font-size: 0.9375rem;
  }

  .related-product-image {
    min-height: 120px;
  }

  .related-product-image img {
    max-height: 120px;
  }

  /* Related navigation mobile */
  .related-nav {
    width: 36px;
    height: 36px;
  }

  .related-nav svg {
    width: 24px;
    height: 24px;
  }

  .related-nav-prev {
    right: 4rem;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 4rem;
  }

  .product-description-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .product-thumbnails {
    justify-content: flex-start;
  }

  .related-products-wrapper {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
  }

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

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

  .related-products-title {
    font-size: 1.625rem;
  }
}

@media (min-width: 1024px) {
  .product-detail-grid {
    gap: 5rem;
  }

  .product-description-grid {
    gap: 3rem;
  }

  .related-products-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .related-products-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .product-brand-logo {
    display: none;
  }
}
