/* Biolink görünümü: temanın Bootstrap yapısını koruyup sadece ziyaretçi arayüzünü biçimlendirir. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --menu-text: #fff;
  --menu-soft: rgba(255,255,255,.78);
  --menu-glass: rgba(24,31,49,.48);
  --menu-glass-strong: rgba(20,27,43,.72);
  --menu-border: rgba(255,255,255,.24);
  --menu-radius: 26px;
  --menu-accent: #ffcc00;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.menu-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--menu-text);
  background: linear-gradient(-45deg, #ff7a59, #e73c7e, #9b59b6, #5b5bd6, #2878c8, #23a6d5, #23d5ab, #65c466, #f2c94c, #ff7a59);
  background-size: 600% 600%;
  animation: menu-gradient-flow 28s ease infinite;
  font-family: 'Manrope', system-ui, sans-serif;
}

@keyframes menu-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.menu-stage {
  min-height: 100vh;
  padding: 30px 18px 54px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.15), transparent 52%);
}

.menu-shell.container {
  width: min(100%, 1160px);
  max-width: 1160px;
  padding: 0;
}

.menu-header {
  display: grid;
  min-height: 160px;
  place-items: center;
  margin: 0 auto 24px;
  padding: 12px;
}

.menu-logo {
  display: block;
  width: auto;
  max-width: min(220px, 58vw);
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(8,15,31,.34)) drop-shadow(0 0 18px rgba(255,255,255,.18));
}

/* Her kategori kendi cam panelinde durur; başlık ve ürünler aynı grupta kalır. */
.menu-category {
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-glass);
  box-shadow: 0 16px 42px rgba(9,15,30,.16), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.category-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 20px;
}

.category-heading-plain {
  background: linear-gradient(115deg, rgba(255,255,255,.17), rgba(255,255,255,.05));
}

.category-heading h2 {
  color: var(--menu-text);
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 800;
  letter-spacing: .045em;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.bg-head {
  position: relative;
  isolation: isolate;
  background-color: rgba(15,22,38,.45);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.bg-head::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,14,26,.78), rgba(9,14,26,.18));
  content: '';
}

.category-title {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 14px;
  background: rgba(20,27,43,.62);
  color: #fff;
  font-size: clamp(18px, 3.8vw, 25px);
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.menu-product-grid { margin-bottom: 0 !important; }

.menu-product-card {
  height: 100%;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 21px;
  background: rgba(255,255,255,.94);
  color: #20283a;
  box-shadow: 0 8px 22px rgba(6,12,25,.16), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.productsimg {
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #f4f6fa, #dce3ed);
}

.menu-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.menu-product-card .card-body {
  gap: 7px;
  padding: 15px 15px 16px !important;
}

.menu-product-title {
  margin: 0;
  color: #172033;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 800;
  line-height: 1.35;
}

.menu-product-description {
  color: #687287;
  font-size: 13px;
  line-height: 1.5;
}

.menu-product-price {
  margin: auto 0 0;
  padding-top: 6px;
  color: #8a4a17;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.menu-category .alert-info {
  margin: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.productsimg:focus-visible {
  outline: 3px solid var(--menu-accent);
  outline-offset: 3px;
}

.sl-overlay { background: rgba(7,11,21,.9) !important; }

/* Kenardaki düğme ve açılır kategori paneli. İçerik, PHP'den aktif kategori sırasıyla gelir. */
.category-drawer-toggle {
  position: fixed;
  z-index: 40;
  top: 50%;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 17px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,244,255,.88));
  color: #18243b;
  box-shadow: 0 8px 24px rgba(9,15,30,.27), 0 0 18px rgba(255,255,255,.24), inset 0 1px 0 #fff;
  font: 800 14px/1 'Manrope', system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-drawer-toggle:hover,
.category-drawer-toggle:focus-visible {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 0 15px rgba(255,255,255,.54), 0 12px 28px rgba(9,15,30,.32);
}

.category-drawer-toggle:focus-visible,
.category-drawer-close:focus-visible,
.category-drawer-list a:focus-visible {
  outline: 3px solid var(--menu-accent);
  outline-offset: 3px;
}

.category-drawer-toggle-icon {
  display: flex;
  width: 19px;
  flex-direction: column;
  gap: 4px;
}

.category-drawer-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.category-drawer-backdrop {
  position: fixed;
  z-index: 41;
  inset: 0;
  background: rgba(5,9,18,.30);
  opacity: 0;
  transition: opacity .24s ease;
}

.category-drawer-backdrop:not([hidden]) { opacity: 1; }

.category-drawer {
  position: fixed;
  z-index: 42;
  top: 0;
  right: 0;
  display: flex;
  width: min(50vw, 380px);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateX(105%);
  border-left: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  visibility: hidden;
  transition: transform .26s ease, visibility .26s ease;
}

.category-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.category-drawer-open { overflow: hidden; }

.category-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-bottom: 8px;
}

.category-drawer-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.category-drawer-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.category-drawer-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.2); }

