/* Product Detail Page Styles */

/* Product Images */
.carousel-inner img {
    max-height: 400px;
    object-fit: cover;
}

.thumbnail-link {
    display: block;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.thumbnail-link:hover {
    border-color: #20c997;
}

.img-thumbnail {
    padding: 0;
    height: 60px;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.img-thumbnail.active {
    opacity: 1;
    border-color: #0d9488;
}

/* Product Info */
.ratings .bi-star-fill {
    color: #ccc;
}

.ratings .bi-star-fill.text-warning {
    color: #ffc107;
}

.ratings .bi-star-fill.text-muted {
    color: #dee2e6 !important;
}

/* Reviews */
.rating-input .form-check-input:checked {
    background-color: #20c997;
    border-color: #20c997;
}

/* Related products */
.card-title {
    font-size: 1rem;
    font-weight: 500;
}

.card-text {
    font-size: 0.875rem;
}

/* Add to cart form */
#quantity {
    width: 70px;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .carousel-inner img {
        max-height: 300px;
    }

    .img-thumbnail {
        height: 50px;
    }
}

/* Product Page Specific Styles */

/* Thumbnail Gallery */
.carousel-item img {
    height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.thumbnail-link img {
    height: 80px;
    object-fit: cover;
}

/* Product Price */
.text-danger {
    color: #dc3545;
}

/* Product Details */
.product-features li {
    margin-bottom: 0.5rem;
}

/* Reviews Section */
.review-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

/* Related Products */
.related-product-img {
    height: 180px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .carousel-item img {
        height: 300px;
    }
}

/* Enhanced Product Card Styles */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 125%; /* This makes the image height 80% of the card */
  background-color: #f8f9fa;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #0d9488;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.product-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #115e59;
  margin-bottom: 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  height: 20px;
  transition: color 0.2s ease;
}

.product-card:hover .product-title {
  color: #0d9488;
}

.rating {
  color: #ffc107;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.rating i {
  margin-right: 1px;
}

.product-price {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.product-price del {
  font-size: 0.85rem;
}

/* Add teal color for price */
.product-price .fw-bold {
  color: #0d9488;
}

/* Links color */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #0d9488;
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .product-img-wrapper {
    padding-top: 100%;
  }

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

@media (max-width: 767px) {
  .product-img-wrapper {
    padding-top: 75%;
  }

  .rating {
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .product-content {
    padding: 10px;
  }

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

  .rating {
    font-size: 10px;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-price .fw-bold {
    font-size: 0.95rem;
  }

  small.text-muted {
    font-size: 9px;
  }
}