/* Category Hero Banner */
.category-hero {
  position: relative;
  height: 350px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.category-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.category-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.category-hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  animation: fadeInUp 0.6s ease;
}

.category-hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumb span {
  opacity: 0.7;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Section */
.product-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Filter Bar */
.filter-bar {
  background: #fff;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-left .result-count {
  font-size: 16px;
  color: #666;
}

.filter-left strong {
  color: #ff6b35;
  font-weight: 700;
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.sort-dropdown select {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
}

.sort-dropdown select:hover {
  border-color: #ff6b35;
}

.sort-dropdown select:focus {
  outline: none;
  border-color: #ff6b35;
}

.view-toggle {
  display: flex;
  gap: 5px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 3px;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: #f5f5f5;
  color: #ff6b35;
}

.view-btn.active {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* List View */
.product-grid.list-view {
  grid-template-columns: 1fr;
}

.product-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.product-grid.list-view .product-img {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
}

.product-grid.list-view .product-info {
  flex: 1;
  padding: 20px 30px;
}

.product-grid.list-view .btn-group {
  flex-direction: row;
  max-width: 400px;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.wishlist-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.wishlist-btn.active {
  background: #ff6b35;
  color: #fff;
}

.wishlist-btn.active svg {
  fill: currentColor;
}

/* Product Image */
.product-img {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: #fff;
  color: #ff6b35;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: #ff6b35;
  color: #fff;
}

/* Product Info */
.product-info {
  padding: 20px;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 16px;
}

.star.filled {
  color: #ffc107;
}

.star.half {
  background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-text {
  font-size: 13px;
  color: #666;
}

/* Product Name */
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 10px 0;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Price */
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
}

.original-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.discount {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cart {
  background: #fff;
  color: #ff6b35;
  border: 2px solid #ff6b35;
}

.btn-cart:hover {
  background: #ff6b35;
  color: #fff;
}

.btn-buy {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* No Products */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 15px;
}

.no-products-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-products h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.no-products p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  padding: 14px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 968px) {
  .category-hero-content h1 {
    font-size: 36px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .sort-dropdown {
    width: 100%;
  }
  
  .sort-dropdown select {
    flex: 1;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .product-grid.list-view .product-card {
    flex-direction: column;
  }
  
  .product-grid.list-view .product-img {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .category-hero {
    height: 250px;
  }
  
  .category-hero-content h1 {
    font-size: 28px;
  }
  
  .category-hero-content p {
    font-size: 14px;
  }
  

  
  .btn-group {
    flex-direction: column;
  }
   .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-img {
    height: 180px;
  }

  .current-price {
    font-size: 18px;
  }

  .product-name {
    font-size: 14px;
    height: auto;
  }
  
}










