@import url('style.css'); /* Mantém a importação das regras globais */

/*==========================================================
    1. SEÇÃO PRINCIPAL (CARDÁPIO)
==========================================================*/
.cardapio {
    background: white;
}

/* Introdução geral e descrição por categoria */
#general-intro, 
.category-description {
    max-width: 1200px;
    margin: 30px auto 40px auto;
    text-align: left;
    padding: 0 20px;
}

.intro-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cor-secundaria);
    margin-bottom: 15px;
    text-align: center;
}

.intro-description,
.category-description p{
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--cor-secundaria);
}

/*==========================================================
    2. FILTROS E BOTÕES
==========================================================*/
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-filter {
    background-color: var(--cor-fundo);
    color: var(--cor-primaria);
    border: 2px solid var(--cor-fundo);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background-color: var(--cor-primaria);
    color: white;
}

.btn-filter.active {
    background-color: var(--cor-primaria);
    color: white;
    font-weight: bold;
    border: 2px solid var(--cor-primaria);
    transform: scale(1.05);
}

/*==========================================================
    3. BOTÃO "VER MAIS"
==========================================================*/
.load-more-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    width: 100%;
}

/* ==========================================================
   4. GRID DE CARDS
========================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   5. CARD (ESTRUTURA BASE)
========================================================== */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   6. CARD TOPO (IMAGEM)
========================================================== */
.card-top {
    background: linear-gradient(135deg, #fed7da, #fd0075);
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    width: 100%;
}

/* Camada clara sobre a imagem */
.card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
}

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    z-index: 1;
    display: block;
}

/* ==========================================================
   7. CONTEÚDO DO CARD
========================================================== */
.card-content {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
}

/* Descrição resumida (padrão) */
.card-description {
    font-size: 14px;
    margin-bottom: 16px;
    flex-grow: 1;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Texto completo (expandido) */
.card-description.full {
  display: none;
}

/* ==========================================================
   8. ESTADO EXPANDIDO DO CARD
========================================================== */
.card.expanded .card-description.short {
  display: none;
}

.card.expanded .card-description.full {
  display: block;
}

/* Efeito visual na imagem */
.card.expanded .card-img {
  opacity: 0.15;
  filter: blur(2px);
}

/* Overlay rosado no card inteiro */
.card.expanded::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 230, 235, 0.85); /* tom rosado suave */
  backdrop-filter: blur(4px);
  z-index: 1;
}

.card-content,
.card-top {
  position: relative;
  z-index: 2;
}

/* ==========================================================
   9. RODAPÉ DO CARD (preço / botão)
========================================================== */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--cor-primaria);
}

.btn-card {
    background: var(--cor-primaria);
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(253, 0, 117, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-card:hover {
    background: #e00068;
    transform: scale(1.05);
}

/* ==========================================================
   10. BADGES (TAGS)
========================================================== */

.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: #eee;
  color: #333;
  position: relative;
  z-index: 3;
}

/* Variações */
.badge-classico {
  background: #f3e5ab;
  color: #5c3b00;
}

.badge-fruta {
  background: #ffd6d6;
  color: #a40000;
}

.badge-especial {
  background: #e3f2fd;
  color: #0d47a1;
}

.badge-premium {
  background: #ede7f6;
  color: #4527a0;
}

.badge-presente {
  background: #e8f5e9;
  color: #1b5e20;
}

.tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--cor-primaria);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 2;
}