/* =========================
   General Layout
========================= */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* =========================
   Sidebar Filters
========================= */
.filter-sidebar {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#sidebarHead {
  font-weight: 600;
  font-size: 15px;
  background-color: #fff;
  color: #000000;
  padding: 10px 12px;
  border: none;
  box-shadow: none;
}

.accordion-button {
  font-weight: 600;
  font-size: 14px;
  background-color: #fff;
  color: #303030;
  padding: 10px 12px;
  border: none;
  box-shadow: none;
}

/* Make all accordion headers uppercase */
.accordion-button {
  text-transform: uppercase !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f5f5f5;
  color: #000;
}
.accordion-button {
  background-color: transparent !important; /* remove blue */
  box-shadow: none !important; /* remove outline shadow */
}

.accordion-button:not(.collapsed) {
  background-color: transparent !important; /* keep it clean when expanded */
  color: #000; /* change text color if needed */
}

.accordion-button:focus {
  box-shadow: none !important; /* remove blue focus glow */
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #e0e0e0;
}

.form-check {
  margin-bottom: 8px;
}

.form-check-label {
  font-size: 14px;
  color: #555;
}

/* =========================
   Sorting / Toolbar
========================= */
.d-flex select {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ddd;
}

.d-flex {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.clear-btn {
  background: none; /* No background */
  border: none; /* No border */
  color: #000; /* Text color (black) */
  font-size: 0.9rem; /* Small font size */
  cursor: pointer; /* Pointer on hover */
  float: right; /* Align to right */
  padding: 0; /* Remove default padding */
  font-weight: 500;
}
.clear-btn:hover {
  color: #555; /* Slightly darker on hover */
}

.accordion-button:not(.collapsed)::after {
  filter: none !important; /* keep arrow black when expanded */
  background-image: var(--bs-accordion-btn-icon) !important;
}

.row.g-3 {
  margin-top: 20px;
}

/* ///////////Card container///////////// */
.product-card {
  background: #fff;

  overflow: hidden;
  position: relative;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

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

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  color: #c92a2a;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow sparkles to show */
  text-decoration: none !important;
}

.wishlist-btn i {
  text-decoration: none !important;
  display: inline-block;
  line-height: 1; /* prevents ghost underline/baseline spacing */
}

/* Hover */
.wishlist-btn:hover {
  background: #c92a2a;
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(255, 77, 109, 0.4);
}

/* Active State (clicked) */
.wishlist-btn.active {
  background: #c92a2a;
  animation: popHeart 0.5s ease;
}

/* Heart Pop Animation */
@keyframes popHeart {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  50%  { transform: scale(1.2); }
  70%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Sparkle Burst */
.wishlist-btn .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #c92a2a;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleBurst 0.6s ease-out forwards;
}

@keyframes sparkleBurst {
  0% { transform: scale(0); opacity: 1; }
  80% { transform: scale(1.5); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

a.wishlist-btn {
  text-decoration: none !important;
}

.wishlist-icon {
  font-size: 22px; 
  cursor: pointer;
  transition: color 0.3s ease;
  color: #c92a2a; /* default color for filled */
}

.wishlist-icon.active {
  color: #c92a2a; /* filled heart */
}

.wishlist-icon:not(.active) {
  color: transparent;
  -webkit-text-stroke: 1px #c92a2a; /* outlined heart */
}



/* Product Details */
.product-details {
  padding: 10px 12px;
  text-align: center;
}

.product-details h4 {
  font-size: 1rem;
  margin: 5px 0;
  color: #333;
}

.product-price {
  font-size: 0.95rem;
  color: #333;

  font-style: normal;
  font-weight: 400;
  text-transform: capitalize;
  font-family: -apple-system, sans-serif;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 6px;
  font-weight: normal;
}

.discount {
  color: #ff5722;
  margin-left: 4px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .product-image img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .product-image img {
    height: 180px;
  }
  .product-details h4 {
    font-size: 0.95rem;
  }
}

.color-swatch {
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
  border: 2px solid #ccc;
}

/* ✅ Add tick mark when checked */
.form-check-input:checked + .color-swatch::after {
  content: '✔';
  color: white;
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ✅ Add dark overlay behind tick for visibility */
.form-check-input:checked + .color-swatch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
}

/* Always show border clearly on very light backgrounds */
.color-swatch[style*='white'],
.color-swatch[style*='ivory'],
.color-swatch[style*='beige'],
.color-swatch[style*='snow'],
.color-swatch[style*='ghostwhite'] {
  border: 2px solid #888; /* darker border for light colors */
}

/* Pagination Container */
.pagination {
  justify-content: center; /* center align */
  margin-top: 20px;
}

/* Page Items */
.pagination .page-item {
  margin: 0 4px;
}

/* Page Links */
.pagination .page-link {
  background-color: #f8f9fa; /* light background */
  color: #1e293b; /* dark text */
  border-radius: 50%; /* round buttons */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

/* Hover effect */
.pagination .page-link:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: scale(1.1);
}

/* Active page */
.pagination .page-item.active .page-link {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: bold;
  border: 1px solid #1e293b;
}

/* Prev/Next buttons slightly wider */
.pagination .page-link.prev,
.pagination .page-link.next {
  border-radius: 20px;
  width: auto;
  padding: 0 15px;
}
