main {
  flex-direction: column;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
}

.products-hero {
  width: 100%;
  background: var(--theme-bg-page);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--theme-radius-xl);
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--theme-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.products-content {
  width: 100%;
  background-color: var(--theme-bg-surface-1);
  padding: 5rem 2rem;
  border-radius: var(--theme-radius-xl);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.category-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.filter-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text);
}

.custom-select-wrapper {
  width: 100%;
  max-width: 400px;
}

.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--theme-bg-card);
  border: 1px solid rgba(224, 169, 85, 0.2);
  border-radius: var(--theme-radius-md);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.select-trigger:hover {
  border-color: rgba(224, 169, 85, 0.4);
  box-shadow: var(--theme-shadow-sm);
}

.custom-select.open .select-trigger {
  border-color: var(--theme-accent);
  box-shadow: var(--theme-shadow-sm);
}

.selected-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text);
}

.select-arrow {
  font-size: 0.75rem;
  color: var(--theme-accent);
  transition: transform 200ms ease;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-accent);
  border-radius: var(--theme-radius-md);
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--theme-shadow-md);
  z-index: 1000;
  display: none;
}

.custom-select.open .select-options {
  display: block;
}

.select-option {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 140ms ease;
}

.select-option:hover {
  background: rgba(224, 169, 85, 0.15);
}

.select-option.active {
  background: rgba(224, 169, 85, 0.25);
}

.option-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-text);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-shadow-lg);
  border-color: var(--theme-border-accent-strong);
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--theme-bg-surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--theme-border-accent);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(224, 169, 85, 0.2);
  color: var(--theme-primary);
  border-radius: var(--theme-radius-sm);
  margin-bottom: 0.25rem;
}

.product-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--theme-text);
  margin: 0;
}

.product-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--theme-text-muted);
  margin: 0;
}

.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--theme-radius-md);
  border: 1px solid rgba(224, 169, 85, 0.3);
  background: var(--theme-bg-card);
  color: var(--theme-text);
  text-decoration: none;
  font-weight: 600;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.pagination-link:hover {
  border-color: rgba(224, 169, 85, 0.5);
  box-shadow: var(--theme-shadow-sm);
  transform: translateY(-1px);
}

.pagination-link.active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--theme-text-inverse);
}

.pagination-link.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.detail-item {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  background: rgba(224, 169, 85, 0.15);
  border-radius: var(--theme-radius-sm);
  color: var(--theme-text);
  font-weight: 500;
}

.cta-section {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--theme-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-text);
  margin: 0;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--theme-text-muted);
  margin: 0;
  max-width: 500px;
}

.cta-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background-color: var(--theme-primary);
  color: var(--theme-text-inverse);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--theme-radius-lg);
  border: 2px solid var(--theme-primary);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:focus-visible {
  outline: 3px solid rgba(201, 67, 67, 0.4);
  outline-offset: 3px;
}

.products-grid,
.cta-section {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 480ms ease forwards;
}

.cta-section {
  animation-delay: 80ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-grid,
  .cta-section,
  .product-card,
  .cta-btn {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-hero {
    padding: 5rem 2rem;
  }

  .products-content {
    padding: 5rem 2rem;
  }
}

@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
