/* Ortak bileşenler: alt pencere, bildirim. Renkler her tasarımın değişkenlerinden gelir. */
html.mc-locked { overflow: hidden; }

.mc-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .45); opacity: 0; pointer-events: none;
  transition: opacity .25s ease; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.mc-backdrop.on { opacity: 1; pointer-events: auto; }

.mc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--sheet-bg, #fff); color: var(--text, #111); border-radius: var(--sheet-radius, 22px) var(--sheet-radius, 22px) 0 0;
  box-shadow: 0 -10px 40px rgb(0 0 0 / .2); transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom); }
.mc-sheet.on { transform: translateY(0); }
@media (min-width: 640px) {
  .mc-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, 92vw); max-height: 86dvh; border-radius: var(--sheet-radius, 22px);
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; }
  .mc-sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .mc-grab { display: none !important; }
}
.mc-grab { display: flex; justify-content: center; padding: 10px 0 4px; position: absolute; top: 0; left: 0; right: 0; z-index: 2; cursor: grab; }
.mc-grab span { width: 40px; height: 5px; border-radius: 99px; background: var(--grab, rgb(0 0 0 / .18)); }
.mc-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--close-bg, rgb(0 0 0 / .45)); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mc-sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Ürün detayı */
.mc-d-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--img-bg, #eee); }
.mc-d-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-d:not(.has-img) .mc-d-body { padding-top: 48px; }
.mc-badge .ic, .mc-d-badges .ic { flex-shrink: 0; }
/* Masaüstü: fotoğraf solda, bilgiler sağda */
@media (min-width: 900px) {
  .mc-sheet.mc-sheet--item:has(.has-img) { width: min(920px, 92vw); }
  .mc-d.has-img { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; }
  .mc-d.has-img .mc-d-img { aspect-ratio: auto; height: 100%; }
  .mc-d.has-img .mc-d-body { padding: 44px 32px 32px; overflow-y: auto; max-height: 86dvh; }
  .mc-sheet--item .mc-sheet-body { overflow: hidden; }
}
.mc-d-body { padding: 20px 20px 28px; }
.mc-d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mc-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mc-d-name { margin: 0; font-family: var(--display-font, inherit); font-size: var(--d-name-size, 22px); font-weight: var(--d-name-weight, 700); line-height: 1.25; letter-spacing: -.01em; }
.mc-d-price { font-weight: 700; font-size: 20px; white-space: nowrap; color: var(--price, inherit); }
.mc-d-desc { margin: 10px 0 0; color: var(--muted, #666); font-size: 15px; line-height: 1.55; }
.mc-d-note { margin: 10px 0 0; font-size: 13px; color: var(--accent, #c00); }
.mc-d-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.mc-d-facts > div { background: var(--chip-bg, #f4f4f4); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mc-d-facts span { font-size: 12px; color: var(--muted, #666); }
.mc-d-facts strong { font-size: 15px; }
.mc-d-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #eee); }
.mc-d-section h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #666); }
.mc-d-allergens { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-d-allergens span { border: 1px solid var(--line, #e5e5e5); border-radius: 99px; padding: 5px 12px; font-size: 13.5px; font-weight: 500; }
.mc-d-muted { color: var(--muted, #666); margin: 6px 0 0; }
.mc-d-small { font-size: 12.5px; margin-top: 12px; }

/* Bilgiler */
.mc-info { padding: 28px 20px 28px; }
.mc-info-title { margin: 0; font-family: var(--display-font, inherit); font-size: var(--d-name-size, 22px); font-weight: var(--d-name-weight, 700); line-height: 1.25; }
.mc-info-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mc-info-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--chip-bg, #f4f4f4); }
.mc-info-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mc-info-row small { color: var(--muted, #666); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-info-row strong { font-size: 14.5px; font-weight: 600; }
.mc-info-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--sheet-bg, #fff); color: var(--accent, #111); }
.mc-btn { flex-shrink: 0; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px;
  border-radius: 99px; background: var(--btn-bg, #111); color: var(--btn-text, #fff); }
.mc-pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--line, #eee); color: var(--muted, #666); }
.mc-pill--ok { background: rgb(22 163 74 / .14); color: #15803d; }

/* Bildirim */
.mc-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px); opacity: 0;
  background: var(--toast-bg, #111); color: var(--toast-text, #fff); padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); transition: .25s ease; pointer-events: none; white-space: nowrap; }
.mc-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .mc-sheet, .mc-backdrop, .mc-toast { transition: none; } }

.mc-d-cta { display: none; }

/* Görsel belirme ve kaydırınca ortaya çıkma */
.mc-fade img, img.mc-fade { opacity: 0; transition: opacity .5s ease; }
.mc-fade img.loaded, img.mc-fade.loaded { opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .mc-fade img, img.mc-fade { opacity: 1; } }
/* Arama sonuçları azken alt bilgi yukarı kaymasın */
#results { min-height: 72vh; }
