/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background-image: url(images/bg.jpg);
  background-repeat: repeat;
  color: #222;
  padding-bottom: 90px;
}

/* HEADER */
.header {
  padding: 12px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.logo {
  height: 40vh;
  object-fit: contain;
}

/* BANNERS */
.banner-section {
  padding: 10px 0;
}

.banner-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 12px;
  scroll-snap-type: x mandatory;
}

.banner-scroll img {
  height: 50vh;
  object-fit: cover;
  border-radius: 12px;
}


/* OVERLAY */
#bannerOverlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

/* CLICKABLE BACKGROUND */
#bannerOverlay .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

/* VIEWER (NOT FULL SCREEN) */
.banner-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGE */
.banner-viewer img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
}

/* NAV BUTTONS */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
}

.nav-btn.left {
  left: 15px;
}

.nav-btn.right {
  right: 15px;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

/* SECTION TITLE */
.section-title {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin: 5px 5px 5px;
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 12px 20px;
}

.menu-heading {
  grid-column: 1 / -1;
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0 10px;
}

.menu-subheading {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #555;
}

.menu-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.menu-info {
display: flex;
  flex-direction: column;
  padding: 10px;
  flex-grow: 1;
}

.menu-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.menu-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.add-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.add-btn {
  background: #ac9f74;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* QUANTITY CONTROLS */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #eee;
  font-size: 18px;
  cursor: pointer;
}

/* CART BAR */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: url('images/inside.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150%;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  z-index: 100;
}

.cart-bar button {
  background: #ac9f74;
  border: none;
  padding: 8px 14px;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}

/* OVERLAY BASE */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 200;
}

/* MODALS */
.cart-modal,
.checkout-modal,
.pref-modal,
.thankyou-modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* CART */
#cartItems {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

/* SUMMARY */
.cart-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 12px 0;
}

/* CHECKOUT */
.checkout-modal input,
.checkout-modal textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.checkout-modal textarea {
  resize: none;
  height: 80px;
}

/* PREFERENCES */
.pref-modal label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.pref-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* BUTTONS */
.primary-btn {
  background: #ac9f74;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.secondary-btn {
  background: #eee;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

/* THANK YOU */
.thankyou-modal {
  text-align: center;
}

/* DESKTOP IMPROVEMENTS */
@media (min-width: 768px) {
  .cart-modal,
  .checkout-modal,
  .pref-modal,
  .thankyou-modal {
    border-radius: 16px;
    align-self: center;
  }
}
