/* =============================================
   SLICKFOOTIES — Store Page Styles
   ============================================= */

.store-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: var(--space-xl);
}

.store-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.store-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.store-header__count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: var(--space-md);
  font-weight: 400;
  font-family: var(--font-body);
}

.store-header__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.store-sort {
  padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  color: var(--charcoal-black);
  background: var(--pure-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.store-sort:focus {
  border-color: var(--charcoal-black);
  outline: none;
}

.store-filter-toggle {
  display: inline-flex;
  padding: 10px 18px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  background: var(--pure-white);
  color: var(--charcoal-black);
  gap: var(--space-sm);
  align-items: center;
}

.store-filter-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Store Search */
.store-search {
  display: flex;
  align-items: center;
  background: var(--light-gray);
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-full);
  padding: 8px 16px;
  gap: 8px;
  transition: all var(--transition-fast);
}

.store-search:focus-within {
  border-color: var(--charcoal-black);
  background: var(--pure-white);
}

.store-search__icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.store-search__input {
  border: none;
  background: none;
  font-size: var(--text-sm);
  outline: none;
  width: 220px;
}

/* Store layout */
.store-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-4xl);
}

/* Sidebar Filters */
.store-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  max-height: 100vh;
  background: var(--pure-white);
  z-index: 1001;
  padding: var(--space-xl);
  transition: left var(--transition-base);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.store-sidebar.open {
  left: 0;
}

.store-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.store-sidebar-overlay.open {
  display: block;
}

.store-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.store-sidebar__close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  font-size: var(--text-xl);
  color: var(--charcoal-black);
  background: none;
  border: none;
}

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

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

.filter-section__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  color: var(--charcoal-black);
}

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

.filter-option:hover {
  color: var(--charcoal-black);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.filter-option.active .filter-checkbox {
  background: var(--charcoal-black);
  border-color: var(--charcoal-black);
}

.filter-option.active .filter-checkbox::after {
  content: '';
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.filter-option.active {
  color: var(--charcoal-black);
  font-weight: 500;
}

/* Size filter chips */
.filter-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-size-chip {
  min-width: 42px;
  height: 36px;
  padding: 0 8px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--pure-white);
  color: var(--charcoal-black);
}

.filter-size-chip:hover {
  border-color: var(--charcoal-black);
}

.filter-size-chip.active {
  background: var(--charcoal-black);
  color: var(--pure-white);
  border-color: var(--charcoal-black);
}

/* Color filter swatches */
.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Active filters chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--light-gray);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--charcoal-black);
}

.active-filter-chip__remove {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: 14px;
  line-height: 1;
  color: var(--text-muted);
}

.active-filter-chip__remove:hover {
  background: var(--soft-offwhite);
  color: var(--charcoal-black);
}

.clear-filters-btn {
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.clear-filters-btn:hover {
  color: var(--charcoal-black);
}

/* Product grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.store-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.store-no-results__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.store-no-results__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.store-no-results__text {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Pagination */
.store-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-gray);
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  background: var(--pure-white);
  color: var(--charcoal-black);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--charcoal-black);
}

.pagination-btn.active {
  background: var(--charcoal-black);
  color: var(--pure-white);
  border-color: var(--charcoal-black);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--light-gray);
}

/* Responsive */
@media (max-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .store-header__controls {
    width: 100%;
    justify-content: space-between;
  }
  .store-filter-toggle, .store-sort {
    flex: 1;
    justify-content: center;
  }
  .store-search {
    width: 100%;
    order: 3;
    margin-top: var(--space-sm);
  }
  .store-search__input {
    width: 100%;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}
