/* =============================================================================
   ECONUR — HOMEPAGE
   Loaded only on the front page. Mobile-first, token-driven (no raw hex).
   Shared pieces (cards, size selector, section head) live in components.css.
   ============================================================================= */

/* -------------------------------------------------------------------------
 * 1 · Showcase (hero)
 * ---------------------------------------------------------------------- */
.econ-showcase { padding-block: clamp(16px, 4vw, 40px); }
.econ-showcase__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }

.econ-showcase__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(160deg, var(--pale), var(--sage));
}
/* The product photos are square (1:1). `object-fit: cover` crops whatever the box
 * does not match, so the wider the box, the more of the bar gets cut off the top
 * and bottom — which read as the image being "zoomed in".
 *
 * 16/9 showed only ~56% of the photo's height. 4/3 shows ~75%. Widen this ratio to
 * zoom in again, narrow it toward 1/1 to zoom further out (1/1 = no crop at all). */
.econ-showcase__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.econ-showcase__badge {
  position: absolute;
  top: var(--space-4);
  inset-inline-start: var(--space-4);
  background: var(--forest);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.econ-showcase__title { font-size: var(--fs-h1); margin: 0 0 var(--space-3); }
.econ-showcase__lead { font-size: 1rem; color: var(--text-mid); max-width: 46ch; margin: 0 0 var(--space-3); }
.econ-showcase__price { font-size: 1.25rem; font-weight: var(--fw-bold); color: var(--forest); margin-bottom: var(--space-3); }
.econ-showcase__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-3); }
.econ-showcase__meta { font-size: var(--fs-sm); color: var(--text-light); margin: 0; }

.econ-showcase--empty { text-align: center; padding-block: clamp(48px, 10vw, 120px); }
.econ-showcase__empty-inner { max-width: 640px; margin: 0 auto; }

@media (min-width: 880px) {
  .econ-showcase__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); }
  /* The ratio here is already square, so the crop comes entirely from max-height
   * capping the box shorter than it is wide. Raising the cap lets more of the
   * photo through (60vh showed ~73% of it, 72vh shows ~88%). */
  .econ-showcase__img { aspect-ratio: 1 / 1; max-height: 72vh; }
}

/* -------------------------------------------------------------------------
 * 2 · Product grid
 * ---------------------------------------------------------------------- */
.econ-grid-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }
.econ-grid-head__title { font-size: var(--fs-h2); margin: 0; }

.econ-search { position: relative; display: flex; align-items: center; width: 100%; }
.econ-search__icon { position: absolute; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--text-light); pointer-events: none; }
.econ-search__input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sage);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.econ-search__input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--pale); }

.econ-filters { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.econ-filters__row {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.econ-filters__row::-webkit-scrollbar { display: none; }
.econ-filters__row .econ-chip { flex: 0 0 auto; }

.econ-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.econ-grid-empty { text-align: center; color: var(--text-light); padding: var(--space-8) 0; font-size: 1.05rem; }
.econ-grid-empty[hidden] { display: none; }

/* Richer cards → fewer columns for breathing room. */
@media (min-width: 520px) { .econ-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
@media (min-width: 900px) { .econ-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) {
  .econ-grid-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .econ-search { max-width: 340px; }
}

/* -------------------------------------------------------------------------
 * 3 · Reviews
 * ---------------------------------------------------------------------- */
.econ-reviews__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.econ-review {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.econ-review__stars { letter-spacing: 2px; font-size: 1.1rem; }
.econ-star { color: var(--sage); }
.econ-star.is-on { color: var(--emerald); }
.econ-review__quote { margin: 0; color: var(--text-mid); font-size: 1.05rem; line-height: 1.6; }
.econ-review__by { display: flex; flex-direction: column; }
.econ-review__name { font-weight: var(--fw-semibold); color: var(--text-dark); }
.econ-review__loc { font-size: var(--fs-sm); color: var(--text-light); }
@media (min-width: 640px) { .econ-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .econ-reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------------------------------
 * 4 · Ingredients
 * ---------------------------------------------------------------------- */
.econ-ing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.econ-ing {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.econ-ing__leaf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-pill);
  background: var(--pale); color: var(--emerald-dark);
  margin-bottom: var(--space-3);
}
.econ-ing__name { font-size: 1.1rem; margin: 0 0 6px; }
.econ-ing__benefit { font-size: var(--fs-sm); color: var(--text-mid); margin: 0; }
@media (min-width: 620px) { .econ-ing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .econ-ing-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }

/* -------------------------------------------------------------------------
 * 5 · CTA band
 * ---------------------------------------------------------------------- */
.econ-cta {
  margin-top: var(--section-gap);
  background: linear-gradient(140deg, var(--forest), var(--forest-light));
  color: var(--white);
  padding-block: clamp(48px, 8vw, 96px);
}
.econ-cta__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.econ-cta__eyebrow { color: var(--mint); }
.econ-cta__title { color: var(--white); font-size: var(--fs-h1); margin: 0 0 var(--space-4); }
.econ-cta__sub { color: var(--sage); font-size: 1.1rem; margin: 0 0 var(--space-6); }
.econ-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.econ-cta__ghost { color: var(--white); border-color: var(--sage); background: transparent; }
.econ-cta__ghost:hover { background: var(--white); color: var(--forest); }

/* -------------------------------------------------------------------------
 * 0 · Homepage heading (the page's only h1)
 *
 * Sized to sit ABOVE the showcase without competing with the product name
 * inside it — the carousel is still the hero, this is the page's label.
 * ---------------------------------------------------------------------- */
.econ-home-head { padding-block: clamp(20px, 5vw, 36px) 0; }
.econ-home-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0 0 6px;
  text-align: center;
}
.econ-home-head__title--greeting { color: var(--forest); }
.econ-home-head__sub {
  color: var(--text-mid);
  margin: 0;
  font-size: var(--fs-sm);
  text-align: center;
}
