/* Initial visibility state */
.filter-items {
  visibility: hidden;
}

.page-loaded .filter-items {
  visibility: visible;
}

/* Layout containers */
.filters-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 auto;
  width: 100%;
  transition: all 0.4s ease-out;
}

/* Product card styles */
.product-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  margin: 0;
  width: 340px;
  animation: fadeIn 0.5s ease-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Product image styles */
.product-image {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Product info styles */
.product-info {
  padding: 1.5rem;
  background: linear-gradient(to bottom, transparent, white 5%);
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Price styles */
.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3436;
  display: flex;
  align-items: center;
}

.price::before {
  font-size: 1rem;
  margin-right: 2px;
}

/* Add to cart button */
.add-to-cart {
  background: #ff4757;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.add-to-cart:hover {
  background: #ff6b81;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.add-to-cart:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Filter menu styles */
.filters_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin: 0;
  list-style: none;
}

.filters_menu li {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  background: transparent;
  color: #666;
  overflow: hidden;
}

.filters_menu li.active {
  color: #ffffff;
  background: #ff4b2b;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.2);
  transform: scale(1.05);
}
/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.page-link.active {
  background-color: #ffbe33;
  color: white;
}

.page-link:hover {
  background-color: #f0f0f0;
  color: #000;
}

.dots {
  color: #666;
  letter-spacing: 2px;
  margin: 0 4px;
}

/* Filter and Sort Items */
.filter-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 800px;  
  width: 100%;
  margin: 20px auto;
  padding: 0 15px;
}

.filter-items select {
  min-width: 200px;  
  width: 100%;
  padding: 12px 40px 12px 15px; 
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;  
  color: #333;
  cursor: pointer;
  flex: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.filter-items select:hover {
  border-color: #666;
  background-color: #f8f8f8;
}

.filter-items select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
  padding: 10px;
  border-radius: 8px;
}

#searchInput {
  width: 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

#searchInput:focus {
  border-color: #007BFF;
  outline: none;
}

#clearButton, #searchButton {
  margin-left: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

#clearButton:hover, #searchButton:hover {
  background-color: #0056b3;
}

#clearButton {
  display: none;
}

#searchButton {
  display: inline-block;
}
#searchMessage {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}
/* Additional Media Queries */
@media (max-width: 480px) {
  .pagination {
    gap: 4px;
    padding: 6px;
  }

  .page-link {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .filter-items {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 10px;
  }

  .filter-items select {
    width: 100%;
    min-width: unset;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters-content {
    padding: 1rem;
  }

  .add-to-cart span {
    display: none;
  }

  .add-to-cart {
    padding: 8px;
  }

  .filters_menu {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .filters_menu li {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .filter-items {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .product-card {
    width: 100%;
  }
}
.nav_wishlist-btn:hover i,
.nav-link:hover i {
    color: #FFD700 !important; 
    transform: scale(1.1); 
    transition: all 0.3s ease; 
}
.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4444;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
}

.big-offer {
  display: block;
  font-size: 1.1em;
  margin-bottom: 3px;
  color: #fff000;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  color: #666;
  font-size: 0.9em;
}

.old-price del {
  color: #999;
  text-decoration: line-through;
}

.price {
  color: #333;
  font-weight: bold;
  font-size: 1.1em;
}

.savings {
  color: #2ecc71;
  font-size: 0.9em;
  font-weight: 500;
}
.offer-type {
  display: block;
  font-size: 0.8em;
  margin-bottom: 2px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 5px;
  border-radius: 2px;
}