/* Badges fallback - garantir compatibilidade com classes usadas no tema */
.badge {
	display: inline-block;
	padding: .25em .4em;
	font-size: 75%;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .375rem;
	color: #fff;
}

:root {
	--badge-success-bg: #28a745; /* verde padrão bootstrap */
	--badge-primary-bg: #007bff;
	--badge-warning-bg: #ffc107;
	--badge-secondary-bg: #6c757d;
	--badge-tertiary-bg: #6f42c1; /* fallback roxo usado antes */
}

.badge-success { background-color: var(--badge-success-bg); }
.badge-primary { background-color: var(--badge-primary-bg); }
.badge-warning { background-color: var(--badge-warning-bg); color: #212529; }
.badge-secondary { background-color: var(--badge-secondary-bg); }
.badge-tertiary { background-color: var(--badge-tertiary-bg); }

/* ========================================
   ESTILOS GLOBAIS DE BOTÕES
   ======================================== */

/* Remover underline de todos os botões (links e buttons) */
a.btn,
a.btn:hover,
a.btn:active,
a.btn:visited,
a.btn:focus {
    text-decoration: none !important;
}

.btn,
.btn:hover,
.btn:active,
.btn:visited,
.btn:focus {
    text-decoration: none !important;
}

/* Garantir texto branco em botões links */
a.btn,
a.btn:hover,
a.btn:active,
a.btn:visited,
a.btn:focus {
    color: white !important;
}

/* Botão outline primary - melhorar visibilidade */
.btn-outline-primary {
    --bs-btn-color: #0d6efd;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #0d6efd;
    color: #0d6efd !important;
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

a.btn-outline-primary {
    color: #0d6efd !important;
    text-decoration: none !important;
}

a.btn-outline-primary:hover {
    color: #fff !important;
}

/* ========================================
   MEDIA QUERIES RESPONSIVAS - MOBILE
   ======================================== */

/* Mobile First - Smartphones (< 576px) */
@media (max-width: 575.98px) {
    /* Textos maiores para legibilidade */
    body {
        font-size: 14px;
    }
    
    h1, .text-5 { 
        font-size: 1.5rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.25rem !important; 
    }
    
    h3, .text-3 { 
        font-size: 1.1rem !important; 
    }
    
    /* Botões ocupam largura total em mobile */
    .btn-modern,
    .btn-success,
    .btn-primary {
        width: 100%;
        margin-bottom: 10px;
        min-height: 44px; /* Área de toque mínima */
    }
    
    /* Botões de navegação */
    .btn-navigation {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Cards com padding reduzido */
    .card-body {
        padding: 15px;
    }
    
    /* Formulários - fonte 16px evita zoom no iOS */
    .form-control,
    .form-control-lg {
        font-size: 16px !important;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 44px; /* Área de toque */
    }
    
    /* Alertas compactos */
    .alert {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Header compacto */
    .header-container {
        padding: 10px 15px !important;
    }
    
    .header-row {
        flex-direction: column;
        text-align: center;
    }
    
    /* Ícones sociais */
    .header-social-icons li {
        margin: 0 5px;
    }
    
    /* Controles de quantidade (stepper) */
    .qty-stepper {
        min-width: 120px;
    }
    
    .qty-stepper-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }
    
    .qty-stepper-input {
        min-height: 36px;
        font-size: 16px;
    }
    
    /* Tabelas responsivas - melhorar scroll */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Espaçamento entre elementos */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Logo menor em mobile */
    .logo img {
        max-width: 80px;
        height: auto;
    }
    
    /* Footer centralizado */
    footer .row > div {
        text-align: center !important;
        margin-bottom: 15px;
    }
    
    /* Imagens responsivas */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Container principal */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Cards de produto mobile */
    .mobile-product-card {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        margin-bottom: 6px !important;
        overflow: hidden;
    }
    
    .mobile-product-card-body {
        padding: 0 !important;
        display: flex;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
    }
    
    /* COLUNA 1: Imagem */
    .mobile-product-card-image {
        flex-shrink: 0;
        width: 50px;
        height: auto;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* COLUNA 2: Info (Nome + Marca + Preço) */
    .mobile-product-card-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 8px 10px;
        min-width: 0;
    }
    
    .mobile-product-card-name {
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
        word-break: break-word;
        margin-bottom: 2px;
        white-space: normal;
    }
    
    .mobile-product-card-brand {
        font-size: 9px;
        color: #999;
        margin-bottom: 3px;
        line-height: 1.2;
    }
    
    .mobile-product-card-price {
        font-size: 13px;
        font-weight: bold;
        color: #28a745;
        line-height: 1;
    }
    
    /* COLUNA 3: Controles (Qty + Subtotal + Delete) */
    .mobile-product-card-controls {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px;
        gap: 6px;
        background: #f9f9f9;
        border-left: 1px solid #eee;
        min-height: 70px;
    }
    
    .mobile-product-card .qty-stepper {
        display: flex;
        gap: 1px;
        align-items: center;
    }
    
    .mobile-product-card .qty-stepper-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
        background: #e0e0e0;
        color: #333;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        transition: background 0.2s;
    }
    
    .mobile-product-card .qty-stepper-btn:hover:not(:disabled) {
        background: #d0d0d0;
    }
    
    .mobile-product-card .qty-stepper-btn:active:not(:disabled) {
        background: #b0b0b0;
    }
    
    .mobile-product-card .qty-stepper-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .mobile-product-card .qty-stepper-input {
        width: 26px;
        height: 22px;
        text-align: center;
        font-size: 10px;
        border: 1px solid #ddd;
        border-radius: 2px;
        margin: 0;
        padding: 0;
        font-weight: bold;
    }
    
    .mobile-product-card-subtotal {
        text-align: center;
        white-space: nowrap;
        font-size: 11px;
        font-weight: bold;
        color: #28a745;
    }
    
    .mobile-product-card-delete {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 11px;
        margin-top: 2px;
    }
    
    /* Melhorar visualização de badges em mobile */
    .mobile-product-card .badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    /* Cabeçalho de lista em mobile */
    .card.bg-dark h5 {
        font-size: 13px;
    }
    
    /* Total geral em mobile */
    .card.bg-success h4 {
        font-size: 14px;
    }
    
    .card.bg-success h3 {
        font-size: 22px;
    }
    
    /* Ajustar títulos principais */
    h4.card-title {
        font-size: 18px !important;
    }
    
    /* Melhorar legibilidade de textos informativos */
    .text-info {
        font-size: 13px !important;
    }
    
    /* Cards de série em mobile */
    .serie-card-mobile {
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid #ddd;
        border-radius: 8px;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        user-select: none;
        -webkit-user-select: none;
        min-height: 60px;
    }
    
    .serie-card-mobile:hover {
        border-color: #28a745;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .serie-card-mobile:active {
        transform: scale(0.98);
        background-color: #f0fff4;
    }
    
    .serie-card-mobile.selected {
        border-color: #28a745;
        background-color: #f0fff4;
        border-width: 3px;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }
    
    .serie-card-mobile .card-body {
        padding: 20px !important;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .serie-card-mobile h5 {
        font-size: 16px;
        color: #333;
        margin: 0;
        line-height: 1.4;
    }
    
    .serie-card-mobile.selected h5 {
        color: #28a745;
        font-weight: 700;
    }
    
    .serie-card-mobile .check-icon {
        flex-shrink: 0;
    }
}/* Tablets Portrait (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Botões podem ficar lado a lado em tablets */
    .btn-modern,
    .btn-success,
    .btn-primary {
        width: auto;
        min-width: 120px;
    }
    
    /* Grid mais flexível */
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Tablets Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Ajustes finos para tablet landscape */
    h1, .text-5 { 
        font-size: 2rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.5rem !important; 
    }
}

/* Desktop (≥ 992px) - Estilos padrão já aplicados pelo tema */
@media (min-width: 992px) {
    /* Garantir que tabelas não quebrem em desktop */
    .table-responsive {
        overflow-x: visible;
    }
}

/* Ajustes específicos para iOS */
@supports (-webkit-touch-callout: none) {
    /* Evitar zoom em inputs no iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Ajustes para modo paisagem em mobile */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        font-size: 13px;
    }
    
    h1, .text-5 { 
        font-size: 1.3rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.1rem !important; 
    }
    
    /* Header mais compacto em landscape */
    .header-container {
        padding: 5px 10px !important;
    }
}

/* ========================================
   PRODUTOS EXTRAS - MOBILE OTIMIZAÇÃO
   ======================================== */

/* Mobile - Produtos Extras */
@media (max-width: 575.98px) {
    /* Cards de produtos mais espaçados e legíveis */
    .product {
        margin-bottom: 1.5rem !important;
    }
    
    .product-thumb-info {
        margin-bottom: 1rem !important;
    }
    
    /* Imagens dos produtos com altura mínima */
    .product-thumb-info-image img {
        min-height: 200px;
        object-fit: cover;
    }
    
    /* Badge maior e mais visível */
    .product-thumb-info-badges-wrapper .badge {
        font-size: 0.75rem !important;
        padding: 0.4em 0.6em !important;
    }
    
    /* Botão adicionar maior para toque fácil */
    .addtocart-btn-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .addtocart-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .addtocart-btn i {
        font-size: 1.5rem !important;
    }
    
    /* Nome do produto mais legível */
    .product h3 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Preço destacado */
    .product .price {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Grid com 1 coluna em mobile pequeno */
    .products.product-thumb-info-list > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Tablet Portrait - 2 colunas */
@media (min-width: 576px) and (max-width: 767.98px) {
    .product-thumb-info-image img {
        min-height: 180px;
        object-fit: cover;
    }
    
    .addtocart-btn-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .addtocart-btn {
        width: 44px !important;
        height: 44px !important;
    }
}

/* Tablet Landscape - 3 colunas */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-thumb-info-image img {
        min-height: 160px;
        object-fit: cover;
    }
}

/* Botão adicionar ao carrinho - Estados visuais */
.addtocart-btn {
    transition: all 0.2s ease;
    position: relative;
}

.addtocart-btn:hover:not(.disabled) {
    transform: scale(1.1);
}

.addtocart-btn:active:not(.disabled) {
    transform: scale(0.95);
}

.addtocart-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner no botão */
.addtocart-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botão "Carregar mais" mobile */
@media (max-width: 575.98px) {
    .load-more-wrapper .btn {
        width: 100%;
        max-width: 100%;
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        min-height: 50px;
    }
}

/* Melhorias no grid de produtos */
.products.product-thumb-info-list {
    display: flex;
    flex-wrap: wrap;
}

.products.product-thumb-info-list > div {
    display: flex;
    flex-direction: column;
}

.products.product-thumb-info-list .product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========================================
   FASE 1 - OTIMIZAÇÕES MOBILE COMPLETAS
   ======================================== */

/* Otimizações de Viewport e Touch */
@media (max-width: 575.98px) {
    /* Remover highlight de tap em mobile */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Prevenir zoom duplo em iOS */
    a, button, input[type="button"], input[type="submit"] {
        touch-action: manipulation;
    }

    /* MODAIS RESPONSIVOS */
    .modal-dialog {
        margin: 10px auto;
    }
    
    .modal-content {
        border-radius: 0;
    }
    
    .modal-header {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
        padding: 15px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 15px;
        border-top: 1px solid #dee2e6;
    }

    /* FORMULÁRIOS OTIMIZADOS */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    /* Radio/Checkbox maiores para toque */
    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 3px;
    }
    
    .form-check-label {
        font-size: 14px;
        padding-left: 10px;
    }

    /* TABELAS EM MOBILE */
    table {
        font-size: 13px;
    }
    
    table th {
        padding: 10px 5px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    table td {
        padding: 10px 5px;
        word-break: break-word;
    }
    
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* LINKS E BOTÕES */
    a {
        -webkit-user-select: none;
        user-select: none;
    }
    
    .btn {
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 12px 20px;
        transition: all 0.2s ease;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }

    /* SPACING E LAYOUT */
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    section {
        padding: 20px 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* TIPOGRAFIA */
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    small, .text-small {
        font-size: 12px;
    }

    /* LISTAS */
    .list-group-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .list-group-item a {
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .btn-modern,
    .btn-success,
    .btn-primary {
        width: auto;
        min-width: 120px;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Tablets Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1, .text-5 { 
        font-size: 2rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.5rem !important; 
    }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
    .table-responsive {
        overflow-x: visible;
    }
}

/* iOS Adjustments */
@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        font-size: 13px;
    }
    
    h1, .text-5 { 
        font-size: 1.3rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.1rem !important; 
    }
    
    .header-container {
        padding: 5px 10px !important;
    }
}

/* ========================================
   FASE 1 - OTIMIZAÇÕES MOBILE ADICIONAIS
   ======================================== */

/* 1. OTIMIZAÇÃO DE VIEWPORT E TOUCH */
@media (max-width: 575.98px) {
    /* Remover highlight de tap */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Evitar zoom duplo em iOS */
    a, button, input[type="button"], input[type="submit"], .btn {
        touch-action: manipulation;
    }
    
    /* Scroll suave em touch devices */
    body {
        -webkit-touch-callout: none;
    }
}

/* 2. MELHORIAS EM MODAIS */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        padding: 15px;
        border-bottom: 1px solid #dee2e6;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 15px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 15px;
        border-top: 1px solid #dee2e6;
        flex-shrink: 0;
        display: flex;
        gap: 10px;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-height: 44px;
        margin: 0;
    }
}

/* 3. MELHORIAS EM FORMULÁRIOS */
@media (max-width: 575.98px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    /* Aumentar campos de input */
    .form-control,
    .form-control-lg,
    .form-select {
        min-height: 44px;
        font-size: 16px;
        padding: 10px 12px;
    }
    
    /* Radio/Checkbox maiores */
    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 3px;
        cursor: pointer;
    }
    
    .form-check-label {
        font-size: 14px;
        padding-left: 10px;
        cursor: pointer;
        user-select: none;
    }
    
    /* Textos de ajuda */
    .form-text {
        font-size: 12px;
        margin-top: 5px;
    }
}

