:root {
  --ink: #17110d;
  --coal: #070706;
  --coffee: #3a2115;
  --copper: #b57a42;
  --gold: #d8a85f;
  --cream: #fff7eb;
  --mist: #f6efe6;
  --sage: #6f7f56;
  --line: rgba(255, 247, 235, 0.18);
  --shadow: 0 24px 80px rgba(13, 8, 4, 0.32);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 8%, rgba(181, 122, 66, 0.28), transparent 28rem),
    linear-gradient(135deg, #1d120d 0%, #090807 46%, #27160e 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(7, 7, 6, 0.68);
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(7, 7, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(216, 168, 95, 0.58);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  background:
    linear-gradient(145deg, rgba(216, 168, 95, 0.16), rgba(255, 247, 235, 0.02)),
    #130d09;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 247, 235, 0.72);
  font-size: 0.78rem;
}

.main-nav,
.header-actions,
.hero-actions,
.drawer-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  color: rgba(255, 247, 235, 0.8);
  font-size: 0.92rem;
}

.main-nav a:hover,
.icon-link:hover {
  color: var(--gold);
}

.icon-link,
.cart-button,
.primary-button,
.ghost-button,
.close-button {
  border: 0;
  cursor: pointer;
}

.icon-link,
.cart-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.icon-link,
.ghost-button {
  color: var(--cream);
  background: rgba(255, 247, 235, 0.08);
  border: 1px solid rgba(255, 247, 235, 0.16);
}

.cart-button,
.primary-button {
  color: #160d08;
  background: linear-gradient(135deg, #f1d08e, var(--copper));
  box-shadow: 0 12px 32px rgba(181, 122, 66, 0.28);
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  place-items: center;
  border-radius: 50%;
  background: rgba(23, 17, 13, 0.18);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: clamp(620px, 78vh, 880px);
  align-items: end;
  padding: clamp(28px, 7vw, 96px);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=2200&q=88");
  background-position: center;
  background-size: cover;
  filter: saturate(0.96) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.9) 0%, rgba(7, 7, 6, 0.38) 50%, rgba(7, 7, 6, 0.72) 100%),
    linear-gradient(0deg, rgba(7, 7, 6, 0.95) 0%, rgba(7, 7, 6, 0) 48%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  padding-bottom: clamp(16px, 6vw, 58px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.hero-content p:not(.eyebrow),
.section-heading > p,
.about-section > p,
.order-band p,
.menu-card p,
.about-cards p,
.drawer-note {
  color: rgba(255, 247, 235, 0.72);
  line-height: 1.65;
}

.hero-content p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.section-block,
.admin-section,
.about-section,
.order-band {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-tabs button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 247, 235, 0.16);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 247, 235, 0.07);
  cursor: pointer;
}

.category-tabs button.active {
  color: #180f0a;
  background: var(--gold);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid rgba(255, 247, 235, 0.13);
  border-radius: 8px;
  color: rgba(255, 247, 235, 0.72);
  background: rgba(255, 247, 235, 0.05);
}

.menu-card {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 235, 0.12);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.menu-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #21150f;
}

.menu-image::after {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  color: rgba(255, 247, 235, 0.72);
  background:
    linear-gradient(135deg, rgba(58, 33, 21, 0.94), rgba(7, 7, 6, 0.96));
  content: "Görsel yüklenemedi";
  font-weight: 800;
  text-align: center;
}

.menu-image.image-missing::after {
  display: grid;
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.menu-card:hover .menu-image img {
  transform: scale(1.04);
}

.image-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.image-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 247, 235, 0.52);
  cursor: pointer;
}

.image-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 247, 235, 0.2);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(7, 7, 6, 0.56);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 180ms ease;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.menu-card:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 0.92;
  pointer-events: auto;
}

.gallery-arrow:hover {
  background: rgba(216, 168, 95, 0.82);
  color: #17110d;
}

.menu-body {
  padding: 20px;
}

.menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.menu-meta h3 {
  margin: 0;
  font-size: 1.25rem;
}

.price {
  color: var(--gold);
  font-weight: 900;
}

