/* Search Section */
.search-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.search-container {
  text-align: center;
}

.search-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 10px;
  color: var(--white);
}

.search-section > .container > p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-btn {
  padding: 15px 30px;
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.results-info {
  background: var(--white);
  padding: 30px 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 5;
  border-radius: 10px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}


/* Filter Section */
.filter-section {
  margin-bottom: 40px;
}

.filter-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 18px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Search Results Section */
.search-results-section {
  padding: 60px 0;
  min-height: 400px;
}

.results-info {
  margin-bottom: 40px;
}

.results-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 10px;
}

.results-info p {
  color: var(--gray);
  font-size: 16px;
}

/* Products Grid - Search Results */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.header .logo img{
  width: 90px;
  height: 90px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card.hidden {
  display: none;
}

.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  z-index: 2;
}

.badge-sale {
  background: var(--primary);
}

.badge-new {
  background: #4caf50;
}

.badge-hot {
  background: var(--secondary);
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-category {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 16px;
  color: var(--dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info h3 a:hover {
  color: var(--primary);
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.product-price .old-price {
  font-size: 14px;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.product-rating i {
  color: var(--gold);
  font-size: 13px;
}

.product-rating i.empty {
  color: #ddd;
}

.rating-text {
  font-size: 13px;
  color: var(--gray);
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background: var(--primary);
}

.product-overlay {
  display: none;
}

.add-to-cart-btn.added {
  background: var(--success);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--light);
  border-radius: 15px;
}

.no-results i {
  font-size: 64px;
  color: var(--gray);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--gray);
  font-size: 16px;
}

.no-results a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.no-results a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header .logo img{
    width: 50px;
    height: 50px;
  }
  .search-section h1 {
    font-size: 36px;
  }

  .search-btn {
    justify-content: center;
    padding: 10px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .header .logo img{
    width: 50px;
    height: 50px;
  }
  .search-section {
    padding: 40px 0;
  }

  .search-section h1 {
    font-size: 28px;
  }

  .search-section > .container > p {
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}
