/* Dashboard Styles for ACDC Componentes */

/* Cart discount visual helpers */
.cart-item-price-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-old {
    text-decoration: line-through;
    color: #888;
}

.price-new {
    color: #2e7d32;
    font-weight: 700;
}

.discount-percent {
    background: #e53935;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
}

/* Loading and Message Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background-color: #28a745;
}

.message-error {
    background-color: #dc3545;
}

.message-warning {
    background-color: #ffc107;
    color: #212529;
}

.message-info {
    background-color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dashboard Layout */
.dashboard-page {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Suporte Técnico Styles */
.support-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.support-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.support-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.support-form .form-group:nth-child(5),
.support-form .form-group:nth-child(6) {
    grid-column: span 2;
}

.support-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #233057;
}

.support-form input,
.support-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.support-form textarea {
    resize: vertical;
}

.support-form button {
    padding: 12px 24px;
    font-weight: 600;
}

.support-info {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.support-info h2 {
    color: #233057;
    margin-top: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list i {
    margin-right: 10px;
    color: #233057;
    width: 20px;
}

@media (max-width: 768px) {
    .support-form {
        grid-template-columns: 1fr;
    }
    
    .support-form .form-group:nth-child(5),
    .support-form .form-group:nth-child(6) {
        grid-column: span 1;
    }
}

.dashboard-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: #495057;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-menu-btn:hover {
    background-color: #f8f9fa;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    height: calc(100vh - 140px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.menu-item, .menu-item-logout {
    display: block;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.menu-item.active {
    background-color: #007bff;
    color: white;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    line-height: 1;
}

.menu-item {
    position: relative;
}

.cart-badge:empty {
    display: none;
}

/* Main Content */
.dashboard-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-size: 1.75rem;
    font-weight: 600;
}

.section-header p {
    margin: 0;
    color: #6c757d;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

#productsTable,
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

#productsTable th,
#productsTable td,
.orders-table th,
.orders-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;

}

#productsTable th,
.orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.product-name {
    max-width: 300px;
    word-wrap: break-word;
}

.price,
.stock {
    text-align: right;
    font-weight: 600;
}

.actions {
    min-width: 200px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quantity-input {
    width: 60px;
    padding: 0.25rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
}

.status-icon {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.status-icon.added {
    color: #28a745;
}

.status-icon.not-added {
    color: #dc3545;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

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

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

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

/* Search */
.busca-produto-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.busca-produto-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Filtros do Histórico de Pedidos - Minimalista */
.filter-bar {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group input,
.filter-group select {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    background: white;
    min-width: 120px;
    transition: all 0.2s ease;
}

.filter-group input[type="date"] {
    position: relative;
}

.filter-group input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

/* Inputs de data dos filtros (texto com máscara visual) */
#dataDeFilter,
#dataAteFilter {
    font-family: inherit;
    color: #000000;
    text-align: center;
}

/* Remover placeholder personalizado que causa sobreposição */

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-filter {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-filter.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    min-width: 70px;
}

.btn-filter.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-filter.btn-clear {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #666;
    min-width: 70px;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-filter.btn-clear:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateY(-1px);
    border-color: #bbb;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .filter-group input,
     .filter-group select {
         min-width: 100%;
     }
 }

/* Paginação */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.pagination-info {
    font-size: 0.85rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pagination:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
}

.page-number:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.page-number.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-info {
        order: 2;
    }
    
    .pagination-controls {
        order: 1;
    }
}

.products-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa00;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Cart */
.cart-summary {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-header h3 {
    margin: 0;
}

.cart-items {
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.cart-item-info-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
    flex-wrap: nowrap;        /* manter na mesma linha */
    width: 100%;              /* usar toda a largura disponível */
}

/* Botão de remover alinhado à direita da linha de controles */
.cart-item-controls-row .cart-item-remove {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Evitar quebra do texto 'Quantidade:' */
.cart-item-controls-row > span {
    white-space: nowrap;
}

/* Controles de quantidade no carrinho */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    width: fit-content;
    min-width: 140px;
}

.cart-item-qty:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.cart-item-qty button {
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botão de diminuir (-) - Vermelho */
.cart-item-qty button:first-child {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cart-item-qty button:first-child:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Botão de aumentar (+) - Vermelho (mesmo tom do botão -) */
.cart-item-qty button:last-child {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cart-item-qty button:last-child:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.cart-item-qty button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cart-item-qty button:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-item-qty input[type="number"] {
    width: 60px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    outline: none;
    -moz-appearance: textfield;
}

.cart-item-qty input[type="number"]::-webkit-outer-spin-button,
.cart-item-qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-qty input[type="number"]:focus {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
}

.cart-item-qty input[type="number"]:disabled {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

/* Animação suave para mudanças de quantidade */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .cart-item-info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .cart-item-controls-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .cart-item-qty {
        min-width: 120px;
    }
    
    .cart-item-qty input[type="number"] {
        width: 50px;
    }
    
    .cart-item-qty button {
        width: 30px;
        height: 30px;
        font-size: 16px;
        border-radius: 6px;
    }
}

/* Estilo especial para quando o input está sendo editado */
.cart-item-qty.editing {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

/* Feedback visual para operações de quantidade */
.cart-item-qty.updating {
    opacity: 0.7;
    pointer-events: none;
}

.cart-item-qty.updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #007bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cart-total {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    font-size: 1rem;
    text-align: right;
}

/* Texto padrão dentro do total do carrinho fica discreto */
.cart-total strong {
    font-weight: 500;
    font-size: inherit;
}

/* Destacar apenas o total final do carrinho */
.cart-total strong:last-child {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 8px;
}

/* Linha de frete com aparência normal */
#linhaFrete {
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: normal;
    margin-top: 0;
}

/* Garantir que o valor do frete não fique em negrito maior */
#linhaFrete strong {
    font-weight: 400;
    font-size: inherit;
}

/* Estilo para desconto em vermelho */
.cart-total strong:nth-child(2), .cart-total #cartDesconto {
    color: #dc3545;
    font-weight: bold;
}

.empty-cart {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

/* Badge de desconto em itens do carrinho */
.desconto-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
}

/* Linha com detalhes de desconto por item */
.cart-item-discount {
    display: flex;
    gap: 12px;
    color: #e53935;
    font-weight: 500;
    margin-top: 4px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
}

.close:hover {
    color: #000;
}

/* Product Search Results */
.produto-item {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.produto-header {
    margin-bottom: 0.5rem;
}

.produto-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.produto-acoes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Forms */
.settings-content {
    display: grid;
    gap: 2rem;
}

.settings-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.settings-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #212529;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background-color: #fff3cd;
    color: #856404;
}

.status-enviado {
    background-color: #d4edda;
    color: #155724;
}

.status-erro {
    background-color: #f8d7da;
    color: #721c24;
}

/* Utility classes */
.loading,
.no-data,
.error,
.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.error {
    color: #dc3545;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .sidebar {
        order: 2;
    }

    .dashboard-content {
        order: 1;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .quantity-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .busca-produto-container {
        flex-direction: column;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais baseadas na identidade ACDC */
    --primary-black: #1a1a1a;
    --primary-yellow: #e21834;
    --metallic-gray: #8c8c8c;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --error-red: #ff4444;
    --success-green: #00cc66;
    --warning-orange: #ff8800;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-black) 0%, #333 100%);
    --gradient-yellow: linear-gradient(135deg, var(--primary-yellow) 0%, #e21834 100%);
    --gradient-metallic: linear-gradient(135deg, var(--metallic-gray) 0%, #666 100%);

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-yellow: 0 4px 12px rgb(255, 0, 0);

    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Bordas */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Transições */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.highlight {
    background: linear-gradient(135deg, #e21834, #e21834);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    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 var(--transition-normal);
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-yellow);
    color: var(--light-gray);
    box-shadow: var(--shadow-yellow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 3, 3, 0.562);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Navegação */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-black);
    letter-spacing: -0.02em;
}

.nav-logo span {
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    color: var(--metallic-gray);
    letter-spacing: 0.1em;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width var(--transition-fast);
}

.nav-menu a:hover:before {
    width: 100%;
}

.btn-login {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-black);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            var(--white) 0%,
            rgba(255, 215, 0, 0.05) 50%,
            var(--light-gray) 100%);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 L20,10 M10,0 L10,20" stroke="%23FFD700" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-black);
}

logo {
    height: 6em;
    padding: 1.5em;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--metallic-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.circuit-animation {
    width: 300px;
    height: 300px;
    position: relative;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-line {
    width: 200px;
    height: 2px;
    background: var(--primary-yellow);
    position: absolute;
    animation: pulse 2s infinite;
}

.circuit-node {
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.circuit-node:nth-child(2) {
    top: 50%;
    left: 20%;
    animation: blink 1.5s infinite;
}

.circuit-node:nth-child(3) {
    top: 50%;
    right: 20%;
    animation: blink 1.5s infinite 0.5s;
}

.circuit-node:nth-child(4) {
    top: 30%;
    right: 50%;
    animation: blink 1.5s infinite 1s;
}

.spark {
    width: 4px;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 50%;
    position: absolute;
    animation: spark 3s infinite;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes spark {
    0% {
        left: 20%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 80%;
        opacity: 0;
    }
}

/* Seções */
.products-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--metallic-gray);
    margin-bottom: var(--spacing-2xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.product-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 215, 0, 0.3);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: grayscale(100%);
    transition: filter var(--transition-normal);
}

.product-card:hover .product-icon {
    filter: none;
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.product-card p {
    color: var(--metallic-gray);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    background: var(--light-gray);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

/* Seção Sobre */
.about-section {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-black);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--metallic-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-yellow);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--metallic-gray);
    font-weight: var(--font-weight-medium);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    width: 200px;
    height: 200px;
}

.tech-item {
    background: var(--gradient-metallic);
    border-radius: var(--border-radius-md);
    animation: float 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.tech-item:nth-child(2) {
    animation-delay: 0.5s;
}

.tech-item:nth-child(3) {
    animation-delay: 1s;
}

.tech-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Estilos para componentes eletrônicos SVG */
.component-svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.component-label {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
    text-align: center;
}

/* Animações específicas para equipamentos eletrônicos */
.pcb-anim {
    animation: pcb-power 1s ease-in-out infinite;
}

@keyframes pcb-power {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(46, 139, 87, 0.4));
    }
}

/* LEDs piscando */
.led-blink {
    animation: led-flash 2s ease-in-out infinite;
}

.led-1 {
    animation-delay: 0s;
}

.led-2 {
    animation-delay: 0.7s;
}

.led-3 {
    animation-delay: 1.4s;
}

@keyframes led-flash {
    0%, 70%, 100% {
        opacity: 0.3;
        filter: brightness(0.5);
    }
    15%, 55% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 8px currentColor);
    }
}

/* Osciloscópio */
.scope-anim {
    animation: scope-glow 3s ease-in-out infinite;
}

@keyframes scope-glow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    50% {
        filter: drop-shadow(0 2px 12px rgba(0, 255, 0, 0.5));
    }
}

.wave-anim {
    animation: wave-move 2s linear infinite;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

@keyframes wave-move {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -100;
    }
}

/* Multímetro */
.meter-anim {
    animation: meter-pulse 2s ease-in-out infinite;
}

@keyframes meter-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
    }
}

