/* ==========================================================================
   TIME WAVE — SHOP CATALOGUE CSS (pages/shop.css)
   White & Gold / Silver Luxury Design
   ========================================================================== */

.shop-header-section {
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) 0 var(--space-8) 0;
}

.shop-header-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .shop-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.shop-page-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--text-1);
  margin-bottom: var(--space-2);
}

.shop-page-desc {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 540px;
}

.product-count-display {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-dim);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   STICKY FILTER & SORT BAR
   -------------------------------------------------------------------------- */
.filter-sticky-bar {
  position: sticky;
  top: 70px;
  z-index: 900;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

@media (min-width: 1024px) {
  .filter-sticky-bar {
    top: 78px;
    padding: var(--space-3) 0;
  }
}

.filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .filter-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pills-scroll {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-pills-scroll::-webkit-scrollbar {
  height: 3px;
}

.filter-pills-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
}

.filter-pill {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--text-1);
}

.filter-pill.active {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--gold-dim);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(197, 160, 89, 0.15);
}

.sort-and-filters-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.sort-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-select {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 28px 6px 12px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.sort-select-icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: var(--text-3);
}

.filter-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  transition: all var(--transition-fast);
}

.filter-drawer-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
}

/* --------------------------------------------------------------------------
   BRAND FILTER BAR IN SHOP
   -------------------------------------------------------------------------- */
.shop-brand-quickfilter {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.brand-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.brand-pill:hover,
.brand-pill.active {
  border-color: var(--gold);
  color: #111418;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.15);
}

/* --------------------------------------------------------------------------
   MAIN CATALOGUE SECTION
   -------------------------------------------------------------------------- */
.catalogue-section {
  padding: var(--space-8) 0 var(--space-20) 0;
  min-height: 600px;
}

.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text-2);
}

.chip-remove-btn {
  color: var(--text-3);
  display: flex;
  align-items: center;
}

.chip-remove-btn:hover {
  color: var(--danger);
}

.clear-all-filters-btn {
  font-size: 11px;
  color: var(--gold-dim);
  font-weight: 600;
  text-decoration: underline;
  padding: 2px 6px;
}

.catalogue-layout {
  display: flex;
  gap: var(--space-8);
}

.desktop-filter-sidebar {
  display: none;
  width: 260px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .desktop-filter-sidebar {
    display: block;
  }
}

.filter-sidebar-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  position: sticky;
  top: 130px;
}

.sidebar-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-group-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-3);
}

.filter-checkbox-list li {
  margin-bottom: var(--space-2);
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-2);
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--gold);
}

.catalogue-content {
  flex: 1;
}

.empty-catalogue {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background-color: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

.empty-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.empty-desc {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}
