

@font-face {
  font-family: 'OakBody';
  src: url('../assets/fonts/oakberry-body.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple:      #4b2e64;
  --purple-mid:  #5a3e7a;
  --purple-deep: #341c4b;
  --purple-dark: #1e0f33;
  --cream:       #f5eddf;
  --cream-soft:  #efe4d0;
  --cream-warm:  #f3ede0;
  --orange:      #e8a33d;
  --ink:         #2a1840;
  --line:        rgba(75, 46, 100, 0.14);

  --font-title: "Zilla Slab", Georgia, serif;
  --font-body:  "OakBody", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --topbar-h: 62px;
  --shadow-card: 0 10px 26px rgba(30, 15, 51, 0.10);
  --shadow-pop:  0 -18px 60px rgba(20, 8, 36, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Menü bir vitrin; metin seçimi, sürükleme ve uzun basma menüsü kapalı.
   Arama kutusu bunun dışında — orada yazma ve yapıştırma çalışmalı. */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; user-drag: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  view-transition-name: main-content;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body.locked { overflow: hidden; }

/* =========================== HEADER =========================== */

.topbar {
  background: var(--purple);
  color: var(--cream);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  position: relative;
  height: var(--topbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.lang-switcher {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  z-index: 10;
}

.lang-btn {
  padding: 0.2rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.lang-btn.is-active {
  opacity: 1;
}

.lang-sep {
  opacity: 0.4;
  font-weight: 400;
}

.topbar-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* --------------------------- marquee --------------------------- */

.marquee {
  background: var(--orange);
  color: var(--purple-dark);
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 0;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 26s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  padding-right: 0.4rem;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================== CATEGORY BAR =========================== */

.catbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 15, 51, 0.05);
}

.catbar[hidden] { display: none; }

.catbar-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.4rem;
}

.home-btn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  margin-left: 0.55rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--purple);
}
.home-btn svg { width: 16px; height: 16px; }

.cattabs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
}

.cattab {
  flex: 0 0 auto;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0.34rem 0.95rem;
  border-radius: 5px;
  transform: skewX(-13deg);
  transition: background-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}
.cattab > span { display: inline-block; transform: skewX(13deg); }

.cattab[aria-selected="true"] {
  background: var(--purple);
  color: var(--cream-warm);
}

/* Telefonda altı sekme kendi haline bırakılınca üç satıra yayılıyordu.
   Izgaraya alıp üç sütuna sabitliyoruz: hep 3 üstte, 3 altta. Yazı boyutu
   ekran genişliğiyle ölçekleniyor ki en uzun başlık (AÇAÍ SMOOTHIES) da
   tek satıra sığsın. */
@media (max-width: 619px) {
  .catbar-row { gap: 0.15rem; padding-right: 0.3rem; }

  .home-btn { width: 30px; height: 30px; margin-left: 0.35rem; }
  .home-btn svg { width: 14px; height: 14px; }
  .search-toggle { width: 32px; height: 32px; }
  .search-toggle svg { width: 15px; height: 15px; }

  .cattabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 0.22rem;
    padding: 0.5rem 0.25rem;
  }

  .cattab {
    /* En uzun başlık (AÇAÍ SMOOTHIES) sütuna sığacak en büyük ölçü;
       ölçüm 360–430 px arası cihazlarda tek satırı koruyor. */
    font-size: clamp(0.5rem, 2.75vw, 0.8rem);
    letter-spacing: 0.01em;
    padding: 0.34rem 0.12rem;
    text-align: center;
    min-width: 0;
    overflow: hidden;
  }
  .cattab > span { display: block; }
}

.search-toggle {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--purple);
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}
.search-toggle svg { width: 17px; height: 17px; }
.search-toggle[aria-expanded="true"] { background: var(--purple); color: var(--cream); border-color: var(--purple); }

/* --------------------------- search --------------------------- */

.searchwrap {
  position: relative;
  padding: 0 0.9rem 0.7rem;
}

.searchwrap input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 2.4rem 0.6rem 1.05rem;
  outline: none;
}
.searchwrap input:focus { border-color: var(--purple); background: #fff; }
.searchwrap input::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-60%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.5;
  padding: 0 0.3rem;
}

