/* CSS Específico para Restaurante Farfa (ID: 1) */
:root {
    --grupo-ilha-primary: #991918;
    --grupo-ilha-secondary: #E85C0D;
    --promotion-primary: #EEAC1F;;
    --promotion-secondary: #ba8617;
    --promotion-accent: #32d25dC2;
    --promotion-bg: #f1f8e9;
    --promotion-card-bg: #ffffff;
    --promotion-text: #1B5E20;
    --promotion-text-muted: #4E7B51;
}

body{
  background-color: #FFF;
}

nav {
  background-color: var(--grupo-ilha-primary);
  opacity: .7;
  height: 80px;
  color: #FFF;
}

@media (max-width: 991px){
  nav {
    opacity: 1;
  }
}

.nav-link {
  color: #FFF;
}

.day-header {
    background: linear-gradient(135deg, var(--grupo-ilha-primary), #1B5E20);
    color: var(--promotion-primary);
    padding: 1rem 2rem;
    border-radius: 10px 10px 0 0;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekly-promotions, .promotions-loading{
  background-color: #FFF;
}

.promotions-grid {
  background-color: #FFF;
}

.promotion-title-new{
  color: #FFF;
}
.product-description{
  color: #FFF;
}
.original-price{
  color: #dd1313;
}

/* Restaurante Ilha - Theme Verde/Laranja */
.promotion-card-new {
    background-color: #072B1C;
    border: 2px solid #E8F5E8;
}

/* .promotion-header {
    background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-secondary));
} */

.promotion-header{
    padding: unset;
    color: white;
}

.meal-period {
    background-color: #1f1f1fc2;
}


.discount-badge {
    background: var(--promotion-accent);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    color: white;
}

.pricing-section{
    background-color: #020202cc;
    padding: 8px;
    border-radius: 16px;
}

.promotional-price {
    color: var(--promotion-accent);
    text-shadow: 0 1px 2px rgba(46, 125, 50, 0.1);
}

.btn-comprar {
    background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-secondary));
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-comprar:hover {
    background: linear-gradient(135deg, #1B5E20, #388E3C);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.day-header {
    background: linear-gradient(135deg, var(--grupo-ilha-primary), #1B5E20);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}


/* Efeitos especiais para Restaurante Ilha */
.promotion-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--promotion-primary), var(--promotion-secondary), var(--promotion-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-card-new:hover::before {
    opacity: 1;
}

/* --------------------------------------------------
   Purchase Modal – Farofa Churrascaria
   cores: #072B1C (escuro), #E85C0D (laranja), #EEAC1F (amarelo)
-------------------------------------------------- */
@media (min-width: 992px) {
  /* Desktop: layout em duas colunas */
  .modal-content-wrapper {
    display: flex;
    gap: 1rem;
  }
  .modal-img-wrapper {
    flex: 0 0 45%;
  }
  .modal-details-wrapper {
    flex: 1;
  }
}
@media (max-width: 991px) {
  /* Mobile: coluna única, imagem em topo */
  .modal-content-wrapper {
    display: block;
  }
  .modal-img-wrapper {
    margin-bottom: 1rem;
  }
}

.modal-content {
  border-radius: 1rem;
  overflow: hidden;
}
.modal-header {
  border: none;
  padding: 0;
}
.modal-body {
  padding: 1.5rem;
  background: #fff;
  color: #072B1C;
  font-family: 'Antique Olive', sans-serif;
}

/* imagem do produto */
.modal-product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* border-radius: .75rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1); */
}

/* badges */
.modal-discount-badge {
  background: #E85C0D;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 1.2rem;
  position: absolute;
  left: 1rem;
  font-weight: bold;
}
.modal-meal-badge {
  background: #072B1C;
  color: #fff;
  padding: 0.8rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 1rem;
  display: inline-block;
}
.modal-date-badge {
  background: #EEAC1F;
  color: #072B1C;
  padding: 0.8rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 0.8rem;
  display: inline-block;
}

/* texto principal */
.modal-promotion-title {
  font-family: 'Party Confetti Regular', sans-serif;
  font-size: 1.75rem;
  margin: 0.5rem 0;
  color: #072B1C;
}
.modal-product-name {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}
.modal-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* info tags (consumo, limite…) */
.modal-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.info-tag {
  background: #F5F5F5;
  color: #072B1C;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* preços */
.modal-pricing {
  background: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.original-price-text {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}
.promotional-price-text {
  color: #E85C0D;
  font-size: 2rem;
  font-weight: bold;
}
.savings-text {
  display: block;
  color: #072B1C;
  font-size: 0.85rem;
}

/* unidade */
.modal-unit-section {
  margin-bottom: 1.5rem;
}
.unit-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.form-select {
  font-size: 0.9rem;
}

/* botão adicionar */
.modal-action-section {
  text-align: center;
}
.modal-add-to-cart-btn {
  background: #E85C0D;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  border: none;
  transition: background 0.2s;
}
.modal-add-to-cart-btn:hover {
  background: #EEAC1F;
  color: #072B1C;
}

/* Ajustes gerais mobile */
@media (max-width: 576px) {
  .modal-promotion-title { font-size: 1.5rem; }
  .promotional-price-text { font-size: 1.5rem; }
  .modal-add-to-cart-btn { width: 100%; padding: 0.75rem; }
}

.modal-image-section{
    background-color: #FFF
}
/* --------------------------------------------------
   CORREÇÕES - Purchase Modal – Farofa Churrascaria
   Adicione estas regras APÓS o CSS anterior
-------------------------------------------------- */

/* Ajuste do layout desktop para melhor proporção */
@media (min-width: 992px) {
  .modal-content-wrapper {
    display: flex;
    gap: 2rem; /* aumenta o gap entre colunas */
    align-items: stretch; /* força altura igual */
  }

  .modal-img-wrapper {
    flex: 0 0 40%; /* reduz um pouco a largura da imagem */
    position: relative;
    display: flex;
    align-items: center; /* centraliza verticalmente */
  }

  .modal-product-image {
    width: 100%;
    height: 100%;
    min-height: 400px; /* altura mínima */
    max-height: 500px; /* altura máxima */
    object-fit: contain; /* mostra imagem completa sem cortes */
    border-radius: 0.75rem;
  }
}

/* Reposiciona o badge de desconto */
.modal-discount-badge {
  background: #E85C0D;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  /* border-radius: 1.5rem; */
  position: absolute;
  right: 1rem; /* muda de left para right */
  font-weight: bold;
  z-index: 10;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
}

/* Ajuste alternativo: badge alinhado ao topo do modal */
.modal-body {
  position: relative; /* necessário para o badge absoluto */
}

/* Garantir que a imagem ocupe altura total no wrapper */
.modal-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Ajuste fino para o wrapper de detalhes */
.modal-details-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0;
}

/* Mobile: mantém comportamento original */
@media (max-width: 991px) {
  .modal-img-wrapper {
    height: 250px;
    position: relative;
    margin-bottom: 1rem;
  }

  .modal-product-image {
    height: 100%;
    object-fit: cover;
  }

  .modal-discount-badge {
    left: 1rem; /* no mobile volta para left */
  }
}

/* Contraste para mensagem "sem promoções" em fundo claro */
#promotions-content .text-muted {
    color: var(--grupo-ilha-primary) !important;
}

#promotions-content .fa-calendar-times {
    color: var(--grupo-ilha-secondary) !important;
}

#promotions-content h4.text-muted {
    color: var(--grupo-ilha-primary) !important;
    font-weight: 600;
}

#promotions-content p.text-muted {
    color: #333 !important;
}
