.category-page {
  padding-top: 32px;
  padding-bottom: 3rem;
}

.category-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.category-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  color: var(--color-primary);
}

.category-breadcrumb span[aria-current] {
  color: #374151;
}

.category-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.category-sidebar {
  position: sticky;
  top: calc(10.5rem + 1.5rem);
  align-self: start;
  z-index: 10;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #ececec;
}

.category-sidebar-title {
  margin: 0 0 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #ececec;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.category-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-nav li + li {
  margin-top: 0.25rem;
}

.category-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.category-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.category-nav a.is-active {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  padding-left: calc(0.75rem - 3px);
  font-weight: 600;
  color: #065f58;
}

.category-head {
  margin-bottom: 1.5rem;
}

.category-title {
  margin: 0 0 0.375rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.category-count {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.category-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1200px) {
  .category-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .category-page {
    padding-top: 24px;
  }

  .category-inner {
    padding: 0 1rem;
  }

  .category-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .category-sidebar {
    position: static;
  }

  .category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (max-width: 480px) {
  .category-products {
    grid-template-columns: 1fr;
  }
}
