/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --success: #16a34a;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: 50px;
    padding-bottom: 20px;
    min-height: calc(100vh - 50px);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar.navbar-compact {
    padding: 8px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h2 {
    color: var(--primary);
    font-size: 24px;
    margin: 0;
}

.categoria-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-info {
    color: var(--gray-700);
    font-size: 12px;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Página de Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

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

.login-box h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 30px;
    font-size: 15px;
}

.login-form {
    margin-top: 20px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray-700);
    font-size: 12px;
}

/* Catálogo */
.catalog-header {
    margin-bottom: 30px;
}

.catalog-header h1 {
    margin-bottom: 20px;
    color: var(--gray-900);
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filters h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   HEADER COMPACTO DO CATÁLOGO
======================================== */
.catalog-header-compact {
    margin-bottom: 10px;
}

.search-favorites-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.search-box-compact {
    flex: 1;
}

.search-box-compact input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.btn-favorites-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--warning);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-favorites-compact:hover {
    background: #fffbeb;
}

.btn-favorites-compact.active {
    background: var(--warning);
    color: white;
}

.btn-favorites-compact .favorites-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--gray-200);
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.btn-favorites-compact.active .favorites-count {
    background: rgba(255,255,255,0.3);
}

.btn-filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.btn-filter-label {
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 500;
}

.filters-compact {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.filter-checkboxes-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.checkbox-label-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
}

.checkbox-label-compact input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.search-prompt-compact {
    padding: 30px 15px;
    margin-top: 10px;
}

.search-prompt-compact .search-prompt-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.search-prompt-compact p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:nth-child(even) {
    background: var(--gray-50);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image.loaded {
    background: var(--gray-100);
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image img.img-loaded {
    opacity: 1;
}

.no-image {
    color: var(--gray-700);
    font-size: 14px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--gray-900);
}

.product-brand {
    font-size: 14px;
    color: var(--gray-700);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px 15px 15px;
}

.btn-qty {
    width: 35px;
    height: 35px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-qty:hover {
    background: var(--gray-100);
}

.btn-plus {
    color: var(--success);
}

.btn-minus {
    color: var(--danger);
}

.qty-input {
    flex: 1;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    background: transparent;
}

/* Carrinho Flutuante */
.cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 90;
}

.cart-float:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 28px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Carrinho Lateral */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h2 {
    font-size: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-700);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--gray-700);
    padding: 40px 20px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
}

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

.cart-item-info strong {
    display: block;
    margin-bottom: 5px;
}

.cart-item-info span {
    font-size: 14px;
    color: var(--gray-700);
}

.btn-remove {
    background: var(--danger);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    position: sticky;
    bottom: 0;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.cart-footer .btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    will-change: transform;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.cart-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-footer .btn:active {
    transform: scale(0.98);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray-700);
    background: none;
    border: none;
}

.modal-product img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-product h2 {
    margin-bottom: 10px;
}

.modal-product .product-brand {
    margin-bottom: 20px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Admin */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.admin-menu {
    display: grid;
    gap: 20px;
}

.admin-menu-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-menu-item h3 {
    margin-bottom: 8px;
    color: var(--gray-900);
}

.admin-menu-item p {
    color: var(--gray-700);
    font-size: 14px;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table thead {
    background: var(--gray-100);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
}

.admin-table td {
    padding: 15px;
    border-top: 1px solid var(--gray-200);
}

.table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.no-image-small {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gray-700);
    border-radius: 6px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
}

.empty-state p {
    margin-bottom: 20px;
    color: var(--gray-700);
}

.mb-3 {
    margin-bottom: 15px;
}

.current-image {
    margin-bottom: 15px;
}

.info-box {
    background: #dbeafe;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.info-box h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 5px;
    color: var(--gray-700);
}

/* Seção de Favoritos */
.favorites-section {
    margin-bottom: 20px;
}

.btn-favorites {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--warning);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.btn-favorites:hover {
    background: #fffbeb;
}

.btn-favorites.active {
    background: var(--warning);
    color: white;
}

.btn-favorites .star-icon {
    font-size: 18px;
}

.favorites-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--gray-200);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.btn-favorites.active .favorites-count {
    background: rgba(255,255,255,0.3);
}

/* Botão de Favoritar no Card */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 5;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite.active {
    background: var(--warning);
    color: white;
}

/* Mensagem de busca inicial */
.search-prompt {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.search-prompt-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.search-prompt p {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.search-prompt-hint {
    font-size: 14px;
    color: var(--gray-700);
}

/* Sem resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.no-results p {
    font-size: 18px;
    color: var(--gray-700);
}

/* Aviso de mais produtos */
.more-products-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 8px;
    margin-top: 10px;
}

.more-products-notice p {
    color: var(--primary-dark);
    font-weight: 500;
}

.more-products-notice .hint {
    font-size: 14px;
    font-weight: normal;
    margin-top: 5px;
}

/* Badge de Produto Relacionado (Catalisador) */
/* Badge de Produto Relacionado (Catalisador) */
.related-badge {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

/* Badge de Queima de Estoque */
.queima-badge {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulseQueima 2s infinite;
    box-sizing: border-box;
}

@keyframes pulseQueima {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.8);
    }
}

