/* Shop Page Styles */

/* Shop Hero Section */
.shop-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1200/300');
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.shop-hero h1 {
  font-size: 36px;
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease forwards;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  animation: fadeIn 0.8s ease forwards;
}

#search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}

#search-button {
  padding: 12px 25px;
  background: linear-gradient(90deg, #6c5ce7, #00b894);
  border: none;
  border-radius: 0 25px 25px 0;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-button:hover {
  background: linear-gradient(90deg, #00b894, #6c5ce7);
}

/* Categories Section */
.categories-section {
  padding: 20px 0 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #fff;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #00b894);
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.category-btn {
  padding: 10px 20px;
  background-color: #2a2a2a;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
  background: linear-gradient(90deg, #6c5ce7, #00b894);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Products Section */
.products-section {
  padding: 20px 0 60px;
}

.sort-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.sort-options label {
  margin-right: 10px;
  color: #b0b0b0;
}

#sort-select {
  padding: 8px 12px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
  transition: color 0.3s ease;
}

.product-card:hover .product-title {
  color: #00b894;
}

.product-price {
  font-size: 20px;
  color: #6c5ce7;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Product Modal Styles */
.product-modal-content {
  width: 80%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.product-detail-container {
  display: flex;
  flex-wrap: wrap;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

#product-detail-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

#product-detail-price {
  font-size: 24px;
  color: #6c5ce7;
  margin-bottom: 20px;
  font-weight: bold;
}

#product-detail-description {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #b0b0b0;
}

#product-detail-category {
  display: inline-block;
  padding: 5px 15px;
  background-color: #2a2a2a;
  border-radius: 15px;
  margin-bottom: 25px;
  color: #00b894;
  font-size: 14px;
}

.product-detail-actions {
  display: flex;
  gap: 15px;
}

.add-to-cart-btn, .buy-now-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 2px solid #6c5ce7;
}

.add-to-cart-btn:hover {
  background-color: #6c5ce7;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.buy-now-btn {
  background: linear-gradient(90deg, #6c5ce7, #00b894);
  color: #fff;
}

.buy-now-btn:hover {
  background: linear-gradient(90deg, #00b894, #6c5ce7);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #b0b0b0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .shop-hero {
    padding: 40px 0;
  }
  
  .shop-hero h1 {
    font-size: 28px;
  }
  
  .search-container {
    flex-direction: column;
    width: 90%;
  }
  
  #search-input {
    border-radius: 25px;
    margin-bottom: 10px;
  }
  
  #search-button {
    border-radius: 25px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-modal-content {
    width: 95%;
  }
}
 CSS file (shop.css) */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: none;
  user-select: none;
  z-index: 1001;
}

.close:hover {
  color: #555;
  transform: none;
}

/* Make sure the modal content has appropriate positioning */
.modal-content {
  position: relative;
}
