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

/* Breadcrumb */
.shop-breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-500);
  list-style: none;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li:last-child { color: var(--charcoal); font-weight: 600; }

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-3xl);
  align-items: start;
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-sidebar.open { display: block; position: fixed; top: 0; left: 0; bottom: 0; z-index: var(--z-modal); width: 300px; overflow-y: auto; background: white; box-shadow: var(--shadow-xl); padding: var(--space-lg); animation: slideInLeft 0.3s ease; }
  @keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
}

/* Sidebar */
.shop-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: 80px;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--red);
}
.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--charcoal);
}
.sidebar-header h2 i { color: var(--red); }

.filter-group {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}
.filter-group:last-of-type { border-bottom: none; }
.filter-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option, .filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  font-size: 0.88rem;
}
.filter-option:hover, .filter-checkbox:hover { background: var(--red-light); }
.filter-option input, .filter-checkbox input { accent-color: var(--red); cursor: pointer; }
.filter-option span, .filter-checkbox span { color: var(--gray-700); }

/* Price Range */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.price-input-group { flex: 1; }
.price-input-group label { font-size: 0.72rem; color: var(--gray-500); display: block; margin-bottom: 3px; }
.price-input-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.price-input-group input:focus { border-color: var(--red); }
.price-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.price-preset {
  font-size: 0.72rem;
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
  color: var(--gray-600);
}
.price-preset:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.products-count {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
}
.products-count strong { color: var(--charcoal); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--red-light);
  color: var(--red);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.active-filter-tag button { background: none; border: none; cursor: pointer; color: var(--red); font-size: 0.8rem; padding: 0 2px; }

.shop-toolbar-right { display: flex; align-items: center; gap: 10px; }
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--charcoal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.filter-toggle-btn:hover { background: var(--red); }
@media (max-width: 900px) { .filter-toggle-btn { display: flex; } }

.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  background: white;
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 170px;
}
.sort-select:focus { border-color: var(--red); }
.view-toggle { display: flex; border: 1px solid var(--gray-300); border-radius: var(--radius-md); overflow: hidden; }
.view-btn {
  padding: 8px 12px;
  background: white;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.view-btn.active { background: var(--charcoal); color: white; }
.view-btn:hover:not(.active) { background: var(--gray-100); }

/* List View */
.shop-grid.list-view { grid-template-columns: 1fr !important; }
.shop-grid.list-view .product-card { display: flex; flex-direction: row; }
.shop-grid.list-view .product-img-wrap { width: 200px; flex-shrink: 0; aspect-ratio: auto; height: 200px; }
.shop-grid.list-view .product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.shop-grid.list-view .product-name { -webkit-line-clamp: 3; font-size: 1rem; }
.shop-grid.list-view .add-to-cart-btn { max-width: 200px; }
@media (max-width: 600px) {
  .shop-grid.list-view .product-card { flex-direction: column; }
  .shop-grid.list-view .product-img-wrap { width: 100%; height: auto; }
}

/* Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  background: white;
  transition: all var(--transition-base);
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); color: white; border-color: var(--red); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn.ellipsis { cursor: default; border: none; }

/* No results */
#no-results { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
