﻿/* ===== SHOP HEADER ===== */
.shop-header {
  background:
    linear-gradient(135deg, rgba(30,45,74,0.80) 0%, rgba(22,163,74,0.48) 100%),
    url('images/ashveera-banner-2.jpg') center/cover no-repeat;
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.shop-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.shop-header p {
  color: rgba(255,255,255,0.85);
  font-size: var(--font-size-lg);
}

.shop-header .breadcrumb a { color: rgba(255,255,255,0.75); }
.shop-header .breadcrumb .current { color: #ffffff; }
.shop-header .breadcrumb .sep { color: rgba(255,255,255,0.5); }

/* ===== SHOP LAYOUT ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 0 var(--space-xl) 0;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + -100px + var(--space-md));
  height: fit-content;
  align-self: start;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Section heading row */
.sidebar-block h3 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-dark);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.filter-item:last-child { border-bottom: none; }
.filter-item:hover { background: var(--bg-dark); }

.filter-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  width: 100%;
  padding: 9px 14px;
}

.filter-item label:hover { color: var(--secondary); }

.filter-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* padding inside cat-tree block */
.sidebar-block .cat-tree {
  padding: 4px 0;
}

.clear-filters-btn {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 0;
  font-size: 0.8125rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 4px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.clear-filters-btn:hover { color: var(--secondary); border-color: var(--secondary); }

/* ===== TOOLBAR ===== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.results-count strong { color: var(--secondary); }

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  height: 34px;
}

.sort-select:focus { outline: none; border-color: var(--primary); }

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 32px; height: 32px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}

.view-btn.active,
.view-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

/* ===== PRODUCTS GRID ===== */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.shop-products-grid.list-view {
  grid-template-columns: 1fr;
}

.shop-products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.shop-products-grid.list-view .product-card-img {
  height: 100%;
  min-height: 140px;
  max-height: 180px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-md);
}

.page-btn {
  min-width: 34px; height: 34px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.page-btn:hover {
  background: var(--bg-dark);
  color: var(--secondary);
  border-color: var(--secondary);
}

.page-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  font-weight: 700;
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.page-ellipsis {
  min-width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ===== FILTER CHIPS ===== */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--secondary-light);
  border: 1px solid rgba(37,99,235,0.25);
  color: var(--secondary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.filter-chip button {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.7;
  transition: opacity 0.15s;
  cursor: pointer;
}

.filter-chip button:hover { opacity: 1; }

.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: 8px;
  min-height: 0;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0e7ff;
  color: #1d4ed8;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.active-filter-tag button {
  background: none;
  border: none;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}

.active-filter-tag button:hover { opacity: 1; }

/* ===== NO RESULTS ===== */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-secondary);
}