@media (min-width: 620px) {
  .catbar-row, .searchwrap { width: min(1100px, 100%); margin-inline: auto; }
  .cattabs { padding-left: 0.4rem; }
}

/* =========================== CONTENT =========================== */

main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem 0.9rem 3rem;
}

/* =========================== AÇILIŞ EKRANI =========================== */

.home[hidden] { display: none; }

/* menü yazıları dekorun üstünde kalsın */
body.is-home .home { position: relative; z-index: 1; }

/* Açılış ekranı tam ekran: header + marquee dışında kalan alanı doldurur,
   sayfa kaymaz. */
body.is-home {
  height: 100dvh;
  overflow: hidden;
}
body.is-home main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0;
  overflow: hidden;
}

/* --------------------------- weis solutions imzası --------------------------- */

.weis-credit { display: none; }

body.is-home .weis-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  position: absolute;
  left: 50%;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
body.is-home .weis-credit:hover { opacity: 0.75; }

.weis-logo {
  height: 11px;
  width: auto;
  display: block;
}

.weis-text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--purple);
}

/* --------------------------- açılış dekoru (yapraklar) --------------------------- */

.home-plant { display: none; }

body.is-home .home-plant {
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  /* yazıların arkasında kalsın, dikkat dağıtmasın */
  opacity: 0.13;
  /* köşedeki boşluğa sığsın: dar ekranda genişlik, alçak ekranda yükseklik sınırlar */
  width: min(42vw, 30vh);
  height: auto;
}

/* main geniş ekranda ortalanıp 1100px'te durduğu için, yaprakları main'in
   kenarından ekranın gerçek kenarına taşırıyoruz. Mobilde bu değer 0 olur. */
.plant-tr {
  top: 0;
  right: calc((100% - 100vw) / 2);
  animation: plant-in-right 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* sol alt: aynalanmış, soldan kayıp gelir, sol kenarına yapışır */
.plant-bl {
  bottom: 0;
  left: calc((100% - 100vw) / 2);
  animation: plant-in-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes plant-in-right {
  from { transform: translateX(100%);  opacity: 0; }
  to   { transform: translateX(0);     opacity: 0.13; }
}

/* scaleX(-1) aynalama, kayma boyunca korunur */
@keyframes plant-in-left {
  from { transform: translateX(-100%) scaleX(-1); opacity: 0; }
  to   { transform: translateX(0) scaleX(-1);     opacity: 0.13; }
}

@media (prefers-reduced-motion: reduce) {
  .plant-tr { animation: none; }
  .plant-bl { animation: none; transform: scaleX(-1); }
}

/* dar/alçak ekranlarda üst bandı küçültüp listeye yer aç */
body.is-home .topbar-inner { height: min(var(--topbar-h), 9vh); }
body.is-home .marquee { padding: min(4px, 0.45vh) 0; }
body.is-home .marquee-track span { font-size: min(0.6rem, 1.3vh); }

.home-eyebrow {
  font-size: min(0.62rem, 1.8vh);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  text-align: center;
  color: var(--orange);
  margin: 0 0 min(1rem, 1.1vh);
}

.home-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(0.81rem, 1.62vh); /* başlıklar arası mesafe: 2.7x */
}

.home-row {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  /* yükseklik de hesaba katılır ki 6 başlık her zaman ekrana sığsın */
  font-size: clamp(1rem, min(8.2vw, 3.9vh), 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--purple);
  padding: min(0.3rem, 0.7vh) 0.85rem;
  border-radius: 6px;
  transform: skewX(-13deg);
  transition: background-color 0.22s ease, color 0.22s ease;
}
.home-row > span { display: inline-block; transform: skewX(13deg); }

.home-row:active,
.home-row.is-active {
  background: var(--purple);
  color: var(--cream-warm);
}
@media (hover: hover) {
  .home-row:hover { background: var(--purple); color: var(--cream-warm); }
}

@media (min-width: 620px) {
  .home-eyebrow { margin-bottom: 1.5rem; }
  .home-list { gap: 1.2rem; } /* 2.7x */
  .home-row {
    font-size: clamp(1rem, min(5vw, 5.4vh), 3.4rem);
    padding: min(0.35rem, 0.9vh) 1.1rem;
  }
}

/* =========================== KATEGORİ İÇERİĞİ =========================== */

.cat-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--purple);
  opacity: 0.62;
  margin-bottom: 0.9rem;
  padding-left: 0.1rem;
}
.cat-note:empty { display: none; }

