/* E-commerce Page - c2 No A11y (styled + clean DOM + no accessibility) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: #424245;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #0066cc;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 8px 12px;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.btn-icon {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #424245;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.btn-icon:hover {
  background: #f5f5f7;
  color: #0066cc;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Main Layout */
.main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
}

.filter-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

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

.filter-link {
  display: block;
  padding: 8px 0;
  color: #424245;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.filter-link:hover,
.filter-link.active {
  color: #0066cc;
}

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

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 14px;
}

.price-separator {
  color: #86868b;
}

.rating-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #424245;
  cursor: pointer;
}

.rating-checkbox {
  cursor: pointer;
}

.stars {
  color: #ff9500;
}

/* Products Section */
.products-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.products-title {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
}

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

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

.sort-select {
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-sale {
  background: #ff3b30;
  color: white;
}

.badge-new {
  background: #34c759;
  color: white;
}

.btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #86868b;
  transition: color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-wishlist:hover {
  color: #ff3b30;
  transform: scale(1.1);
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.rating-count {
  color: #86868b;
  font-size: 13px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
}

.price-original {
  font-size: 14px;
  color: #86868b;
  text-decoration: line-through;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn-primary:hover {
  background: #004999;
}

.btn-secondary {
  width: 100%;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e8e8ed;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.btn-page {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-page:hover:not(.disabled) {
  background: #f5f5f7;
  border-color: #0066cc;
}

.btn-page.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-page.active {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
}

.page-ellipsis {
  color: #86868b;
}

/* Footer */
.footer {
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #424245;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links div {
  margin-bottom: 8px;
}

.footer-link {
  color: #86868b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #f5f5f7;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
}

.copyright {
  color: #86868b;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none;
  }
  
  .nav {
    display: none;
  }
}

