/* === Section Background & Container === */
.product-section {
  margin-top: 3rem;
  padding: 3rem 1rem;
  background-color: #f9fafb;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1e3a8a;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Section Heading === */
.product-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.product-section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e3a8a;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.product-section-header p {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #4b5563;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.6;
}

/* === Filter Buttons === */
.product-filter-bubbles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.product-bubble {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-bubble:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.product-bubble.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35);
}

/* === Horizontal Scroll for Filter Buttons (Mobile Safe) === */
@media (max-width: 600px) {
  .product-filter-bubbles {
    flex-wrap: nowrap;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    gap: 0.75rem;
  }
  .product-filter-bubbles::-webkit-scrollbar {
    display: none;
  }
  .product-bubble {
    flex: 0 0 auto;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

/* === Product Scroll Container (Horizontal Scroll) === */
/* === Product Scroll Buttons (Styled like Testimonial Arrows) === */
.product-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #e0f2fe; /* light blue */
  border: none;
  font-size: 2rem;
  color: #1e3a8a;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 9999px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.1);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.product-scroll-btn:hover {
  background-color: #1e40af;
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 64, 175, 0.2);
}

.product-scroll-left {
  left: 10px;
}

.product-scroll-right {
  right: 10px;
}

.product-container {
  position: relative; /* Ensure arrow buttons position correctly */
}

.product-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 37px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(30, 58, 138, .2);
  border-radius: 4px;
}

/* === Product Card === */
.product-product-card {
  flex: 0 0 260px;
  height: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  cursor: pointer;
}

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

/* === Image container === */
.product-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.product-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}

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

/* === Wishlist button === */
.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #3b82f6;
  background: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-wishlist-btn:hover {
  background: #dbeafe;
  transform: scale(1.1);
}

/* === Discount badge === */
.product-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  user-select: none;
  z-index: 10;
}

/* === Product info === */
.product-product-info {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

/* Product title */
.product-product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
}

/* Rating stars */
.product-product-rating {
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 10px;
  user-select: none;
}

/* Price styles */
.product-product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-current-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e3a8a;
}
.product-old-price {
  font-size: 0.95rem;
  color: #6b7280;
  text-decoration: line-through;
}

/* === Add to cart button === */
.product-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-add-to-cart-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* === More Products Section === */
.product-more-products {
  text-align: center;
  margin-top: 2rem;
}

.product-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.product-more-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* === More Products Card === */
.product-more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-more-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.35);
}

.product-more-link {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.product-more-icon {
  font-size: 2rem;
  font-weight: bold;
}

.product-more-text {
  font-size: 1rem;
  font-weight: 700;
}
 .fa-solid, .fas {
   font-weight: 900;
   font-size: 1rem;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  .product-product-card {
    flex: 0 0 220px;
    height: 360px;
  }
}

@media (max-width: 480px) {
  .product-product-card {
    flex: 0 0 85%;
    height: 340px;
  }
  .product-section-header h2 {
    font-size: 1.5rem;
  }
}