.display-text {
    animation: display-flicker 3s ease-in-out infinite;
}

@keyframes display-flicker {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0.7;
    }
}

.selector-needle {
    animation: needle-rotate 4s ease-in-out infinite;
    transform-origin: 35px 35px;
}

@keyframes needle-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(90deg);
    }
    75% {
        transform: rotate(135deg);
    }
}

/* Ferro de Solda */
.iron-anim {
    animation: iron-heat 2s ease-in-out infinite;
}

@keyframes iron-heat {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(255, 69, 0, 0.6));
    }
}

.smoke {
    animation: smoke-rise 3s ease-in-out infinite;
}

.smoke-1 {
    animation-delay: 0s;
}

.smoke-2 {
    animation-delay: 0.5s;
}

.smoke-3 {
    animation-delay: 1s;
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0;
    }
}

/* Efeito hover para os componentes */
.tech-item:hover .component-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
}

.tech-item:hover .component-label {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Seção Contato */
.contact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-xl);
    color: var(--primary-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #7c7c7c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);
}



.contact-card p {
    color: #718096;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    font-size: 0.9rem;
}

.contact-form {
    background: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--primary-black);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Footer Responsivo e Moderno */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-yellow), var(--accent-color));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Seção da Marca */
.footer-brand {
    max-width: 100%;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 150px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-description {
    color: var(--metallic-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--metallic-gray);
    font-size: 13px;
    line-height: 1.4;
}

.contact-item i {
    color: var(--accent-color);
    margin-top: 2px;
    font-size: 14px;
    min-width: 16px;
}

/* Colunas do Footer */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--metallic-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.footer-column ul li a:hover::before {
    width: 100%;
}

/* Seção Social */
.footer-social {
    align-items: flex-start;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--metallic-gray);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: #1877f2;
    color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.1), rgba(188, 42, 141, 0.1));
    border-color: #e1306c;
    color: #e1306c;
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Estatísticas do Footer */
.footer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--metallic-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    background: #1a1a1a;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    color: var(--metallic-gray);
    font-size: 13px;
    margin: 0;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--metallic-gray);
}

