/* @theme 2 · Mercan — Uygulama hissi, yuvarlak kategoriler */
/* @order 2 */
/* @theme-color #FFFFFF */
/* @flow screens */
/* @fonts poppins */
/* @options featured-modules */

/*
 * TEMA 2 · MERCAN
 * ===============
 *
 * Referans: kullanıcının seçtiği Behance "QR menu (Mobile application)"
 * (Sara Ali, 2023) — pembe-mercan vurgulu yemek uygulaması dili. Kopya değil;
 * o dilin menüye uyarlanmış hâli.
 *
 * İmza (başka temaya taşınmaz):
 *   - Giriş: fotoğrafın üstüne binen beyaz panel + tutamaç + taşan yuvarlak
 *     logo, bölmeli hap dil anahtarı, degrade mercan düğme, ikonlu bilgi.
 *   - Ana menü: "Hoş geldiniz 👋" başlığı, mercan kampanya kartı, öne çıkan
 *     ürün kartları, iki sütun kategori kutuları (yuvarlak görsel).
 *   - Kategori: yuvarlak görselli kategori şeridi, seçili olan dikey mercan
 *     kapsül; ürün kartı sağ üst köşede mercan kulakçık.
 *   - Detay: 28 px yuvarlak alttan panel, mercan fiyat, hap künye.
 *
 * Görünümler: app/views/themes/editoryel-dergi/site/screens/*.php
 * (slug eski adıyla kaldı; müşteri kayıtları bu adı tutuyor).
 */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-text: #1D1B2E;

  --color-accent: #EF4565;
  --color-accent-100: #FDECEF;
  --color-accent-200: #FBD3DB;
  --color-accent-300: #F7A9B8;
  --color-accent-400: #F37791;
  --color-accent-500: #EF4565;
  --color-accent-600: #DB2F51;
  --color-accent-700: #C2223F;
  --color-accent-800: #8F1A30;
  --color-accent-900: #5E1120;

  --color-divider: #F1E6E9;
  --color-neutral-100: #FBF7F8;
  --color-neutral-200: #F5EFF1;
  --color-neutral-300: #EAE2E5;
  --color-neutral-400: #CFC6CA;
  --color-neutral-500: #A39CA1;
  --color-neutral-600: #77717A;
  --color-neutral-700: #55505A;
  --color-neutral-800: #34303B;
  --color-neutral-900: #1D1B2E;

  --dim-panel: rgba(29, 27, 46, 0.22);
  --dim-sheet: rgba(29, 27, 46, 0.42);
  --color-hatch-a: #FDECEF;
  --color-hatch-b: #FBD3DB;

  --font-heading: "Poppins", var(--font-arabic), system-ui, sans-serif;
  --font-body: "Poppins", var(--font-arabic), system-ui, sans-serif;

  --sc-gutter: 20px;
  --sc-radius: 16px;
  --sc-radius-sheet: 28px;
  --sc-radius-media: 16px;
  --sc-bar-pad: 12px;
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --m-shadow: 0 14px 28px -16px color-mix(in srgb, var(--color-accent) 45%, transparent),
              0 2px 8px color-mix(in srgb, var(--color-text) 6%, transparent);
  --m-shadow-soft: 0 6px 18px -8px color-mix(in srgb, var(--color-text) 16%, transparent);
  --m-grad: linear-gradient(160deg, var(--color-accent-400), var(--color-accent-600));
}

body { font-size: 15px; }

.m-ico { display: block; flex: 0 0 auto; }
[dir="rtl"] .m-flip .m-ico, [dir="rtl"] .m-flip.m-ico { transform: scaleX(-1); }

.m-initial {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-weight: 600; font-size: 20px; color: var(--color-accent);
  background: var(--color-accent-100);
}

/* =========================================================================
 * 1 · Giriş
 * ========================================================================= */

.sc-intro.m-intro {
  padding: 0; align-items: stretch; text-align: center;
  background: var(--color-accent-100);
}

.m-introHero { position: relative; width: 100%; overflow: hidden; background: var(--color-accent-200); }
.m-introHeroImg { width: 100%; height: auto; display: block; }
.m-introHeroEmpty {
  height: 220px;
  background:
    radial-gradient(circle at 18% 30%, var(--color-accent-200) 0 60px, transparent 61px),
    radial-gradient(circle at 86% 64%, var(--color-accent-300) 0 90px, transparent 91px),
    var(--color-accent-100);
}