.menu-body > button,
.admin-item button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  color: #170f0a;
  background: var(--gold);
  cursor: pointer;
  font-weight: 800;
}

.order-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(111, 127, 86, 0.28), transparent),
    rgba(255, 247, 235, 0.05);
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 247, 235, 0.13);
  border-radius: 8px;
  background: rgba(7, 7, 6, 0.34);
}

.steps strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #17110d;
  background: var(--gold);
}

.steps p {
  margin: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-cards article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 247, 235, 0.13);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.055);
}

.about-cards span {
  color: var(--gold);
  font-weight: 900;
}

.about-cards strong {
  display: block;
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.admin-login,
.admin-form,
.settings-card {
  border: 1px solid rgba(255, 247, 235, 0.13);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.06);
}

.admin-login {
  display: flex;
  gap: 12px;
  width: min(520px, 100%);
  padding: 14px;
}

.admin-page {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.admin-page h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.admin-form,
.settings-card {
  padding: 20px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 247, 235, 0.74);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 247, 235, 0.14);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(7, 7, 6, 0.48);
  padding: 12px 14px;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 168, 95, 0.72);
}

select option {
  color: #17110d;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--cream);
}

.check-row input {
  width: 20px;
  height: 20px;
}

.settings-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 247, 235, 0.13);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.05);
}

.admin-item p {
  margin: 0;
  color: rgba(255, 247, 235, 0.68);
}

.admin-item .danger {
  color: #fff;
  background: #8f2f25;
}

.category-admin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-admin-list span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 247, 235, 0.09);
  border: 1px solid rgba(255, 247, 235, 0.12);
  font-size: 0.88rem;
}

.image-preview-grid,
.admin-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.image-preview-grid img,
.admin-thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 247, 235, 0.14);
}

.admin-thumb-row {
  grid-template-columns: repeat(4, 54px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #070706;
}

.compact .brand-mark {
  width: 40px;
  height: 40px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 247, 235, 0.64);
}

.footer-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
  text-align: right;
}

.footer-copy small {
  color: rgba(255, 247, 235, 0.48);
  line-height: 1.55;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  width: min(460px, 100vw);
  height: 100vh;
  padding: 24px;
  color: var(--cream);
  background: rgba(12, 9, 7, 0.98);
  border-left: 1px solid rgba(255, 247, 235, 0.14);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 260ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 2rem;
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255, 247, 235, 0.1);
  font-size: 1.8rem;
}

.cart-items {
  overflow-y: auto;
  padding-right: 4px;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 247, 235, 0.1);
}

.cart-row img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-row h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 247, 235, 0.14);
  border-radius: 50%;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
}

.customer-fields {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.checkout-next {
  width: 100%;
  margin-top: 16px;
}

.customer-fields,
.drawer-actions,
.drawer-note {
  display: none;
}

.cart-drawer.checkout-step .customer-fields {
  display: grid;
}

.cart-drawer.checkout-step .drawer-actions {
  display: flex;
}

.cart-drawer.checkout-step .drawer-note {
  display: block;
}

.cart-items .drawer-note {
  display: block;
}

.cart-drawer.checkout-step .checkout-next {
  display: none;
}

#receiptCanvas {
  display: none;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 247, 235, 0.15);
}

.cart-summary strong {
  color: var(--gold);
  font-size: 1.4rem;
}

.drawer-actions {
  align-items: stretch;
}

.drawer-actions > * {
  flex: 1;
}

.drawer-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 260ms ease;
}

.backdrop.open {
  pointer-events: auto;
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .menu-grid,
  .order-band,
  .about-section,
  .about-cards,
  .admin-panel,
  .admin-list {
    grid-template-columns: 1fr;
  }

  .admin-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .icon-link,
  .cart-button,
  .primary-button,
  .ghost-button {
    padding-inline: 14px;
  }

  .hero-section {
    min-height: 680px;
    align-items: center;
  }

  .hero-actions,
  .admin-login,
  .drawer-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
  }

  .cart-row > strong {
    grid-column: auto;
    font-size: 0.95rem;
  }

  .cart-row h3 {
    font-size: 0.95rem;
  }
}
