/* /css/store.css */
/* Store = "curated layer" on top of Health tools.
   This file assumes you are loading:
   1) /css/styles.css (global)
   2) /css/health.css (tool cards + grid + chips styling)
   3) /css/store.css (this file: Store-only components)
*/

/* -----------------------------
   HERO / CONTROLS (Store-only)
------------------------------ */

.store-hero {
  padding-bottom: 1.8rem;
}

.store-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

/* Match the look of Health search, but keep it separate so you can tweak */
.store-search {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 0.65rem 0.85rem;
  box-shadow: 1px 1px 14px rgba(39, 26, 20, 0.04);
}

.store-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--color-text-main);
  outline: none;
}

.store-search .search-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Chips container only — chip-btn styling comes from health.css */
.store-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* -----------------------------
   Affiliate / Disclosure Note
------------------------------ */

.store-note {
  margin-top: 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  box-shadow: 1px 1px 12px rgba(39, 26, 20, 0.04);
}

.store-note-title {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.store-note-body {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* -----------------------------
   Sections / Headers
------------------------------ */

.store-section {
  padding-block: 1.2rem 1.4rem;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.store-subtitle {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  max-width: 44rem;
}

.store-meta {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

/* -----------------------------
   Collections Grid (Store-only)
------------------------------ */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Make collection cards feel like your tool cards, but simpler */
.collection-card {
  text-align: left;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--color-surface);
  border-radius: 22px;
  padding: 1.05rem 1.1rem;
  box-shadow: 1px 1px 12px rgba(39, 26, 20, 0.04);
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out;
}

.collection-card:hover {
  transform: translateY(-1px);
  box-shadow: 1px 1px 18px rgba(39, 26, 20, 0.06);
  border-color: rgba(0,0,0,0.1);
}

.collection-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.collection-title {
  margin: 0;
  font-family: "Lora", "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.collection-blurb {
  margin: 0.45rem 0 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.collection-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 0.15rem;
}

.collection-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0.35);
  background: linear-gradient(90deg, #b8c1e0, #e6ebff);
  transition: transform 160ms ease-out;
}

.collection-card:hover .collection-cta::after {
  transform: scaleX(1);
}

/* -----------------------------
   Minor Store-specific tweaks
------------------------------ */

/* Give the Store sections a bit more rhythm */
#collections.store-section {
  padding-top: 0.6rem;
}

/* Avoid huge gaps if Featured comes right after Collections */
#featured.store-section {
  padding-top: 0.8rem;
}

/* -----------------------------
   Responsive
------------------------------ */

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

  /* Health already collapses .tools-grid to 1 column at <=900px */
  .store-header {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .store-search {
    padding: 0.6rem 0.75rem;
  }

  .store-note {
    padding: 0.8rem 0.85rem;
  }
}
