/* 🌟 Sticky Filter Bar */
.latest-filter-bar {
    position: sticky;
    top: 120px;
    z-index: 50;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;

    display: flex;
    overflow-x: auto;
    gap: 10px;
    white-space: nowrap;
}

.latest-filter-bar::-webkit-scrollbar { display: none; }

/* Filter buttons */
.latest-filter-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
}

.latest-filter-btn.active,
.latest-filter-btn:hover {
    background: #007bff;
    color: #fff;
}

/* Subcategory Title Styling */
.subcat-title-box {
    text-align: center;
    margin: 40px 0 25px;
    position: relative;
}

.subcat-title-box h4 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.subcat-title-box:before,
.subcat-title-box:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

.subcat-title-box:before { left: 0; }
.subcat-title-box:after { right: 0; }

/* Mobile */
@media(max-width: 576px){
    .latest-filter-btn {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 16px;
    }
    .latest-filter-bar {
        top: 96px;
    }
}
/* 📱 Force 2 products in one row on small screens */
@media (max-width: 576px) {

  .row.g-4 > div[class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* product image height balanced */


  


  .add-to-cart-btn {
    font-size: 12px !important;
    padding: 4px 6px !important;
    
  }

  .wishlist-btn {
    padding: 4px 6px !important;
  }
}
/* 🔥 Premium Sticky Filter Bar (same as New Arrival) */
.latest-filter-bar {
  position: sticky;
  top: 110px;
  z-index: 999;
  background: #ffffff;
  padding: 10px 5px;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile: one-line scroll + small buttons */
@media (max-width: 576px) {
  .latest-filter-bar {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    top: 120px !important;
  }
  .latest-filter-bar::-webkit-scrollbar { display: none; }

  .latest-filter-btn {
    flex: 0 0 auto;
    padding: 4px 10px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    margin-right: 6px;
  }
}

/* Buttons */
.latest-filter-btn {
  padding: 6px 16px;
  border-radius: 25px;
  background: #f1f1f1;
  font-size: 14px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.latest-filter-btn:hover,
.latest-filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}
/* .product-card {
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 12px;
} */
/* .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); */
/* }

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
} */
/* 
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
} */
/* .product-card:hover .product-img {
  transform: scale(1.08);
} */

.no-image-placeholder {
  background: linear-gradient(135deg,#f7f7f7,#e0e0e0);
  height:250px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  text-transform:uppercase;
  border-radius:12px 12px 0 0;
}

/* MOBILE */
@media(max-width:575px){
  .col-sm-6 { flex:0 0 50%; max-width:50%; }
  /* .product-img-wrapper { height:190px; } */
  /* .product-card h6 { font-size:.9rem; }
  .product-desc { display:none; }

  .product-actions{
    flex-direction: row !important;
    justify-content: space-between;
    padding:.4rem .6rem .8rem;
  } */

  .add-to-cart-btn{
    font-size:.75rem !important;
    padding:4px 6px !important;
    flex:1;
  }

  .wishlist-btn{
    flex:0 0 auto;
    margin-left:6px !important;
    padding:4px 6px !important;
    font-size:.85rem;
  }
}/* 🌟 Stylish Subcategory Title – Modern E-commerce Look */
.subcat-title-box {
  width: 100%;
  text-align: center;
  margin: 50px 0 35px;
  position: relative;
}

.subcat-title-box h4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin: 0 15px;
  white-space: nowrap;
  font-size: 24px;
  color: #333;
}

/* Icon style */
.subcat-title-box h4 i {
  font-size: 22px;
  color: #007bff;
}

/* Gradient lines */
.subcat-title-box:before,
.subcat-title-box:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #007bff, transparent);
}

.subcat-title-box:before { left: 0; }
.subcat-title-box:after { right: 0; }

/* Mobile */
@media (max-width: 576px) {
  .subcat-title-box h4 {
    font-size: 18px;
  }
  .subcat-title-box h4 i {
    font-size: 18px;
  }
  .subcat-title-box:before,
  .subcat-title-box:after {
    width: 25%;
  }
}
/* 🔥 Premium Sticky Filter Bar */
.new-filter-bar {
  position: sticky;
  top: 110px;               /* HEADER se bachega — yeh important fix */
  z-index: 50;              /* header ke neeche nahi jayega */
  background: #ffffff;
  padding: 12px 5px;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: top 0.3s ease;
}
.new-filter-bar {
  z-index: 999 !important;
}
/* Mobile - header height alag hoti hai */
/* 📱 Mobile Sticky Bar Fix */
/* 📱 Mobile: keep all filter buttons on ONE line (scrollable horizontally) */
@media (max-width: 576px) {

  .new-filter-bar {
    position: sticky;
    top: 120px !important;
    z-index: 50;

    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;

    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
  }

  .new-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 4px 10px !important;   /* 🔥 smaller padding */
    font-size: 13px !important;     /* 🔥 smaller font */
    margin-right: 8px;
    border-radius: 20px;            /* cleaner pill look */
  }

  /* reduce icon size */
  .filter-btn i {
    font-size: 14px !important;
    margin-right: 4px !important;
  }
}


.filter-btn {
  padding: 6px 16px;
  border-radius: 25px;
  background: #f1f1f1;
  font-size: 14px;
  border: 1px solid #ddd;
}
.filter-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}


.filter-btn:hover {
  background: #007bff;
  color: #fff;
}
.filter-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
/* ⭐ Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;

  background: linear-gradient(135deg, #ff3b30, #d42016);
  color: #fff;

  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;

  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