.m-introSheet {
  position: relative; z-index: 1; flex: 1;
  margin-top: -30px;
  padding: 10px var(--sc-gutter) calc(28px + var(--sc-safe-bottom));
  display: flex; flex-direction: column; align-items: center;
  background: var(--color-surface);
  border-radius: var(--sc-radius-sheet) var(--sc-radius-sheet) 0 0;
  box-shadow: 0 -10px 30px -18px color-mix(in srgb, var(--color-text) 40%, transparent);
}

.m-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--color-neutral-300); }

.m-introLogo {
  width: 92px; height: 92px; margin-top: -58px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 4px solid var(--color-surface);
  box-shadow: var(--m-shadow);
  font-size: 34px; font-weight: 700; color: var(--color-accent);
}
.m-handle + .m-introLogo { margin-top: 14px; }
.m-introLogo img { width: 100%; height: 100%; object-fit: contain; background: var(--color-surface); }

.m-introName {
  margin: 14px 0 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em;
  text-wrap: balance;
}
.m-introAddress {
  margin: 6px 0 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--color-neutral-600);
}
.m-introAddress .m-ico { width: 16px; height: 16px; color: var(--color-accent); }
.m-introTagline { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; max-width: 34ch; }

.m-seg {
  width: 100%; margin-top: 22px; padding: 4px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--color-divider); border-radius: 14px; background: var(--color-neutral-100);
}
.m-seg::-webkit-scrollbar { display: none; }
.m-segItem {
  flex: 1 0 auto; min-height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--color-neutral-600);
  transition: background 200ms var(--sc-ease), color 200ms var(--sc-ease), box-shadow 200ms var(--sc-ease);
}
.m-segItem[aria-current] { background: var(--color-accent-100); color: var(--color-accent-700); box-shadow: 0 1px 0 var(--color-accent-200) inset; font-weight: 600; }

.m-cta {
  width: 100%; min-height: 56px; margin-top: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; background: var(--m-grad); color: var(--color-bg);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 16px 28px -14px var(--color-accent);
  transition: transform 160ms var(--sc-ease), box-shadow 160ms var(--sc-ease);
}
.m-cta .m-ico { transition: transform 260ms var(--sc-ease); }
.m-cta:hover .m-ico { transform: translateX(4px); }
[dir="rtl"] .m-cta:hover .m-flip .m-ico { transform: scaleX(-1) translateX(4px); }
.m-cta:active { transform: scale(0.97); box-shadow: 0 8px 18px -12px var(--color-accent); }

