/* Products Page Specific Styles */

.page-header {
 background: linear-gradient(135deg, #ffecd2, #fcb69f);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}



.breadcrumb {
  margin-top: 1rem;
}

.breadcrumb a {

  text-decoration: none;
  opacity: 0.8;
}

.breadcrumb a:hover {
color: white;
  opacity: 1;
}

/* Filters Section */
.filters-section {
  background: #f8f9fa;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.filters-header h2 {
  color: #ff6b35;
  margin: 0;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  background: white;
  border: 2px solid #ff6b35;
  color: #ff6b35;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
  background: #ff6b35;
  color: white;
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: white;
  border: 2px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.sort-filter select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  background: white;
  color: #666;
  cursor: pointer;
}

/* Products Section */
.products-section {
  padding: 3rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
}

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

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 107, 53, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-quick-view {
  background: white;
  color: #ff6b35;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-quick-view:hover {
  background: #ff6b35;
  color: white;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-rating i {
  color: #ffc107;
  font-size: 0.9rem;
}

.product-rating span {
  color: #666;
  font-size: 0.8rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff6b35;
}

.original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.btn-buy-now {
  width: 100%;
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-cart:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
  text-align: center;
}

.btn-load-more {
  background: transparent;
  color: #ff6b35;
  border: 2px solid #ff6b35;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: #ff6b35;
  color: white;
}

/* Quick View Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}

.close:hover {
  color: #ff6b35;
}

.modal-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.product-image-large {
  flex: 1;
}

.product-image-large img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.product-details {
  flex: 1;
}

.product-details h2 {
  color: #333;
  margin-bottom: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.qty-btn {
  background: #ff6b35;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector input {
  width: 60px;
  padding: 5px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 5px;
}

.btn-add-cart-modal {
  width: 100%;
  background: #ff6b35;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-add-cart-modal:hover {
  background: #e55a2b;
}

/* List View Styles */
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.products-grid.list-view .product-card {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.products-grid.list-view .product-image {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.products-grid.list-view .product-image img {
  height: 100%;
}

.products-grid.list-view .product-info {
  flex: 1;
  padding: 0;
}

.products-grid.list-view .btn-add-cart {
  width: auto;
  padding: 8px 20px;
  margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filters {
    justify-content: center;
  }

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

  .modal-body {
    flex-direction: column;
    padding: 1rem;
  }

  .products-grid.list-view .product-card {
    flex-direction: column;
    text-align: center;
  }

  .products-grid.list-view .product-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}
