/* =====================================================
   LOJA ONLINE THUDDO - CSS Completo
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --laranja-escuro: #F2520A;
    --laranja-medio: #F46001;
    --laranja-claro: #FFEEE2;
    --preto: #1a1a1a;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --cinza: #999;
    --verde: #28a745;
    --vermelho: #dc3545;
    --radius: 12px;
    --sombra: 0 2px 10px rgba(0,0,0,0.08);
    --sombra-hover: 0 8px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cinza-claro);
    color: var(--preto);
    padding-bottom: 64px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: 65px;
    background: var(--preto);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-logo img { height: 40px; }
.header-logo a { display: flex; }

.badge-revenda-mobile {
    background: var(--laranja-medio);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.header-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hdr-btn {
    position: relative;
    background: var(--laranja-medio);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.hdr-btn:hover {
    background: var(--laranja-escuro);
    transform: scale(1.05);
}

.header-busca {
    flex: 1;
}

.header-busca input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}

.header-busca input::placeholder { color: rgba(255,255,255,0.5); }
.header-busca input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--laranja-medio);
}

.header-info {
    color: var(--branco);
    font-size: 12px;
    text-align: right;
}

.header-info .bem-vindo {
    color: var(--laranja-claro);
    font-weight: 500;
}

.carrinho-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--vermelho);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px; height: 20px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* =====================================================
   MAIN CONTAINER
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 20px;
}

/* =====================================================
   AVISOS
   ===================================================== */
