/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #ff5a1f;
  --primary-dark: #e04a10;
  --secondary: #fff3ee;
  --green-wa: #25d366;
  --green-wa-dark: #1ebe5d;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light-gray: #f8f9fa;
  --border: #e8e8e8;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(255, 90, 31, 0.2);
  --radius: 16px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f5f5;
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ===========================
   HEADER
=========================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon,
.logo-image-wrap {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo p {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 400;
}

.cart-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.22);
}

.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--white);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   BANNER
=========================== */
.banner {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.banner-content {
  max-width: 1100px;
  margin: 0 auto;
}

.banner-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.banner-content h2 span {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: 8px;
}

.banner-content p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ===========================
   CATEGORIES
=========================== */
.categories {
  background: var(--white);
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 90px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  white-space: nowrap;
  background: var(--light-gray);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   MENU GRID
=========================== */
.menu {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.section-title {
  grid-column: 1 / -1;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  padding: 8px 0 4px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* ===========================
   PRODUCT CARD
=========================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.card-img {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #ffe8d6, #ffd5ba);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.card-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: line-through;
  display: block;
  line-height: 1.2;
  margin-bottom: 2px;
}

.add-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.add-btn:active {
  transform: scale(0.98);
}

/* ===========================
   CART OVERLAY + SIDEBAR
=========================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.14);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  background: var(--primary);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-cart {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-cart:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===========================
   STEPS BAR
=========================== */
.steps-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--secondary);
  flex-shrink: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step span {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 500;
  transition: var(--transition);
}

.step.active .step-circle {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
}

.step.active span {
  color: var(--primary);
  font-weight: 700;
}

.step.done .step-circle {
  background: #4caf50;
  color: var(--white);
}

.step.done span {
  color: #4caf50;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 20px;
  transition: var(--transition);
}

.step-line.done {
  background: #4caf50;
}

/* ===========================
   STEP CONTENT
=========================== */
.step-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.step-content.hidden {
  display: none;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  color: var(--gray);
  padding: 40px 0;
  text-align: center;
}

.empty-cart i {
  font-size: 3rem;
  opacity: 0.3;
}

.empty-cart p {
  font-weight: 600;
  font-size: 1rem;
}

.empty-cart small {
  font-size: 0.82rem;
}

/* ===========================
   CART ITEMS
=========================== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-gray);
  border-radius: 12px;
  padding: 10px 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-image,
.cart-item-emoji {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffe7d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 3px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qty-btn.minus {
  background: #e0e0e0;
  color: var(--dark);
}

.qty-btn:hover {
  opacity: 0.9;
  transform: scale(1.08);
}

.qty-value {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* ===========================
   CART TOTAL
=========================== */
.cart-total {
  background: var(--secondary);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
}

.total-final {
  font-size: 1rem;
  color: var(--dark);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.total-final strong:last-child {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn-next {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.btn-next:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-back {
  background: var(--light-gray);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back:hover {
  background: var(--border);
}

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.btn-whatsapp:hover {
  background: var(--green-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ===========================
   FORM
=========================== */
.form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group label i {
  color: var(--primary);
  margin-right: 4px;
  width: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

/* ===========================
   CONFIRMATION
=========================== */
.confirmation-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.confirm-block {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.confirm-block strong {
  color: var(--primary);
}

.confirm-total {
  background: var(--secondary);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.confirm-total span:last-child {
  color: var(--primary);
}

/* ===========================
   TOAST
=========================== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100vw - 24px);
  text-overflow: ellipsis;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===========================
   FAB CART
=========================== */
.fab-cart {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(255, 90, 31, 0.4);
  transition: var(--transition);
  animation: bounceIn 0.4s ease;
}

.fab-cart:hover {
  transform: translateX(-50%) translateY(-3px);
}

.fab-cart span {
  background: var(--white);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-cart small {
  font-size: 0.85rem;
}

@keyframes bounceIn {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }
  80% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.8rem;
  margin-top: auto;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .cart-sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 85vh;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
  }

  .cart-sidebar.open {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .header-content {
    padding: 12px 14px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo p {
    font-size: 0.72rem;
  }

  .logo-icon,
  .logo-image-wrap {
    width: 54px;
    height: 54px;
    min-width: 54px;
  }

  .categories {
    top: 78px;
    padding: 10px 14px;
  }

  .menu {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 14px 120px;
    margin-top: 18px;
  }

  .card-img {
    height: 130px;
  }

  .card-body {
    padding: 12px;
  }

  .card-name {
    font-size: 0.88rem;
  }

  .card-desc {
    font-size: 0.74rem;
  }

  .card-price {
    font-size: 1rem;
  }

  .add-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .banner {
    padding: 28px 14px;
  }

  .banner-content h2 {
    font-size: 1.3rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-back,
  .btn-next,
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .menu {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   LOADING / ANIMATIONS
=========================== */
.card-enter {
  animation: cardEnter 0.3s ease;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}