:root {
  --ink: #1d292b;
  --ink-soft: #455255;
  --gold: #c99f4b;
  --gold-deep: #916c2a;
  --cream: #fff9ef;
  --paper: #fffdf9;
  --line: #e9dfcf;
  --muted: #746e66;
  --danger: #9d3430;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(36, 43, 40, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute;
  z-index: 100;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { left: 8px; }

.hero {
  position: relative;
  display: grid;
  min-height: 340px;
  align-items: end;
  padding: 28px 20px 34px;
  color: #fffdf9;
  background-image: linear-gradient(180deg, rgba(17, 27, 27, .15), rgba(17, 27, 27, .88)), url("assets/vera-kafe-discephe.jpeg");
  background-position: center;
  background-size: cover;
}
.hero-inner, .content, .footer-inner { width: min(100%, 760px); margin: 0 auto; }
.brand-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #f9e6af;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-kicker span { font-size: 1rem; }
.brand-name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 11vw, 4.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: .025em;
}
.tagline { max-width: 31rem; margin: 14px 0 0; color: rgba(255, 253, 249, .92); font-size: 1rem; line-height: 1.45; }
.location {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(18, 30, 30, .3);
  color: #fffdf9;
  font-size: .88rem;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(12px);
}
.topbar-inner { width: min(100%, 760px); margin: 0 auto; padding: 12px 16px 11px; }
.search { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search svg { flex: 0 0 auto; color: var(--gold-deep); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: #8f8980; }
.category-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 0; scrollbar-width: none; }
.category-scroller::-webkit-scrollbar { display: none; }
.category-button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .84rem;
}
.category-button:hover, .category-button:focus-visible, .category-button.is-active { border-color: var(--ink); outline: 0; background: var(--ink); color: #fff; }

.content { padding: 20px 16px 44px; }
.menu-intro { padding: 8px 2px 22px; }
.menu-intro h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 500; }
.menu-intro p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.category { margin: 0 0 32px; scroll-margin-top: 148px; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 0 2px 12px; border-bottom: 2px solid var(--gold); }
.category-head h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.53rem; font-weight: 500; }
.category-head span { color: var(--gold-deep); font-size: .86rem; white-space: nowrap; }
.items { display: grid; }
.menu-item { display: grid; grid-template-columns: minmax(0, 1fr) 102px; gap: 15px; align-items: center; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.item-image { width: 102px; height: 102px; border-radius: 14px; object-fit: cover; background: #e8ddca; box-shadow: 0 4px 13px rgba(31, 37, 34, .08); }
.item-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.item-name { margin: 0; color: var(--ink); font-size: 1.06rem; line-height: 1.27; }
.price { margin: 0; color: var(--gold-deep); font-size: 1.05rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-description { margin: 7px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.47; }
.item-note { margin: 8px 0 0; color: var(--muted); font-size: .82rem; font-style: italic; line-height: 1.4; }
.no-results { margin: 25px 0 40px; padding: 22px; border: 1px dashed var(--gold); color: var(--ink-soft); text-align: center; }
.menu-state { margin: 25px 0 40px; padding: 28px 22px; border: 1px dashed var(--gold); background: #fffdf9; color: var(--ink-soft); text-align: center; line-height: 1.55; }
.notice { margin: 38px 0 0; padding: 19px; border-left: 3px solid var(--gold); background: #f3eadb; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.notice strong { color: var(--ink); }
.hidden { display: none !important; }

footer { padding: 30px 20px 40px; background: var(--ink); color: rgba(255, 253, 249, .9); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: .04em; }
.footer-copy { max-width: 25rem; margin: 0; color: rgba(255,253,249,.68); text-align: right; font-size: .78rem; line-height: 1.45; }

/* Yönetim ekranı */
.admin-shell { min-height: 100vh; padding: 22px 16px 54px; background: #f6f0e5; }
.admin-wrap { width: min(100%, 1080px); margin: 0 auto; }
.narrow-wrap { max-width: 690px; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-top .brand-kicker { color: var(--gold-deep); }
.admin-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 6vw, 3rem); font-weight: 500; }
.admin-subtitle { max-width: 44rem; margin: 9px 0 0; color: var(--muted); line-height: 1.45; }
.back-link, .button, .button-danger, .button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.button:disabled, .button-quiet:disabled, .button-danger:disabled { cursor: wait; opacity: .65; }
.back-link, .button-quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button { background: var(--ink); color: #fff; }
.button:hover, .button:focus-visible { background: #314346; outline: 2px solid #cda758; outline-offset: 2px; }
.button-danger { border-color: #d9a19e; background: #fff4f3; color: var(--danger); }
.button-danger:hover, .button-danger:focus-visible { outline: 2px solid #d07d76; outline-offset: 2px; }
.button-quiet:hover, .button-quiet:focus-visible, .back-link:hover, .back-link:focus-visible { border-color: var(--gold); outline: none; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.summary-card { min-height: 84px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 7px 20px rgba(36, 43, 40, .04); }
.summary-card span { display: block; color: var(--muted); font-size: .77rem; }
.summary-card strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.admin-message { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #cbdfc9; border-radius: 11px; background: #f0f8ef; color: #27532c; font-size: .92rem; }
.form-error { margin: 0 0 15px; padding: 11px 12px; border: 1px solid #e2b1ad; border-radius: 10px; background: #fff4f3; color: var(--danger); font-size: .9rem; line-height: 1.4; }
.admin-card { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.admin-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.admin-card > p { margin: 7px 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.42; }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.admin-section-head h2 { margin: 0; }
.admin-section-head p { margin: 6px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.42; }
.section-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #efe6d6; color: var(--gold-deep); font-size: .78rem; font-weight: 800; }
.catalog-list { display: grid; gap: 8px; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 64px; padding: 10px 11px 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.catalog-row.is-unpublished { border-style: dashed; background: #f3efe8; }
.catalog-copy, .product-manager-copy { min-width: 0; }
.catalog-copy strong, .product-manager-copy strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.catalog-copy span, .product-manager-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.catalog-actions, .product-row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 9px; }
.order-controls { display: inline-grid; grid-template-columns: 38px minmax(25px, auto) 38px; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.order-controls > span { color: var(--muted); font-size: .76rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.order-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 8px; background: #efe6d6; color: var(--ink); font-size: 1.08rem; font-weight: 900; }
.order-button:hover, .order-button:focus-visible { background: #dfcfb1; outline: 2px solid var(--gold); }
.order-button:disabled { cursor: not-allowed; opacity: .34; }
.visibility-button { display: inline-flex; min-width: 91px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid; border-radius: 999px; font-size: .79rem; font-weight: 800; }
.visibility-button.is-live { border-color: #a8c7a6; background: #eef8ed; color: #27532c; }
.visibility-button.is-hidden { border-color: #d2c6b7; background: #f3efe8; color: #6d645a; }
.visibility-button:hover, .visibility-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.68); }
.security-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 1.25rem; }
.password-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.password-rule { margin: 10px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.field-grid .field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field > span { color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #d9cfbf;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.field input, .field select { min-height: 42px; padding: 9px 10px; }
.field textarea { min-height: 80px; resize: vertical; padding: 10px; line-height: 1.4; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 159, 75, .17); }
.field small { color: var(--muted); font-size: .74rem; line-height: 1.32; }
.checkbox-field { align-content: end; }
.checkbox-field label { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; font-size: .9rem; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-category { margin: 27px 0 0; }
.admin-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px; border-bottom: 2px solid var(--gold); }
.admin-category-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.46rem; font-weight: 500; }
.admin-category-head > div > span { display: block; margin-top: 3px; color: var(--gold-deep); font-size: .82rem; }
.admin-category.is-unpublished > .admin-category-head { opacity: .66; }
.status-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.status-badge.is-live { border-color: #b3ceb0; background: #eef8ed; color: #27532c; }
.status-badge.is-hidden { border-color: #d2c6b7; background: #f3efe8; color: #6d645a; }
.product-editor { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.product-editor.is-unpublished { background: linear-gradient(90deg, rgba(239,232,220,.62), transparent); }
.product-manager-row { display: grid; grid-template-columns: 58px minmax(130px, 1fr) auto; align-items: center; gap: 12px; }
.admin-product-thumb { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #e8ddca; }
.product-row-actions { flex-wrap: nowrap; }
.product-details { margin: 9px 0 0 70px; }
.product-details > summary { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink-soft); font-size: .8rem; font-weight: 800; list-style: none; cursor: pointer; }
.product-details > summary::-webkit-details-marker { display: none; }
.product-details > summary::after { content: "+"; color: var(--gold-deep); font-size: 1rem; }
.product-details[open] > summary::after { content: "−"; }
.product-details > summary:hover, .product-details > summary:focus-visible { border-color: var(--gold); outline: none; }
.product-edit-layout { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fffcf7; }
.product-preview { position: relative; margin: 0; }
.product-preview img { width: 132px; height: 132px; border-radius: 14px; object-fit: cover; background: #e8ddca; }
.product-preview figcaption { margin-top: 6px; color: var(--muted); font-size: .71rem; line-height: 1.25; }
.product-editor .field-grid { grid-template-columns: 1.3fr .7fr; }
.editor-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.editor-controls .button, .editor-controls .button-danger, .editor-controls .button-quiet { min-height: 38px; padding: 8px 11px; }
.admin-help { margin: 25px 0 0; padding: 15px 17px; border-left: 3px solid var(--gold); background: #efe6d6; color: var(--ink-soft); font-size: .86rem; line-height: 1.48; }
.admin-account { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 8px; }
.admin-account > span { max-width: 220px; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }
.admin-entry {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: max(16px, calc((100% - 760px) / 2 + 16px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(18,30,30,.7);
  color: #fffdf9;
  box-shadow: 0 8px 24px rgba(8,18,19,.2);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-entry:hover, .admin-entry:focus-visible { border-color: var(--gold); outline: 2px solid rgba(201,159,75,.45); background: rgba(18,30,30,.94); }
.login-dialog { position: relative; width: min(calc(100% - 28px), 430px); padding: 31px 28px 25px; border: 1px solid rgba(201,161,75,.55); border-radius: 24px; background: #fffaf2; color: var(--ink); box-shadow: 0 28px 90px rgba(11,22,24,.45); }
.login-dialog::backdrop { background: rgba(17,29,31,.72); backdrop-filter: blur(5px); }
.login-dialog .brand-kicker { margin: 11px 0 4px; color: var(--gold-deep); text-align: center; }
.login-dialog h2 { margin: 0; font: 500 clamp(1.85rem,7vw,2.45rem)/1.1 Georgia,"Times New Roman",serif; text-align: center; }
.login-copy { margin: 10px auto 22px; max-width: 335px; color: var(--muted); text-align: center; line-height: 1.5; }
.login-brand { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto; border: 1px solid var(--gold); border-radius: 50%; background: var(--ink); color: var(--gold); font: 500 1.35rem Georgia,"Times New Roman",serif; letter-spacing: .08em; }
.login-close { position: absolute; top: 12px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.login-close:hover, .login-close:focus-visible { background: #efe6d6; outline: none; }
.password-control { position: relative; }
.password-control input { width: 100%; padding-right: 76px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-width: 58px; padding: 7px 8px; border: 0; border-radius: 8px; background: #efe6d6; color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: #e3d4ba; outline: 2px solid var(--gold); }
.login-submit { width: 100%; margin-top: 16px; justify-content: center; }
.login-security { margin: 17px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.setup-card { max-width: 700px; }
.setup-steps { margin: 10px 0 18px; padding-left: 22px; color: var(--ink-soft); line-height: 1.65; }
.setup-card code { padding: 2px 5px; border-radius: 5px; background: #eee4d4; color: var(--ink); }

@media (min-width: 640px) {
  .hero { min-height: 395px; padding: 34px 34px 38px; }
  .topbar-inner, .content { padding-right: 26px; padding-left: 26px; }
  .menu-item { grid-template-columns: minmax(0, 1fr) 122px; gap: 19px; padding: 23px 2px; }
  .item-image { width: 122px; height: 122px; }
  .item-name { font-size: 1.16rem; }
  .admin-shell { padding: 34px 28px 70px; }
}
@media (max-width: 580px) {
  .admin-top { flex-direction: column; }
  .admin-account { justify-content: start; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .field-grid, .product-editor .field-grid, .password-grid { grid-template-columns: 1fr; }
  .catalog-row { grid-template-columns: 1fr; }
  .catalog-actions { justify-content: space-between; }
  .product-manager-row { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .admin-product-thumb { width: 50px; height: 50px; border-radius: 10px; }
  .product-row-actions { grid-column: 1 / -1; justify-content: space-between; }
  .product-details { margin-left: 0; }
  .product-edit-layout { grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .product-preview img { width: 94px; height: 94px; border-radius: 12px; }
  .product-edit-layout .product-preview img { width: 82px; height: 82px; }
  .product-preview figcaption { display: none; }
  .admin-section-head { align-items: center; }
  .admin-card { padding: 15px; }
}
@media (max-width: 390px) {
  .menu-item { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; }
  .item-image { width: 88px; height: 88px; border-radius: 12px; }
  .item-top { gap: 8px; }
  .price { font-size: .98rem; }
  .footer-inner { flex-direction: column; align-items: start; }
  .footer-copy { text-align: left; }
  .admin-summary { grid-template-columns: 1fr; }
}
@media print {
  .hero { min-height: 190px; }
  .topbar { position: static; }
  .search, .category-scroller { display: none; }
  .category { break-inside: avoid; }
}
