/* ARQUIVO: usuario/css/solicitar_materiais.css */
/**
 * Estilos para a página de solicitação de materiais
 * ✅ COM CONTADOR EXTERNO IMPLEMENTADO
 */

/* ==== CONTAINER PRINCIPAL ==== */
.solicitar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--cor-fundo);
    min-height: calc(100vh - 200px);
}

/* ==== HEADER DA PÁGINA ==== */
.solicitar-header {
    background: #e68a19;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left
}

.header-content {
    flex: 1;
    text-align: left;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.page-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==== CARRINHO RESUMO ==== */
.btn-carrinho,
#btn-ver-carrinho,
.header-actions .btn-carrinho {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    /* ✅ ESSENCIAL PARA CONTADOR EXTERNO */
    position: relative !important;
}

.btn-carrinho:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-carrinho:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carrinho-icon {
    font-size: 1.2rem;
}

/* ✅ CONTADOR EXTERNO - IMPLEMENTAÇÃO COMPLETA */
.carrinho-contador,
#carrinho-contador,
.btn-carrinho .carrinho-contador,
.header-actions .carrinho-contador,
.header-actions .btn-carrinho .carrinho-contador {
    /* ✅ POSICIONAMENTO EXTERNO */
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    
    /* ✅ RESETAR QUALQUER ESTILO ANTERIOR */
    margin: 0 !important;
    margin-left: 0 !important;
    float: none !important;
    
    /* ✅ APARÊNCIA DA BADGE */
    background: #dc3545 !important;
    color: white !important;
    
    /* ✅ FORMATO CIRCULAR */
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: none !important;
    
    /* ✅ CENTRALIZAR CONTEÚDO */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* ✅ TIPOGRAFIA */
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    
    /* ✅ EFEITOS */
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    
    /* ✅ Z-INDEX ALTO */
    z-index: 999 !important;
    
    /* ✅ TRANSIÇÕES */
    transition: all 0.3s ease !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ✅ ESTADO VAZIO - OCULTAR */
.carrinho-contador:empty,
.carrinho-contador[data-count="0"],
#carrinho-contador:empty,
#carrinho-contador[data-count="0"] {
    display: none !important;
    transform: scale(0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ✅ NÚMEROS MAIORES - FORMATO OVAL */
.carrinho-contador[data-count*="1"]:not([data-count="1"]),
.carrinho-contador[data-count*="2"],
.carrinho-contador[data-count*="3"],
.carrinho-contador[data-count*="4"],
.carrinho-contador[data-count*="5"],
#carrinho-contador[data-count*="1"]:not([data-count="1"]),
#carrinho-contador[data-count*="2"],
#carrinho-contador[data-count*="3"],
#carrinho-contador[data-count*="4"],
#carrinho-contador[data-count*="5"] {
    min-width: 26px !important;
    border-radius: 13px !important;
    padding: 0 3px !important;
}

/* ✅ ANIMAÇÕES */
@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: #28a745; }
    100% { transform: scale(1); }
}

.carrinho-contador.pulse,
#carrinho-contador.pulse {
    animation: pulse-badge 0.6s ease !important;
}

@keyframes shake-badge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.carrinho-contador.warning {
    background: #ffc107 !important;
    color: #000 !important;
}

.carrinho-contador.danger {
    background: #dc3545 !important;
    animation: shake-badge 0.5s ease-in-out !important;
}

/* ✅ RESPONSIVIDADE PARA O CONTADOR */
@media (max-width: 768px) {
    .carrinho-contador,
    #carrinho-contador,
    .btn-carrinho .carrinho-contador {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        top: -6px !important;
        right: -6px !important;
        min-width: 20px !important;
    }
    
    .carrinho-contador[data-count*="1"]:not([data-count="1"]),
    .carrinho-contador[data-count*="2"],
    .carrinho-contador[data-count*="3"],
    #carrinho-contador[data-count*="1"]:not([data-count="1"]),
    #carrinho-contador[data-count*="2"],
    #carrinho-contador[data-count*="3"] {
        min-width: 22px !important;
        border-radius: 11px !important;
    }
}

/* ==== SEÇÃO DE FILTROS ==== */
.filtros-section {
    background: var(--cor-fundo-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--sombra-pequena);
    border: 1px solid var(--cor-borda);
}

.filtros-container {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-label {
    font-weight: 600;
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.label-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.filtro-input {
    padding: 12px 15px;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transicao-rapida);
    background: var(--cor-fundo-card);
    color: var(--cor-texto);
    width: 100%;
    box-sizing: border-box;
}

.filtro-input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search-input-container {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cor-texto-secundaria);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all var(--transicao-rapida);
}