/* --------------------------- Sıcak / Soğuk filtresi --------------------------- */

.subfilter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.subfilter[hidden] { display: none; }

.subfilter-btn {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--purple);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  transition: all 0.2s ease;
}
.subfilter-btn[aria-pressed="true"] {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--cream);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ========================= NATIVE VIEW TRANSITION ========================= */

::view-transition-old(root) { animation: fadeOut 0.2s ease-in both; }
::view-transition-new(root) { animation: fadeIn 0.3s ease-out both; }

/* Slide Up (from Home to Category) */
html.slide-up::view-transition-old(main-content) { animation: fadeOut 0.25s ease-in both; }
html.slide-up::view-transition-new(main-content) { animation: slideInUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Slide Left (Tab -> Next Tab) */
html.slide-left::view-transition-old(main-content) { animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.slide-left::view-transition-new(main-content) { animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Slide Right (Tab -> Prev Tab) */
html.slide-right::view-transition-old(main-content) { animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }
html.slide-right::view-transition-new(main-content) { animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }

@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideOutLeft {
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(40px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------- ızgara alt başlığı --------------------------- */

.grid-sub {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.4rem 0 0.1rem;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
}
.grid-sub::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.grid-sub:first-child { margin-top: 0; }

/* --------------------------- product card --------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:active { transform: scale(0.975); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(30, 15, 51, 0.16); }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-soft);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.06); } }

/* görseli olmayan ürünler için marka dokusu */
.card-media.ph {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 60%),
    var(--ph, var(--purple));
}
.ph-icon {
  width: 44%;
  max-width: 92px;
  height: auto;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-6%);
}
.card-media.ph .ph-sub,
.sheet-hero.ph .ph-sub {
  position: absolute;
  bottom: 11px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 600;
  font-size: 0.52rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.sheet-hero.ph .ph-sub { bottom: 14px; font-size: 0.6rem; }
.sheet-hero.ph .ph-icon { width: 26%; max-width: 110px; }

.kcal-chip {
  position: absolute;
  left: 8px; top: 8px;
  background: rgba(30, 15, 51, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-tag,
.sheet-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(232, 163, 61, 0.18);
  color: #a8701c;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}
.card-tag.cat {
  background: rgba(75, 46, 100, 0.10);
  color: var(--purple);
}
.sheet-tag {
  font-size: 0.62rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  background: var(--orange);
  color: var(--purple-dark);
  padding: 3px 11px;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.75rem 0.8rem;
}

.card-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--purple);
}

.card-sub {
  font-size: 0.68rem;
  color: var(--purple);
  opacity: 0.55;
  margin-top: 0.18rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.card-sub { margin-bottom: 0.6rem; }

.card-price {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.card-price .cur { font-size: 0.72rem; opacity: 0.55; margin-left: 1px; }

.card-more {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--purple);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* =========================== EXTRAS (İLAVELER) =========================== */

.extras { display: flex; flex-direction: column; gap: 0.7rem; }

.xgroup {
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.xhead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--purple);
}
.xhead .chev {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
  color: var(--orange);
}
.xgroup.open .xhead .chev { transform: rotate(180deg); }

.xbody { display: none; padding: 0 1rem 0.4rem; }
.xgroup.open .xbody { display: block; }

.xrow { padding: 0.6rem 0; border-top: 1px solid var(--line); }

.xtop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.xname {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--purple);
  line-height: 1.25;
}

.xprice {
  flex: 0 0 auto;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.xprice small { font-size: 0.62rem; opacity: 0.55; margin-left: 2px; }

.xfree {
  flex: 0 0 auto;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f7a4a;
  background: rgba(47, 122, 74, 0.10);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.xmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  margin-top: 0.22rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  opacity: 0.62;
}
.xgram { font-weight: 600; color: var(--orange); opacity: 1; }
.xdot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.xkcal { font-weight: 600; }
.xmac { opacity: 0.85; }

/* Besin değerleri artık kısaltma yerine tam yazıldığı için alttaki
   "K: Karbonhidrat …" açıklama satırına gerek kalmadı. */

/* İlave satırında değerler tam yazıldığından etiketle sayı ayrılmasın */
.xmac { white-space: nowrap; }

/* =========================== DETAIL SHEET =========================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(30, 15, 51, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.sheet-backdrop.show { opacity: 1; }

.sheet {
  position: fixed;
  z-index: 61;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-pop);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.show { transform: translateY(0); }

@media (min-width: 720px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(480px, 92vw);
    max-height: 88vh;
    border-radius: var(--r-lg);
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.sheet-close {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(30, 15, 51, 0.3), 0 0 0 3px rgba(245, 237, 223, 0.55);
}
.sheet-close svg { width: 15px; height: 15px; }

.sheet-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
}

.sheet-hero {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 15%, #ffffff 0%, var(--cream-soft) 70%);
}
.sheet-hero img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem 0 0.2rem; }
.sheet-hero.ph {
  aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 62%),
    var(--ph, var(--purple));
}
.sheet-grab {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}
@media (min-width: 720px) { .sheet-grab { display: none; } }

.sheet-body { padding: 1.05rem 1.15rem 0; }

.sheet-eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.sheet-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--purple);
}

.sheet-desc {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.72;
  margin-top: 0.4rem;
}

/* size picker inside sheet */
.sheet-sizes {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0 0.9rem;
}
.sheet-size {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.5rem 0.3rem;
  text-align: center;
  transition: all 0.2s ease;
}
.sheet-size .nm {
  display: block;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--purple);
}
.sheet-size .pz {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 1px;
}
.sheet-size[aria-pressed="true"] {
  border-color: var(--purple);
  background: var(--purple);
}
.sheet-size[aria-pressed="true"] .nm,
.sheet-size[aria-pressed="true"] .pz { color: var(--cream); opacity: 1; }

/* price row */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--purple);
  color: var(--cream);
  border-radius: var(--r-md);
  padding: 0.7rem 0.95rem;
  margin-bottom: 1.1rem;
}
.price-row .lbl {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.price-row .val {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--orange);
}

/* section head */
.sec-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.sec-head h4 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  white-space: nowrap;
}
.sec-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ingredients */
.ing-list { list-style: none; margin-bottom: 1.3rem; }
.ing-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.86rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}
.ing-list li:last-child { border-bottom: none; }
.ing-list .amt {
  flex: 0 0 auto;
  min-width: 3.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
  font-size: 0.8rem;
}
.ing-list .nm { color: var(--ink); }

