/* ================= CATEGORY PAGE STYLES ================= */
.category-hero {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.category-hero h1 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 20px;
}

.category-hero p {
  color: #6c757d;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.category-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.stat-badge {
  background: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-badge i {
  color: #667eea;
}

.category-hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-hero-image:hover img {
  transform: scale(1.05);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 15px;
}

.breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #5a67d8;
}

.breadcrumb-item.active {
  color: #6c757d;
}

.filter-section {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.filter-group .form-select,
.filter-group .form-control {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.products-section {
  padding: 60px 0;
}

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

.product-card-enhanced {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 320px;
}

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

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

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

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.product-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #667eea;
}

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

.product-actions {
  margin-top: auto;
}

.product-actions .btn {
  width: 100%;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

.no-products-message {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.no-products-message i {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 20px;
}

.no-products-message h3 {
  color: #333;
  margin-bottom: 15px;
}

.no-products-message p {
  color: #666;
  margin-bottom: 25px;
}

/* ================= RESPONSIVE CATEGORY PAGE ================= */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .category-hero h1 {
    font-size: 3rem;
  }
  
  .category-hero p {
    font-size: 1.3rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .category-hero {
    min-height: 350px;
    padding-top: 90px;
  }
  
  .category-hero h1 {
    font-size: 2.5rem;
  }
  
  .category-hero p {
    font-size: 1.1rem;
  }
  
  .category-stats {
    gap: 15px;
  }
  
  .stat-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .category-hero {
    min-height: 300px;
    padding-top: 80px;
  }
  
  .category-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .category-hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .category-stats {
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }
  
  .stat-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .category-hero-image {
    margin-top: 30px;
  }
  
  .filter-section {
    padding: 15px 0;
  }
  
  .filter-group {
    margin-bottom: 12px;
  }
  
  .filter-group label {
    font-size: 0.85rem;
  }
  
  .filter-group .form-select,
  .filter-group .form-control {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .products-section {
    padding: 40px 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }
  
  .product-image-container {
    height: 280px;
  }
  
  .product-body {
    padding: 15px;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  .current-price {
    font-size: 1.2rem;
  }
  
  .original-price {
    font-size: 0.9rem;
  }
  
  .product-actions .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .category-hero {
    min-height: 250px;
    padding-top: 70px;
    text-align: center;
  }
  
  .category-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .category-hero p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  
  .category-stats {
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }
  
  .stat-badge {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .category-hero-image {
    margin-top: 20px;
  }
  
  .filter-section {
    padding: 12px 0;
  }
  
  .filter-group {
    margin-bottom: 10px;
  }
  
  .filter-group label {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }
  
  .filter-group .form-select,
  .filter-group .form-control {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .filter-group .d-flex {
    gap: 8px;
  }
  
  .filter-group .d-flex input {
    flex: 1;
  }
  
  .products-section {
    padding: 30px 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .product-image-container {
    height: 240px;
  }
  
  .product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  
  .product-body {
    padding: 12px;
  }
  
  .product-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  
  .current-price {
    font-size: 1.1rem;
  }
  
  .original-price {
    font-size: 0.85rem;
  }
  
  .product-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .load-more-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Mobile Portrait (480px - 575px) */
@media (max-width: 575px) {
  .category-hero {
    min-height: 200px;
    padding-top: 60px;
    text-align: center;
  }
  
  .category-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .category-hero p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .category-stats {
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  
  .stat-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .category-hero-image {
    margin-top: 15px;
  }
  
  .breadcrumb {
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .breadcrumb-item {
    font-size: 0.8rem;
  }
  
  .filter-section {
    padding: 10px 0;
  }
  
  .filter-group {
    margin-bottom: 8px;
  }
  
  .filter-group label {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  
  .filter-group .form-select,
  .filter-group .form-control {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .filter-group .d-flex {
    gap: 4px;
  }
  
  .filter-group .d-flex input {
    flex: 1;
  }
  
  .products-section {
    padding: 20px 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .product-card-enhanced {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border-radius: 8px;
  }
  
  .product-image-container {
    height: 160px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  .product-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
  .product-badge {
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 0.65rem;
  }
  
  .product-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .product-title {
    font-size: 0.85rem;
    line-height: 1.1;
    margin-bottom: 1px;
    flex: 1;
  }
  
  .product-price {
    margin-bottom: 6px;
    margin-top: 0px;
  }
  
  .current-price {
    font-size: 1rem;
  }
  
  .original-price {
    font-size: 0.8rem;
  }
  
  .product-actions {
    margin-top: auto;
  }
  
  .product-actions .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .load-more-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .no-products-message {
    padding: 40px 15px;
  }
  
  .no-products-message i {
    font-size: 2.5rem;
  }
  
  .no-products-message h3 {
    font-size: 1.2rem;
  }
  
  .no-products-message p {
    font-size: 0.9rem;
  }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  .category-hero {
    min-height: 180px;
    padding-top: 50px;
    text-align: center;
  }
  
  .category-hero h1 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .category-hero p {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .category-stats {
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
  }
  
  .stat-badge {
    padding: 3px 6px;
    font-size: 0.65rem;
  }
  
  .category-hero-image {
    margin-top: 12px;
  }
  
  .breadcrumb {
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .breadcrumb-item {
    font-size: 0.75rem;
  }
  
  .filter-section {
    padding: 8px 0;
  }
  
  .filter-group {
    margin-bottom: 6px;
  }
  
  .filter-group label {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }
  
  .filter-group .form-select,
  .filter-group .form-control {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
  
  .filter-group .d-flex {
    gap: 3px;
  }
  
  .filter-group .d-flex input {
    flex: 1;
  }
  
  .products-section {
    padding: 15px 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .product-card-enhanced {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border-radius: 6px;
  }
  
  .product-image-container {
    height: 120px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  .product-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
  .product-badge {
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
  }
  
  .product-body {
    padding: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .product-title {
    font-size: 0.7rem;
    line-height: 1.0;
    margin-bottom: 1px;
    flex: 1;
  }
  
  .product-price {
    margin-bottom: 4px;
    margin-top: 0px;
  }
  
  .current-price {
    font-size: 0.85rem;
  }
  
  .original-price {
    font-size: 0.7rem;
  }
  
  .product-actions {
    margin-top: auto;
  }
  
  .product-actions .btn {
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  
  .product-card-enhanced {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border-radius: 4px;
  }
  
  .load-more-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .no-products-message {
    padding: 30px 10px;
  }
  
  .no-products-message i {
    font-size: 2rem;
  }
  
  .no-products-message h3 {
    font-size: 1.1rem;
  }
  
  .no-products-message p {
    font-size: 0.85rem;
  }
}
