/* static/components/cards.css */

/* --- CARDS CAJU GO v1.1 --- */

/* Card Genérico (Containers de Seção) */
.card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); /* 20px - Bem arredondado */
    box-shadow: var(--shadow-md);
    padding: 24px;
    /* Backdrop filter removido pois usamos fundo sólido agora */
}

/* Card do Menu (Item de Produto) */
.menu-card {
    display: grid;
    /* Desktop: Imagem (110px) | Conteúdo (Fluido) | Preço/Ação (Auto) */
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); /* 12px */
    padding: 12px;
    
    box-shadow: var(--shadow-sm);
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--caju-orange); /* Feedback visual da marca */
}

/* Imagem do Produto */
.menu-thumb {
    width: 110px;
    height: 90px;
    object-fit: cover;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
}

/* Corpo do Texto */
.menu-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Impede que texto longo quebre o grid */
}

.menu-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--verde-floresta);
    margin: 0;
    line-height: 1.3;
}

.menu-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    
    /* Limita a 2 linhas e coloca reticências (...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Preço */
.price-new {
    color: var(--caju-orange); /* Laranja para gerar apetite/destaque */
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap;
}

/* AJUSTES MOBILE (Layout Vertical / Estilo Feed) */
@media (max-width: 480px) {
    .menu-card {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-radius: var(--radius-lg); /* Mais arredondado no mobile */
        align-items: stretch; /* Ocupa largura total */
    }

    .menu-thumb {
        width: 100%;
        height: 180px; /* Foto grande destaque */
        border-radius: 0;
    }

    .menu-body {
        padding: 16px 16px 8px 16px;
    }

    .menu-title {
        font-size: 18px; /* Título maior no mobile */
    }

    .menu-desc {
        -webkit-line-clamp: 3; /* Permite mais texto no mobile */
    }
    
    /* No mobile, o preço vai para baixo do texto com padding */
    .menu-card .price-new {
        padding: 0 16px 16px 16px;
        text-align: left;
        font-size: 20px; /* Preço bem grande */
    }
}