/* 4. MELHORIAS EM TABELAS */
@media (max-width: 575.98px) {
    table {
        font-size: 13px;
    }
    
    table thead {
        background-color: #f8f9fa;
    }
    
    table thead th {
        padding: 10px 5px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #dee2e6;
    }
    
    table tbody td {
        padding: 10px 5px;
        word-break: break-word;
        vertical-align: middle;
    }
    
    /* Table responsive container */
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 transparent;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
}

/* 5. MELHORIAS EM LINKS E BOTÕES */
@media (max-width: 575.98px) {
    /* Remover seleção padrão em links (exceto botões) */
    a:not(.btn):not([class*="btn-"]) {
        -webkit-user-select: none;
        user-select: none;
        text-decoration: none;
        color: inherit;
    }
    
    a:not(.btn):not([class*="btn-"]):visited {
        color: inherit;
    }
    
    /* Melhorar botões */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 4px;
        -webkit-user-select: none;
        user-select: none;
        text-decoration: none !important;
    }
    
    /* Remover underline de links que são botões */
    a.btn {
        text-decoration: none !important;
        color: white !important;
    }
    
    a.btn:hover {
        text-decoration: none !important;
        color: white !important;
    }
    
    a.btn:active {
        text-decoration: none !important;
        color: white !important;
    }
    
    a.btn:visited {
        text-decoration: none !important;
        color: white !important;
    }
    
    a.btn:focus {
        text-decoration: none !important;
        color: white !important;
    }
    
    /* Garantir cores específicas para tipos de botão */
    a.btn-primary,
    a.btn-success,
    a.btn-danger,
    a.btn-warning,
    a.btn-info {
        color: white !important;
    }
    
    a.btn-primary:hover,
    a.btn-success:hover,
    a.btn-danger:hover,
    a.btn-warning:hover,
    a.btn-info:hover {
        color: white !important;
    }
    
    a.btn-outline-primary,
    a.btn-outline-secondary {
        color: inherit !important;
    }
    
    a.btn-outline-primary:hover {
        color: white !important;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .btn:focus {
        outline: 2px solid transparent;
        outline-offset: 2px;
    }
    
    /* Breadcrumb em mobile */
    .breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        padding: 0;
        margin-bottom: 0;
        height: 44px;
        line-height: 44px;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
        height: 44px;
        line-height: 44px;
    }
    
    .breadcrumb-item.active {
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 44px;
        line-height: 44px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        display: inline;
        padding: 0 2px;
        flex-shrink: 0;
        height: 44px;
        line-height: 44px;
    }
    
    /* Estados de botão */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    /* Botão "Quero comprar essa lista" - otimizado para mobile */
    a[href*="/listas/comprar"] {
        font-size: 13px !important;
    }
}

