:root {
  --brand: #885f36;
  --brand-dark: #5e3f22;
  --brand-light: #c9a27a;
  --bg: #f7f3ee;
  --card-bg: #ffffff;
  --text: #2b1d12;
  --muted: #7a6a5a;
  --accent: #b8863e;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(43, 29, 18, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(136, 95, 54, 0.15);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

.hours-pill {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Category nav ---------- */
.cat-nav {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-width: thin;
}

.cat-nav a {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(136, 95, 54, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.cat-nav a:hover,
.cat-nav a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,29,18,0.15) 0%, rgba(43,29,18,0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 24px 20px;
  color: #fff;
}

.hero-overlay h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero-overlay p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

/* ---------- Menu ---------- */
.menu-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.category-section {
  margin-bottom: 42px;
  scroll-margin-top: 118px;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(136, 95, 54, 0.2);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.item-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-card.has-image {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
}

.item-thumb {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee3d6;
  cursor: zoom-in;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.item-thumb:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.item-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.item-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.02rem;
  white-space: nowrap;
}

.item-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #f2e9de;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
}

.site-footer .hours {
  font-weight: 700;
  margin-bottom: 4px;
}

.site-footer .address {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 2px;
}

.site-footer .address a {
  color: inherit;
  text-decoration: none;
}

.site-footer .address a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-links {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer .ig,
.site-footer .google-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
}

.footer-icon {
  flex-shrink: 0;
}

.site-footer .ig:hover,
.site-footer .google-review:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .footer-sep {
  opacity: 0.5;
}

.site-footer .career-link {
  opacity: 0.85;
  color: inherit;
  text-decoration: none;
}

.site-footer .career-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Loading / status ---------- */
.status-banner {
  max-width: 1000px;
  margin: 14px auto 0;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  display: none;
}

.status-banner.visible { display: block; }

/* ---------- Lightbox (ürün görseli büyütme) ---------- */
body.lightbox-active { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 28px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.55);
  cursor: default;
  animation: lightbox-zoom-in 0.18s ease;
}

@keyframes lightbox-zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 480px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { height: 200px; }
  .hero-overlay h1 { font-size: 1.4rem; }
  .brand-name { font-size: 1rem; }
  .hours-pill { font-size: 0.72rem; padding: 5px 10px; }
  .item-thumb { width: 62px; height: 62px; min-width: 62px; }
}

/* ---------- Kariyer sekmesi (header) ---------- */
.career-tab {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(136, 95, 54, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.career-tab:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  flex-shrink: 0;
}

#lang-select {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(136, 95, 54, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  appearance: auto;
}

#lang-select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; }
  .hours-pill { order: 3; margin-left: 0; }
  .career-tab { order: 2; }
  .lang-switcher { order: 2; margin-left: auto; }
}

/* ---------- RTL support (Arabic) ---------- */
[dir="rtl"] .item-card.has-image {
  flex-direction: row-reverse;
}

[dir="rtl"] .item-top {
  flex-direction: row-reverse;
}

[dir="rtl"] .cat-nav,
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .hours-pill {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .category-title,
[dir="rtl"] .item-name,
[dir="rtl"] .item-desc {
  text-align: right;
}
