/* Category Page Styles */

/* ===========================
   Category Hero
   =========================== */

.category-hero {
  background: linear-gradient(135deg, var(--peach-lighter) 0%, var(--cream-white) 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(0,0,0,0.03)"/></svg>');
  pointer-events: none;
}

.category-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--brown-light);
}

.breadcrumbs a {
  color: var(--brown-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--brown-text);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--brown-lighter);
}

/* Category Title & Description */
.category-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--brown-text);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.category-description {
  font-size: 1.125rem;
  color: var(--brown-light);
  max-width: 800px;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-hero {
    padding: 3rem 0 2rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-description {
    font-size: 1rem;
  }
}

/* ===========================
   Filters Section
   =========================== */

.filters-section {
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brown-darker);
  margin: 0 0 1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: white;
  border: 2px solid var(--brown-lighter);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brown-darker);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--coral-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.filter-chip.active {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: white;
}

.filter-chip.active:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

/* Color Chips */
.color-chip {
  padding: 0.625rem 1rem 0.625rem 0.75rem;
}

.color-chip-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-chip.active .color-chip-dot {
  border-color: white;
  box-shadow: 0 0 0 2px var(--coral-primary), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-chip-label {
  font-size: 0.9375rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .filter-chip {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .color-chip {
    padding: 0.5rem 0.875rem 0.5rem 0.625rem;
  }

  .color-chip-dot {
    width: 18px;
    height: 18px;
  }

  .color-chip-label {
    font-size: 0.875rem;
  }
}

/* ===========================
   Modal Overlay
   =========================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

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

.modal-dialog {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--brown-lighter);
  background: var(--peach-lighter);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-darker);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--brown-darker);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--coral-primary);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
  font-family: var(--font-heading);
  color: var(--brown-darker);
  margin: 1.5rem 0 0.75rem;
}

.modal-body h1:first-child,
.modal-body h2:first-child,
.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body h1 {
  font-size: 1.75rem;
}

.modal-body h2 {
  font-size: 1.5rem;
}

.modal-body h3 {
  font-size: 1.25rem;
}

.modal-body p {
  color: var(--brown-dark);
  line-height: 1.6;
  margin: 0.75rem 0;
}

.modal-body strong {
  color: var(--brown-darker);
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-dialog {
    max-height: 95vh;
    border-radius: 24px 24px 0 0;
    animation: slideUpMobile 0.3s ease;
  }

  @keyframes slideUpMobile {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-body h1 {
    font-size: 1.5rem;
  }

  .modal-body h2 {
    font-size: 1.25rem;
  }

  .modal-body h3 {
    font-size: 1.125rem;
  }
}

/* ===========================
   Product Count Badge
   =========================== */

.product-count-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--peach-lighter);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brown-darker);
}

/* ===========================
   Empty State
   =========================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state.hidden {
  display: none;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brown-darker);
  margin: 0 0 0.5rem;
}

.empty-state p {
  color: var(--brown-light);
  font-size: 1rem;
  margin: 0;
}