.m-info { list-style: none; width: 100%; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; text-align: start; }
.m-infoRow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; background: var(--color-neutral-100); border: 1px solid var(--color-divider);
}
.m-infoIcon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-100); color: var(--color-accent);
}
.m-infoText { display: flex; flex-direction: column; min-width: 0; }
.m-infoEnd { margin-inline-start: auto; text-align: end; }
.m-infoLabel { font-size: 11px; color: var(--color-neutral-600); }
.m-infoValue { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

/* Giriş hareketi: fotoğraf hafif büyüyerek oturur, panel yukarı kayar, içi sırayla gelir. */
@keyframes m-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes m-sheet-up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.js .sc-intro > * { animation: none; }
.js .m-introHeroImg { animation: m-settle 1200ms var(--sc-ease) both; }
.js .m-introSheet { animation: m-sheet-up 620ms var(--sc-ease) both; animation-delay: 80ms; }
.js .m-introSheet > * { animation: sc-rise 520ms var(--sc-ease) both; animation-delay: calc(240ms + var(--i, 0) * 60ms); }
.m-introSheet > :nth-child(2) { --i: 1; } .m-introSheet > :nth-child(3) { --i: 2; }
.m-introSheet > :nth-child(4) { --i: 3; } .m-introSheet > :nth-child(5) { --i: 4; }
.m-introSheet > :nth-child(6) { --i: 5; } .m-introSheet > :nth-child(7) { --i: 6; }
.m-introSheet > :nth-child(n+8) { --i: 7; }
@keyframes m-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.js .m-introLogo { animation: m-pop 620ms var(--sc-ease) both; animation-delay: 260ms; }

/* =========================================================================
 * Üst çubuk
 * ========================================================================= */

.sc-bar.m-top {
  border-bottom: 0;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sc-barRow { gap: 12px; }
/* Kategori başlığı görselli şeritle uzun: yapışkan olursa ekranın üçte birini yer. */
.sc-bar.sc-barCat.m-top { position: relative; }

.m-avatar {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-accent-200); background: var(--color-surface);
  font-weight: 700; font-size: 18px; color: var(--color-accent);
}
.m-avatar img { width: 100%; height: 100%; object-fit: contain; }
.m-hello { flex: 1; min-width: 0; }
.m-helloName { font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-helloSub { font-size: 12px; color: var(--color-neutral-600); }

.sc-langBtn, .m-round {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; background: var(--color-neutral-200); color: var(--color-text);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.sc-langBtn[aria-expanded="true"] { background: var(--color-accent); color: var(--color-bg); }
.sc-back.m-round { margin-inline-start: 0; }
.sc-barCat .sc-barRow .sc-barTitle { font-size: 18px; font-weight: 600; }

.sc-langMenu {
  border-radius: 18px; border: 0; padding: 6px; overflow: hidden;
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--color-text) 45%, transparent);
}
.sc-langItem { border-radius: 12px; min-height: 46px; padding: 0 14px; font-size: 14px; }
.sc-langItem[aria-checked="true"] { background: var(--color-accent-100); color: var(--color-accent-700); }

/* =========================================================================
 * 2 · Ana menü
 * ========================================================================= */

.m-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 0 16px; min-height: 50px;
  border: 1px solid var(--color-divider); border-radius: 16px; background: var(--color-neutral-100);
  transition: border-color 200ms var(--sc-ease), box-shadow 200ms var(--sc-ease);
}
.m-search:focus-within { border-color: var(--color-accent-300); box-shadow: 0 0 0 4px var(--color-accent-100); }
.m-search .m-ico { color: var(--color-neutral-500); }
.m-search .sc-searchInput { font-size: 15px; }