.aviso-revenda {
    background: linear-gradient(135deg, var(--laranja-claro) 0%, #fff5eb 100%);
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    font-size: 13px;
    border-left: 4px solid var(--laranja-medio);
    display: flex; align-items: center; gap: 8px;
}

.aviso-revenda a {
    color: var(--laranja-escuro);
    font-weight: 600;
    text-decoration: none;
}

/* =====================================================
   NAVEGACAO (BREADCRUMB)
   ===================================================== */
.navegacao {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.navegacao button {
    background: var(--branco);
    border: 1px solid #e0e0e0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    color: var(--preto);
}

.navegacao button:hover {
    background: var(--laranja-medio);
    color: white;
    border-color: var(--laranja-medio);
}

.navegacao .separador { color: #ccc; font-size: 14px; }
.navegacao .atual { font-weight: 600; color: var(--laranja-escuro); font-size: 13px; }

/* =====================================================
   GRID DE CARDS
   ===================================================== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
    .grid-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .grid-cards { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   CARD CATEGORIA
   ===================================================== */
.card-categoria {
    background: #FBEAD4;
    border-radius: var(--radius);
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--sombra);
    border: 2px solid transparent;
}

.card-categoria:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
    border-color: var(--laranja-medio);
}

.card-categoria .icone {
    width: 60px; height: 60px;
    background: var(--laranja-claro);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.card-categoria .nome {
    font-weight: 600;
    font-size: 14px;
    color: var(--preto);
    margin-bottom: 5px;
}

.card-categoria .qtd {
    font-size: 12px;
    color: var(--cinza);
}

/* Card de categoria com imagem (menus) */
.loja-cat-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.loja-cat-card .nome { padding: 14px 12px 6px; font-size: 15px; }
.loja-cat-card .qtd { padding: 0 12px 14px; }
.loja-cat-img {
    width: 100%; height: 150px;
    object-fit: cover; display: block;
    background: var(--laranja-claro);
}
.loja-cat-icon {
    width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: var(--laranja-claro);
}

/* =====================================================
   CARD PRODUTO
   ===================================================== */
.card-produto {
    background: var(--branco);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card-produto:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.card-produto .foto-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--cinza-claro);
    overflow: hidden;
}

.card-produto .foto {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-produto:hover .foto { transform: scale(1.05); }

.card-produto .sem-foto {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cinza);
    font-size: 40px;
}

.card-produto .tag-video {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.card-produto .info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-produto .nome {
    font-size: 13px;
    font-weight: 500;
    color: var(--preto);
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-produto .codigo {
    font-size: 11px;
    color: var(--cinza);
    margin-bottom: 10px;
}

.card-produto .preco {
    font-size: 18px;
    font-weight: 700;
    color: var(--laranja-escuro);
    margin-top: auto;
}

.card-produto .estoque {
    font-size: 11px;
    color: var(--verde);
    margin-top: 5px;
}

.card-produto .estoque.baixo { color: var(--vermelho); }

.card-produto .btn-adicionar {
    width: 100%;
    padding: 10px;
    background: var(--laranja-medio);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.card-produto .btn-adicionar:hover {
    background: var(--laranja-escuro);
}

/* Card sem foto */
.card-produto.sem-foto-card .info {
    border-top: 3px solid var(--laranja-medio);
}

.label-revenda {
    background: var(--laranja-medio);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.ativo { opacity: 1; visibility: visible; }

.modal {
    background: var(--branco);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.ativo .modal { transform: translateY(0); }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cinza-claro);
    position: sticky; top: 0;
    background: var(--branco);
    z-index: 1;
}

.modal-header h2 { font-size: 18px; font-weight: 600; }

.modal-close {
    background: none; border: none;
    font-size: 24px; cursor: pointer;
    color: var(--cinza); padding: 0 4px;
}

.modal-body { padding: 20px; }

/* =====================================================
   PRODUTO DETALHE (MODAL)
   ===================================================== */
.produto-detalhe {
    display: flex; flex-direction: column; gap: 12px;
}

.produto-detalhe .foto-principal {
    width: 100%; max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--cinza-claro);
}

.produto-detalhe .sem-foto-grande {
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: var(--cinza);
    height: 150px;
}

.produto-detalhe .miniaturas {
    display: flex; gap: 10px; margin-top: 10px;
}

.produto-detalhe .miniatura {
    width: 60px; height: 60px;
    object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition);
}

.produto-detalhe .miniatura:hover,
.produto-detalhe .miniatura.ativa { border-color: var(--laranja-medio); }

.produto-detalhe .video-container {
    width: 100%; aspect-ratio: 16/9;
    background: var(--preto); border-radius: var(--radius); overflow: hidden;
}
.produto-detalhe .video-container iframe { width: 100%; height: 100%; border: none; }

.produto-detalhe .info h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.produto-detalhe .codigo { font-size: 12px; color: var(--cinza); }
.produto-detalhe .preco { font-size: 22px; font-weight: 700; color: var(--laranja-escuro); margin: 8px 0 4px; }
.produto-detalhe .estoque-info { font-size: 13px; color: var(--verde); margin-bottom: 15px; }

.produto-detalhe .acoes {
    display: flex; gap: 10px; align-items: center;
}

.qtd-seletor {
    display: flex; align-items: center;
    border: 2px solid #e0e0e0; border-radius: 8px; overflow: hidden;
}
.qtd-seletor button {
    width: 36px; height: 36px; border: none;
    background: var(--cinza-claro); font-size: 18px;
    cursor: pointer; font-family: inherit;
}
.qtd-seletor input {
    width: 40px; height: 36px; text-align: center;
    border: none; font-size: 14px; font-family: inherit;
}

.btn-add {
    flex: 1; padding: 10px 16px;
    background: var(--laranja-medio); color: white;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: var(--transition);
}
.btn-add:hover { background: var(--laranja-escuro); }

/* =====================================================
   LOGIN MODAL
   ===================================================== */
.login-abas {
    display: flex; border-bottom: 2px solid #eee; margin-bottom: 20px;
}
.login-abas .aba-btn {
    flex: 1; padding: 12px; border: none; background: none;
    font-family: inherit; font-size: 14px; font-weight: 600;
    color: #999; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.login-abas .aba-btn.ativa {
    color: var(--laranja-escuro); border-bottom-color: var(--laranja-escuro);
}

.btn-login-submit {
    width: 100%; padding: 14px;
    background: var(--laranja-medio); color: white;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.form-group input, .form-group select {
    width: 100%; padding: 10px 14px;
    border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--laranja-medio);
}

/* =====================================================
   CARRINHO SIDEBAR
   ===================================================== */
.carrinho-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.carrinho-overlay.ativo { opacity: 1; visibility: visible; }

.carrinho-sidebar {
    position: fixed; top: 0; right: -400px;
    width: 100%; max-width: 400px;
    height: 100vh;
    background: var(--branco);
    z-index: 2001;
    transition: right 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
.carrinho-sidebar.ativo { right: 0; }

.carrinho-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--cinza-claro);
    background: var(--preto); color: var(--branco);
}
.carrinho-header h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }

