@font-face {
  font-family: "bodoni svtytwo sc itc tt book";
  src: url(../fonts/bodoni-svtytwo-sc-itc-tt-book.ttf);
}

body {
  font-family: "Poppins", sans-serif;
  color: #0c0c0c;
  background-color: #ffffff;
  background-image: url(../images/pp1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* --- BACK BUTTON --- */
.btn-back {
  margin-top: 140px;
  position: fixed;
  top: 20px;
  left: 20px;
  background: #24bce2;
  color: #000;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.3s;
}
.btn-back:hover {
  background: #fff;
  color: #000;
}

/* --- HEADINGS --- */
.main-heading {
  color: #fff;
  font-weight: 700;
  text-shadow: 2px 2px 5px #000;
}
.sub-heading {
  color: #f8f8f8 !important;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px #000;
}
.logo-img {
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.layout_padding-top {
  padding-top: 90px;
}

/* --- CAROUSEL & COUNTER --- */
.carousel-wrapper {
  position: relative;
}
.slider-counter {
  position: absolute;
  top: -40px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 10;
}

/* --- IMAGE SIZING FIX --- */
.item-dishes {
  padding: 10px;
  text-align: center;
}

/* This box sets the height limit, but doesn't crop the pizza */
.img-box {
  width: 100%;
  height: 280px;         /* Fixed height for Desktop */
  display: flex;         /* Use Flexbox to center the pizza */
  align-items: center;   
  justify-content: center;
  transition: transform 0.3s ease;
}

.img-box img {
  max-width: 100%;       /* Never go wider than box */
  max-height: 100%;      /* Never go taller than box */
  width: auto;           /* Keep original ratio */
  height: auto;          /* Keep original ratio */
  object-fit: contain;   /* SHOW WHOLE IMAGE (No cropping) */
}

.item-dishes:hover .img-box {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* --- PIZZA NAME --- */
.dish-title {
  font-family: "DIN Alternate", "Poppins", sans-serif;
  color: #fff;
  font-weight: 700;
  margin-top: 15px;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px #000; /* Makes text pop */
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .logo-img { max-width: 140px; }
  
  .img-box {
    height: 220px; /* Smaller height for mobile phones */
  }
  
  .slider-counter {
    top: -35px;
    right: 0px;
  }
  
  .btn-back {
    top: 10px; left: 10px;
    padding: 6px 15px; font-size: 0.8rem;
  }
}

/* تنسيق قسم الإضافات */
.sup {
  text-align: center;      /* توسيط الصورة */
  margin-top: 10px;       /* مسافة بين القائمة والصورة */
  padding-bottom: 10px;
  width: 100%;
}

.sup img {
  max-width: 100%;        /* منع الصورة من الخروج عن حدود الشاشة */
  height: 130px;           /* الحفاظ على أبعاد الصورة الأصلية */
  border-radius: 15px;    /* حواف مستديرة اختيارية لجعلها أجمل */
  display: inline-block;
  /* يمكنك إضافة ظل خفيف لجعل الصورة بارزة */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* للموبايل: تقليل المسافات */
@media (max-width: 768px) {
  .sup {
    margin-top: 30px;
    margin-bottom: 40px;
  }
  .sup img {
    max-width: 90%;       /* ترك مساحة صغيرة على الجوانب في الموبايل */
  }
}