/* 04.11 Yunus: lokanta şablonları lok1-lok9. biz.tpl boşsa ya da lok1 ise vitrin eskisi gibi kalır. Kutu önizlemeleri de bu renkleri kullanır. */
body[data-tpl="lok1"], .lt-lok1 { --t-head: #008069; --t-bg: #f0f2f5; --t-card: #fff; --t-text: #111b21; --t-muted: #667781; --t-line: #e3e6e8; --t-accent: #008069; }
body[data-tpl="lok2"], .lt-lok2 { --t-head: #b3261e; --t-bg: #fff7f2; --t-card: #fff; --t-text: #2b1a17; --t-muted: #80645c; --t-line: #f1d9d2; --t-accent: #b3261e; }
body[data-tpl="lok3"], .lt-lok3 { --t-head: #d35400; --t-bg: #fff8f0; --t-card: #fff; --t-text: #2c1c0e; --t-muted: #7c6650; --t-line: #f3e0cb; --t-accent: #c94f00; }
body[data-tpl="lok4"], .lt-lok4 { --t-head: #8e2a1f; --t-bg: #f7efe6; --t-card: #fff; --t-text: #2e1a14; --t-muted: #7b655b; --t-line: #eadccd; --t-accent: #8e2a1f; }
body[data-tpl="lok5"], .lt-lok5 { --t-head: #0f1115; --t-bg: #14161a; --t-card: #1e2127; --t-text: #f4f4f4; --t-muted: #a9b0b7; --t-line: #2c3037; --t-accent: #f0b429; }
body[data-tpl="lok6"], .lt-lok6 { --t-head: #5b4a32; --t-bg: #f5eddc; --t-card: transparent; --t-text: #33291b; --t-muted: #6f6149; --t-line: #cdbd9e; --t-accent: #6d4c1f; }
body[data-tpl="lok7"], .lt-lok7 { --t-head: #0b5c8a; --t-bg: #eef6fb; --t-card: #fff; --t-text: #10293a; --t-muted: #5b7485; --t-line: #d4e6f1; --t-accent: #0b6fa8; }
body[data-tpl="lok8"], .lt-lok8 { --t-head: #2e7d32; --t-bg: #f2f8ee; --t-card: #fff; --t-text: #1c2e1d; --t-muted: #5f7560; --t-line: #dbead2; --t-accent: #2e7d32; }
body[data-tpl="lok9"], .lt-lok9 { --t-head: #000; --t-bg: #111; --t-card: #1c1c1c; --t-text: #f6f6f6; --t-muted: #adadad; --t-line: #303030; --t-accent: #ff5a3c; }

/* ——— Giriş yapmış müşterinin vitrini ——— */
body[data-tpl^="lok"]:not([data-tpl="lok1"]) { background: var(--t-bg); min-height: 100vh; }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .bz-top { background: var(--t-head); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-prow { background: var(--t-card); border-color: var(--t-line); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-prow.on { background: var(--t-card); border-color: var(--t-accent); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-pname { color: var(--t-text); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-pdsm, body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-pdesc { color: var(--t-muted); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-pprice { color: var(--t-accent); font-weight: 700; }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-sec-head { color: var(--t-accent); border-color: var(--t-line); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-lokinfo, body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-lokinfo span, body[data-tpl^="lok"]:not([data-tpl="lok1"]) .cig-shop-addr { color: var(--t-muted); }
body[data-lay="lok3"] .cig-store-big .cig-pimg, body[data-lay="lok8"] .cig-store-big .cig-pimg { aspect-ratio: 16 / 10; background-size: cover; }
body[data-tpl="lok5"] .cig-qin, body[data-tpl="lok9"] .cig-qin, body[data-tpl="lok5"] .cig-pnote, body[data-tpl="lok9"] .cig-pnote { background: #2a2d33; border-color: #454952; color: #fff; }
body[data-tpl="lok5"] .cig-qin::placeholder, body[data-tpl="lok9"] .cig-qin::placeholder, body[data-tpl="lok5"] .cig-pnote::placeholder, body[data-tpl="lok9"] .cig-pnote::placeholder { color: #a9b0b7; }
/* lok6 menü kağıdı: resimsiz, tırnaklı yazı, noktalı çizgi */
body[data-lay="lok6"] .cig-store { font-family: Georgia, "Times New Roman", serif; }
body[data-lay="lok6"] .cig-store .cig-pimg { display: none; }
body[data-lay="lok6"] .cig-prow { border: 0; border-bottom: 1px dotted var(--t-line); border-radius: 0; }
body[data-lay="lok6"] .cig-prow.on { background: rgba(109, 76, 31, .08); }
body[data-lay="lok6"] .cig-sec-head { text-align: center; font-size: 18px; border-bottom-style: double; }

/* ——— Misafir vitrini (magaza_misafir.php) ——— */
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-head h1 { color: var(--t-text); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-head small { color: var(--t-muted); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-sec { color: var(--t-accent); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-p { background: var(--t-card); color: var(--t-text); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-p i { color: var(--t-muted); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-p .pr { color: var(--t-accent); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-go { background: var(--t-head); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-login { color: var(--t-accent); }
body[data-tpl^="lok"]:not([data-tpl="lok1"]) .mv-chip { background: var(--t-card); color: var(--t-accent); }
body[data-tpl="lok5"] .mv-bar, body[data-tpl="lok9"] .mv-bar { background: var(--t-card); border-color: var(--t-line); }
body[data-tpl="lok5"] .mv-note, body[data-tpl="lok9"] .mv-note { background: var(--t-card); color: var(--t-text); }
/* satır: resim solda */
body[data-lay="lok2"] .mv-grid, body[data-lay="lok5"] .mv-grid, body[data-lay="lok6"] .mv-grid { grid-template-columns: minmax(0, 1fr); }
body[data-lay="lok2"] .mv-p, body[data-lay="lok5"] .mv-p { flex-direction: row; align-items: stretch; }
body[data-lay="lok2"] .mv-p img, body[data-lay="lok5"] .mv-p img, body[data-lay="lok2"] .mv-p .noimg, body[data-lay="lok5"] .mv-p .noimg { flex: 0 0 96px; width: 96px; aspect-ratio: 1 / 1; }
/* tek sütun büyük fotoğraf */
body[data-lay="lok3"] .mv-grid, body[data-lay="lok8"] .mv-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
body[data-lay="lok3"] .mv-p img, body[data-lay="lok8"] .mv-p img, body[data-lay="lok3"] .mv-p .noimg, body[data-lay="lok8"] .mv-p .noimg { aspect-ratio: 16 / 10; }
/* ikili kart */
body[data-lay="lok4"] .mv-p img, body[data-lay="lok7"] .mv-p img, body[data-lay="lok9"] .mv-p img, body[data-lay="lok4"] .mv-p .noimg, body[data-lay="lok7"] .mv-p .noimg, body[data-lay="lok9"] .mv-p .noimg { aspect-ratio: 1 / 1; }
/* lok6 menü kağıdı */
body[data-lay="lok6"] .mv-grid { font-family: Georgia, "Times New Roman", serif; gap: 0; }
body[data-lay="lok6"] .mv-p { box-shadow: none; border-radius: 0; border-bottom: 1px dotted var(--t-line); }
body[data-lay="lok6"] .mv-p img, body[data-lay="lok6"] .mv-p .noimg, body[data-lay="lok6"] .mv-p .mv-im { display: none; }
body[data-lay="lok6"] .mv-sec { text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }

/* ——— Açılışta şablon kutuları ——— */
.su-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.su-tpl { display: block; width: 100%; min-width: 0; padding: 6px; border: 2px solid #e2e8e5; border-radius: 12px; background: #fff; color: #233138; cursor: pointer; }
.su-tpl:hover { border-color: #9fd9c8; }
.su-tpl.on { border-color: #00a884; box-shadow: 0 0 0 3px rgba(0, 168, 132, .18); }
.su-tpl > b { display: block; margin-top: 5px; font-size: 14px; text-align: center; }
.su-tpl.on > b { color: #00806a; }
.lt { display: flex; flex-direction: column; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: var(--t-bg); }
.lt-h { flex: none; height: 13%; background: var(--t-head); }
.lt-b { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px; overflow: hidden; }
.lt-it { display: flex; align-items: center; gap: 6px; flex: none; padding: 4px; border-radius: 5px; background: var(--t-card); }
.lt-it img { display: block; width: 30%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.lt-it em { flex: 1 1 auto; min-width: 0; display: block; height: 7px; border-radius: 4px; background: var(--t-accent); opacity: .8; }
.lt-big .lt-it { flex-direction: column; align-items: stretch; gap: 4px; }
.lt-big .lt-it img { width: 100%; aspect-ratio: 16 / 9; }
.lt-big .lt-it em { flex: none; }
.lt-card .lt-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.lt-card .lt-it { flex-direction: column; align-items: stretch; gap: 4px; }
.lt-card .lt-it img { width: 100%; }
.lt-card .lt-it em { flex: none; height: 5px; }
.lt-paper .lt-it { padding: 8px 2px; border-radius: 0; border-bottom: 1px dotted var(--t-line); }
.lt-paper .lt-it img { display: none; }
.lt-paper .lt-it em { height: 5px; }
.su-tpl-own { background: #fff8e6; border-color: #f0d68a; }
.su-own-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 130px; padding: 6px 4px; text-align: center; }
.su-own-in i { font-style: normal; font-size: 34px; line-height: 1; }
.su-own-in b { font-size: 12.5px; line-height: 1.3; overflow-wrap: break-word; }
.su-own-in small { font-size: 13px; font-weight: 700; color: #00806a; }
/* Dar ekranda sözcük bölünmesin (Kuruyemişçim, hazırlayalım) */
@media (max-width: 420px) {
  .bz-su-item { grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; padding: 9px 8px; }
  .bz-su-item b { font-size: 13.5px; overflow-wrap: break-word; }
}
@media (max-width: 350px) { .bz-su-item b { font-size: 12.5px; } }
/* Lokanta açılışı: form yok, yalnız şablon kutuları */
.su-lok > :not(#suPicked):not(#suTplW) { display: none !important; }
.cig-lok-who { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px 10px; }
.cig-lok-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12.5px; font-weight: 700; color: #3b4a54; }
.cig-lok-name input, .cig-lok-name select { width: 100%; box-sizing: border-box; border: 1px solid #cfd8dc; border-radius: 8px; padding: 7px 9px; font-size: 14px; background: #fff; }
.cig-lok-done { background: #00a884; color: #fff; border: 0; border-radius: 12px; padding: 13px 40px; font-size: 16px; font-weight: 700; cursor: pointer; }
.cig-lok-done:disabled { opacity: .6; cursor: default; }
.cig-lok-prev { display: block; margin: 12px auto 0; max-width: 340px; padding: 12px 14px; border: 2px solid #00a884; border-radius: 12px; background: #eefaf5; color: #00684f; font-size: 15px; font-weight: 700; text-decoration: none; }
.cig-lok-prev.hidden { display: none; }
/* Çalışma saatleri */
.cig-lh-lb { display: block; font-size: 13px; font-weight: 700; color: #3b4a54; }
.cig-lok-grid .cig-lh-sel { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 2px solid #bfe6d8; border-radius: 12px; background: #f4fbf8; color: #00684f; font-size: 21px; font-weight: 800; text-align: center; text-align-last: center; letter-spacing: .5px; cursor: pointer; }
.cig-lok-grid .cig-lh-sel:focus { outline: none; border-color: #00a884; box-shadow: 0 0 0 3px rgba(0, 168, 132, .18); }
.cig-lh-pre { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.cig-lh-pre button { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1.5px solid #dfe5e7; border-radius: 18px; background: #fff; color: #3b4a54; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cig-lh-pre button.on { border-color: #00a884; background: #00a884; color: #fff; }
.cig-lok-draft { margin: 0 0 10px; padding: 11px 13px; border: 1px solid #f0d68a; border-radius: 12px; background: #fff4d6; color: #7a5600; font-size: 14px; font-weight: 700; }
/* Açılış | Kapanış | Hep açık tek satırda */
.cig-lok-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cig-lok-grid > * { grid-column: span 3; min-width: 0; }
.cig-lok-grid > :nth-child(-n+3) { grid-column: span 2; }
.cig-lok-grid > .cig-lh-pre { display: flex; align-items: flex-end; margin: 0; }
.cig-lh-pre button { width: 100%; min-height: 52px; padding: 6px; border-radius: 12px; border-width: 2px; font-size: 15px; font-weight: 700; white-space: normal; }
@media (max-width: 480px) {
  .cig-lok-grid .cig-lh-sel { padding: 10px 2px; font-size: 16px; letter-spacing: 0; }
  .cig-lh-pre button { min-height: 44px; font-size: 13px; padding: 4px; }
}
/* Sarı menü yazısı kalktı (Yunus 04.11); IBAN yoksa düğmeli not */
.cig-lok-tip { display: none; }
.cig-lok-iban { display: block; width: 100%; margin: 0 0 10px; padding: 9px 12px; border: 1px solid #f0d68a; border-radius: 10px; background: #fff8e6; color: #7a5600; font-size: 13.5px; font-weight: 700; text-align: start; cursor: pointer; }
/* IBAN kutuları */
.cig-lok-iban { display: none; }
.cig-ibans { margin: 10px 0 12px; }
.cig-ib-row { display: flex; gap: 6px; margin-top: 6px; }
.cig-ib { flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 10px 11px; border: 1.5px solid #cfd8dc; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.cig-ib.bad { border-color: #d93025; background: #fff3f2; }
.cig-ib-del { flex: 0 0 auto; width: 40px; border: 1px solid #e3e7ea; border-radius: 10px; background: #fff; color: #667781; font-size: 14px; cursor: pointer; }
.cig-ib-add { margin-top: 8px; padding: 8px 14px; border: 1.5px dashed #00a884; border-radius: 10px; background: #eefaf5; color: #00684f; font-size: 14px; font-weight: 700; cursor: pointer; }
.cig-ib-hint { display: block; margin-top: 6px; color: #7a5600; font-size: 12.5px; }
/* Logo + ad + tür + şablon */
.cig-lok-who { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cig-lok-logo { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; padding: 0; overflow: hidden; border: 1.5px dashed #9fd9c8; border-radius: 50%; background: #f4fbf8; color: #00684f; cursor: pointer; }
.cig-lok-logo img { width: 100%; height: 100%; object-fit: cover; }
.cig-lok-logo span { font-size: 22px; line-height: 1; }
.cig-lok-logo small { margin-top: 2px; font-size: 11px; font-weight: 700; }
.cig-lok-nm { grid-column: 2 / -1; }
#cigLokTrade { margin-top: 6px; }
/* IBAN satırı: Alıcı adı + IBAN */
.cig-ib-row { margin-top: 8px; align-items: stretch; }
.cig-ib-f { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px; }
.cig-ib-h { min-width: 0; box-sizing: border-box; padding: 10px 11px; border: 1.5px solid #cfd8dc; border-radius: 10px; font-size: 15px; font-weight: 600; }
.cig-ib-f .cig-ib { width: 100%; }
@media (max-width: 560px) { .cig-ib-f { grid-template-columns: minmax(0, 1fr); } }
.cig-tel { direction: ltr; }
#cigTelAdd { margin-bottom: 4px; }
#cigTelAdd.hidden { display: none; }
/* Lokantada sade Ayarlar + «başka ne ekleyelim» */
body.biz-sade .lok-gizle, body.biz-sade #sIrtCard, body.biz-sade #sPromoCard, body.biz-sade #sPosCard, body.biz-sade #sAiCard, body.biz-cig #sCustNoCard { display: none !important; }
.lok-only { display: none; }
body.biz-cig .lok-only { display: block; }
.cig-help { max-width: 680px; margin: 16px auto 8px; padding: 16px; border: 2px dashed #00a884; border-radius: 14px; background: #eefaf5; text-align: center; }
.cig-help p { margin: 0 0 10px; color: #233138; font-size: 15px; font-weight: 700; }
.cig-help-btn { padding: 11px 26px; border: 0; border-radius: 12px; background: #00a884; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.cig-help-btn:disabled { opacity: .6; }
/* 05.11 Öteki türlerin kutularında resim yok, renkli blok */
.lt-im { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 4px; background: var(--t-accent); opacity: .28; }
/* Panel başı: logo + ad + şablon (tür kutusu yok) */
.cig-who-plain .cig-lok-name { grid-column: 2 / -1; }
.cig-who-plain { margin-bottom: 10px; }
