.shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 20px;
    padding: 20px;
    margin-left: 40px;
    
}

.product {
  flex-grow: 0 !important;
  flex-shrink: 0;
  align-self: flex-start;
  width: auto;
  height: auto;
  padding: 10px;
  margin-bottom: 20px;
}

.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  max-height: 220px;
}




.fancy-pagination {
  justify-content: center;
  gap: 30px;
}

.fancy-pagination .page-link {
  color: #6a0dad;
  border: 1px solid #6a0dad;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Hover effect */
.fancy-pagination .page-link:hover {
  background: #6a0dad;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(106, 13, 173, 0.3);
}

/* Active page */
.fancy-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #6a0dad, #9b4dff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.4);
}

/* Disabled look (optional) */
.fancy-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}


.addToCart-Btn{
  margin-top: 5px;
  background-color: #843fb5;
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
 
}




.product:hover .addToCart-Btn {
    display: block;
}


.cart-icon {
  position: relative;
}

.cart-icon a {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: rgb(139, 21, 165);
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
 


.product-loader {
   margin-left: 40px; 
   padding: 10px; 
    gap: 10px; 
    display: grid; 
   grid-template-columns: 
   repeat(auto-fill, minmax(220px, 1fr));
   }

@media (min-width: 992px) {
  .product-loader {
    grid-template-columns: repeat(4, 1fr); /* FORCE 4 COLUMNS ON DESKTOP */
  }
}

.loader-card {
  height: 300px;
  width: 280px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ececec, #f7f7f7, #ececec);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}





/* ============================ PAGINATION ============================ */
 .pagination { display: flex; justify-content: center; gap: 10px; margin: 30px 0; } .pagination button { padding: 10px 16px; border: 2px solid #b57edc; background: #fff; color: #4a2c6d; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.25s ease; } .pagination button:hover { background: #b57edc; color: white; } .pagination button.active { background: #6a0dad; color: white; border-color: #6a0dad; }













@media (max-width: 768px) {
  .shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    margin-left: 0;
    
  }

  .shop-container .product {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  .addToCart-Btn {
    padding: 7px 15px;
    font-size: 14px;
  }

  

}