/* 6. MELHORIAS DE LAYOUT E SPACING */
@media (max-width: 575.98px) {
    /* Container responsivo */
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Sections */
    section {
        padding: 20px 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .px-3 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Row com gap */
    .row {
        gap: 12px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .card-body {
        padding: 12px 15px;
    }
    
    .card-header {
        padding: 12px 15px;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Otimização de espaço para página de detalhes lista */
    .mobile-product-card {
        margin-bottom: 6px !important;
    }
    
    .mobile-product-card .card-body {
        padding: 8px !important;
    }
    
    /* Reduzir espaçamento das seções */
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .pb-3 {
        padding-bottom: 0.5rem !important;
    }
}

/* 7. MELHORIAS EM TIPOGRAFIA */
@media (max-width: 575.98px) {
    /* Padrão base já definido, melhorar line-height */
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    small, .text-small, .text-muted {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .text-info {
        font-size: 13px;
    }
    
    /* Listas */
    ul, ol {
        padding-left: 20px;
        margin-bottom: 1rem;
    }
    
    li {
        margin-bottom: 0.5rem;
    }
}

/* 8. MELHORIAS EM LISTAS */
@media (max-width: 575.98px) {
    .list-group {
        border-radius: 4px;
        overflow: hidden;
    }
    
    .list-group-item {
        padding: 12px 15px;
        font-size: 14px;
        border: 1px solid #dee2e6;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .list-group-item a {
        display: block;
        width: 100%;
        color: #007bff;
        text-decoration: none;
    }
    
    .list-group-item a:visited {
        color: #5a378d;
    }
}

/* 9. OTIMIZAÇÕES DE PERFORMANCE */
@media (max-width: 575.98px) {
    /* Usar GPU acceleration */
    .modal-dialog,
    .card,
    .btn,
    .list-group-item {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Melhorar performance de scroll */
    .table-responsive,
    .modal-body {
        will-change: scroll-position;
    }
}

/* 10. ACESSIBILIDADE */
@media (max-width: 575.98px) {
    /* Focus visible para navegação por teclado */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #0056b3;
        outline-offset: 2px;
    }
    
    /* Melhorar contraste */
    body {
        color: #212529;
        background-color: #fff;
    }
    
    /* Links visíveis */
    a {
        color: #0056b3;
    }
}

/* PREFERÊNCIAS DE REDUÇÃO DE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* SUPORTE A ORIENTAÇÃO LANDSCAPE EM MOBILE */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        font-size: 13px;
    }
    
    h1, .text-5 { 
        font-size: 1.3rem !important; 
    }
    
    h2, .text-4 { 
        font-size: 1.1rem !important; 
    }
    
    .header-container {
        padding: 5px 10px !important;
    }
    
    .modal-content {
        height: 100vh;
    }
}

/* OTIMIZAÇÃO DO ÍCONE DO CARRINHO PARA MOBILE */
@media (max-width: 575.98px) {
    /* Padronizar tamanho dos ícones no header mobile */
    .header-nav-features-cart .header-nav-top-icon-img {
        height: 20px !important;
        width: auto;
    }
    
    .header-extra-info-icon i.icon-user {
        font-size: 20px !important;
    }
    
    /* Ajustar espaçamento do carrinho */
    .header-nav-features-cart {
        margin-left: 8px !important;
    }
    
    /* Melhorar visualização da quantidade de itens */
    .cart-info {
        font-size: 12px !important;
    }
    
    .cart-qty {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    /* Tablet em portrait */
    .header-nav-features-cart .header-nav-top-icon-img {
        height: 24px !important;
    }
    
    .header-extra-info-icon i.icon-user {
        font-size: 24px !important;
    }
}

/* HEADER MOBILE OTIMIZADO - LAYOUT COMPACTO EM 2 LINHAS */
@media (max-width: 575.98px) {
    /* Header container */
    .header-body {
        padding: 6px 0 !important;
    }
    
    .header-container {
        padding: 6px 8px !important;
        max-width: 100% !important;
    }
    
    /* Primeira linha: Logo + Escola + Ícones */
    .header-row.justify-content-between {
        display: grid !important;
        grid-template-columns: 50px 1fr auto auto auto !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
        row-gap: 0 !important;
        padding: 0 !important;
        height: 35px !important;
        min-height: 35px !important;
    }
    
    .header-column {
        display: contents !important;
    }
    
    /* Logo pequena */
    .header-logo {
        grid-column: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .header-logo img {
        width: 40px !important;
        height: auto !important;
        display: block !important;
        max-height: 35px !important;
        margin: 0 !important;
    }
    
    /* Escola compacta - CENTRADA */
    .header-nav-features-no-border {
        grid-column: 2 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .header-nav-feature {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 100% !important;
    }
    
    .header-nav-features h4 {
        font-size: 0.9rem !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        font-weight: 600 !important;
        text-align: center !important;
    }
    
    /* WhatsApp compacto */
    .header-extra-info {
        grid-column: 3 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        height: 35px !important;
        width: auto !important;
    }
    
    .header-extra-info li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 35px !important;
    }
    
    .header-extra-info-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
    }
    
    .header-extra-info-icon i {
        font-size: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .header-extra-info-text {
        display: none !important;
    }
    
    .header-extra-info strong {
        font-size: 12px !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
    
    .header-extra-info a {
        font-size: 12px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    /* User icon CENTRADO */
    .d-flex.col-auto {
        grid-column: 4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 35px !important;
        width: auto !important;
        flex-wrap: nowrap !important;
    }
    
    .d-flex .header-extra-info {
        width: auto !important;
        height: 35px !important;
    }
    
    .d-flex .header-extra-info li {
        height: 35px !important;
        margin: 0 !important;
    }
    
    .header-extra-info-icon i.icon-user {
        font-size: 18px !important;
        line-height: 1 !important;
    }
    
    /* Cart container - CENTRADO */
    .header-nav-features.ps-0 {
        grid-column: 5 !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Cart icon CENTRADO - SEM DESLOCAMENTO */
    .header-nav-features-cart {
        margin: 0 !important;
        padding: 0 !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
    }
    
    .header-nav-features-cart a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 35px !important;
        padding: 0 !important;
        gap: 2px !important;
        margin: 0 !important;
    }
    
    .header-nav-features-cart .header-nav-top-icon-img {
        height: 20px !important;
        width: auto !important;
        display: block !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .cart-info {
        font-size: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }
    
    .cart-qty {
        font-size: 9px !important;
        padding: 0px 2px !important;
        font-weight: bold !important;
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        height: auto !important;
    }
    
    /* Segunda linha: Navbar */
    .header-row.justify-content-end {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }
    
    /* Menu hamburguer */
    .header-btn-collapse-nav {
        padding: 4px 8px !important;
        font-size: 20px !important;
        margin: 0 !important;
        background-color: #0078b5 !important;
        color: white !important;
        border-radius: 4px !important;
    }
    
    /* Navbar secundária */
    .header-nav-bar {
        padding: 4px 0 !important;
    }
}

/* Esconder elementos desnecessários em mobile */
@media (max-width: 575.98px) {
    .header-extra-info-text {
        display: none !important;
    }
}


/* BOTÕES RESPONSIVOS */
@media (max-width: 575.98px) {
    /* Garantir que botões tenham tamanho consistente */
    .btn {
        min-height: 44px !important;
        padding: 10px 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Botões full-width em mobile */
    .btn.btn-primary,
    .btn.btn-success,
    .btn-link {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Evitar truncar texto dos botões */
    .btn-link,
    .actions .btn {
        display: block !important;
        text-align: center !important;
    }
    
    /* Remover seta no mobile */
    .arrow-hide-mobile {
        display: none !important;
    }
    
    /* Botões 100% largura no mobile */
    .w-100-mobile {
        width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Cards de lista/série compactos no mobile */
    .lista-card,
    .card-selecionar {
        padding: 8px !important;
        min-height: auto !important;
    }
    
    .lista-card .card-body,
    .card-selecionar .card-body {
        padding: 12px 8px !important;
    }
    
    .lista-card i,
    .card-selecionar i {
        font-size: 32px !important;
        margin-bottom: 4px !important;
    }
    
    .lista-card h5,
    .card-selecionar h4 {
        font-size: 0.85rem !important;
        margin: 4px 0 !important;
    }
    
    .lista-card .text-5,
    .card-selecionar .text-5 {
        font-size: 0.9rem !important;
    }
    
    /* Reduzir espaçamento mb-5 no mobile */
    .col-sm-4,
    .col-lg-3 {
        margin-bottom: 24px !important;
    }
    
    /* Botões menores no mobile */
    .btn-lg {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    /* Reduzir botões de ação (btnRevisar, btnComprar, btnPular) */
    button#btnRevisar,
    button#btnComprar,
    button#btnPular {
        max-width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
        line-height: 1.2 !important;
        display: block !important;
    }
    
    button#btnComprar .btn-total {
        font-size: 0.65rem !important;
    }

    /* ===== NORMALIZAÇÃO DE BOTÕES MOBILE ===== */
    
    /* Botões padrão Bootstrap - melhor tamanho em mobile */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 6px;
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Botões secundários - outline com melhor contraste */
    .btn-outline-secondary {
        border: 2px solid #6c757d;
        color: #212529;
        background-color: #fff;
    }
    
    .btn-outline-secondary:hover {
        border-color: #5a6268;
        color: #212529;
        background-color: #f8f9fa;
    }
    
    .btn-outline-secondary:active {
        border-color: #4e555b;
        color: #fff;
        background-color: #5a6268;
    }
    
    /* Garantir que botões cinzas (btn-grey) tenham contraste adequado */
    .btn-grey {
        background-color: #6c757d;
        color: #fff;
        border: none;
    }
    
    .btn-grey:hover {
        background-color: #5a6268;
        color: #fff;
    }
    
    .btn-grey:active {
        background-color: #4e555b;
        color: #fff;
    }

    /* Desktop: Força texto escuro em botões cinzas para melhor contraste */
    @media (min-width: 576px) {
        .btn-grey,
        a.btn-grey,
        button.btn-grey {
            color: #1a1a1a !important;
        }
        
        .btn.btn-grey,
        a.btn.btn-grey {
            color: #1a1a1a !important;
        }
        
        .btn-grey:hover,
        a.btn-grey:hover,
        button.btn-grey:hover {
            color: #1a1a1a !important;
        }
        
        .btn-grey:active,
        a.btn-grey:active,
        button.btn-grey:active {
            color: #1a1a1a !important;
        }
    }

    /* ===== CORREÇÕES CORES E ELEVAÇÃO VISUAL ===== */

    /* Cards elevation - Elevação visual profissional */
    .card {
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12) !important;
        border-radius: 6px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
        transition: box-shadow 0.3s ease !important;
    }

    .card:active {
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    }

    /* Badges enhanced - Melhor visibilidade */
    .badge {
        padding: 0.35em 0.65em !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: inline-flex !important;
        align-items: center !important;
        min-height: 28px !important;
    }

    .badge-success {
        background: #28a745 !important;
        color: #fff !important;
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
    }

    .badge-warning {
        background: #ffc107 !important;
        color: #212529 !important;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3) !important;
    }

    .badge-danger {
        background: #dc3545 !important;
        color: #fff !important;
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
    }

    .badge-primary {
        background: #007bff !important;
        color: #fff !important;
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) !important;
    }

    .badge-secondary {
        background: #6c757d !important;
        color: #fff !important;
        box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3) !important;
    }

    /* Alert elevation - Sombra profissional */
    .alert {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        border-radius: 4px !important;
    }

    /* Button consistency - Padronização */
    .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: all 0.2s ease !important;
    }

    .btn:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }

    .btn-sm {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }

    .btn-lg {
        padding: 12px 20px !important;
        font-size: 16px !important;
        min-height: 48px !important;
    }

    /* Success button white text - Contraste garantido */
    .btn-success {
        background: #28a745 !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }

    /* Links enhancement - Melhor visibilidade */
    a {
        color: #0056b3 !important;
        font-weight: 500 !important;
        text-decoration: underline !important;
    }

    a:visited {
        color: #004085 !important;
    }

    a:active {
        color: #003366 !important;
    }

    /* ===== ESPAÇAMENTO OTIMIZADO ===== */

    /* Card margin reduction - Compactação */
    .card {
        margin-bottom: 0.8rem !important;
    }

    .card-body {
        padding: 10px 12px !important;
    }

    .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    .card-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Form spacing reduction - Formulários compactos */
    .form-group {
        margin-bottom: 1rem !important;
    }

    label {
        margin-bottom: 0.35rem !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #495057 !important;
    }

    .form-control {
        margin-bottom: 0.25rem !important;
    }

    .invalid-feedback,
    .valid-feedback {
        font-size: 11px !important;
        margin-top: 4px !important;
    }

    /* Container padding - Responsivo para ultra-small */
    @media (max-width: 375.98px) {
        .container,
        .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
    }

    /* Horizontal rules subtle - Divisores sutis */
    hr {
        margin: 1rem 0 !important;
        border: none !important;
        border-top: 1px solid #e8e8e8 !important;
        opacity: 0.6 !important;
    }

    /* Row compact spacing - Gaps reduzidos */
    .row {
        gap: 0.75rem !important;
    }

    /* Table density - Tabelas compactadas */
    table {
        font-size: 12px !important;
    }

    table th {
        padding: 8px 3px !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    table td {
        padding: 7px 3px !important;
        word-break: break-word !important;
    }

    tbody tr:nth-child(odd) {
        background-color: rgba(0, 0, 0, 0.02) !important;
    }

    /* Section padding - Espaçamento de seções */
    section {
        padding: 1rem 0 !important;
    }

    /* List group density */
    .list-group-item {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    /* Form feedback melhorado */
    .form-check-input {
        width: 18px !important;
        height: 18px !important;
        margin-top: 2px !important;
    }

    .form-check-label {
        font-size: 13px !important;
        padding-left: 8px !important;
        margin-bottom: 0 !important;
    }

    /* Modals com melhor handling de espaço */
    .modal-body {
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Summary cards com destaque */
    .card.bg-dark {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
        border: 1px solid rgba(26, 37, 47, 0.5) !important;
        color: #ecf0f1 !important;
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* Subtle scrollbar styling */
    .table-responsive {
        scrollbar-width: thin !important;
        scrollbar-color: #c1c1c1 transparent !important;
    }

    .table-responsive::-webkit-scrollbar {
        height: 6px !important;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1 !important;
        border-radius: 3px !important;
    }

    /* Accessibility - Toque mínimo 44px */
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Performance - GPU acceleration */
    .modal-dialog,
    .card,
    .btn {
        will-change: transform !important;
        transform: translateZ(0) !important;
    }

    /* Motion preferences */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }

    /* ===== NORMALIZAÇÃO BOTÕES ACTIONS MOBILE ===== */
    @media (max-width: 575.98px) {
        /* Normalizar todos os botões de ação */
        .btn {
            display: block !important;
            width: 100% !important;
            margin: 0 auto !important;
            margin-bottom: 10px !important;
            padding: 14px 16px !important;
            font-size: 14px !important;
            font-weight: 500 !important;
            text-align: center !important;
            border-radius: 6px !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
            transition: all 0.2s ease !important;
            min-height: 44px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        /* Botões com ícones - centralizar ícone */
        .btn i {
            margin-right: 6px !important;
            margin-left: 0 !important;
        }

        /* Botões de finalização - destaques */
        #finalizar-btn,
        #continue-btn {
            font-weight: 700 !important;
            min-height: 48px !important;
            padding: 12px 16px !important;
        }

        /* Botão SUCCESS (verde) */
        .btn-success {
            background-color: #28a745 !important;
            color: #ffffff !important;
            border: none !important;
        }

        .btn-success:hover {
            background-color: #218838 !important;
        }

        .btn-success:active {
            background-color: #1e7e34 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        }

        /* Botão PRIMARY (azul) */
        .btn-primary {
            background-color: #007bff !important;
            color: #ffffff !important;
            border: none !important;
        }

        .btn-primary:hover {
            background-color: #0056b3 !important;
        }

        .btn-primary:active {
            background-color: #004085 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        }

        /* Botão GREY (cinza) */
        .btn-grey {
            background-color: #6c757d !important;
            color: #ffffff !important;
            border: none !important;
        }

        .btn-grey:hover {
            background-color: #5a6268 !important;
        }

        .btn-grey:active {
            background-color: #4e555b !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        }

        /* Botão SECONDARY (cinza outline) */
        .btn-secondary {
            background-color: #e8eaed !important;
            color: #202124 !important;
            border: 1px solid #dadce0 !important;
        }

        .btn-secondary:hover {
            background-color: #d2d3d4 !important;
        }

        .btn-secondary:active {
            background-color: #dadce0 !important;
        }

        .btn-secondary:disabled {
            background-color: #e8eaed !important;
            color: #99a0a0 !important;
            opacity: 0.6 !important;
            cursor: not-allowed !important;
        }

        /* Container de botões - centralizado */
        form.text-center {
            padding: 16px 12px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
        }

        /* Card Total Geral - responsivo mobile */
        .total-geral-card {
            background-color: #1e7e34 !important;
            border: 2px solid #155724 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .total-geral-card .card-body {
            background-color: #1e7e34 !important;
            padding: 8px 10px !important;
        }

        .total-geral-card h4 {
            font-size: 11px !important;
            line-height: 1 !important;
            color: #ffffff !important;
            font-weight: 700 !important;
        }

        .total-geral-card h3 {
            font-size: 14px !important;
            line-height: 1 !important;
            color: #ffffff !important;
            font-weight: 700 !important;
        }

        .total-geral-card #total-geral {
            display: inline-block !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            white-space: nowrap !important;
            color: #ffffff !important;
        }

        /* Flex gap - suporte para mobile */
        .gap-1 {
            gap: 4px !important;
        }

        /* Flex direction mobile */
        .flex-column {
            flex-direction: column !important;
        }

        /* Flex direction desktop */
        @media (min-width: 768px) {
            .flex-md-row {
                flex-direction: row !important;
            }
        }

        /* White button text visibility */
        @media (min-width: 576px) {
            a.btn.btn-white {
                color: #1a1a1a !important;
            }
        }





