.store-main-layout {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  font-family: var(--font-body);
  color: var(--text-main);
  box-sizing: border-box;
  align-items: flex-start;
}

.store-main-layout * {
  box-sizing: inherit;
}

/* Sidebar */
.store-sidebar {
  width: 260px;
  flex-shrink: 0;
  height: fit-content;
}

.store-sidebar-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  width: 260px;
  box-sizing: border-box;
}

.store-search-container {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-5);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
}

.store-search-box {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: var(--space-2) var(--space-2);
  color: var(--text-main);
  font-family: var(--font-body);
  outline: none;
}

.store-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-1);
}

.store-filter-title {
  font-size: var(--fs-md);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
  color: var(--text-heading);
}

.store-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-category-list li {
  margin-bottom: var(--space-2);
}

.store-category-list a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-paragraph);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: all var(--ease-fast);
}

.store-category-list a:hover {
  background: var(--bg-surface-alt);
  color: var(--active-link-1);
}

.store-category-list a.active {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  font-weight: var(--fw-semi);
  border-left: 3px solid var(--primary-base);
}

/* Content Area */
#store-grid-container {
  flex-grow: 1;
  min-width: 0;
}

.store-banner {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-alt));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-6);
}

.banner-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-2) 0;
  color: var(--text-heading);
}

.banner-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--fs-md);
}

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}

.store-sort select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  outline: none;
  cursor: pointer;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.store-empty-state {
  text-align: center;
  padding: var(--space-10);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.store-mobile-controls {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .store-main-layout {
    flex-direction: column;
    margin-top: 70px; /* Clears fixed header on mobile */
  }
  .store-sidebar {
    width: 100%;
    padding: var(--space-4) var(--space-4) 0 var(--space-4);
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin-bottom: var(--space-4);
  }
  .store-sidebar-inner {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
  }
  .desktop-categories {
    display: none;
  }
  
  .store-mobile-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
  }
  
  .mobile-select {
    flex: 1;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    font-size: var(--fs-xs);
    outline: none;
  }
  
  .store-toolbar .desktop-sort {
    display: none;
  }
}