.category-drawer nav { min-height: 0; overflow-y: auto; }

.category-drawer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}

.category-drawer-list a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 16px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(9,43,78,.72), rgba(23,157,169,.42) 60%, rgba(255,145,46,.28));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(5,20,38,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 15px rgba(5,18,34,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.category-drawer-list a span { color: #ffd28a; font-size: 24px; font-weight: 600; text-shadow: 0 0 10px rgba(255,168,62,.55); }

.category-drawer-list a:hover {
  transform: translateX(-3px);
  border-color: rgba(255,226,164,.95);
  background: linear-gradient(115deg, rgba(9,43,78,.88), rgba(23,186,190,.62) 55%, rgba(255,145,46,.52));
  box-shadow: 0 0 16px rgba(45,220,220,.2), 0 0 20px rgba(255,169,67,.18), inset 0 1px 0 rgba(255,255,255,.36);
  filter: brightness(1.12);
}

html { scroll-behavior: smooth; }
.menu-category[id] { scroll-margin-top: 18px; }

@media (max-width: 575.98px) {
  .category-drawer-toggle {
    top: auto;
    right: 13px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 0;
    transform: none;
  }

  .category-drawer-toggle:hover,
  .category-drawer-toggle:focus-visible { transform: scale(1.04); }

  .category-drawer-toggle-text { display: none; }
  .category-drawer {
    width: 50vw;
    padding-right: 13px;
    padding-left: 13px;
  }
  .category-drawer-header h2 { font-size: 16px; }
  .category-drawer-list a { gap: 8px; padding-right: 9px; padding-left: 11px; font-size: 13px; }
}

@media (hover: hover) and (pointer: fine) {
  .menu-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,.8) !important;
    box-shadow: 0 0 16px rgba(255,255,255,.44), 0 18px 38px rgba(6,12,25,.27);
  }

  .menu-product-card:hover .menu-product-image {
    transform: scale(1.045);
    filter: saturate(1.08) brightness(1.04);
  }
}

@media (max-width: 575.98px) {
  .menu-stage { padding: 20px 12px 36px; }
  .menu-header { min-height: 130px; margin-bottom: 13px; }
  .menu-logo { max-height: 140px; }
  .menu-category { margin-bottom: 17px; padding: 12px; border-radius: 22px; }
  .category-heading { min-height: 62px; margin-bottom: 13px; padding: 10px 12px; border-radius: 16px; }
  .menu-product-card { border-radius: 16px; }
  .menu-product-image { aspect-ratio: 1.15 / 1; }
  .menu-product-card .card-body { gap: 5px; padding: 11px 10px 12px !important; }
  .menu-product-title { font-size: 14px; }
  .menu-product-description { font-size: 11px; }
  .menu-product-price { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
