/* Ek Gıda product pages (/ekgida/). Builds on main.css tokens and adds the app's
   own warm orange and green, so the page reads as the app while staying inside the Kum site. */

:root {
  --eg-primary: #C2461D;      /* text-safe orange on cream */
  --eg-primary-fill: #FF6A3D;
  --eg-on-primary: #FFFFFF;
  --eg-green: #146C49;
  --eg-tint: #FFEDE4;
  --eg-green-tint: #E2F5EB;
  --eg-card: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --eg-primary: #FFB99C;
    --eg-primary-fill: #FF8A5C;
    --eg-on-primary: #15110E;
    --eg-green: #9BE7C1;
    --eg-tint: #3D2419;
    --eg-green-tint: #173226;
    --eg-card: #1B1C21;
  }
}
:root[data-theme="dark"] {
  --eg-primary: #FFB99C;
  --eg-primary-fill: #FF8A5C;
  --eg-on-primary: #15110E;
  --eg-green: #9BE7C1;
  --eg-tint: #3D2419;
  --eg-green-tint: #173226;
  --eg-card: #1B1C21;
}

.eg a { color: var(--eg-primary); }
.eg a:hover { color: var(--fg); }

.eg-section { padding-block: clamp(48px, 7vw, 96px); }
.eg-section + .eg-section { padding-top: 0; }

/* Hero */
.eg-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px);
}
.eg-icon {
  width: clamp(96px, 14vw, 160px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 18px 40px -18px rgba(194, 70, 29, 0.55);
}
.eg-hero-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eg-hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.045em; }
.eg-hero .lede { max-width: 32em; }
@media (max-width: 620px) {
  .eg-hero { grid-template-columns: 1fr; }
}

.eg-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-badge {
  font-size: var(--step--1);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--eg-green-tint);
  color: var(--eg-green);
}

.eg-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.eg-store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--eg-card);
  color: var(--fg);
}
.eg-store svg { width: 22px; height: 22px; fill: none; stroke: var(--eg-primary); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.eg-store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; }
.eg-store small { font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }

/* Screenshot gallery: native horizontal scroll with snap, no JS.
   Each shot has a light and a dark image; only the one matching the theme shows
   (lazy images that stay display:none are never downloaded). */
.eg-shots {
  list-style: none;
  margin: 0;
  padding: 4px 0 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 26vw, 260px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.eg-shots li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.eg-shots figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.eg-phone {
  border-radius: 28px;
  padding: 7px;
  background: #17181D; /* phone bezel stays dark in both themes */
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}
.eg-phone img { width: 100%; height: auto; border-radius: 22px; }
.eg-shots figcaption { font-size: var(--step--1); font-weight: 600; color: var(--muted); padding-inline: 4px; }

.eg-shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eg-shot-light { display: none; }
  :root:not([data-theme="light"]) .eg-shot-dark { display: block; }
}
:root[data-theme="dark"] .eg-shot-light { display: none; }
:root[data-theme="dark"] .eg-shot-dark { display: block; }

/* Section heads */
.eg-head { display: flex; flex-direction: column; gap: 10px; max-width: 44rem; margin-bottom: 28px; }
.eg-head h2 { font-size: var(--step-3); font-weight: 700; }
.eg-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); }

/* Feature grid */
.eg-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 9 cards: 3 columns on desktop, so the last row is full */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.eg-features li {
  background: var(--eg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eg-emoji {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--eg-tint);
  font-size: 1.4rem;
  line-height: 1;
}
.eg-features h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.eg-features p { color: var(--muted); font-size: 0.95rem; }

/* Privacy band */
.eg-privacy {
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 28px;
}
.eg-privacy .eg-head { grid-column: 1 / -1; margin-bottom: 0; }
.eg-privacy h3 { font-size: var(--step-1); font-weight: 700; }
.eg-privacy p { color: var(--muted); }
.eg-privacy div { display: flex; flex-direction: column; gap: 6px; }

/* Medical notice (kept static: no motion) */
.eg-notice {
  border-left: 4px solid var(--eg-primary-fill);
  background: var(--eg-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46rem;
}
.eg-notice h2 { font-size: var(--step-2); font-weight: 700; }

/* Support */
.eg-support { display: flex; flex-direction: column; gap: 12px; }
.eg-support h2 { font-size: var(--step-3); font-weight: 700; }
.eg-support > p:not(.eyebrow) { color: var(--muted); max-width: 40em; }
.eg-mail {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.eg-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Privacy policy page tweaks */
.doc .eg-summary {
  background: var(--eg-green-tint);
  border-radius: var(--radius);
  padding: 18px 20px 18px 38px;
}
.doc .eg-summary li { color: var(--fg); }