.search-clear:hover {
    background: var(--cor-fundo-hover);
    color: #dc3545;
}

.btn-limpar-filtros,
.btn-atualizar-estoque {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transicao-rapida);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-limpar-filtros:hover,
.btn-atualizar-estoque:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-atualizar-estoque {
    background: #17a2b8;
}

.btn-atualizar-estoque:hover {
    background: #138496;
}

/* ==== PRODUTOS EM DESTAQUE ==== */
.destaque-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.produtos-destaque {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.produto-destaque-card {
    background: var(--cor-fundo-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-pequena);
    transition: all var(--transicao-rapida);
    border: 2px solid var(--cor-borda);
    position: relative;
}

.produto-destaque-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-grande);
    border-color: #ff7b00;
}

.produto-destaque-imagem {
    position: relative;
    height: 150px;
    background: var(--cor-fundo-secundaria);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.produto-destaque-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-destaque-card:hover .produto-destaque-imagem img {
    transform: scale(1.05);
}

.produto-sem-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--cor-texto-secundaria);
}

.sem-imagem-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.produto-destaque-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 123, 0, 0.3);
}

.produto-destaque-info {
    padding: 20px;
}

.produto-codigo {
    color: var(--cor-texto-secundaria);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.produto-nome {
    font-weight: 700;
    color: var(--cor-texto);
    margin-bottom: 10px;
    line-height: 1.3;
    font-size: 1rem;
}

.produto-disponibilidade {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disponibilidade-icon {
    font-size: 1rem;
}

.produto-destaque-acao {
    padding: 0 20px 20px;
}

.btn-adicionar-destaque {
    width: 100%;
    background: linear-gradient(45deg, #1e88e5, #42a5f5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-adicionar-destaque:hover {
    background: linear-gradient(45deg, #1565c0, #1e88e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* ==== SEÇÃO DE PRODUTOS ==== */
.produtos-section {
    background: var(--cor-fundo-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--sombra-pequena);
    border: 1px solid var(--cor-borda);
}

.produtos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.produtos-contador {
    color: var(--cor-texto-secundaria);
    font-weight: 600;
}

.produtos-contador span {
    color: #1e88e5;
    font-weight: 700;
}

/* ==== GRID DE PRODUTOS ==== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.produto-card {
    background: var(--cor-fundo-card);
    border: 2px solid var(--cor-borda);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transicao-rapida);
    position: relative;
}

.produto-card:hover {
    border-color: #1e88e5;
    transform: translateY(-3px);
    box-shadow: var(--sombra-grande);
}

.produto-imagem {
    position: relative;
    height: 200px;
    background: var(--cor-fundo-secundaria);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.produto-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card:hover .produto-foto {
    transform: scale(1.05);
}

.produto-sem-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--cor-texto-secundaria);
}

.sem-foto-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.produto-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.produto-badge.destaque {
    background: linear-gradient(45deg, #ff7b00, #ff9500);
    box-shadow: 0 2px 8px rgba(255, 123, 0, 0.3);
}

.produto-badge.estoque-baixo {
    background: linear-gradient(45deg, #dc3545, #e85a6b);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.produto-info {
    padding: 20px;
}

.produto-detalhes {
    margin-top: 15px;
}

.produto-estoque {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.estoque-label {
    color: var(--cor-texto-secundaria);
}

.estoque-valor {
    color: #28a745;
    font-weight: 700;
}

.estoque-unidade {
    color: var(--cor-texto-secundaria);
    font-weight: normal;
}

/* ==== AÇÕES DO PRODUTO ==== */
.produto-acoes {
    padding: 20px;
    border-top: 1px solid var(--cor-borda);
    background: var(--cor-fundo-secundaria);
}

.quantidade-selector {
    margin-bottom: 15px;
}

.quantidade-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cor-texto);
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    overflow: hidden;
    background: var(--cor-fundo-card);
}

.btn-qtd {
    background: var(--cor-fundo-secundaria);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cor-texto-secundaria);
    transition: all var(--transicao-rapida);
    border-right: 1px solid var(--cor-borda);
}

.btn-qtd:hover {
    background: var(--cor-fundo-hover);
    color: var(--cor-texto);
}

.btn-qtd.btn-mais {
    border-right: none;
    border-left: 1px solid var(--cor-borda);
}

.input-quantidade {
    border: none;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    background: var(--cor-fundo-card);
    color: var(--cor-texto);
    min-width: 0;
}

.input-quantidade:focus {
    outline: none;
}

.btn-adicionar-produto {
    width: 100%;
    background: linear-gradient(45deg, #28a745, #34ce57);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-adicionar-produto:hover {
    background: linear-gradient(45deg, #218838, #28a745);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-adicionar-produto:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1rem;
}

/* ==== ESTADO VAZIO ==== */
.produtos-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--cor-texto-secundaria);
    display: none;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cor-texto);
}

.empty-description {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.empty-actions {
    margin-top: 30px;
}

/* ==== MODAIS - TEMA CLARO (PADRÃO) ==== */
body .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

body .modal.active {
    display: flex;
    opacity: 1;
}

body .modal .modal-container {
    background: #ffffff !important;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e9ecef !important;
    position: relative;
}

body .modal.active .modal-container {
    transform: scale(1) translateY(0);
}

body .modal .modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa !important;
    border-radius: 16px 16px 0 0;
}

body .modal .modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50 !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

body .modal .modal-title-icon {
    font-size: 1.3rem;
    color: #1e88e5 !important;
}

body .modal .modal-close {
    background: transparent !important;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6c757d !important;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .modal .modal-close:hover {
    background: #f8f9fa !important;
    color: #dc3545 !important;
    transform: scale(1.1);
}

body .modal .modal-content {
    padding: 30px;
    background: #ffffff !important;
}

body .modal .produto-modal-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa !important;
    border-radius: 12px;
    border: 1px solid #e9ecef !important;
    position: relative;
    overflow: hidden;
}

body .modal .produto-modal-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #1e88e5, #42a5f5) !important;
}

