/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: #333;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
/* HEADER */
header {
  background: #ff4d4d;
  color: #fff;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 22px; font-weight: bold; }
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: bold;
  transition: 0.3s;
}
nav a:hover { opacity: 0.7; }

/* HERO */
.hero {
  height: 90vh;
  background: url("https://images.unsplash.com/photo-1550547660-d9450f859349") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.hero-content {
  background: rgba(0,0,0,0.6);
  padding: 40px;
  border-radius: 10px;
}
.hero h2 { font-size: 42px; margin-bottom: 15px; }
.hero p { margin-bottom: 20px; }
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ff4d4d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}
.btn:hover { background: #e63c3c; }
/* SECTIONS */
.section { padding: 70px 80px; text-align: center; }
.section h2 { margin-bottom: 30px; font-size: 28px; }
.section:nth-of-type(even) { background: #fdfdfd; }
.section:nth-of-type(odd) { background: #fafafa; }

/* DIVIDER */
.divider {
  height: 2px;
  width: 80%;
  margin: 40px auto;
  background: linear-gradient(to right, rgba(128,128,128,0.4), transparent, rgba(128,128,128,0.4));
  border-radius: 2px;
}

/* MENU */
.menu-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 20px;
}
.card {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 15px;
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card h3 { margin: 15px 0 5px; }
.card p { margin-bottom: 10px; }
.order-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.order-btn:hover { background: #e63c3c; }

/* FLOATING CART BAR */
#floatingCart {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #ff4d4d;
  color: #fff;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-weight: bold;
  z-index: 200;
}
#floatingCart button {
  background: #fff;
  color: #ff4d4d;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
#floatingCart button:hover { background: #f2f2f2; }
/* CART SECTION */
#cartItems p {
  margin: 8px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qty-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.qty-btn:hover { background: #e63c3c; }

#cartTotal { margin: 15px 0; font-weight: bold; }
#orderBtn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
#orderBtn:hover { background: #e63c3c; }
#orderBtn:disabled { background: #ccc; cursor: not-allowed; }

/* CHECKOUT FORM */
#checkout form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#checkout input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#checkout button {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
#checkout button:hover { background: #e63c3c; }

/* FEATURED CAROUSEL */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding: 10px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 250px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.slide h3 { margin: 10px 0 5px; }
.slide p { font-weight: bold; color: #000; }

#specialsContainer .slide { border: none; max-width: 220px; }
#specialsContainer .slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 300px;
  transition: 0.3s;
}
.testimonial p { font-style: italic; margin-bottom: 10px; }
.testimonial span { color: #ff4d4d; font-size: 18px; }
.testimonial h4 { margin-top: 10px; font-weight: bold; }
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(255,77,77,0.25);
}
/* FOOTER */
footer {
  background: linear-gradient(180deg, #222, #111);
  color: #fff;
  text-align: center;
  padding: 20px;
  border-top: 2px solid #ff4d4d;
}

/* ADMIN PANEL MODAL */
.admin-panel {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 999;
  overflow-y: auto;
}

.admin-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  max-width: 95%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  max-height: 95vh;
  overflow-y: auto;
}

.admin-box h3 { margin-bottom: 15px; color: #ff4d4d; }
.admin-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.admin-box button {
  margin-top: 10px;
  padding: 10px 15px;
  background: linear-gradient(45deg, #ff4d4d, #e63c3c);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.admin-box button:hover { opacity: 0.9; }

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.admin-table th, .admin-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.admin-table th {
  background: #f5f5f5;
  font-weight: bold;
}
.admin-table th:first-child { width: 40px; text-align: center; }
.admin-table td:first-child { text-align: center; }
.admin-table td button {
  margin-right: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}

/* Distinct Button Colors */
.add-btn { background: #009688; }
.update-btn { background: #ff9800; }
.delete-btn { background: #f44336; }

/* Animations */
@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  header { flex-direction: column; padding: 15px 20px; text-align: center; }
  nav { margin-top: 10px; }
  nav a { display: inline-block; margin: 8px; font-size: 14px; }
  .hero { height: 70vh; padding: 20px; }
  .hero h2 { font-size: 26px; }
  .section { padding: 40px 20px; }
  .menu-container { gap: 15px; }
  .card img { height: 150px; }
  .carousel { gap: 10px; }
  .slide { min-width: 200px; }
  .slide img { height: 140px; }
  .admin-box { width: 95%; padding: 20px; }
  .admin-table th, .admin-table td { font-size: 13px; padding: 8px; }
  .admin-table td button { font-size: 12px; padding: 4px 8px; }
}