/* Pidecix menü — fırın koyusu üst bölüm, un beyazı menü, logodaki kırmızı ve yeşil */
:root {
  --oven: #241c18;        /* fırın: üst/alt bölüm ve ana yazı */
  --flour: #fbf8f4;       /* un: sayfa zemini */
  --crumb: #f1ebe3;       /* fotoğraf zemini, arama kutusu */
  --line: #ebe3d8;        /* ayırıcı çizgiler */
  --muted: #7d7167;       /* açıklamalar */
  --crust: #c89b62;       /* logodaki kabuk/çizgi rengi */
  --red: #e1251b;         /* logodaki X */
  --green: #3e9a3a;       /* OSES yeşili */
  --font: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--flour);
  color: var(--oven);
  font: 400 16px/1.45 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
img { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; color: var(--oven); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Üst bölüm: logo ---------- */
.hero {
  background: var(--oven);
  padding: calc(30px + env(safe-area-inset-top)) 20px 24px;
  text-align: center;
}
.brand { margin: 0; }
.brand img { width: min(360px, 88vw); height: auto; margin: 0 auto; }
.mode-label {
  margin: 16px 0 0;
  color: var(--crust);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mode-label[hidden] { display: none; }

.notice {
  max-width: 680px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdeceb;
  color: #8e1c15;
  font-weight: 500;
  font-size: 15px;
}
.notice[hidden] { display: none; }
@media (max-width: 712px) { .notice { margin: 16px 16px 0; } }

/* ---------- Kategori çubuğu ---------- */
.cats[hidden] { display: none; }
.cats {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 712px;
  margin: 0 auto;
  padding: 0 16px;
  background: rgba(251, 248, 244, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.search-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--crumb);
  color: var(--oven);
  cursor: pointer;
}
.tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 8px, #000 40px, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent 8px, #000 40px, #000 88%, transparent);
  padding-left: 18px;
  margin-left: -18px;
  scroll-padding-left: 18px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  border: 0;
  background: none;
  padding: 16px 0 15px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.tab:last-child { margin-right: 32px; }
.tab.active { color: var(--oven); font-weight: 600; }
.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.search[hidden] { display: none; }
.search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--crumb);
  font-size: 16px;
}
.search input:focus-visible { outline: 2px solid var(--oven); outline-offset: 0; }
.search button { border: 0; background: none; padding: 8px 2px; font-weight: 600; cursor: pointer; }
.searching .tabs, .searching .search-btn { display: none; }

/* ---------- Menü ---------- */
.menu { max-width: 712px; margin: 0 auto; padding: 4px 16px 56px; }
.cat { padding-top: 34px; scroll-margin-top: 58px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.cat-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.cat-head .oses-logo { height: 42px; width: auto; margin: -4px 0 -4px -4px; }
.cat-head .oses-logo.sm { height: 32px; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item.has-img { grid-template-columns: 84px 1fr auto; }
.thumb {
  width: 84px;
  height: 63px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--crumb);
}
.item h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 560; }
.item .unit { color: var(--muted); font-weight: 400; }
.desc { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price {
  font-size: 17px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}
.sizes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; }
.size span { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.size b { font-size: 16px; font-weight: 620; font-variant-numeric: tabular-nums; }
.extra { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.extra b { color: var(--red); font-weight: 600; }
.sold-tag { color: var(--red); font-size: 14px; font-weight: 600; white-space: nowrap; padding-top: 2px; }
.item.sold h3, .item.sold .size b { color: var(--muted); }
.item.sold .thumb { opacity: 0.45; filter: grayscale(0.6); }
.empty, .error { text-align: center; color: var(--muted); padding: 56px 12px; }
.error strong { display: block; color: var(--oven); font-size: 20px; margin-bottom: 6px; }

@media (max-width: 360px) {
  .item.has-img { grid-template-columns: 68px 1fr auto; gap: 4px 12px; }
  .thumb { width: 68px; height: 52px; border-radius: 10px; }
  .item h3, .price { font-size: 16px; }
}

/* yükleniyor */
.skeleton { display: grid; gap: 14px; padding-top: 34px; }
.skeleton span { height: 63px; border-radius: 12px; background: var(--crumb); }
@media (prefers-reduced-motion: no-preference) {
  .skeleton span { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.5; } }
}

/* ---------- Alt bölüm ---------- */
.foot {
  background: var(--oven);
  color: #cdbfb1;
  text-align: center;
  font-size: 14px;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
}
.foot img { width: 150px; height: auto; margin: 0 auto 16px; }
.foot p { margin: 4px 0; }
.foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.foot .tel { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.foot .small { font-size: 13px; color: #a0928a; margin-top: 14px; }
body.paket .foot { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }

.callbar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(140, 20, 12, 0.35);
}
.callbar[hidden] { display: none; }
.callbar strong { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Yazdırılabilir fiyat listesi (?yazdir=salon) ---------- */
body.print { background: #fff; }
body.print .hero, body.print .cats, body.print .notice, body.print .foot, body.print .callbar { display: none !important; }
.plist { max-width: 900px; margin: 0 auto; padding: 24px 20px; font-size: 13px; line-height: 1.35; color: #1b1512; }
.plist-bar { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 16px; }
.plist-bar button { border: 1px solid var(--oven); background: var(--oven); color: #fff; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.plist-bar button.ghost { background: #fff; color: var(--oven); }
.plist header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--oven); color: #fff; border-radius: 14px; padding: 14px 20px; margin-bottom: 18px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.plist header img { width: 250px; height: auto; }
.plist .ptype { font-size: 18px; font-weight: 650; text-align: right; }
.plist .pdate { font-size: 12px; color: #cdbfb1; text-align: right; }
.plist .cols { columns: 2; column-gap: 32px; }
.plist section { break-inside: avoid; margin-bottom: 14px; }
.plist h2 { font-size: 16px; font-weight: 650; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1.5px solid #1b1512; }
.plist .row { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.plist .row .n { flex: none; max-width: 76%; }
.plist .row small { font-size: 11px; color: #5d524b; }
.plist .row .dots { flex: 1; border-bottom: 1px dotted #9b8f86; transform: translateY(-3px); }
.plist .row .p { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.plist footer { margin-top: 14px; border-top: 1px solid #d8cfc5; padding-top: 8px; font-size: 12px; color: #5d524b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .plist .cols { columns: 1; } .plist header img { width: 170px; } }
@media print {
  @page { size: A4; margin: 12mm; }
  .plist { padding: 0; max-width: none; }
  .plist-bar { display: none; }
}