.m-promo {
  position: relative; overflow: hidden; margin-top: 18px;
  display: flex; align-items: center; gap: 10px;
  min-height: 136px; padding: 18px 20px;
  border-radius: 24px; background: var(--m-grad); color: var(--color-bg);
  box-shadow: 0 20px 34px -22px var(--color-accent-700);
}
.m-promo::before, .m-promo::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1.5px solid color-mix(in srgb, var(--color-bg) 22%, transparent);
}
.m-promo::before { width: 220px; height: 220px; inset-inline-end: -70px; top: -90px; }
.m-promo::after { width: 120px; height: 120px; inset-inline-start: -40px; bottom: -70px; }
.m-promoText { position: relative; z-index: 1; flex: 1; min-width: 0; }
.m-promoTitle { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.m-promoLine { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.92; }
.m-promoLine .m-ico { width: 15px; height: 15px; }
.m-promoLine span { min-width: 0; overflow-wrap: anywhere; }
.m-promoImg {
  position: relative; z-index: 1;
  width: 104px; height: 104px; flex: 0 0 auto; border-radius: 50%; object-fit: cover;
  border: 4px solid color-mix(in srgb, var(--color-bg) 70%, transparent);
  box-shadow: 0 12px 24px -10px var(--color-accent-900);
}
@keyframes m-spin-in { from { transform: rotate(-30deg) scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.js .m-promoImg { animation: m-spin-in 820ms var(--sc-ease) both; animation-delay: 220ms; }
.js .m-promo { animation: sc-rise 520ms var(--sc-ease) both; animation-delay: 80ms; }

.m-h2 { margin: 26px 0 12px; font-size: 17px; font-weight: 600; }

/* Öne çıkan ürün kartları: görsel kartın üstünden taşar */
.m-module { margin-top: 0; }

/* Gruplar arası betiksiz sekme: radyo seçili olan grubun şeridi görünür. */
.m-featTabs { display: flex; gap: 8px; margin: 24px 0 0; overflow-x: auto; scrollbar-width: none; }
.m-featTabs::-webkit-scrollbar { display: none; }
.m-featTab {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; cursor: pointer;
  display: inline-flex; align-items: center; border-radius: 40px;
  font-size: 13px; font-weight: 600; color: var(--color-neutral-600);
  background: var(--color-neutral-200);
  transition: background 220ms var(--sc-ease), color 220ms var(--sc-ease), box-shadow 220ms var(--sc-ease);
}
.m-featTab:active { transform: scale(0.96); }
.m-module:has(.m-featRadio) .m-featRow { display: none; }
#m-feat-popular:checked ~ .m-featRow[data-feat="popular"],
#m-feat-weekly:checked ~ .m-featRow[data-feat="weekly"] { display: flex; }
#m-feat-popular:checked ~ .m-featTabs [for="m-feat-popular"],
#m-feat-weekly:checked ~ .m-featTabs [for="m-feat-weekly"] {
  background: var(--m-grad); color: var(--color-bg); box-shadow: 0 10px 18px -10px var(--color-accent-600);
}
#m-feat-popular:focus-visible ~ .m-featTabs [for="m-feat-popular"],
#m-feat-weekly:focus-visible ~ .m-featTabs [for="m-feat-weekly"] { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.m-featRow .m-pop { animation-name: sc-rise; }
.m-module .sc-moduleRow { gap: 14px; padding-top: 34px; padding-bottom: 14px; }
.sc-moduleItem.m-pop {
  flex: 0 0 158px; position: relative; overflow: visible;
  padding: 58px 14px 14px; border-radius: 22px;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  box-shadow: var(--m-shadow-soft);
  align-items: center; text-align: center;
  transition: transform 180ms var(--sc-ease), box-shadow 180ms var(--sc-ease);
}
.m-popMedia {
  position: absolute; top: -30px; left: 50%; width: 84px; height: 84px; margin-left: -42px;
  border-radius: 50%; overflow: hidden; background: var(--color-accent-100);
  border: 4px solid var(--color-surface); box-shadow: var(--m-shadow);
}
.m-popMedia img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--sc-ease); }
.m-pop:hover .m-popMedia img { transform: scale(1.08) rotate(6deg); }
.m-popName {
  font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.m-popCat { margin-top: 2px; font-size: 11px; color: var(--color-neutral-600); }
.m-popFoot { margin-top: auto; padding-top: 10px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m-popPrice { font-size: 14px; font-weight: 700; color: var(--color-accent-700); }
.m-go {
  width: 30px; height: 30px; margin-inline-start: auto; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-bg);
}
.m-go .m-ico { width: 16px; height: 16px; }
.js .m-pop { animation: sc-rise 460ms var(--sc-ease) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }
.m-pop:active { transform: scale(0.96); }

/* Kategori kutuları */
.sc-catList.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sc-cat.m-tile {
  min-height: 0; padding: 16px 12px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center;
  border: 1px solid var(--color-divider); border-radius: 22px;
  background: var(--color-surface); box-shadow: var(--m-shadow-soft);
  transition: transform 180ms var(--sc-ease), background 220ms var(--sc-ease), border-color 220ms var(--sc-ease), box-shadow 220ms var(--sc-ease);
}
.sc-cat.m-tile:hover { opacity: 1; border-color: var(--color-accent-200); }
.sc-cat.m-tile[hidden] { display: none; }
.m-tileMedia {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--color-accent-100); border: 3px solid var(--color-surface);
  box-shadow: var(--m-shadow);
  transition: transform 300ms var(--sc-ease);
}
.m-tileMedia img { width: 100%; height: 100%; object-fit: cover; }
.m-tileName {
  margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.m-tileCount { margin-top: 2px; font-size: 12px; color: var(--color-neutral-600); }
.sc-cat.m-tile:active { transform: scale(0.96); opacity: 1; background: var(--m-grad); border-color: transparent; }
.sc-cat.m-tile:active .m-tileName, .sc-cat.m-tile:active .m-tileCount { color: var(--color-bg); }
.sc-cat.m-tile:active .m-tileMedia { transform: scale(1.06); }
[dir="rtl"] .sc-cat.m-tile:active { transform: scale(0.96); }

/* Tek kalan son kutu tüm satırı alır ve yatay yatar. */
.m-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; gap: 16px; text-align: start; padding: 14px 18px; }
.m-tile:last-child:nth-child(odd) .m-tileName { margin-top: 0; }
.m-tile:last-child:nth-child(odd) .m-tileMedia { width: 64px; height: 64px; }
.m-tile:last-child:nth-child(odd) .m-tileCount { margin-inline-start: auto; }

