/* ========================================
   Product Category Page - Matching Shop Page Style
   ======================================== */

/* BeeQR Brand Colors */
:root {
  --beeqr-yellow: #FFC107;
  --beeqr-dark-grey: #333333;
  --beeqr-yellow-light: #FFD54F;
  --beeqr-yellow-dark: #FFA000;
}

/* Category Page Container */
.category-page {
  background: #ffffff;
}

/* Hero Section - Smaller than shop page */
.category-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px 0 30px;
  border-bottom: 1px solid #e9ecef;
}

.category-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--beeqr-dark-grey);
  margin-bottom: 1rem;
}

.category-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Products Section */
.category-products {
  background: #ffffff;
  padding: 60px 0;
}

.product-card-wrapper {
  transition: all 0.3s ease;
}

.product-card-wrapper .card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card-wrapper .card:hover,
.product-card-wrapper a:focus .card,
.product-card-wrapper a:active .card {
  border-color: var(--beeqr-yellow);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.product-image-container {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.product-card-wrapper .card-body {
  padding: 1.5rem;
}

.product-card-wrapper .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--beeqr-dark-grey);
  letter-spacing: -0.01em;
}

.product-card-wrapper .h5 {
  color: var(--beeqr-dark-grey);
  font-weight: 700;
}

/* Out of stock styling */
.product-card-wrapper .card[style*="opacity"] {
  border-color: #dee2e6;
}

.product-card-wrapper .card[style*="opacity"]:hover {
  transform: none;
  border-color: #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Badge styling */
.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

/* Back button */
.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .category-hero-title {
    font-size: 2rem;
  }

  .category-hero-subtitle {
    font-size: 1rem;
  }

  .category-products {
    padding: 50px 0;
  }
}

@media (max-width: 767.98px) {
  .category-hero {
    padding: 30px 0 25px;
  }

  .category-hero-title {
    font-size: 1.75rem;
  }

  .category-hero-subtitle {
    font-size: 0.95rem;
  }

  .product-card-wrapper .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .category-hero-title {
    font-size: 1.5rem;
  }

  .product-image-container {
    height: 160px !important;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.product-card-wrapper .card:focus {
  outline: 2px solid var(--beeqr-yellow);
  outline-offset: 4px;
}
