/* Products Component Styles */
.products-section {
  /* background-color:  rgba(33,37,41,1); */
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #013440;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-image-container .carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-image-container .carousel-inner,
.product-image-container .carousel-item {
  height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Carousel controls for product cards */
.product-card .carousel-control-prev,
.product-card .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 40px;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
  opacity: 1;
}

.product-card .carousel-control-prev-icon,
.product-card .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
  width: 30px;
  height: 30px;
}

.product-card .carousel-indicators {
  margin-bottom: 10px;
}

.product-card .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.product-card .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 1);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.95rem;
  color: #999999;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin: 0;
}

.product-footer {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Pagination */
.products-pagination {
  margin-top: 1.5rem;
}

.products-pagination .page-link {
  color: #ccc;
  background-color: #013440;
  border-color: #014b5a;
}

.products-pagination .page-link:hover {
  color: #fff;
  background-color: #014b5a;
  border-color: #667eea;
}

.products-pagination .page-item.active .page-link {
  color: #fff;
  background-color: #667eea;
  border-color: #667eea;
}

.products-pagination .page-item.disabled .page-link {
  color: #666;
  background-color: #012530;
  border-color: #013440;
}

/* Product Detail Page Styles */
.product-detail-images {
  position: sticky;
  top: 100px;
}

.product-detail-images .carousel {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-detail-images .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-images .carousel-control-prev-icon,
.product-detail-images .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 15px;
  width: 40px;
  height: 40px;
}

.product-detail-images .carousel-indicators {
  margin-bottom: 10px;
}

.product-detail-images .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
}

.product-detail-images .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 1);
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-image:hover {
  border-color: #667eea;
  transform: scale(1.05);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 1.5rem;
}

.product-detail-description {
  color: #999;
  line-height: 1.8;
}

.product-actions .btn {
  font-size: 1.1rem;
  padding: 12px;
}

.nav-tabs .nav-link {
  color: #999;
}

.nav-tabs .nav-link.active {
  color: #667eea;
  font-weight: 600;
}