/* =========================================================================
 * 3 · Kategori — yuvarlak şerit + kartlar
 * ========================================================================= */

.sc-chips.m-chips { gap: 10px; padding: 14px var(--sc-gutter) 14px; margin: 0 calc(-1 * var(--sc-gutter)); }
.sc-chip.m-chip {
  flex: 0 0 auto; width: 74px; min-height: 0; padding: 6px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-radius: 40px; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500;
  color: var(--color-neutral-700); white-space: normal; text-align: center;
  transition: background 260ms var(--sc-ease), color 260ms var(--sc-ease), box-shadow 260ms var(--sc-ease), transform 160ms var(--sc-ease);
}
.sc-chip.m-chip::after { display: none; }
.m-chipMedia {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--color-accent-100); border: 3px solid var(--color-surface);
  box-shadow: var(--m-shadow-soft);
}
.m-chipMedia img { width: 100%; height: 100%; object-fit: cover; }
.m-chipName {
  line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.sc-chip.m-chip.sc-chipOn { background: var(--m-grad); color: var(--color-bg); box-shadow: 0 14px 22px -12px var(--color-accent-600); font-weight: 600; }
@keyframes m-chip-in { from { transform: translateY(10px) scale(0.92); } to { transform: none; } }
.js .sc-chipOn.m-chip { animation: m-chip-in 520ms var(--sc-ease) both; animation-delay: 120ms; }

.sc-body .sc-rows { display: grid; gap: 14px; padding-top: 6px; }

.sc-row.m-card {
  position: relative; overflow: hidden;
  padding: 12px; gap: 14px; align-items: center;
  border: 1px solid var(--color-divider); border-radius: 22px;
  background: var(--color-surface); box-shadow: var(--m-shadow-soft);
}
.sc-row.m-card:hover { opacity: 1; border-color: var(--color-accent-200); }
.sc-row.m-card:active { transform: scale(0.98); opacity: 1; }
[dir="rtl"] .sc-row.m-card:active { transform: scale(0.98); }

/* Görsel kırpılmaz: genişlik sabit, yükseklik orana göre; dik görsel 112 px'te
   durur ve pembe zeminde ortalanır (şeffaf PNG de bu zeminde oturur). */
.m-cardMedia {
  width: 116px; flex: 0 0 auto; align-self: center;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; overflow: hidden; background: var(--color-accent-100);
}
.m-cardMedia .sc-rowMedia { display: block; width: auto; max-width: 100%; height: auto; max-height: 136px; transition: transform 400ms var(--sc-ease); }
.sc-row.m-card:hover .sc-rowMedia { transform: scale(1.06); }
.m-cardMediaEmpty { height: 96px; }

.m-card .sc-rowBody { padding-inline-end: 22px; }
.m-card .sc-rowTag {
  display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
  background: var(--color-accent-100); color: var(--color-accent-700);
}
.m-card .sc-rowName { display: -webkit-box; font-size: 15px; font-weight: 600; line-height: 1.3; }
.m-card .sc-rowDesc { margin-top: 4px; font-family: var(--font-body); font-style: normal; font-size: 12px; line-height: 1.5; }
.m-cardFoot { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.m-card .sc-rowPrice { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--color-accent-700); }
.m-card .sc-rowMeta { margin: 0; font-size: 11px; letter-spacing: 0; }

.m-ear {
  position: absolute; top: 0; inset-inline-end: 0;
  width: 38px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-end-start-radius: 16px; background: var(--color-accent); color: var(--color-bg);
  transition: width 220ms var(--sc-ease);
}
.m-ear .m-ico { width: 18px; height: 18px; }
.sc-row.m-card:hover .m-ear { width: 46px; }
.sc-rowSoldOut .m-ear { background: var(--color-neutral-400); }
.sc-rowSoldOut .m-cardMedia { filter: grayscale(1); opacity: 0.6; }
.sc-rowSoldOut.m-card .sc-rowPrice { color: var(--color-neutral-600); }

.sc-note { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--color-accent-100); color: var(--color-accent-800); font-size: 13px; }
.sc-noResult { font-family: var(--font-body); font-style: normal; font-size: 14px; text-align: center; }

