/* ============================================================
   PerfumerySHK — Shop Page Styles
   Filter Sidebar, Product Grid, Sort Bar
   ============================================================ */

/* ── Shop Header ──────────────────────────────────────────── */
.shop-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 134, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.shop-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  position: relative;
}

.shop-hero__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  position: relative;
}

/* ── Sort / Toolbar ───────────────────────────────────────── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.shop-toolbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shop-toolbar__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.shop-toolbar__sort-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.shop-toolbar__view {
  display: flex;
  gap: var(--space-1);
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.view-btn--active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.1);
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Filter Sidebar ───────────────────────────────────────── */
.filter-toggle-btn {
  display: none;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: inline-flex;
  }
}

.filter-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-subtle);
}

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

.filter-section__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-section__title svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: transform var(--duration-normal) var(--ease-out);
}

.filter-section--collapsed .filter-section__title svg {
  transform: rotate(-90deg);
}

.filter-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-section--collapsed .filter-section__body {
  display: none;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-color);
}

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

.filter-option__count {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Price Range Slider */
.price-range {
  padding: var(--space-4) 0;
}

.price-range__inputs {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.price-range__input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-align: center;
}

.price-range__separator {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.price-range__slider {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin: var(--space-6) 0 var(--space-2);
}

.price-range__slider-fill {
  position: absolute;
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
}

.price-range__slider input[type="range"] {
  position: absolute;
  top: -6px;
  width: 100%;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.price-range__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

/* ── Active Filters ───────────────────────────────────────── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.active-filters__clear {
  font-size: var(--text-xs);
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: transparent;
  border: none;
  transition: var(--transition-color);
}

.active-filters__clear:hover {
  color: var(--color-gold-light);
}

/* ── Search Suggestions ───────────────────────────────────── */
.search-suggestions {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-suggestions--active {
  display: block;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: var(--transition-base);
}

.search-suggestion:hover {
  background: var(--bg-surface-hover);
}

.search-suggestion__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-suggestion__name {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.search-suggestion__brand {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ── No Results ───────────────────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16);
}

.no-results__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  color: var(--color-gray-600);
  opacity: 0.5;
}

.no-results__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.no-results__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ── Mobile Filter Drawer ─────────────────────────────────── */
@media (max-width: 768px) {
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-secondary);
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out);
    overflow-y: auto;
    border-radius: 0;
    border: none;
    border-right: var(--border-subtle);
  }

  .shop-sidebar--open {
    transform: translateX(0);
  }

  .shop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 2;
  }

  .shop-sidebar__footer {
    position: sticky;
    bottom: 0;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-top: var(--border-subtle);
  }
}
