* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.header {
  min-height: 82px;
  padding: 15px 55px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #222;
  background: #111;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 88px;
  height: 55px;
  object-fit: cover;
  border-radius: 10px;
}

.brand h1 {
  color: #ffb800;
  font-size: 25px;
}

.brand p {
  color: #9ca3af;
  font-size: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.status {
  background: #063f20;
  color: #4ade80;
  border: 1px solid #166534;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status span {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

.cart-button {
  background: #ffbf00;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#cartCount {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.hero {
  text-align: center;
  padding: 55px 20px 38px;
}

.hero h2 {
  font-size: 50px;
  margin-bottom: 12px;
}

.hero h2 span {
  color: #ffbf00;
}

.hero p {
  color: #b7c7d9;
  font-size: 20px;
  line-height: 1.4;
  max-width: 650px;
  margin: 0 auto;
}

.menu {
  padding: 20px 55px 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.card img {
  width: 100%;
  height: 295px;
  object-fit: cover;
}

.card-content {
  padding: 24px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-title h3 {
  font-size: 25px;
}

.card-title strong {
  color: #ffbf00;
  font-size: 31px;
  white-space: nowrap;
}

.card-content p {
  color: #b7c7d9;
  font-size: 17px;
  line-height: 1.45;
  margin: 20px 0 22px;
}

.btn-order {
  width: 100%;
  border: none;
  background: linear-gradient(180deg, #ffc107, #eaa700);
  color: #000;
  padding: 17px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 191, 0, 0.25);
}

.btn-order:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* CARRINHO */

.hidden {
  display: none !important;
}

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cart-content {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  background: #141414;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 25px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h2 {
  color: #ffbf00;
}

.cart-header button {
  background: transparent;
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.empty-cart {
  color: #b7c7d9;
  text-align: center;
  padding: 25px 0;
}

.cart-item {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-info h4 {
  margin-bottom: 5px;
}

.cart-item-info p {
  color: #ffbf00;
}

.remove-item {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid #2a2a2a;
  padding-top: 15px;
  margin-bottom: 20px;
}

.cart-footer h3 {
  color: #ffbf00;
}

#checkoutForm {
  display: grid;
  gap: 12px;
}

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0b0b0b;
  color: #fff;
}

#checkoutForm textarea {
  min-height: 100px;
  resize: vertical;
}

.checkout-btn {
  background: #ffbf00;
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .header {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero h2 {
    font-size: 38px;
  }

  .cart-content {
    max-height: 95vh;
  }
}

/* ========================= */
/* RESUMO DO PEDIDO */
/* ========================= */

.cart-summary {
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 15px 0;
  margin-bottom: 20px;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #b7c7d9;
}

.cart-summary strong {
  color: #fff;
}

.cart-summary h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 15px;
  color: #ffbf00;
  font-size: 22px;
}

/* ========================= */
/* CAMPOS DE ENTREGA */
/* ========================= */

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #333;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
}

#deliveryDistance {
  border: 1px solid #ffbf00;
}

#deliveryDistance:focus {
  outline: none;
  border-color: #ffc107;
}

.payment-method-info {
  border: 1px solid #333;
  border-radius: 10px;
  color: #b7c7d9;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px 14px;
}

/* ========================= */
/* FRETE */
/* ========================= */

#deliveryFee {
  color: #22c55e;
  font-weight: bold;
}

#cartSubtotal {
  color: #fff;
}

#cartTotal {
  color: #ffbf00;
}

/* ========================= */
/* RESPONSIVO */
/* ========================= */

@media (max-width: 768px) {

  .cart-summary h3 {
    font-size: 20px;
  }

}

.add-more-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.add-more-btn:hover {
  background: #333;
}

.tracking-btn {
  background: #111;
  color: #ffc400;
  border: 1px solid #ffc400;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tracking-btn:hover {
  background: #ffc400;
  color: #111;
}

.tracking-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
}

.tracking-steps li {
  border: 1px solid #333;
  border-radius: 10px;
  color: #b7c7d9;
  padding: 12px 14px;
}

.tracking-steps li.done {
  border-color: #166534;
  color: #4ade80;
}

.tracking-steps li.current {
  background: #063f20;
}

.payment-link {
  display: block;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #00a650;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.payment-link:hover {
  background: #008f46;
}

.pix-payment-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.pix-payment-box img {
  width: 220px;
  max-width: 100%;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  justify-self: center;
}

.pix-payment-box label {
  color: #ffbf00;
  font-weight: 700;
}

.pix-payment-box textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  padding: 12px;
}

.pix-payment-box input {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  padding: 12px;
}

.pix-payment-box button {
  background: #00a650;
  color: #fff;
}

.payment-error {
  color: #fca5a5;
}
