

/* Make all product cards same height but keep Bootstrap width */
a {
  color: #000;
}

/* Price styling */
.price-before-discount {
  text-decoration: line-through;
  color: #888;
}

/* Product Grid Layout — default (mobile = block) */
.product-grid {
  display: block; /* default block layout for mobile */
}

/* Enable flex layout only on tablet and larger screens */
@media (min-width: 768px) {
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .product-grid .col-sm-6,
  .product-grid .col-md-4 {
    display: flex;
  }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 400px; /* consistent card height */
  margin: 10px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Product Image */
.product-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Product Info */
.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 10px;
}

/* Product Name */
.product-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.3em;
  height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Specs */
.product-spec {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 8px;
  min-height: 90px;
}

/* Product Price */
.product-price {
  font-weight: bold;
  color: #28a745;
  font-size: 16px;
  text-align: center;
  margin-top: auto;
}

/* Product Icons */
.product-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.cart-icon, .wishlist-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #31b1d8 !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.cart-icon:hover, .wishlist-icon:hover {
  color: #000 !important;
}


/* Filter Sidebar */
.filter-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
}

.filter-section h3 {
  margin-top: 0;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.filter-option {
  margin-bottom: 8px;
}

.filter-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
}

.filter-option input {
  margin-right: 8px;
}

.price-range-inputs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.price-range-inputs input {
  width: 100%;
  padding: 5px;
}

.apply-filters-btn {
  background-color: #31b1d8;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: all 0.3s ease;
}

.apply-filters-btn:hover {
  background-color: #2a9ec4;
}

.filter-option-group {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.filter-option-group h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.clear-filters {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #31b1d8;
  text-decoration: underline;
  cursor: pointer;
}

.clear-filters:hover {
  color: #2a9ec4;
}

/* Notification (Cart/Wishlist added) */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: #31b1d8;
  color: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

@keyframes slideIn {
  from { right: -100px; opacity: 0; }
  to { right: 20px; opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fa-spinner {
  margin: 0;
}

/* Card Spacing */
.col-sm-6.col-md-4 {
  margin-bottom: 20px;
  padding: 10px;
}

.row {
  margin-left: -10px;
  margin-right: -10px;
}

/* Responsive Layouts */
@media (min-width: 992px) {
  .col-md-9 { width: 100% !important; }
  .container { width: 970px; }
}

/* 4 cards per row on ≥1200px */
@media (min-width: 1200px) {
  .container { width: 1400px !important; }
  .product-grid .col-md-4 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* 5 cards per row on ≥1500px */
@media (min-width: 1500px) {
  .container { width: 1900px !important; }
  .product-grid .col-md-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
.fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas
Specificity: (0,1,0)
 {
     display: var(--fa-display, inline-flex) !important; 
}
.fa {
    display: inline-flex !important;
    font-size: x-large !important;
}

