@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap");

/* =================================================================== */
/* === 1. GENEL AYARLAR VE DEĞİŞKENLER === */
/* =================================================================== */

:root {
  --main-color: #ee7b7b;
  --black-color: #0e0e0e;
  --border: 0.1rem solid rgba(255, 255, 255, 0.4);
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s ease;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
}

body {
  background-color: #f5eadd;
  overflow-x: hidden; /* Bu satırı ekleyin */
}

section {
  padding: 3.5rem 7%;
}

.btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 2rem 3.75rem;
  border-radius: 30rem;
  font-size: 1.7rem;
  color: #fff;
  background-color: var(--black-color);
  cursor: pointer;
}
.btn:hover {
  opacity: 0.7;
}

.heading {
  color: #333;
  text-transform: uppercase;
  font-size: 4rem;
  margin-bottom: 3.5rem;
  margin-top: 3.5rem;
  border-bottom: 0.1rem solid #ccc;
}
.heading span {
  color: var(--main-color);
}


/* =================================================================== */
/* === 2. HEADER (ÜST MENÜ) === */
/* =================================================================== */

.header {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  margin: 2rem 7%;
  border-radius: 30rem;
  box-shadow: 0px 0px 17px -2px rgba(0, 0, 0, 0.75);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .logo img { height: 10rem; }
.header .navbar {
  flex-grow: 1;
  text-align: center;
}
.header .navbar a {
  margin: 0 1rem;
  font-size: 1.6rem;
  color: var(--black-color);
  border-bottom: 0.1rem solid transparent;
}
.header .navbar .active,
.header .navbar a:hover {
  border-color: var(--main-color);
  padding-bottom: 0.5rem;
}
.header .buttons button {
  cursor: pointer;
  font-size: 2.5rem;
  margin-left: 2rem;
  background-color: transparent;
}
.header .buttons #cart-btn-wrapper {
  position: relative;
}
.header .buttons .cart-item-count {
  position: absolute;
  top: -0.8rem;
  right: -1rem;
  background-color: var(--black-color);
  color: white;
  font-size: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
#menu-btn { display: none; }


/* =================================================================== */
/* === 3. HOME (ANA SAYFA AÇILIŞ EKRANI) === */
/* =================================================================== */

.home {
  min-height: 100vh;
  background: url("../images/home.jpg") no-repeat center center;
  background-size: cover;
  margin-top: -14.5rem;
  display: flex;
  align-items: center;
  padding: 0 7%;
}
.home .content {
  max-width: 65rem;
}
.home .content h1 {
  font-size: 6rem;
  color: #f7ff01;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}
.home .content h3 {
  font-size: 6rem;
  color: #ffffff;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}
.home .content p {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.8;
  padding: 1rem 0;
  color: #f0f0f0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}


/* =================================================================== */
/* === 4. GENEL BÖLÜMLER (ABOUT, REVIEW, CONTACT, FOOTER) === */
/* =================================================================== */

.about .row { display: flex; flex-wrap: wrap; column-gap: 2rem; align-items: center; }
.about .row .image { flex: 1 1 45rem; }
.about .row .image img { width: 100%; }
.about .row .content { flex: 1 1 45rem; font-size: 1.6rem; color: #333; line-height: 1.8; }
.about .row .content h3 { font-size: 3rem; color: var(--black-color); }
.about .row .content p { 
  padding: 1rem 0; 
  text-transform: none; /* Bu satırı ekleyin */
}

.review .box-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); gap: 1.5rem; }
.review .box-container .box { border: 0.1rem solid #ddd; text-align: center; padding: 3rem 2rem; background-color: #fff; border-radius: 3rem; }
.review .box-container .box p { font-size: 1.5rem; line-height: 1.8; padding: 2rem 0; color: #333; }
.review .box-container .box .user { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; }
.review .box-container .box h3 { padding: 1rem 0; font-size: 2rem; color: var(--main-color); }
.review .box-container .box .stars i { font-size: 1.5rem; color: gold; }

.contact .row { display: flex; background-color: var(--black-color); flex-wrap: wrap; gap: 1rem; }
.contact .row .map { flex: 1 1 45rem; width: 100%; object-fit: cover; }
.contact .row form { flex: 1 1 45rem; padding: 5rem 2rem; text-align: center; }
.contact .row form h3 { text-transform: uppercase; font-size: 3.5rem; color: #fff; }
.contact .row form .inputBox { display: flex; align-items: center; margin: 2rem 0; border: var(--border); }
.contact .row form .inputBox i { color: #fff; font-size: 2rem; padding-left: 2rem; }
.contact .row form .inputBox input { width: 100%; padding: 2rem; font-size: 1.7rem; color: #fff; text-transform: none; background-color: transparent; }
.contact .row form .inputBox textarea { width: 100%; padding: 2rem; font-size: 1.7rem; color: #fff; text-transform: none; background: none; resize: vertical; min-height: 12rem; font-family: "Poppins", sans-serif; }
.contact .row form .inputBox i { align-self: flex-start; padding-top: 2.2rem; }

.footer { background-color: var(--black-color); text-align: center; padding-bottom: 2rem; }
.footer .share { padding: 2rem 0; }
.footer .share a { width: 5rem; height: 5rem; line-height: 5rem; color: #fff; font-size: 2rem; border: var(--border); border-radius: 50%; margin: 0.3rem; }
.footer .share a:hover { background-color: var(--main-color); }
.footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.footer .links a { background-color: var(--main-color); padding: 0.7rem 2rem; color: #fff; font-size: 2rem; }
.footer .links a:hover { background-color: var(--black-color); opacity: 0.7; }
.footer .credit { font-size: 2rem; color: #fff; font-weight: 300; padding-top: 1.5rem; }
.footer .credit span { color: var(--main-color); }


/* =================================================================== */
/* === 5. SAYFA ÖZEL BÖLÜMLERİ === */
/* =================================================================== */

.daily-menu-container { background-color: #fff; border-radius: 3rem; padding: 3rem; display: flex; flex-direction: column; align-items: center; max-width: 50rem; margin: 2rem auto; border: 3px solid var(--black-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.daily-menu-container h3 { font-size: 4rem; padding: 1rem 0; color: var(--main-color); text-align: center; }
.daily-menu-container img { width: 100%; max-width: 400px; height: auto; object-fit: contain; margin-bottom: 2rem; cursor: zoom-in; }
.no-menu-message { text-align: center; font-size: 2.5rem; color: #333; background-color: #fff; padding: 4rem; border-radius: 3rem; }

#catering-preview { padding-bottom: 5rem; }
.catering-slider { width: 100%; padding-top: 5rem; padding-bottom: 5rem; }
.catering-slider .swiper-slide { background-position: center; background-size: cover; width: 32rem; height: 40rem; }
.catering-slider .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.catering-slider .swiper-button-next, .catering-slider .swiper-button-prev { color: var(--black-color); }
.catering-slider .swiper-pagination-bullet-active { background: var(--main-color); }
.catering-link-btn { display: block; width: fit-content; margin: 3rem auto 0 auto; }

#impressum .box-container { display: block; background: white; color: #333; min-height: 40vh; padding: 3rem; border-radius: 1rem; }
#impressum h2, #impressum p { color: #333; text-transform: none; }
#impressum h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
#impressum p { font-size: 1.6rem; line-height: 1.8; margin-bottom: 1rem; }
#impressum a { color: var(--main-color); text-transform: none; }


/* =================================================================== */
/* === 6. SPEISEKARTE VE CATERING (ÜRÜN KARTLARI) === */
/* =================================================================== */

.product-category { margin-bottom: 4rem; }
.product-category .category-title {
  font-size: 3.5rem; color: var(--black-color); background-color: #fff;
  padding: 1rem 2rem; border-radius: 1rem; display: inline-block;
  margin-bottom: 2rem; border-left: 5px solid var(--main-color);
}
.product-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}
.product-card {
  background-color: #fff; border-radius: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.product-card-image-container {
  width: 100%; background-color: #f7f7f7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: zoom-in;
}
.product-card-image { width: 100%; max-height: 25rem; object-fit: contain; }
.product-card-body {
  padding: 1.5rem 2rem 2rem 2rem; display: flex;
  flex-direction: column; flex-grow: 1; text-align: center;
}
.product-card-title {
  font-size: 2.2rem; color: var(--black-color);
  margin-bottom: 1rem; text-transform: none; min-height: 6rem;
}
.product-card-price {
  font-size: 2rem; color: var(--main-color);
  font-weight: bold; margin-bottom: 1.5rem;
}
.product-card-button {
  margin-top: auto; padding: 1rem 2.5rem; border-radius: 30rem;
  font-size: 1.6rem; color: #fff; background-color: var(--black-color);
  cursor: pointer; border: none; text-transform: capitalize;
}
.product-card-button:hover { opacity: 0.8; }

#catering-page .product-card-container {
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 3rem;
}

#wochenmenu-preview .box-container {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem; align-items: stretch;
}
#wochenmenu-preview .box {
  background-color: #fff; border-radius: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 1.5rem; text-align: center; display: flex; flex-direction: column;
}
#wochenmenu-preview .box .box-head { flex-grow: 1; cursor: pointer;}
#wochenmenu-preview .box img { max-height: 25rem; width: auto; height: auto; object-fit: contain; }
#wochenmenu-preview .box h3 { font-size: 2rem; padding: 0.8rem 0; color: var(--main-color);}
#wochenmenu-preview .box .add-to-cart-btn {
  padding: 0.8rem 1.5rem; font-size: 1.4rem; margin-top: auto; flex-shrink: 0;
  border: 1px solid var(--main-color); background-color: #fff; color: var(--main-color);
  border-radius: 30rem; cursor: pointer;
}
#wochenmenu-preview .box .add-to-cart-btn:hover { background-color: var(--main-color); color: #fff; }


/* =================================================================== */
/* === 7. MODAL PENCERELER (LIGHTBOX & SEPET) === */
/* =================================================================== */

.lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85); z-index: 2000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem; box-sizing: border-box;
}
.lightbox-overlay.show { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; line-height: 0; }
.lightbox-content img {
  display: block; max-width: 90vw; max-height: 90vh;
  width: auto; height: auto; border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close-btn {
  position: absolute; top: -1.5rem; right: -1.5rem; font-size: 3rem;
  color: white; cursor: pointer; background: rgba(0,0,0,0.6);
  border: none; border-radius: 50%; width: 4rem; height: 4rem;
  line-height: 4rem; text-align: center; z-index: 2002;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background-color: rgba(14, 14, 14, 0.6); color: white; border: none;
  cursor: pointer; padding: 1rem 1.5rem; font-size: 3rem; z-index: 2003;
  border-radius: 50%; width: 5rem; height: 5rem; line-height: 3rem;
  text-align: center; transition: background-color 0.3s;
}
.lightbox-nav:hover { background-color: rgba(14, 14, 14, 0.9); }
.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.cart-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); z-index: 3000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cart-modal-overlay.show { opacity: 1; visibility: visible; }
.cart-modal {
  background: #f5eadd; padding: 3rem; border-radius: 1.5rem;
  width: 90%; max-width: 60rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}
.cart-modal h2 {
  font-size: 3rem; color: var(--black-color); margin-bottom: 2rem;
  border-bottom: 1px solid #ddd; padding-bottom: 1.5rem;
}
.cart-modal .cart-info-inputs { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-modal .cart-info-inputs input { width: 100%; padding: 1rem; font-size: 1.6rem; border-radius: .5rem; border: 1px solid #ccc; text-transform: none; }
#cart-items-list {
  list-style: none; padding: 0; margin-bottom: 2rem;
  max-height: 40vh; overflow-y: auto; text-align: left;
}
#cart-items-list li {
  display: flex; align-items: center; font-size: 1.8rem;
  color: #333; padding: 1.2rem 0; border-bottom: 1px solid #ddd; gap: 1.5rem;
}
.quantity-controls { display: flex; align-items: center; gap: 1rem; }
.quantity-controls button {
  background: #ddd; color: var(--black-color); border: none; border-radius: 50%;
  width: 2.8rem; height: 2.8rem; font-size: 1.8rem; font-weight: bold;
  cursor: pointer; line-height: 2.8rem; text-align: center; padding: 0;
}
.quantity-controls span { font-weight: bold; min-width: 2rem; text-align: center; font-size: 2rem; }
.item-details { flex-grow: 1; text-align: left; margin: 0 1rem; }
.remove-item-btn { background: transparent !important; color: #ff4d4d !important; font-size: 2.2rem !important; width: auto !important; height: auto !important; border-radius: 0 !important; }
.cart-footer .cart-button-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.cart-footer .order-note {
  font-size: 1.6rem; color: #555; margin-top: 2rem;
  background-color: #fffde7; padding: 1.5rem;
  border-radius: 0.5rem; border-left: 5px solid gold;
}


/* =================================================================== */
/* === 8. RESPONSIVE (MOBİL UYUMLULUK) === */
/* =================================================================== */

@media (max-width: 991px) {
  html { font-size: 55%; }
  .header { padding: 1.5rem 2rem; margin: 2rem 2rem;}
  .header .navbar a { margin: 0 0.8rem; font-size: 1.5rem; }
}

@media (max-width: 768px) {
  #menu-btn { display: inline-block; }
  .header .navbar {
    position: absolute; top: 100%; right: -100%; background-color: #fff;
    height: calc(100vh - 9rem); width: 30rem;
    box-shadow: 0px 20px 14px 0px rgb(0 0 0 / 75%);
    transition: 0.4s ease;
  }
  .header .navbar.active { right: 0; }
  .header .navbar a {
    color: var(--black-color); display: block;
    margin: 1.5rem; padding: 0.5rem; font-size: 2rem;
  }
  
  .home .content {
    display: none;
  }
  
  #wochenmenu-preview .box-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  #wochenmenu-preview .box-container { grid-template-columns: 1fr; }
}


/* =================================================================== */
/* === 9. YAZDIRMA (PRINT) STİLLERİ - NİHAİ VE ÇALIŞAN VERSİYON === */
/* =================================================================== */

@media print {
  /* 1. Önce sayfanın kendisi hariç her şeyi gizle */
  body > * {
    display: none !important;
  }

  /* 2. Sadece sepeti içeren ana kabı görünür yap */
  .cart-modal-overlay {
    display: block !important;
    position: static !important; /* Sayfada normal akışta dursun */
    background: none !important;
  }
  
  /* 3. Sepetin kendisini ve içindekileri görünür yap */
  .cart-modal, .cart-modal * {
    visibility: visible !important;
    display: block !important;
  }

  /* 4. Yazdırma için sepetin stilini ayarla */
  .cart-modal {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
  }

  .cart-modal h2 {
    font-size: 18pt !important;
    color: black !important;
    border-bottom: 2px solid black !important;
    margin-bottom: 1rem !important;
    padding-bottom: .5rem !important;
  }

  /* 5. Sepet listesini ayarla */
  #cart-items-list {
    max-height: none !important;
    overflow: visible !important;
  }
  #cart-items-list li {
    font-size: 12pt !important;
    color: black !important;
    page-break-inside: avoid !important; /* Liste elemanlarının sayfa ortasında bölünmesini engelle */
    padding: 0.3rem 0 !important;
    border: none !important;
  }
  
  /* 6. Yazdırılmayacak elemanları GİZLE */
  .cart-modal .lightbox-close-btn,
  .cart-modal .cart-info-inputs,
  .cart-modal .cart-button-group,
  .cart-modal .order-note,
  .cart-modal .remove-item-btn,
  .cart-modal .quantity-controls button {
    display: none !important;
  }
  
  /* 7. Miktar ("2x" gibi) bilgisini ürün adının başında göster */
  .quantity-controls span {
      display: inline !important;
      font-size: 12pt !important;
      font-weight: bold !important;
      color: black !important;
  }
  .quantity-controls span::after{
      content: "x ";
      font-weight: normal;
  }
  
  .item-details::before {
    content: "" !important; /* Başındaki tireyi kaldır */
  }
}
/* =================================================================== */
/* === 10. TOAST BİLDİRİMİ (SEPETE EKLENDİ UYARISI) === */
/* =================================================================== */

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745; /* Başarıyı simgeleyen yeşil renk */
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 5rem;
  z-index: 9999; /* Her şeyin üstünde görünmesi için */
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  white-space: nowrap; /* Yazının tek satırda kalması için */
}

.toast-notification.show {
  opacity: 1;
  bottom: 50px; /* Yukarı doğru hafifçe kayarak gelir */
}
/* =================================================================== */
/* === 12. KARŞILAMA EKRANI (SPLASH SCREEN) STİLLERİ === */
/* =================================================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3); /* Hafif karartma efekti */
  backdrop-filter: blur(8px); /* ARKA PLANI BULANIKLAŞTIRMA */
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.splash-screen.hidden {
  opacity: 0;
  pointer-events: none; /* Gizlendikten sonra tıklanmasını engelle */
}

.splash-content {
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  animation: fadeInSplash 1s forwards;
}

@keyframes fadeInSplash {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

