/* ==================== PRODUCT CARDS MOBILE OPTIMIZATION ==================== */
/* Organiza os cards de produtos para melhor visualização no mobile */

@media (max-width: 767px) {
    /* Ajustar o grid de produtos para mobile */
    .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
        width: 100% !important;
        display: grid !important;
    }
    
    /* Ajustar os cards de produto para mobile */
    .product-card {
        margin-bottom: 0 !important;
        width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
        isolation: isolate !important;
    }
    
    .product-card > div {
        border: 1px solid #e5e7eb !important;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Garantir que o conteúdo do card ocupe o espaço disponível */
    .product-card > div > a {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }
    
    /* Título do produto com altura fixa para alinhamento */
    .product-card .product-title {
        min-height: 2.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.75rem 0.75rem 0 0.75rem;
    }
    
    /* Área de conteúdo com altura mínima */
    .product-card > div > a > div:last-child {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0.75rem;
    }
    
    /* Área de botões com altura mínima fixa para alinhamento */
    .product-card > div > div:last-child {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex-shrink: 0;
        padding: 0.75rem;
    }
    
    /* Ajustar a altura do badge */
    .product-card .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Ajustar o preço */
    .product-price {
        font-size: 1.125rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    /* Ajustar os botões */
    .product-card .btn-whatsapp,
    .product-card .btn-details {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    /* Remover bordas arredondadas dos cards */
    .product-card .rounded-2xl,
    .product-card .rounded-lg,
    .product-card .rounded-md,
    .product-card .rounded-full {
        border-radius: 0 !important;
    }
    
    /* Remover sombras dos cards */
    .product-card .shadow-lg,
    .product-card .shadow-2xl,
    .product-card .hover\:shadow-2xl {
        box-shadow: none !important;
    }
    
    /* Garantir que os cards não interfiram com o menu mobile */
    .product-card,
    .product-card * {
        pointer-events: auto !important;
        z-index: auto !important;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 480px) {
    .grid.grid-cols-2 {
        padding: 0 0.25rem !important;
    }
    
    .product-card .product-title {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.5rem 0 0.5rem !important;
    }
    
    .product-card > div > div:last-child {
        padding: 0.5rem !important;
    }
    
    .product-card .btn-whatsapp,
    .product-card .btn-details {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .product-price {
        font-size: 1rem !important;
    }
}