/* ===========================
   IMPORTAÇÃO DA FONTE PERSONALIZADA
   =========================== */
@font-face {
  font-family: 'Dolato de Stato';
  src: url('fonts/Dolato de Stato Font.ttf') format('truetype');
  font-display: swap;
}

/* ===========================
   RESET E CONFIGURAÇÕES GLOBAIS
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Calibri', Arial, sans-serif;
  /* APLICAÇÃO DA IMAGEM DE BACKGROUND */
  background: linear-gradient(rgba(212, 203, 193, 0.85), rgba(178, 165, 151, 0.85)), 
              url('images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #2d3620; 
  line-height: 1.6;
  min-height: 100vh;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===========================
   CABEÇALHO
   =========================== */
.header {
  background: rgba(245, 241, 237, 0.95);
  border-radius: 15px;
  padding: 20px 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.header-text {
  flex: 1;
}

.header-text h1 {
  font-family: 'Dolato de Stato', cursive;
  font-size: 2.5rem;
  color: #ffcba4; /* Título principal em Pêssego */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Sombra para contraste */
  margin-bottom: 5px;
}

.header-text p {
  font-size: 1.1rem;
  color: #5a4a3a;
}

/* ===========================
   LAYOUT PRINCIPAL (GRID)
   =========================== */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.section-title {
  font-family: 'Dolato de Stato', cursive;
  font-size: 2rem;
  color: #ffcba4; /* Título "Nosso Cardápio" em Pêssego */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffcba4;
}

/* ===========================
   ÁREA DO CARDÁPIO
   =========================== */
.menu-area {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h2 {
  font-family: 'Dolato de Stato', cursive;
  font-size: 1.8rem;
  color: #ffcba4; /* Títulos das categorias em Pêssego */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 5px solid #ffcba4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.item-name {
  flex: 1;
  font-size: 1rem;
  color: #2d3620;
}

.item-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffcba4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  min-width: 80px;
  text-align: right;
}

.btn-add {
  background: linear-gradient(135deg, #ffcba4 0%, #ffb88c 100%);
  color: #2d3620;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-add:hover {
  background: linear-gradient(135deg, #ffb88c 0%, #ffa574 100%);
  transform: scale(1.05);
}

/* ===========================
   ÁREA DO PEDIDO (CARRINHO + FORMULÁRIO)
   =========================== */
.order-area {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.cart-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-section {
  margin-bottom: 25px;
}

#carrinho-container {
  min-height: 100px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-row {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cart-item-name {
  flex: 1;
  font-size: 0.95rem;
  color: #2d3620;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  background: #ffcba4;
  color: #2d3620;
  border: none;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty {
  font-size: 1rem;
  font-weight: bold;
  color: #2d3620;
  min-width: 30px;
  text-align: center;
}

.cart-subtotal {
  font-size: 1rem;
  font-weight: bold;
  color: #ffcba4;
  min-width: 80px;
  text-align: right;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 12px;
  border-top: 3px solid #ffcba4;
  font-size: 1.3rem;
  font-weight: bold;
  color: #2d3620;
}

/* ===========================
   FORMULÁRIO DE PEDIDO
   =========================== */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-form label {
  font-size: 1rem;
  font-weight: bold;
  color: #2d3620;
  margin-bottom: -8px;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #c3b8ac;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Calibri', Arial, sans-serif;
  color: #2d3620;
  background: #fff;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: #ffcba4;
}

.btn-submit {
  background: linear-gradient(135deg, #5a4a3a 0%, #3d3020 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #3d3020 0%, #2d2418 100%);
  transform: scale(1.02);
}

/* ===========================
   RODAPÉ
   =========================== */
.footer {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #2d3620;
  backdrop-filter: blur(8px);
}

.footer hr {
  border: none;
  border-top: 2px solid #ffcba4;
  margin: 15px 0;
}

/* ===========================
   RESPONSIVIDADE - MOBILE
   =========================== */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .page-wrapper {
    padding: 15px;
  }

  .header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .menu-section h2 {
    font-size: 1.5rem;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-add {
    width: 100%;
  }

  .cart-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-controls {
    width: 100%;
    justify-content: center;
  }

  .cart-subtotal {
    width: 100%;
    text-align: center;
  }
}