.footer-policies span:not(:nth-child(2)) {
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Responsividade do Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        max-width: 250px;
        margin: 0 auto 25px;
    }
    
    .footer-stats {
        max-width: 200px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-policies {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 0;
    }
    
    .footer-logo-img {
        width: 120px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .footer-column h4 {
        font-size: 15px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .social-link {
        padding: 8px 12px;
    }
    
    .social-link span {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .footer-policies {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-policies span:nth-child(2) {
        display: none;
    }
}

/* Páginas de Autenticação */
.auth-page {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-black);
}

.auth-logo span {
    font-size: 0.7rem;
    color: var(--metallic-gray);
    letter-spacing: 0.1em;
    display: block;
    margin-top: -5px;
}

.back-home {
    color: var(--metallic-gray);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.back-home:hover {
    color: var(--primary-black);
}

.auth-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-lg);
    gap: var(--spacing-2xl);
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
}

.auth-form-container h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.auth-subtitle {
    color: var(--metallic-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.login-options {
    display: flex;
    margin-bottom: var(--spacing-xl);
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 4px;
}

.login-type-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-type-btn.active {
    background: var(--white);
    color: var(--primary-black);
    box-shadow: var(--shadow-sm);
}

/* Person Type Selection */
.person-type-selection {
    margin-bottom: var(--spacing-xl);
}

.person-type-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-black);
    font-size: 1.1rem;
}

.person-type-buttons {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 4px;
    gap: 4px;
}

.person-type-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--metallic-gray);
    font-size: 1rem;
}

