/**
 * CARRINHO/SACOLINHA - CSS DESKTOP
 * Layout otimizado para desktop (768px+)
 */

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    /* ========================================
       BADGE - TABLET/DESKTOP
       ======================================== */

    .badge-carrinho {
        bottom: 40px;
        right: 30px;
        width: 70px;
        height: 70px;
        font-size: 18px;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
        cursor: pointer;
    }

    .badge-carrinho:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    }

    .badge-numero {
        font-size: 16px;
    }

    .badge-icone {
        font-size: 28px;
    }

    /* ========================================
       MODAL - TABLET/DESKTOP
       ======================================== */

    .modal-carrinho {
        position: fixed;
        bottom: auto;
        left: 50%;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        height: 70vh;
        max-height: 600px;
        border-radius: 12px;
        animation: slideInCenter 0.3s ease;
    }

    @keyframes slideInCenter {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    /* ========================================
       HEADER - TABLET/DESKTOP
       ======================================== */

    .modal-carrinho-header {
        padding: 20px;
    }

    .modal-carrinho-header h2 {
        font-size: 22px;
    }

    .btn-fechar-carrinho {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .btn-fechar-carrinho:hover {
        background: #e0e0e0;
    }

    /* ========================================
       ITENS - TABLET/DESKTOP
       ======================================== */

    .modal-carrinho-itens {
        padding: 20px;
        gap: 15px;
    }

    .item-carrinho {
        grid-template-columns: 80px 1fr 100px 40px;
        gap: 15px;
        padding: 15px;
    }

    .item-carrinho:hover {
        background: #f5f5f5;
    }

    .item-carrinho-imagem {
        width: 80px;
        height: 80px;
    }

    .item-carrinho-info h4 {
        font-size: 14px;
    }

    .item-carrinho-quantidade {
        gap: 8px;
        padding: 6px;
    }

    .btn-qtd {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .btn-qtd:hover {
        background: #FF6B35;
        color: white;
    }

    .item-carrinho-quantidade input {
        width: 28px;
        font-size: 13px;
    }

    .btn-remover {
        font-size: 20px;
    }

    .btn-remover:hover {
        transform: scale(1.3);
        color: red;
    }

    /* ========================================
       RESUMO - TABLET/DESKTOP
       ======================================== */

    .modal-carrinho-resumo {
        padding: 18px 20px;
    }

    .resumo-linha {
        font-size: 15px;
    }

    /* ========================================
       BOTÕES - TABLET/DESKTOP
       ======================================== */

    .modal-carrinho-acoes {
        padding: 18px 20px;
        gap: 12px;
    }

    .btn-limpar-carrinho,
    .btn-fazer-pedido {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }

    .btn-limpar-carrinho:hover {
        background: #e0e0e0;
    }

    .btn-fazer-pedido:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    }

    /* ========================================
       NOTIFICAÇÕES - TABLET/DESKTOP
       ======================================== */

    .notificacao-carrinho {
        top: 40px;
        left: auto;
        right: 40px;
        width: auto;
        max-width: 400px;
        font-size: 14px;
    }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .badge-carrinho {
        width: 75px;
        height: 75px;
    }

    .badge-numero {
        font-size: 18px;
    }

    .badge-icone {
        font-size: 32px;
    }

    .modal-carrinho {
        max-width: 550px;
        max-height: 650px;
    }

    .modal-carrinho-header h2 {
        font-size: 24px;
    }

    .item-carrinho {
        grid-template-columns: 100px 1fr 120px 40px;
        gap: 18px;
        padding: 18px;
    }

    .item-carrinho-imagem {
        width: 100px;
        height: 100px;
    }

    .item-carrinho-info h4 {
        font-size: 15px;
    }

    .item-carrinho-quantidade {
        gap: 10px;
        padding: 8px;
    }

    .btn-qtd {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .item-carrinho-quantidade input {
        width: 32px;
        font-size: 14px;
    }

    .btn-limpar-carrinho,
    .btn-fazer-pedido {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 48px;
    }

    .notificacao-carrinho {
        right: 50px;
        max-width: 450px;
        font-size: 15px;
    }
}

/* ========================================
   LARGE DESKTOP (1280px+)
   ======================================== */

@media (min-width: 1280px) {
    .badge-carrinho {
        bottom: 50px;
        right: 40px;
    }

    .modal-carrinho {
        max-width: 600px;
    }

    .item-carrinho {
        gap: 20px;
        padding: 20px;
    }

    .item-carrinho-imagem {
        width: 110px;
        height: 110px;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .badge-carrinho,
    .modal-carrinho,
    .overlay-carrinho,
    .notificacao-carrinho {
        display: none !important;
    }
}
