.products-page {
  max-width: 1210px;
  margin: 32px auto;
  padding: 0 24px;
}
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.5px;
}
.page-header p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.products-container {
  display: flex;
  gap: 24px;
}

.filters {
  flex: 0 0 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 140px;
}
.filter-section {
  margin-bottom: 28px;
}
.filter-section:last-child {
  margin-bottom: 0;
}
.filter-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 16px;
  letter-spacing: -.3px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.filter-option label {
  cursor: pointer;
  font-size: 15px;
  color: #444;
}
.price-inputs {
  /* Changed from flex row to flex column for vertical stacking */
  display: flex;
  flex-direction: column;
  /* Updated gap from 10px to 20px */
  margin-top: 12px;
}
.price-inputs input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}
.price-inputs input:focus {
  border-color: #aaa;
}
.filter-btn {
  width: 100%;
  padding: 12px;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: .15s ease;
}
.filter-btn:hover {
  filter: brightness(0.9);
}

.products-area {
  flex: 1;
}
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.results-count {
  font-size: 15px;
  color: #666;
}
.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}
.product-image {
  width: 100%;
  height: 280px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2a2a2a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.product-meta {
  padding: 18px;
}
.product-category {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 8px;
}
.product-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.price-current {
  font-size: 22px;
  font-weight: 800;
  color: #2a2a2a;
}
.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars {
  color: #ffa500;
  font-size: 14px;
}
.rating-count {
  font-size: 13px;
  color: #888;
}
.product-actions {
  display: flex;
  gap: 10px;
}
.product-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  font-weight: 700;
  transition: .2s ease;
}
.page-btn:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #2a2a2a;
}
.page-btn.active {
  background: #2a2a2a;
  color: #fff;
  border-color: #2a2a2a;
}
