/* ─── Shop Page Styles ─── */

.shop-header {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px; /* offset for navbar */
}

/* ── Background Blobs ── */
.shop-header .hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.shop-header .hero-blob-pink {
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  top: -80px;
  right: -50px;
}

.shop-header .hero-blob-teal {
  width: 250px;
  height: 250px;
  background: var(--color-secondary-light);
  bottom: -60px;
  left: -50px;
}

.shop-header-container {
  position: relative;
  z-index: 1;
}

.shop-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.shop-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  font-weight: var(--font-medium);
}

/* ── Controls Section ── */
.shop-controls {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid rgba(232, 116, 138, 0.1);
}

.controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .controls-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ── Search Bar ── */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-card);
  border: 2px solid rgba(232, 116, 138, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.search-input {
  border: none;
  background: transparent;
  flex-grow: 1;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-btn {
  background: var(--gradient-pink);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* ── Category Filters ── */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.filter-btn {
  background: var(--color-bg-card);
  border: 1.5px solid rgba(232, 116, 138, 0.15);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: var(--gradient-pink);
  color: var(--color-text-white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ── Grid Section ── */
.shop-grid-section {
  padding: var(--space-xxl) 0;
  min-height: 400px;
}

/* ── Spinner ── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xxl) 0;
  width: 100%;
}

.loading-spinner.hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(232, 116, 138, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  margin: var(--space-xxl) 0;
  width: 100%;
}