/* =========================================================================
 * 4 · Ürün detayı
 * ========================================================================= */

.sc-sheet { box-shadow: 0 -20px 40px -24px var(--color-text); }
.sc-sheetHandle { padding-top: 12px; min-height: 28px; }
.sc-sheetHandleBar { width: 44px; height: 5px; border-radius: 5px; background: var(--color-neutral-300); }
.sc-sheetScroll { padding-top: 10px; }

.sc-sheetMedia { border-radius: 22px; background: var(--color-accent-100); }
.sc-sheetMediaEmpty { aspect-ratio: auto; height: 120px; }

.sc-sheetTag {
  display: inline-block; margin-top: 18px; padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
  background: var(--color-accent-100); color: var(--color-accent-700);
}
.sc-sheetHead { display: block; margin-top: 16px; }
.sc-sheetTitle { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.sc-sheetPriceLine { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.sc-sheetPrice { font-family: var(--font-body); font-size: 24px; font-weight: 700; color: var(--color-accent-700); }
.sc-sheetMeta {
  margin: 0; padding: 5px 11px; border-radius: 20px;
  font-size: 12px; letter-spacing: 0; color: var(--color-neutral-700); background: var(--color-neutral-200);
}
.sc-sheetRule { background: var(--color-divider); margin: 18px 0; }
.sc-sheetDesc { font-family: var(--font-body); font-style: normal; font-size: 14px; line-height: 1.65; color: var(--color-neutral-700); }
.sc-sheetLabel { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-text); }

.sc-portions { flex-wrap: wrap; }
.sc-portion {
  flex: 1 1 120px; min-height: 52px; border-radius: 16px; padding: 0 16px;
  align-items: center; border-color: var(--color-divider); background: var(--color-neutral-100);
}
.sc-portionOn { background: var(--m-grad); border-color: transparent; color: var(--color-bg); box-shadow: 0 12px 20px -12px var(--color-accent-600); }

.sc-allergens { gap: 8px; }
.sc-allergen {
  align-items: center; padding: 6px 12px 6px 6px; border-radius: 30px;
  background: var(--color-neutral-100); border: 1px solid var(--color-divider); font-size: 13px;
}
[dir="rtl"] .sc-allergen { padding: 6px 6px 6px 12px; }
.sc-allergenLetter {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent-100); color: var(--color-accent-700); font-weight: 700; letter-spacing: 0;
}
.sc-allergensNone { font-size: 13px; }

.sc-sheetClose {
  min-height: 54px; border: 0; border-radius: 16px;
  background: var(--m-grad); color: var(--color-bg);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; text-transform: none;
  box-shadow: 0 16px 28px -14px var(--color-accent);
}

@keyframes m-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes m-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
.sc-sheet { animation: m-sheet-in 420ms var(--sc-ease); }
.sc-sheetOut { animation: m-sheet-out 240ms ease-in forwards; }
.js .sc-sheetMedia { animation: m-pop 560ms var(--sc-ease) both; animation-delay: 120ms; }

/* Masaüstü: dar sütun ortada, zemin aynı açık pembe. */
@media (min-width: 521px) {
  html, body { background: var(--color-neutral-100); }
  .sc-screen { background: var(--color-bg); box-shadow: 0 0 0 1px var(--color-divider); }
}

@media (max-width: 360px) {
  :root { --sc-gutter: 16px; }
  .m-cardMedia { width: 84px; }
  .m-promoImg { width: 86px; height: 86px; }
}

/* Kampanya kartındaki fotoğraf yavaşça süzülür; kategori görseli dokununca döner. */
@keyframes m-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.js .m-promoImg { animation: m-spin-in 820ms var(--sc-ease) both, m-float 4.5s ease-in-out 1.2s infinite; }
.sc-cat.m-tile:hover .m-tileMedia { transform: rotate(-8deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) { .js .m-promoImg { animation: none; } }
