/* Fruity Fresh — Nutrition Page Stylesheet */
/* Last updated: 2026-05-18 */

/* ══════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════ */
.nutr-hero {
  position: relative;
  background: linear-gradient(135deg, #140820 0%, #2a1040 60%, #3d1a5c 100%);
  padding: 120px clamp(20px, 5vw, 64px) 56px;
  overflow: hidden;
  text-align: center;
}
.nutr-hero::before,
.nutr-hero::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.nutr-hero::before {
  background: radial-gradient(circle, rgba(255,107,157,.55), transparent 70%);
  top: -180px; left: -120px;
}
.nutr-hero::after {
  background: radial-gradient(circle, rgba(78,205,196,.45), transparent 70%);
  bottom: -200px; right: -140px;
}
.nutr-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.nutr-hero .sec-lbl {
  font-family: var(--FD);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.nutr-hero h1 {
  font-family: var(--FH);
  font-weight: 400;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.nutr-hero .nutr-hero-sub {
  font-family: var(--FB);
  color: rgba(255,255,255,.7);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   STICKY SEARCH BAR
══════════════════════════════════════════════ */
.nutr-search-wrap {
  position: sticky;
  top: 78px;
  z-index: 90;
  background: #fff;
  padding: 16px clamp(20px, 5vw, 64px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nutr-search-inner {
  max-width: 560px; margin: 0 auto;
  position: relative;
}
.nutr-search-inner::before {
  content: '🔍';
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .55;
  pointer-events: none;
}
.nutr-search-wrap input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #f0e6ee;
  background: #faf7fa;
  border-radius: 999px;
  padding: 12px 22px 12px 44px;
  font-family: var(--FB);
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color .2s, background .2s;
}
.nutr-search-wrap input::placeholder { color: rgba(20,8,32,.4); }
.nutr-search-wrap input:focus {
  border-bottom-color: var(--accent);
  background: #fff;
}

/* ══════════════════════════════════════════════
   GRID + CARDS
══════════════════════════════════════════════ */
.nutr-grid-wrap { background: #f7f4f8; }
.nutr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 56px clamp(20px, 5vw, 64px);
  max-width: 1360px;
  margin: 0 auto;
}
.nutr-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(20,8,32,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nutr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(20,8,32,.14);
}

/* Card header */
.nutr-card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nutr-card-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.nutr-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.nutr-card-name {
  font-family: var(--FD);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.1;
}
.nutr-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--FB);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.nutr-card-badge.cat-popsicle { background: #FFE0EC; color: #D94F7E; }
.nutr-card-badge.cat-sandwich { background: #E8F5E9; color: #388E3C; }

/* ══════════════════════════════════════════════
   US-STYLE NUTRITION LABEL
══════════════════════════════════════════════ */
.nutr-label {
  font-family: 'DM Sans', sans-serif;
  margin: 16px 20px 20px;
  padding: 12px 14px 10px;
  border: 1.5px solid #000;
  color: #000;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.35;
}
.nutr-label-title {
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.nutr-label-servings {
  font-size: 12px;
  margin-bottom: 2px;
}
.nutr-label-size {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  padding-bottom: 4px;
}
.nutr-label-divider-thick {
  height: 8px;
  background: #000;
  margin: 2px 0 4px;
}
.nutr-label-divider {
  height: 3px;
  background: #000;
  margin: 4px 0;
}
.nutr-label-divider-thin {
  height: 1px;
  background: #000;
  margin: 3px 0;
}
.nutr-label-amount {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 2px;
}
.nutr-label-calories {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-weight: 900;
  line-height: 1;
}
.nutr-label-calories .lbl {
  font-size: 1.3rem;
}
.nutr-label-calories .val {
  font-size: 2.8rem;
  letter-spacing: -1.5px;
}
.nutr-label-dv {
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  margin: 4px 0 2px;
}
.nutr-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 0;
  border-top: 1px solid #000;
  font-size: 12.5px;
}
.nutr-row:first-of-type { border-top: none; }
.nutr-row .name { flex: 1; }
.nutr-row .name b { font-weight: 700; }
.nutr-row .pct { font-weight: 700; padding-left: 8px; }
.nutr-row.indent-1 { padding-left: 14px; border-top: none; }
.nutr-row.indent-2 { padding-left: 28px; border-top: none; }
.nutr-label-footnote {
  font-style: italic;
  font-size: 10.5px;
  line-height: 1.35;
  padding-top: 6px;
  border-top: 1.5px solid #000;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   GRID FOOTNOTE
══════════════════════════════════════════════ */
.nutr-grid-footnote {
  text-align: center;
  font-size: 12.5px;
  color: rgba(20,8,32,.55);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 60px;
  background: #f7f4f8;
}

/* No results message */
.nutr-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-family: var(--FB);
  font-size: 15px;
  color: rgba(20,8,32,.5);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .nutr-hero {
    padding: 140px clamp(20px, 5vw, 64px) 70px;
  }
}
@media (min-width: 1024px) {
  .nutr-hero {
    padding: 160px clamp(20px, 5vw, 64px) 80px;
  }
}
@media (max-width: 680px) {
  .nutr-hero { padding: 110px 20px 44px; min-height: 200px; }
  .nutr-search-wrap { top: 78px; padding: 12px 20px; }
  .nutr-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 20px;
  }
  .nutr-label-calories .val { font-size: 2.4rem; }
}
