


/* ===============================
   PRODUCTS GRID
=================================*/
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 15px;
  padding: 10px 0;
   grid-template-columns: repeat(3, 1fr); /* 2 per row mobile */
  

}

/* ===============================
   PRODUCT CARD
=================================*/
.shoe-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.shoe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0px 15px rgba(0,0,0,0.15);
}

/* ===============================
   IMAGE STYLE
=================================*/
.shoe-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  background: #f5f5f5;
}

.shoe-card:hover img {
  transform: scale(1.05);
}

/* ===============================
   PRODUCT NAME
=================================*/
.shoe-card h3 {
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  text-align: center;
}

/* ===============================
   STATUS BADGE
=================================*/
.shoe-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 300;
  border-radius: 20px;
  color: white;
}

.new {
  background: linear-gradient(25deg, #28a745, #20c997);
}

.in_stock {
  background: linear-gradient(25deg, #007bff, #00c6ff);
}

.sold_out {
  background: linear-gradient(25deg, #dc3545, #ff6b6b);
}

/* Sold out effect */
.disabled-shoe {
  opacity: 0.6;
  pointer-events: none;
}


.shoe-card {
  animation: fadeIn 0.5s ease forwards;
}


/* Mobile = 2 per row */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 0;
    width: 100%;
  }

  /* smaller images & tighter card spacing on mobile */
  .shoe-card img {
    height: 150px;
    object-fit: cover;
  }

  .shoe-card h3 {
    font-size: 12px;
    padding: 10px;
  }
}



/* 
 */


 /* ===============================
   MOBILE FILTER BUTTON
=================================*/
.mobile-filter-bar {
  display: none;
  margin: 15px 0;
}

/* ===============================
   FILTER OVERLAY
=================================*/
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 2000;
}

.filter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.filter-panel {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  padding: 20px;
  transform: translateY(-40px);
  transition: 0.3s ease;
}

.filter-overlay.active .filter-panel {
  transform: translateY(0);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* ===============================
   PAGINATION BOTTOM
=================================*/
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
}

/* ===============================
   MOBILE BEHAVIOR
=================================*/
@media (max-width: 768px) {

  .mobile-filter-bar {
    display: block;
  }

}


/* ===============================
   DESKTOP FILTER BAR
=================================*/
.filters-desktop {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 15px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  margin-bottom: 25px;
}

.filters-desktop input {
  flex: 1;
  min-width: 220px;
}

.filters-desktop select {
  min-width: 160px;
}

/* ===============================
   MOBILE FILTER BUTTON
=================================*/
.mobile-filter-bar {
  display: none;
  margin-bottom: 15px;
}

/* ===============================
   FILTER OVERLAY
=================================*/
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 2000;
}

.filter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.filter-panel {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  padding: 20px;
  transform: translateY(-40px);
  transition: 0.3s ease;
}

.filter-overlay.active .filter-panel {
  transform: translateY(0);
}

/* ===============================
   PAGINATION
=================================*/
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
}

/* ===============================
   RESPONSIVE BEHAVIOR
=================================*/
@media (max-width: 768px) {

  .filters-desktop {
    display: none;
  }

  .mobile-filter-bar {
    display: block;
  }
}