.person-type-btn.active {
    background: var(--primary-yellow);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.person-type-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-black);
}

/* Person Fields */
.person-fields {
    margin-bottom: var(--spacing-lg);
}

/* Address Section */
.address-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(245, 245, 245, 0.5);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.address-section h3 {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--primary-black);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-yellow);
    display: inline-block;
}

/* IE Options */
.ie-options {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--metallic-gray);
}

.checkbox-container input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    margin-right: var(--spacing-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-container input:checked~.checkmark {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.checkbox-container input:checked~.checkmark:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-black);
    font-weight: bold;
    font-size: 12px;
}

.forgot-password {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: #ffcc00;
}

.auth-switch {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--metallic-gray);
}

.auth-switch a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 73%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--metallic-gray);
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-black);
}

.auth-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circuit-background {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.circuit-pattern {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23FFD700" stroke-width="0.3" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.floating-elements {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements .element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.floating-elements .element:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-elements .element:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.floating-elements .element:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
}

.floating-elements .element:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

/* Mensagens */
.error-message,
.success-message {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-md);
    font-weight: var(--font-weight-medium);
    display: none;
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.success-message {
    background: rgba(0, 204, 102, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(0, 204, 102, 0.3);
}

/* Animações adicionais */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.stat-card,
.settings-card {
    animation: slideInUp 0.6s ease-out;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-yellow);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estados de hover para elementos interativos */
.product-item:hover .product-name {
    color: var(--primary-yellow);
}

/* Removido - usando o estilo mais moderno definido anteriormente */

.orders-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* Melhorias de acessibilidade */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--metallic-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-black);
}

/* Botão Flutuante - Ícone de Chat */
#chatbotButton {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #efcb00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#chatbotButton:hover {
    background-color: #fffb00;
    transform: scale(1.05);
}

/* Painel Lateral do Chatbot */
#chatbotPanel {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 500px;
    max-height: 900px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#chatbotPanel.open {
    display: flex;
}

/* Cabeçalho do Chatbot */
#chatbotPanel h3 {
    background-color: #8d0202;
    color: white;
    margin: 0;
    padding: 12px;
    font-size: 16px;
    text-align: center;
}

/* Área de Mensagens */
#chatbotMessages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Bolhas de Conversa */
.chatbot-message {
    max-width: 85%;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    word-wrap: break-word;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chatbot-user {
    background-color: #DCF8C6;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chatbot-bot {
    background-color: #ECECEC;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

/* Campo de Input e Botão */
#chatbotInput {
    display: flex;
    padding: 8px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
}

#chatbotInput input {
    flex-grow: 1;
    padding: 8px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 13px;
}

#chatbotInput button {
    margin-left: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background-color: #efcb00;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 13px;
}

#chatbotInput button:hover {
    background-color: #d8b800;
}

#chatbotPanel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 18px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#chatbotPanel h3 img {
    width: 60px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

#personagemSelector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.personagem-card {
    flex: 1;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.personagem-card:hover {
    background-color: #f0f0f0;
    border-color: #ffcc00;
}

.personagem-card.selected {
    background-color: #b9b9b9;
    color: #000;
    font-weight: bold;
}

.personagem-card img {
    width: 80px;
    margin-bottom: 15px;
}


