/*==========================================================
    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);
}

.category-list-title {
    margin-top: 18px;
    margin-bottom: 6px;
}

.category-list {
    margin: 0 0 18px 28px;
    padding-left: 18px;
    color: var(--cor-secundaria);
    font-size: 1.05rem;
    line-height: 1.6;
}

.category-list li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.category-details {
    margin: 18px 0 24px;
    padding: 16px 18px;
    background: #fff7f8;
    border: 1px solid var(--cor-fundo);
    border-radius: 8px;
}

.category-details summary {
    color: var(--cor-primaria);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.category-details .category-list {
    margin-top: 14px;
    margin-bottom: 0;
}

/*==========================================================
    2. ENCOMENDAS E PRONTA ENTREGA
==========================================================*/
.orders-info {
    max-width: 1200px;
    margin: 20px auto 45px;
    padding: 32px;
    background: #fff7f8;
    border: 1px solid var(--cor-fundo);
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(60, 33, 21, 0.08);
    scroll-margin-top: 100px;
}

.orders-heading {
    text-align: center;
    margin-bottom: 24px;
}

.orders-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cor-primaria);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.orders-heading h3 {
    color: var(--cor-secundaria);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.order-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 24px;
    background: white;
    border: 1px solid rgba(253, 0, 117, 0.14);
    border-radius: 8px;
}

.order-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    background: var(--cor-fundo);
    color: var(--cor-primaria);
    border-radius: 50%;
    font-size: 1.2rem;
}

.order-option h4 {
    min-height: 58px;
    margin-bottom: 12px;
    color: var(--cor-secundaria);
    font-size: 1.35rem;
    line-height: 1.3;
}

.order-option p {
    margin-bottom: 14px;
    color: var(--cor-secundaria);
    font-size: 1rem;
    line-height: 1.65;
}

.btn-whatsapp {
    margin-top: auto;
}

.btn-whatsapp i {
    margin-right: 6px;
}

/*==========================================================
    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;
    cursor: pointer;
}

.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: center;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.card-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    background: var(--cor-fundo);
    border-radius: 999px;
    font-size: 17px;
    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;
}

@media (max-width: 768px) {
    #general-intro,
    .category-description {
        margin: 24px auto 30px;
        padding: 0;
    }

    .intro-title {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .intro-description,
    .category-description p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .category-list-title {
        font-size: 0.98rem;
    }

    .category-details {
        padding: 14px;
    }

    .category-details summary {
        font-size: 1rem;
    }

    .orders-info {
        padding: 22px 16px;
        margin: 10px auto 35px;
    }

    .orders-heading h3 {
        font-size: 1.2rem;
    }

    .orders-grid {
        grid-template-columns: 1fr;
    }

    .order-option {
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }

    .order-option h4 {
        min-height: auto;
        font-size: 1.05rem;
    }

    .order-option p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .filter-buttons {
        gap: 0.65rem;
    }

    .btn-filter {
        padding: 8px 14px;
        font-size: 0.92rem;
    }

    .cards {
        grid-template-columns: minmax(0, 1fr);
        max-width: 320px;
        padding: 18px 0;
    }

    .card-title {
        font-size: 16px;
        min-height: 42px;
    }

    .card-price {
        font-size: 16px;
    }

    .btn-whatsapp {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .category-list {
        margin-left: 18px;
        padding-left: 16px;
        text-align: left;
        font-size: 0.98rem;
        line-height: 1.55;
    }
}
