/* E-commerce Page - c1 No Visual (mincss + clean DOM + full a11y) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: serif;
  background: #fff;
  color: #000;
}

a {
  color: #000;
}

button, select, input {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header {
  border-bottom: 1px solid #000;
  padding: 8px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: bold;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.search-bar {
  display: flex;
  border: 1px solid #000;
}

.search-input {
  border: none;
  padding: 4px;
  width: 150px;
}

.btn-icon,
.btn-primary,
.btn-secondary,
.btn-page {
  background: #fff;
  border: 1px solid #000;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.main {
  display: flex;
  padding: 16px;
  gap: 16px;
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
}

.filter-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc;
}

.filter-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.filter-list {
  list-style: none;
}

.filter-link {
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

.filter-link.active {
  font-weight: bold;
}

.price-inputs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.price-input {
  width: 60px;
  padding: 4px;
  border: 1px solid #000;
}

.rating-option {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.products-section {
  flex: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.products-title {
  font-size: 24px;
}

.products-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.results-count {
  color: #666;
  font-size: 14px;
}

.sort-select {
  padding: 4px;
  border: 1px solid #000;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid #000;
  padding: 8px;
}

.product-image {
  position: relative;
  margin-bottom: 8px;
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #000;
  color: #fff;
  padding: 2px 4px;
  font-size: 10px;
}

.btn-wishlist {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
}

.product-name {
  font-size: 14px;
  margin-bottom: 4px;
}

.product-rating {
  font-size: 12px;
  margin-bottom: 4px;
}

.product-price {
  margin-bottom: 8px;
}

.price-current {
  font-weight: bold;
}

.price-original {
  text-decoration: line-through;
  color: #666;
  margin-left: 4px;
}

.btn-add-cart {
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.btn-page.active {
  background: #000;
  color: #fff;
}

.btn-page:disabled {
  opacity: 0.5;
}

.footer {
  border-top: 1px solid #000;
  padding: 16px;
  margin-top: 16px;
}

.footer-content {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
}

.footer-link {
  font-size: 12px;
  color: #666;
}

.copyright {
  font-size: 12px;
  color: #666;
}

