/* ============================================================
   SHOP PAGE STYLES
   ============================================================ */

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0 var(--space-16);
  align-items: start;
}

/* ---- Sidebar Filters ---- */
.shop-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}

.filter-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--secondary);
}

.clear-filters {
  font-size: var(--text-xs);
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.filter-section {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child { border-bottom: none; }

.filter-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  cursor: pointer;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-option label {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-option:hover label { color: var(--primary); }

.filter-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-section);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Price Range */
.price-inputs {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
}

.price-inputs .form-control {
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.price-inputs span { color: var(--text-muted); }

/* ---- Shop Main Area ---- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.shop-result-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.shop-result-count strong {
  color: var(--secondary);
  font-weight: 700;
}

.shop-sort {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-body);
  font-size: var(--text-sm);
  cursor: pointer;
  outline: none;
}

.shop-sort:focus { border-color: var(--primary); }

.shop-view-toggle {
  display: flex;
  gap: var(--space-2);
}

.view-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.view-btn.active,
.view-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(200,134,10,0.06);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.shop-grid.list-view {
  grid-template-columns: 1fr;
}

.shop-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.shop-grid.list-view .product-image-wrap {
  height: 200px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.page-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

/* Mobile filter toggle */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: var(--space-4);
}

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }

  .shop-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 300px; height: 100vh;
    z-index: var(--z-modal);
    border-radius: 0;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .shop-sidebar.open { left: 0; }
  .filter-toggle-btn { display: flex; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}
