/* ==========================================================================
   Monica's Little Luxuries — The Boutique (Catalog & Olfactory Discovery)
   ========================================================================== */

.boutique-hero {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 3rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
}

.boutique-hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-h1);
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
}

.boutique-hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Filter & Category Toolbar --- */
.boutique-controls {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.controls-row-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.category-tab {
  padding: 0.5rem 1.15rem;
  font-size: 0.8rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease-out;
  touch-action: manipulation;
  cursor: pointer;
}

.category-tab:hover {
  color: var(--color-gold-light);
  border-color: var(--color-border-gold);
}

.category-tab:active {
  transform: scale(0.95);
  transition: transform 60ms ease-out;
}

.category-tab.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-light);
  border-color: var(--color-gold-primary);
  font-weight: 500;
}

.search-sort-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.boutique-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  width: 220px;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, width 0.3s var(--ease-slow);
}

.boutique-search:focus-within {
  border-color: var(--color-border-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  width: 260px;
}

.boutique-search input {
  width: 100%;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--color-text-primary);
}

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

.boutique-sort-select {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.boutique-sort-select:focus {
  border-color: var(--color-border-gold);
}

/* Scent Family Filters */
.scent-families-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  width: 100%;
  min-width: 0;
}

.scent-filter-label {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scent-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-deep);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease-out;
  touch-action: manipulation;
  cursor: pointer;
}

.scent-pill:hover,
.scent-pill.active {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.scent-pill:active {
  transform: scale(0.95);
  transition: transform 60ms ease-out;
}

/* Curated Collection Dividers */
.boutique-curated-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border-subtle);
}

.curated-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.curated-section-header h2 {
  font-size: var(--text-h2);
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.curated-section-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .boutique-hero {
    padding-top: calc(var(--nav-height-mobile) + 2rem);
    padding-bottom: 2rem;
  }
  .boutique-controls {
    padding: 1.15rem 1rem;
    gap: 1.15rem;
    border-radius: var(--radius-sm);
  }
  .controls-row-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }
  .category-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 0.35rem;
    gap: 0.4rem;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 0.95rem;
    font-size: 0.72rem;
  }
  .search-sort-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
  }
  .boutique-search {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .boutique-search:focus-within {
    width: 100% !important;
  }
  .boutique-search input {
    width: 100%;
    min-width: 0;
  }
  .boutique-sort-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .scent-families-bar {
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.35rem;
    gap: 0.4rem;
  }
  .scent-families-bar::-webkit-scrollbar {
    display: none;
  }
  .scent-filter-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.7rem;
    margin-right: 0.2rem;
  }
  .scent-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
}

/* --- Light Mode Overrides --- */
[data-theme="light"] .boutique-hero-title {
  color: #1C1917;
}

[data-theme="light"] .category-tab.active {
  background: #B8860B;
  color: #FFFFFF;
  border-color: #946C0B;
}

[data-theme="light"] .scent-pill.active {
  background: #B8860B;
  color: #FFFFFF;
  border-color: #946C0B;
}
