/* ============================
   GLOBAL
   ============================ */

body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #fafafa;
  color: #333;
}

h3 {
  margin: 10px 0;
}

/* Buttons */
.btn,
button {
  background: #ff9800;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  transition: transform .1s ease, background-color .15s ease;
}

.btn:hover,
button:hover {
  background: #e68900;
  transform: translateY(-1px);
}

.btn:active,
button:active {
  transform: translateY(0);
}

.btn.btn-telegram {
  background: #24A1DE;
}

.btn.btn-telegram:hover {
  background: #1f8ec5;
}

.btn.btn-whatsapp {
  background: #25D366;
}

.btn.btn-whatsapp:hover {
  background: #1fb95a;
}


/* ============================
   HEADER
   ============================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.brand-link img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .brand-link img {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 520px) {
  .brand-link img {
    width: 90px;
    height: 90px;
  }

  .header-right .btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}


/* ============================
   HERO
   ============================ */
#hero {
  margin-bottom: 12px;
}

.carousel {
  position: relative;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  border: 1px solid #ddd;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover;
  background-position: center;
}

.carousel .slide.active {
  opacity: 1;
}

/* Marquee */
.marquee {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
}

.marquee__track {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 0;
  animation: marquee 10s linear infinite;
}

.marquee__track span {
  padding-left: 24px;
  color: #444;
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ============================
   MENU LIST
   ============================ */
.category {
  margin-bottom: 15px;
}

.category h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #a00303;
  color: white;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  border-radius: 5px;
  font-size: 15px;
}

.category h3:hover {
  filter: brightness(1.05);
}

.caret {
  opacity: 0.9;
  transition: transform .2s ease;
}

.category.open .caret {
  transform: rotate(180deg);
}

.menu-list {
  display: none;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.category.open .menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .category.open .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  #menu {
    column-count: 2;
    column-gap: 16px;
  }

  .category {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
  }
}


/* Menu Cards */
.menu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.menu-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

.menu-info {
  flex: 1;
}

.menu-info strong {
  display: block;
  margin-bottom: 2px;
}

.menu-desc {
  color: #666;
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-options {
  margin: 6px 0 4px;
}

.opt-title {
  font-size: 12px;
  margin-bottom: 4px;
}

.opt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opt-btn {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #9b1c1c;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.opt-btn[aria-pressed="true"] {
  background: #ffe1e1;
  border-color: #ff6b6b;
  color: #9b1c1c;
}

.menu-price {
  color: #ff9800;
  font-weight: 700;
}

.menu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.menu-actions input {
  width: 45px;
  padding: 3px;
  text-align: center;
}


/* ============================
   CART / BILL
   ============================ */
.cart {
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#bill {
  background: #fff;
  padding: 12px;
  width: 340px;
  border: 1px dashed #999;
  border-radius: 10px;
  margin-bottom: 15px;
}

#bill h3 {
  margin-top: 5px;
  margin-bottom: 10px;
}

.bill-box {
  font-size: 14px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #fdfdfd;
  border: 1px solid #e2e2e2;
}

.bill-box div {
  margin-bottom: 4px;
}

.bill-time {
  font-size: 12px;
  color: #666;
}

/* tombol hapus */
.bill-remove {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  cursor: pointer;
}

.bill-remove:hover {
  background: #dc2626;
}

/* ============================
   INPUT FORM
   ============================ */
.form-input,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

textarea {
  height: 70px;
}

.order-guide {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
}

.order-guide h4 {
  margin-top: 0;
  color: #ff9800;
  font-size: 1.1em;
}

.order-guide p {
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 0.9em;
}

/* =============================
   LAYOUT FIX: BILL & INPUTS
   ============================= */
@media (min-width: 768px) {
  /* CONTAINER UTAMA (Wrapper yang menampung 3 kolom) */
  .cart-content-wrapper.three-col {
    display: flex; /* Aktifkan mode Flexbox */
    gap: 40px; /* Jarak antara kolom */
    align-items: flex-start; /* Rata atas */
    margin-bottom: 20px;
  }

  /* KOLOM 1, 2, dan 3 mengambil lebar yang relatif sama (sekitar 33%) */
  .cart-content-wrapper.three-col #bill,
  .contact-info,
  .notes-info {
    width: calc(33.33% - 13.33px); /* Hitungan 1/3 lebar dikurangi jarak gap */
  }

  /* KOLOM 1: Bill */
  .cart-content-wrapper.three-col #bill {
    margin-bottom: 0; 
    min-width: 300px; /* Minimal lebar Bill */
  }
  
  /* KOLOM 3: Notes */
  /* Penting: Tingkatkan tinggi textarea Catatan Tambahan agar seimbang */
  .notes-info textarea {
      height: 180px; 
  }
  
  /* Pastikan input-input menggunakan lebar penuh dari containernya */
  .contact-info .form-input,
  .contact-info textarea,
  .notes-info .form-input,
  .notes-info textarea {
    width: 100%;
  }

  /* Hapus atau nonaktifkan styling lama jika ada (jika Anda memiliki .input-form-group lama, hapus saja) */
}