.carrinho-itens { flex: 1; overflow-y: auto; padding: 15px; }
.carrinho-vazio { text-align: center; padding: 40px 20px; color: #999; }

.carrinho-item {
    display: flex; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.carrinho-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.carrinho-item .item-info { flex: 1; }
.carrinho-item .item-nome { font-size: 13px; font-weight: 500; }
.carrinho-item .item-preco { font-size: 14px; font-weight: 600; color: var(--laranja-escuro); }
.carrinho-item .item-qtd { font-size: 12px; color: #999; }

.carrinho-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: var(--cinza-claro);
}
.carrinho-totais .linha { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.carrinho-totais .linha.total { font-weight: 700; font-size: 18px; color: var(--laranja-escuro); border-top: 1px solid #ddd; padding-top: 8px; margin-top: 4px; }

.btn-finalizar {
    width: 100%; padding: 14px; margin-top: 10px;
    background: var(--laranja-medio); color: white;
    border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

.btn-mais {
    padding: 10px 30px;
    background: var(--laranja-medio); color: white;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

/* =====================================================
   CHECKOUT
   ===================================================== */
.checkout-resumo {
    background: var(--cinza-claro);
    padding: 15px; border-radius: 8px; margin-bottom: 15px;
}

/* =====================================================
   TOAST
   ===================================================== */
.toast-container {
    position: fixed; top: 80px; right: 20px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    max-width: 350px;
}
.toast.sucesso { background: var(--verde); }
.toast.erro { background: var(--vermelho); }
.toast.info { background: #0c5da5; }

@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* =====================================================
   LOADING
   ===================================================== */
.loading { text-align: center; padding: 40px; }
.spinner {
    width: 40px; height: 40px; margin: 0 auto;
    border: 4px solid #e0e0e0;
    border-top-color: var(--laranja-medio);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   UTILITARIOS
   ===================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* =====================================================
   BOTTOM NAV
   ===================================================== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    display: flex;
    border-top: 1px solid #e8e8e8;
    z-index: 1000;
    padding: 4px 0;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bnav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 0;
    border: none; background: none;
    font-family: inherit; font-size: 10px; font-weight: 500;
    color: #999; cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bnav-item.ativo { color: var(--laranja-medio); }
.bnav-item.ativo svg { transform: scale(1.1); }
.bnav-item.logado svg { color: var(--laranja-medio); }
.bnav-item svg { transition: transform 0.2s; }
.bnav-item span:last-child { line-height: 1; }

.bnav-cart { position: relative; }
.bnav-cart-badge {
    position: absolute; top: 0; right: calc(50% - 18px);
    background: var(--laranja-escuro); color: #fff;
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

@media (min-width: 769px) {
    .bottom-nav {
        left: 50%; transform: translateX(-50%);
        width: auto; max-width: 420px;
        bottom: 16px;
        border-radius: 16px; border: 1px solid #e0e0e0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 6px 8px;
    }
    .bnav-item { padding: 8px 16px; border-radius: 12px; }
    .bnav-item.ativo { background: rgba(244,96,1,0.08); }
    body { padding-bottom: 80px; }
}

/* =====================================================
   MODAL MINHA CONTA
   ===================================================== */
.conta-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    padding: 16px;
}
.conta-modal-overlay.ativo { opacity: 1; visibility: visible; }

.conta-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 520px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
}
.conta-modal-overlay.ativo .conta-modal { transform: translateY(0) scale(1); }

.conta-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #1a1a1a; color: #fff;
    border-radius: 16px 16px 0 0;
}
.conta-modal-header h2 { font-size: 17px; font-weight: 600; margin: 0; }
.conta-modal-close {
    background: none; border: none;
    color: #999; font-size: 22px; cursor: pointer;
    padding: 0 4px; line-height: 1;
}
.conta-modal-close:hover { color: #fff; }

.conta-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Perfil */
.conta-perfil { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.conta-perfil-top { display: flex; align-items: center; gap: 14px; }
.conta-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #F46001, #F2520A);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.conta-perfil-info { flex: 1; min-width: 0; }
.conta-nome { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-whats { font-size: 12px; color: #999; }
.conta-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.conta-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.conta-badge.revenda { background: #F46001; }
.conta-badge.parceiro { background: #3B82F6; }

.conta-acoes { display: flex; gap: 8px; margin-top: 12px; }
.conta-acao-btn {
    flex: 1; padding: 8px 4px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    text-align: center; font-size: 12px; font-weight: 500;
    color: #333; text-decoration: none; transition: all 0.2s;
}
.conta-acao-btn:hover { background: #f5f5f5; border-color: #ccc; }
.conta-acao-btn.sair { color: #999; }

/* Tabs */
.conta-tabs {
    display: flex; background: #fafafa;
    border-bottom: 2px solid #eee;
    position: sticky; top: 0; z-index: 1;
}
.conta-tab {
    flex: 1; padding: 14px 8px;
    border: none; background: none;
    font-family: inherit; font-size: 13px; font-weight: 600;
    color: #999; cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.conta-tab.ativo { color: #F46001; border-bottom-color: #F46001; }
.conta-tab-panel { padding: 12px; }

.conta-loading {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 40px 12px; color: #bbb; font-size: 13px;
}
.conta-spinner {
    width: 28px; height: 28px;
    border: 3px solid #eee; border-top-color: #F46001;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.conta-vazio { text-align: center; padding: 40px 12px; color: #bbb; font-size: 13px; }

/* OS Cards */
.conta-os-card {
    border: 1px solid #e8e8e8; border-radius: 12px;
    margin-bottom: 10px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.conta-os-header { padding: 12px 14px; cursor: pointer; background: #fff; }
.conta-os-header:active { background: #f5f5f5; }
.conta-os-header-top { display: flex; align-items: center; gap: 8px; }
.conta-os-id { font-weight: 700; font-size: 14px; color: #333; }
.conta-os-badge { padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; color: #fff; }
.conta-os-arrow { margin-left: auto; font-size: 10px; color: #ccc; transition: transform 0.3s; }
.conta-os-arrow.aberto { transform: rotate(180deg); }
.conta-os-header-equip { font-size: 13px; font-weight: 500; color: #333; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conta-os-header-meta { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; margin-top: 2px; }

.conta-os-body { display: none; padding: 14px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.conta-os-body.aberto { display: block; }

.conta-os-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.conta-os-info-item { display: flex; flex-direction: column; gap: 2px; }
.conta-os-info-label { font-size: 10px; font-weight: 600; color: #999; text-transform: uppercase; }
.conta-os-info-value { font-size: 13px; color: #333; }
.conta-os-whats-link { font-size: 13px; color: #25D366; text-decoration: none; font-weight: 500; }

.conta-os-section { margin-bottom: 12px; }
.conta-os-section-title { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; margin-bottom: 6px; }
.conta-os-defeito { padding: 10px 12px; background: #FFF3CD; border-radius: 8px; color: #856404; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.conta-os-laudo-view { padding: 10px 12px; background: #E8F5E9; border-radius: 8px; color: #2E7D32; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

.conta-os-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ddd; }
.conta-os-form textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 10px;
    font-family: inherit; font-size: 13px; resize: vertical; min-height: 60px; background: #fff;
}
.conta-os-form textarea:focus { outline: none; border-color: #F46001; box-shadow: 0 0 0 3px rgba(244,96,1,0.1); }
.conta-os-form-row { display: flex; gap: 8px; margin-top: 10px; }
.conta-os-form-row select {
    flex: 1; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 10px;
    font-family: inherit; font-size: 13px; background: #fff;
}

.conta-btn-salvar {
    padding: 10px 20px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #F46001, #F2520A);
    color: #fff; font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.conta-btn-assumir {
    display: block; width: 100%; margin-top: 12px; padding: 14px;
    border: none; border-radius: 10px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff; font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
}
.conta-btn-assumir:disabled { opacity: 0.5; cursor: not-allowed; }

.conta-os-msg { text-align: center; font-size: 12px; margin-top: 8px; min-height: 18px; font-weight: 500; }
.conta-os-msg.sucesso { color: #22C55E; }
.conta-os-msg.erro { color: #EF4444; }

/* =====================================================
   PARCEIROS
   ===================================================== */
.btn-parceiros-float {
    position: fixed; bottom: 80px; left: 20px;
    background: var(--laranja-medio); color: white;
    border: none; border-radius: 25px;
    padding: 12px 20px; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 15px rgba(244,96,1,0.3);
    z-index: 900;
}

.parceiro-card {
    display: flex; gap: 15px; align-items: center;
    padding: 15px; border-bottom: 1px solid #f0f0f0;
}
.parceiro-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--laranja-claro); display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.parceiro-info { flex: 1; }
.parceiro-nome { font-weight: 600; font-size: 14px; }
.parceiro-categorias { font-size: 12px; color: #666; margin-top: 4px; }
.parceiro-categoria-tag {
    display: inline-block; background: var(--cinza-claro);
    padding: 2px 8px; border-radius: 10px; margin-right: 5px; margin-bottom: 5px; font-size: 11px;
}
.btn-contato-parceiro {
    background: #25D366; color: white; border: none;
    padding: 8px 15px; border-radius: 20px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--laranja-escuro); }

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 768px) {
    .header { height: 55px; padding: 0 10px; gap: 8px; }
    .header-logo img { height: 35px; }

    .container { padding: 65px 10px 10px; }

    .header-info { display: block; font-size: 10px; text-align: center; max-width: 80px; overflow: hidden; }

    .hdr-btn { display: none; }

    .carrinho-sidebar { max-width: 100%; }

    /* CARDS MOBILE - 2 colunas */
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-categoria { padding: 16px 10px; }
    .card-categoria .icone { width: 50px; height: 50px; font-size: 24px; margin-bottom: 8px; }
    .card-categoria .nome { font-size: 15px; }
    .card-categoria .qtd { font-size: 12px; }

    .card-produto .foto-container { padding-top: 110%; }
    .card-produto .info { padding: 12px; }
    .card-produto .nome { font-size: 15px; -webkit-line-clamp: 3; }
    .card-produto .preco { font-size: 20px; }
    .card-produto .codigo { font-size: 12px; }
    .card-produto .estoque { font-size: 12px; }
    .card-produto .btn-adicionar { padding: 14px; font-size: 15px; }

    .loja-cat-img { height: 140px; }
    .loja-cat-icon { height: 100px; font-size: 36px; }
    .loja-cat-card .nome { font-size: 15px; padding: 10px 8px 4px; }

    .conta-modal-overlay { padding: 0; }
    .conta-modal { max-width: 100%; max-height: 100vh; border-radius: 0; }
    .conta-modal-header { border-radius: 0; }
    .conta-os-info { grid-template-columns: 1fr; }
    .conta-os-form-row { flex-direction: column; }
    .conta-btn-salvar { width: 100%; }
    .conta-acoes { flex-wrap: wrap; }
    .conta-acao-btn { min-width: calc(50% - 4px); }

    .btn-parceiros-float { bottom: 75px; left: 15px; padding: 10px 15px; font-size: 12px; }
}
