/* product-detail.css - Additional styles for Product Detail page */

.detail-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.product-gallery {
  flex: 1 1 400px;
}

.product-gallery img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.thumb-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.thumb.active,
.thumb:hover {
  border-color: #e74c3c;
}

.product-info {
  flex: 1 1 400px;
}

.product-info h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.cas {
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 20px;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.specs li {
  margin-bottom: 8px;
  color: #555;
}

.actions {
  display: flex;
  gap: 15px;
}

/* Tabs */
.detail-tabs {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.detail-tabs input[type="radio"] {
  display: none;
}

.detail-tabs label {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 5px;
  background: #f5f7fa;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-weight: 600;
  color: #2c3e50;
}

.detail-tabs input:checked + label {
  background: #e74c3c;
  color: white;
}

.tab-content {
  display: none;
  padding: 25px 0;
  border-top: 2px solid #e74c3c;
}

#tab-desc:checked ~ #content-desc,
#tab-app:checked ~ #content-app,
#tab-sup:checked ~ #content-sup,
#tab-ref:checked ~ #content-ref,
#tab-pack:checked ~ #content-pack {
  display: block;
}

/* Related Products Styles */
.related-products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-products h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 30px;
  position: relative;
}

.related-products h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #e74c3c;
  margin: 10px auto;
}

.related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.product-img {
  height: 180px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-related {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-related h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.product-related h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.product-related h3 a:hover {
  color: #e74c3c;
}

.product-related .cas {
  color: #e74c3c;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-related p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

@media (max-width: 992px) {
  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .related-products .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .detail-grid {
    flex-direction: column;
  }
}