:root {
  --cor-principal: #ea1d2c;
  --ifood-red: #ea1d2c;
  --ifood-dark-red: #c31826;
  --ifood-green: #3cbc28;
  --ifood-dark-green: #2e9e1d;
  --ifood-yellow: #f6d553;
  --ifood-dark-yellow: #e6c245;
  --ifood-gray: #f7f7f7;
  --ifood-dark-gray: #e5e5e5;
  --ifood-text: #3e3e3e;
  --ifood-light-text: #9e9e9e;
  --ifood-white: #ffffff;
  --ifood-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --ifood-radius: 8px;
  --ifood-border: 1px solid #f2f2f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--ifood-gray);
  color: var(--ifood-text);
  line-height: 1.5;
}

/* Header Styles */
.header-wrapper {
  background: var(--ifood-white);
  position: relative;
  box-shadow: var(--ifood-shadow);
}

.header-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-image: url('../../promofoodmarmita.shop/uploads/projetos/imagem_capa-20251004-010057-13146d22.png');
}

.status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--ifood-green);
  color: var(--ifood-white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-badge::before {
  content: "•";
  font-size: 20px;
}

.logo-overlay {
  width: 80px;
  height: 80px;
  border-radius: var(--ifood-radius);
  border: 3px solid var(--ifood-white);
  position: absolute;
  bottom: -40px;
  left: 15px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--ifood-white);
}

.header-content {
  padding: 50px 15px 15px;
}

.header-content h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.restaurant-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--ifood-light-text);
  margin-top: 10px;
}

.restaurant-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating {
  color: var(--ifood-text);
  font-weight: 600;
}

.delivery-info {
  color: var(--ifood-green);
  font-weight: 600;
}

/* Promotion Banner */
.promotion-banner {
  background: linear-gradient(90deg, #ff6b6b 0%, var(--cor-principal) 100%);
  color: var(--ifood-white);
  padding: 15px;
  margin: 15px;
  border-radius: var(--ifood-radius);
  position: relative;
  overflow: hidden;
}

.promotion-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { right: -50%; }
  100% { right: 150%; }
}

.promotion-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.promotion-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

/* Categories */
.categories {
  display: flex;
  gap: 10px;
  padding: 0 15px;
  margin: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category {
  background: var(--ifood-white);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 13px;
  white-space: nowrap;
  border: var(--ifood-border);
  cursor: pointer;
}

.category.active {
  background: var(--cor-principal);
  color: var(--ifood-white);
}

/* Products Section */
.section-title {
  padding: 0 15px;
  margin: 25px 0 15px;
  font-size: 18px;
  font-weight: 600;
}

.products-container {
  padding: 0 15px;
}

.product-card {
  background: var(--ifood-white);
  border-radius: var(--ifood-radius);
  margin-bottom: 15px;
  overflow: hidden;
  border: var(--ifood-border);
  position: relative;
}

.product-card.promo {
  border-left: 4px solid var(--cor-principal);
}

.product-content {
  display: flex;
  padding: 15px;
  gap: 15px;
}

.product-image {
  width: 100px;
  height: 100px;
  border-radius: var(--ifood-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.product-details {
  flex: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ifood-text);
}

.product-description {
  font-size: 13px;
  color: var(--ifood-light-text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ifood-text);
}

.original-price {
  font-size: 14px;
  color: var(--ifood-light-text);
  text-decoration: line-through;
}

.promo-badge {
  background: var(--cor-principal);
  color: var(--ifood-white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}

.add-to-cart-btn {
  background: var(--cor-principal);
  color: var(--ifood-white);
  border: none;
  border-radius: var(--ifood-radius);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.add-to-cart-btn:hover {
  background: var(--ifood-dark-red);
}

.add-to-cart-btn i {
  font-size: 16px;
}

/* Promo Ribbon */
.promo-ribbon {
  position: absolute;
  top: 10px;
  right: -25px;
  background: var(--cor-principal);
  color: white;
  padding: 3px 25px;
  transform: rotate(45deg);
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Footer Navigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ifood-white);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ifood-light-text);
  font-size: 10px;
  gap: 5px;
}

.nav-item i {
  font-size: 20px;
}

.nav-item.active {
  color: var(--cor-principal);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--cor-principal);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* iFood-like floating cart button */
.floating-cart {
  position: fixed;
  bottom: 70px;
  right: 15px;
  background: var(--cor-principal);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
  z-index: 99;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  color: var(--cor-principal);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Overlay escuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  backdrop-filter: blur(3px);
}

/* Popup centralizado com visual moderno */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Título */
.popup h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

/* Texto */
.popup p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

/* Loader circular */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #c62828;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Botão estilizado */
#botaoPedido {
  display: none;
  background: #c62828;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

#botaoPedido:hover {
  background: #8e0000;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  border-radius: var(--ifood-radius);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: var(--ifood-light-text);
  cursor: pointer;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ifood-red);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Modal */
.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--ifood-dark-gray);
  border-radius: var(--ifood-radius);
  font-size: 15px;
  margin-bottom: 15px;
}

.search-btn {
  width: 100%;
  padding: 12px;
  background: var(--ifood-red);
  color: white;
  border: none;
  border-radius: var(--ifood-radius);
  font-weight: 600;
  cursor: pointer;
}

/* Account Modal */
.account-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.account-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--ifood-radius);
  cursor: pointer;
}

.account-option:hover {
  background: var(--ifood-gray);
}

.account-option i {
  font-size: 20px;
  color: var(--ifood-red);
  width: 30px;
  text-align: center;
}

.account-option span {
  font-size: 15px;
}

.login-btn {
  background: var(--ifood-red);
  color: white;
  padding: 12px;
  border-radius: var(--ifood-radius);
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
}