/* süt seçenekleri */
.milk-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.milk { text-align: center; }

.milk-sw {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
}
.milk-sw img { width: 100%; height: 100%; object-fit: cover; }

.milk-nm {
  display: block;
  min-height: 2.4em;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--purple);
}

/* nutrition */
.nutri { margin-bottom: 1.2rem; }

.kcal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.75rem;
}
.kcal-band .k-lbl {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--purple);
}
.kcal-band .k-val {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--purple);
}
.kcal-band .k-val small { font-size: 0.7rem; opacity: 0.55; margin-left: 3px; }

.macro { margin-bottom: 0.7rem; }
.macro:last-child { margin-bottom: 0; }
.macro-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.28rem;
}
.macro-top .m-name { font-weight: 600; color: var(--ink); }
.macro-top .m-val {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--purple);
}
.macro-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(75, 46, 100, 0.10);
  overflow: hidden;
}
.macro-fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
  animation: grow 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.f-karb { background: linear-gradient(90deg, #e8a33d, #f0bf72); }
.f-pro  { background: linear-gradient(90deg, #4b2e64, #7d5fa8); }
.f-yag  { background: linear-gradient(90deg, #b8456b, #d97a99); }

.macro-note {
  font-size: 0.66rem;
  color: var(--purple);
  opacity: 0.5;
  margin-top: 0.7rem;
  line-height: 1.45;
}

