/* Estilos específicos para dispositivos móveis */

/* Aplicar apenas em telas menores que 768px */
@media (max-width: 767.98px) {
    /* Cabeçalho móvel */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-header .logo img {
        height: 40px;
        width: auto;
        max-width: 150px;
        object-fit: contain;
    }

    .mobile-header .mobile-actions {
        display: flex;
        gap: 15px;
    }

    .mobile-header .mobile-actions .btn {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

    /* Ajuste para o conteúdo principal */
    body {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    /* Rodapé móvel */
    .mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-footer .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
    }

    .mobile-footer .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    /* Ajustes para cards e produtos */
    .card {
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .product-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .product-card .card-footer {
        margin-top: auto;
    }

    /* Ajustes para formulários */
    .form-control, .form-select, .btn {
        font-size: 16px; /* Evita zoom em iPhones */
        height: auto;
        padding: 12px 15px;
    }

    .btn {
        border-radius: 8px;
    }

    /* Checkout */
    .checkout-header {
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .payment-methods .form-check {
        padding: 15px 10px;
    }

    /* Ajustes para tabelas */
    .table-responsive {
        margin-bottom: 15px;
    }

    /* Ajustes para o carrinho */
    .cart-item {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* Melhorias para inputs de quantidade */
    .quantity-input {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px 0;
    }

    .quantity-input .btn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .quantity-input input {
        width: 50px;
        text-align: center;
        margin: 0 5px;
        font-size: 16px;
    }

    /* Melhorias para botões de ação */
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .action-buttons .btn {
        flex: 1;
    }

    /* Melhorias para o processo de checkout */
    .checkout-steps {
        display: flex;
        overflow-x: auto;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .checkout-step {
        flex: 0 0 auto;
        width: 80px;
        text-align: center;
        padding: 10px 5px;
        position: relative;
    }

    .checkout-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        right: -15px;
        width: 30px;
        height: 2px;
        background-color: #dee2e6;
    }

    .checkout-step.active {
        color: #0d6efd;
        font-weight: bold;
    }

    .checkout-step.active::after {
        background-color: #0d6efd;
    }

    .checkout-step .step-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px;
        font-size: 1.5rem;
        color: #6c757d;
    }

    .checkout-step.active .step-icon {
        background-color: #e7f1ff;
        color: #0d6efd;
    }
    
    /* Melhorias para responsividade geral */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.3rem;
    }
    
    /* Ajustes para a página de busca */
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    /* Ajustes para a página de produto */
    .product-images {
        margin-bottom: 20px;
    }
    
    .product-details {
        padding: 15px;
    }
    
    /* Ajustes para a página de carrinho */
    .cart-summary {
        position: sticky;
        bottom: 70px;
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 20px;
    }
}
