
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --background: #faf8f4;
  --surface: #ffffff;
  --primary: #792e36;
  --primary-dark: #552028;
  --text: #2d2926;
  --muted: #827974;
  --border: #eee5df;
  --accent: #e9d8c7;
  --shadow: 0 8px 30px rgba(48, 28, 22, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(121, 46, 54, 0.3);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* RESTORAN BAŞLIĞI */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
}

.brand-text h1 {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 700;
}

.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ANA ALAN */

.menu-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 75px;
}

.welcome-section {
  text-align: center;
  padding: 50px 15px 28px;
}

.welcome-label {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
}

.welcome-section h2 {
  margin: 12px 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.2;
}

.welcome-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* KATEGORİLER */

.category-navigation {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background);
}

.category-navigation::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.category-button:hover,
.category-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ARAMA */

.search-section {
  margin: 5px 0 30px;
}

.search-section input {
  display: block;
  width: 100%;
  padding: 17px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.search-section input::placeholder {
  color: #a49b96;
}

/* ÜRÜNLER */

.menu-content {
  display: grid;
  gap: 38px;
}

.menu-category {
  scroll-margin-top: 100px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.category-heading h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
}

.category-heading::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.product-card {
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 0;
}

.product-image-button {
  display: block;
  padding: 0;
  border: 0;
  background: #f1e8e0;
  width: 145px;
  flex: 0 0 145px;
  min-height: 155px;
  overflow: hidden;
}

.product-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.product-image-button:hover img {
  transform: scale(1.05);
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 155px;
  background: #f3e9df;
  color: #967c73;
  font-size: 42px;
}

.product-details {
  flex: 1;
  min-width: 0;
  padding: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.product-description {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-price {
  margin-top: auto;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

/* BOŞ SONUÇ */

.empty-results {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* FOTOĞRAF BÜYÜTME */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 55px 18px 20px;
  background: rgba(18, 15, 15, 0.92);
  display: grid;
  place-items: center;
}

.image-modal img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: white;
  color: #222;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  font-size: 27px;
}

/* ALT BİLGİ */

.site-footer {
  text-align: center;
  border-top: 1px solid var(--border);
  background: white;
  padding: 30px 15px;
}

.site-footer p {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.site-footer span {
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TELEFON EKRANI */

@media (max-width: 700px) {
  .header-inner {
    padding: 15px 17px;
    gap: 12px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 25px;
  }

  .brand-text h1 {
    font-size: 17px;
  }

  .menu-container {
    padding: 0 14px 50px;
  }

  .welcome-section {
    padding: 32px 10px 20px;
  }

  .welcome-section h2 {
    font-size: 39px;
  }

  .category-navigation {
    margin: 0 -14px;
    padding: 12px 14px 16px;
  }

  .category-button {
    padding: 11px 15px;
  }

  .search-section {
    margin-bottom: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .category-heading h3 {
    font-size: 25px;
  }

  .product-image-button {
    width: 126px;
    flex-basis: 126px;
    min-height: 145px;
  }

  .product-image-placeholder {
    min-height: 145px;
  }

  .product-details {
    padding: 14px 13px;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price {
    font-size: 17px;
  }
}

@media (max-width: 370px) {
  .product-image-button {
    width: 107px;
    flex-basis: 107px;
  }

  .product-details {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-image-button img,
  .category-button {
    transition: none;
  }
}
/* KAYAHAN RESTORAN LOGOSU */

.restaurant-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .restaurant-logo {
    width: 90px;
  }
}

/* ÜRÜN KARTI GÖRÜNÜM DÜZELTMESİ */

.product-card {
  display: flex;
  min-width: 0;
  min-height: 155px;
}

.product-image-button,
.product-image-placeholder {
  width: 145px;
  flex: 0 0 145px;
  min-height: 155px;
}

.product-details {
  flex: 1 1 0;
  min-width: 0;
}

.product-name,
.product-description,
.product-price {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .product-image-button,
  .product-image-placeholder {
    width: 126px;
    flex-basis: 126px;
    min-height: 145px;
  }
}

@media (max-width: 370px) {
  .product-image-button,
  .product-image-placeholder {
    width: 107px;
    flex-basis: 107px;
  }
}

 
/* SADECE 4 ÜRÜNÜN FOTOĞRAFINI YATAY ÇEVİR */

.rotate-image-horizontal .product-image-button img {
  transform: rotate(90deg) scale(1.28);
  transform-origin: center;
}

.rotate-image-horizontal .product-card:hover img,
.rotate-image-horizontal:hover .product-image-button img {
  transform: rotate(90deg) scale(1.28);
}

/* SADECE 4 ÜRÜNÜN BÜYÜTÜLEN FOTOĞRAFINI YATAY ÇEVİR */

.image-modal img.rotate-modal-image {
  transform: rotate(90deg);
  max-width: 85vh;
  max-height: 90vw;
  object-fit: contain;
}