/* Produto em Queima de Estoque */
.product-card-queima {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, #fff9f5 0%, #fff5ed 100%);
}

.product-card-queima:hover {
    border-color: #f7931e;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

/* Preço em Queima de Estoque */
.product-price-queima {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.price-queima {
    color: #ff6b35;
    font-size: 16px;
    font-weight: 700;
}

.price-discount {
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}

/* Botão de filtro de queima */.btn-favorites-compact {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    transition: all 0.2s;
    position: relative;
}

.btn-favorites-compact:hover {
    opacity: 1;
    transform: scale(1.1);
}

.favorites-count, .queima-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: #333;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Separador de "Outros Resultados" */
.other-results-separator {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: 20px 0 10px 0;
    padding: 0;
}

.other-results-separator span {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto;
}

.other-results-separator::before,
.other-results-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.other-results-separator::before {
    margin-right: 15px;
}

.other-results-separator::after {
    margin-left: 15px;
}

/* Busca de Produto Relacionado (Admin) */
.related-product-search {
    margin-top: 10px;
}

.search-related-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.search-related-input {
    flex: 1;
    position: relative;
}

.search-related-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
}

.btn-search-related {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-search-related:hover {
    background: var(--primary-dark);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 500;
    color: var(--gray-900);
}

.search-result-brand {
    font-size: 12px;
    color: var(--gray-700);
}

.selected-related-product {
    margin-top: 10px;
    padding: 12px;
    background: #d1fae5;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-related-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-related-info span {
    color: var(--success);
}

.btn-remove-related {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

/* Responsivo */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }

    .queima-badge {
        font-size: 11px;
        padding: 6px 40px 6px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .related-badge {
        font-size: 10px;
        padding: 6px 40px 6px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .nav-brand h2 {
        font-size: 16px;
    }

    /* Navbar compacto no mobile - tudo em linha */
    .navbar.navbar-compact .container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px 15px;
    }

    .navbar.navbar-compact .nav-brand {
        flex: 0 0 auto;
    }

    .navbar.navbar-compact .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    .navbar.navbar-compact .user-info {
        font-size: 14px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar.navbar-compact .btn-xs {
        padding: 10px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .navbar.navbar-compact .categoria-badge {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Busca e favoritos no mobile */
    .search-favorites-row {
        display: flex !important;
        flex-direction: row;
        gap: 8px;
    }

    .search-box-compact {
        flex: 1;
        min-width: 0;
    }

    .search-box-compact input {
        padding: 8px 10px;
        font-size: 14px;
        width: 100%;
    }

    .btn-favorites-compact {
        padding: 8px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Filtros compactos no mobile */
    .filters-compact {
        padding: 6px 10px;
    }

    .filter-checkboxes-compact {
        gap: 5px 10px;
    }

    .checkbox-label-compact {
        font-size: 11px;
    }

    .checkbox-label-compact input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    .admin-header {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .filter-checkboxes {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .cart-icon {
        font-size: 24px;
    }

    /* Navbar compacto em telas pequenas */
    .navbar.navbar-compact {
        padding: 14px 0;
    }

    .navbar.navbar-compact .container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar.navbar-compact .nav-menu {
        gap: 8px;
    }

    .navbar.navbar-compact .user-info {
        font-size: 14px;
        max-width: 80px;
    }

    .navbar.navbar-compact .categoria-badge {
        font-size: 14px;
        padding: 8px 14px;
    }

    .navbar.navbar-compact .btn-xs {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Busca ainda mais compacta */
    .search-box-compact input {
        padding: 6px 8px;
        font-size: 13px;
    }

    .btn-favorites-compact {
        padding: 6px 8px;
        font-size: 11px;
    }

    .btn-favorites-compact .favorites-count {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* Aumentar espaço do conteúdo para não ficar atrás do navbar */
    .main-content {
        padding-top: 80px;
    }
}

/* ========================================
   COLUNA DESCRICAO - RESPONSIVO
======================================== */
@media (max-width: 768px) {
    .desc-column {
        display: none;
    }
}

/* ========================================
   PAGINAÇÃO
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding: 20px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
}

.pagination-ellipsis {
    color: var(--gray-400);
    padding: 0 5px;
}

.pagination-info {
    color: var(--gray-500);
    font-size: 13px;
    margin-left: 15px;
    white-space: nowrap;
}

/* Responsivo para paginação */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
        padding: 15px 10px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