body .modal .produto-modal-codigo {
    color: #6c757d !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .modal .produto-modal-nome {
    font-weight: 700;
    color: #2c3e50 !important;
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.3;
}

body .modal .produto-modal-disponivel {
    color: #28a745 !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

body .modal .disponivel-icon {
    font-size: 1rem;
    color: #28a745 !important;
}

body .modal .modal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

body .modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body .modal .form-group label {
    font-weight: 600;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

body .modal .form-label-icon {
    font-size: 1rem;
    color: #6c757d !important;
}

body .modal .form-group textarea {
    border: 2px solid #e9ecef !important;
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    background: #ffffff !important;
    color: #495057 !important;
    font-family: inherit;
    line-height: 1.5;
}

body .modal .form-group textarea:focus {
    outline: none;
    border-color: #1e88e5 !important;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1) !important;
    transform: translateY(-1px);
}

body .modal .form-group textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

body .modal .modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #e9ecef !important;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa !important;
    border-radius: 0 0 16px 16px;
}

/* TEMA ESCURO - usando data-tema="escuro" */
html[data-tema="escuro"] body .modal .modal-container {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html[data-tema="escuro"] body .modal .modal-header {
    background: #222222 !important;
    border-bottom: 1px solid #333333 !important;
}

html[data-tema="escuro"] body .modal .modal-title {
    color: #ffffff !important;
}

html[data-tema="escuro"] body .modal .modal-title-icon {
    color: #64b5f6 !important;
}

html[data-tema="escuro"] body .modal .modal-close {
    color: #bbbbbb !important;
}

html[data-tema="escuro"] body .modal .modal-close:hover {
    background: #333333 !important;
    color: #f14668 !important;
}

html[data-tema="escuro"] body .modal .modal-content {
    background: #1a1a1a !important;
}

html[data-tema="escuro"] body .modal .produto-modal-info {
    background: #222222 !important;
    border: 1px solid #333333 !important;
}

html[data-tema="escuro"] body .modal .produto-modal-codigo {
    color: #bbbbbb !important;
}

html[data-tema="escuro"] body .modal .produto-modal-nome {
    color: #f5f5f5 !important;
}

html[data-tema="escuro"] body .modal .produto-modal-disponivel {
    color: #48c774 !important;
}

html[data-tema="escuro"] body .modal .disponivel-icon {
    color: #48c774 !important;
}

html[data-tema="escuro"] body .modal .form-group label {
    color: #f5f5f5 !important;
}

html[data-tema="escuro"] body .modal .form-label-icon {
    color: #bbbbbb !important;
}

html[data-tema="escuro"] body .modal .form-group textarea {
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
    border: 2px solid #333333 !important;
}

html[data-tema="escuro"] body .modal .form-group textarea:focus {
    border-color: #64b5f6 !important;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2) !important;
}

html[data-tema="escuro"] body .modal .form-group textarea::placeholder {
    color: #666666 !important;
}

html[data-tema="escuro"] body .modal .modal-footer {
    background: #222222 !important;
    border-top: 1px solid #333333 !important;
}

/* ==== CARRINHO FLUTUANTE ==== */
.carrinho-flutuante {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e9ecef;
}

.carrinho-flutuante[style*="block"] {
    transform: translateX(0);
}

.carrinho-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.carrinho-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.carrinho-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.carrinho-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-codigo {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.carrinho-item-nome {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.carrinho-item-qtd {
    color: #28a745;
    font-weight: 600;
    font-size: 0.85rem;
}

.carrinho-item-obs {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

.carrinho-item-acoes {
    display: flex;
    align-items: center;
}

.btn-remover-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-remover-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.carrinho-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.carrinho-total {
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.carrinho-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==== BOTÕES GLOBAIS ==== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primario {
    background: linear-gradient(45deg, #1e88e5, #42a5f5);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

.btn-primario:hover {
    background: linear-gradient(45deg, #1565c0, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.btn-neutro {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-neutro:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.modal-open {
    overflow: hidden;
}

/* ==== NOTIFICAÇÕES ==== */
.notificacao {
    position: fixed;
    top: 25px;
    right: 27%;
    transform: translateX(50%);
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 350px;
    min-width: 300px;
}

.notificacao.show {
    opacity: 1;
}

.notificacao.sucesso {
    border-left-color: #28a745;
}

.notificacao.erro {
    border-left-color: #dc3545;
}

.notificacao.aviso {
    border-left-color: #ffc107;
}

.notificacao-icone {
    font-size: 1.2rem;
}

.notificacao-texto {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

/* ==== HEADER STATS ==== */
.header-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.stat-value {
    font-weight: 700;
    color: #ffffff;
}

/* ==== RESPONSIVIDADE MELHORADA ==== */
@media (max-width: 768px) {
    .solicitar-container {
        padding: 15px;
    }
    
    .solicitar-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .header-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
    
    .filtros-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .produtos-destaque {
        grid-template-columns: 1fr;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
    }
    
    .produtos-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carrinho-flutuante {
        width: 100%;
        max-width: 400px;
    }
    
    /* Modal responsivo melhorado */
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-container {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 12px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
        border-radius: 0 0 12px 12px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .form-group textarea {
        min-height: 80px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .solicitar-header {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-icon {
        font-size: 1.5rem;
    }
    
    .header-stats {
        gap: 10px;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .produtos-section {
        padding: 20px 15px;
    }
    
    .produto-card {
        border-radius: 8px;
    }
    
    .produto-imagem {
        height: 150px;
    }
    
    .carrinho-flutuante {
        width: 100vw;
    }
    
    /* Modal ultra responsivo */
    .modal {
        padding: 5px;
        padding-top: 10px;
    }
    
    .modal-container {
        border-radius: 8px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header {
        padding: 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 10px 15px 15px;
        border-radius: 0 0 8px 8px;
    }
    
    .produto-modal-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .form-group {
        gap: 8px;
    }
}

/* ==== MELHORIAS DE ACESSIBILIDADE ==== */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-container,
    .btn,
    .produto-card,
    .notificacao,
    .carrinho-contador {
        transition: none;
        animation: none;
    }
    
    .pulse-badge,
    .shake-badge {
        animation: none;
    }
}

/* ✅ FORÇAR CONTADOR EXTERNO - ÚLTIMAS REGRAS (MÁXIMA PRIORIDADE) */
.solicitar-header .header-actions .btn-carrinho {
    position: relative !important;
}

.solicitar-header .header-actions .btn-carrinho .carrinho-contador,
.solicitar-header .header-actions .btn-carrinho #carrinho-contador {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #dc3545 !important;
    color: white !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border: 2px solid white !important;
    z-index: 999 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}
/* ==== SEÇÃO NÃO ENCONTROU ==== */
.nao-encontrou-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin: 40px 0 30px 0;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.nao-encontrou-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.nao-encontrou-container {
    position: relative;
    z-index: 1;
}

.nao-encontrou-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.nao-encontrou-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.nao-encontrou-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-nao-encontrou {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-nao-encontrou:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-nao-encontrou .btn-icon {
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

/* Responsividade */
@media (max-width: 768px) {
    .nao-encontrou-section {
        padding: 30px 20px;
        margin: 30px 0 20px 0;
    }
    
    .nao-encontrou-title {
        font-size: 1.5rem;
    }
    
    .nao-encontrou-description {
        font-size: 1rem;
    }
    
    .btn-nao-encontrou {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nao-encontrou-icon {
        font-size: 2.5rem;
    }
    
    .nao-encontrou-title {
        font-size: 1.3rem;
    }
    
    .nao-encontrou-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
}