@media (max-width: 1024px) {

    .hero-content,
    .about-content,
    .contact-content,
    .auth-content,
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

/* Responsive adjustments for auth forms */
@media (max-width: 768px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .auth-visual {
        order: -1;
        height: 200px;
    }

    .person-type-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .ie-options {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .address-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        padding: var(--spacing-md);
    }

    .auth-form-container h2 {
        font-size: 2rem;
    }

    .person-type-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.message-success {
    background-color: #28a745;
}

.message-error {
    background-color: #dc3545;
}

.message.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

@media (max-width: 1024px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 70px; /* Altura da navbar */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-black);
    border-radius: 2px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.0 !important;
    margin-top: 0 !important;
  }

  .hero-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .navbar {
    margin-bottom: 0 !important;
  }

  .logo img {
    margin-bottom: 0 !important;
  }
}

.sidebar-toggle {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.1rem;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    position: fixed;
    top: 0px;
    left: 5px;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Para telas pequenas (mobile) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 250px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        z-index: 1001;
        transition: left 0.3s ease;
        padding-top: 70px;
    }

    .sidebar.open {
        left: 0;
    }

    .dashboard-container {
        display: block;
        padding: 1rem;
    }

    .dashboard-content {
        margin-left: 0 !important;
        padding: 1rem;
    }

    .sidebar-toggle {
        display: block;
    }
}
/* Estilos antigos do footer removidos - substituídos pelos novos estilos responsivos acima */


th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    font-size: 0.75em;
    margin-left: 5px;
    color: #666;
    transition: color 0.2s ease;
}

th[data-sort]:hover .sort-icon {
    color: #000;
}

.imagem-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.imagem-popup {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.imagem-popup img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.imagem-popup .fechar {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #333;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 50%;
}

.imagem-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.imagem-modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.imagem-modal img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border: 3px solid #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0 0;
}

.pagination-btn {
    padding: 8px 14px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s;
}
.pagination-btn.active,
.pagination-btn:hover {
    background: #e21834;
    color: #fff;
    border-color: #e21834;
}

#freteOpcao {
    display: none !important;
    visibility: hidden !important;
}

/* ===== Dashboard (Topnav + Overview) - Restyle ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.dashboard-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e9ecef;
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dashboard-topnav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  gap: 10px;
}
.icon-menu { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.icon-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: #30363c;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
  font-size: 18px;
  position: relative;
}
.icon-menu a:hover, .icon-menu a:focus { background: #f5f7fb; color: #111827; outline: none; transform: translateY(-1px); }
.icon-menu a.active { background: var(--primary-yellow); color: #fff; }
.menu-item-logout { background: #fff0f1; color: #9b1c1c; }
.menu-item-logout:hover { background: #ffe2e6; color: #7f1d1d; }
.icon-menu .cart-badge { top: 2px; right: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* Layout sem sidebar dentro da dashboard */
body.dashboard-page .mobile-menu-toggle { display: none !important; }
body.dashboard-page .sidebar { display: none !important; }
body.dashboard-page .dashboard-container { display: block; padding-top: 6px; }
body.dashboard-page .dashboard-container.no-sidebar .dashboard-content { width: 100%; }
body.dashboard-page .content-section:first-of-type { margin-top: 12px; }

/* Welcome/Overview */
.welcome-section { max-width: 1100px; margin: 0 auto; padding: 36px 20px; }
.welcome-header { text-align: center; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid #eef2f7; }
.logo-area { margin-bottom: 18px; }
.dashboard-logo { width: 290px; height: auto; opacity: 0.95; }
.greeting-text { color: #374151; }
.welcome-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 6px; color: #1f2937; letter-spacing: -0.02em; }
.welcome-subtitle { font-size: 1.05rem; color: #6b7280; font-weight: 400; }

.dashboard-overview { display: grid; gap: 28px; }
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.overview-card { background: #ffffff; border: 1px solid #e9ecef; border-radius: 14px; padding: 22px 20px; display: flex; align-items: center; gap: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.overview-card .card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #f7f7f9 0%, #eceff3 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #616876; }
.overview-card .card-content h3 { font-size: 1.75rem; font-weight: 800; color: #000000; margin: 0 0 2px 0; letter-spacing: -0.01em; }
.overview-card .card-content p { font-size: 0.92rem; color: #6b7280; margin: 0; }
.overview-card .card-arrow { margin-left: auto; color: #9ca3af; font-size: 16px; transition: all 0.2s ease; }
.overview-card.functional-card { cursor: pointer; position: relative; }
.overview-card.functional-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12);}
.overview-card.functional-card:hover .card-arrow { color: var(--primary-yellow); transform: translateX(3px); }

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Essencial para empurrar o canvas para trás de todo o conteúdo */
}
