/* Estilos do catálogo — tokens em design-system.css */

/* Logo moderno com gradiente */
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-soft {
    background: var(--secondary-solid);
    color: var(--text-light);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--shadow-success);
    position: relative;
    overflow: hidden;
}

.logo-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.logo-soft:hover::before {
    left: 100%;
}

.logo-class {
    background: var(--color-surface);
    color: var(--text-primary);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1.3rem;
    border: 2px solid var(--secondary-solid);
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.logo-class:hover {
    background: var(--color-border-subtle);
    transform: translateY(-2px);
}

/* Barra de pesquisa moderna */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-container .form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 16px 24px;
    font-size: 1.1rem;
    background: var(--color-surface);
    transition: var(--transition);
    color: var(--text-primary);
}

.search-container .form-control:focus {
    border-color: var(--primary-solid);
    box-shadow: var(--focus-ring);
    background: var(--color-surface);
    transform: translateY(-2px);
}

.search-container .form-control::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-container .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: 2px solid var(--primary-solid);
    border-left: none;
    padding: 16px 24px;
    background: var(--primary-solid);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.search-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: var(--dark-solid);
}

/* Indicador de busca ativa */
.search-container.searching .form-control {
    border-color: var(--primary-solid);
    box-shadow: var(--focus-ring);
}

.search-container.searching::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-solid);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* Busca rápida — estilos em header-layout.css + catalog-vitrine.css (.catalog-quick-search) */

/* Controles de Paginação */
.pagination-container {
    margin: 30px 0;
}

.pagination {
    margin: 0;
    gap: 5px;
}

.pagination .page-item .page-link {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    color: var(--text-primary);
    padding: 12px 16px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--color-surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .page-item .page-link:hover {
    background: var(--primary-solid);
    border-color: var(--primary-solid);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pagination .page-item.active .page-link {
    background: var(--primary-solid);
    border-color: var(--primary-solid);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pagination .page-item.disabled .page-link {
    background: var(--color-border-subtle);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    background: var(--color-border-subtle);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    transform: none;
    box-shadow: none;
}

/* Informações de paginação */
.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.pagination-info .highlight {
    color: var(--primary-solid);
    font-weight: 600;
}

/* Filtros de categoria/grupo legados removidos (Fase 12).
   Categorias: header-layout.css (.categories-dropdown .category-btn--*). */

/* Cards de produto → catalog-vitrine.css (fonte única, Fase 12). */

/* Header limpo */
header {
    background: var(--color-surface);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h2 {
    color: var(--primary-solid);
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Botões do header limpos */
header .btn {
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid #e9ecef;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .btn:hover {
    background: var(--primary-solid);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Badge do carrinho */
.badge {
    background: var(--secondary-solid) !important;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Tema escuro — tokens remapeados em design-system.css; ajustes pontuais abaixo */
body.dark-theme .logo-class {
    background: var(--color-surface-elevated);
    color: var(--color-brand);
}

body.dark-theme .product-code {
    color: var(--color-text-muted);
}

body.dark-theme .product-code i {
    color: var(--color-brand);
}

/* Container principal - background limpo */
.container-fluid {
    position: relative;
}

/* Modal limpo */
.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-border-subtle);
}

.modal-title {
    color: var(--primary-solid);
    font-weight: 700;
}

/* Responsividade */
@media (max-width: 768px) {
    .logo-container {
        justify-content: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .search-container .form-control {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .search-container .btn {
        padding: 10px 15px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.25rem;
    padding: 60px 20px;
    min-height: 200px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-solid);
}

.loading-spinner::after {
    content: 'Carregando produtos...';
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-lg);
}

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

/* Mensagem de produtos não encontrados */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-products i {
    margin-bottom: 20px;
    opacity: 0.5;
    font-size: 4rem;
}

.no-products i.icon-2xl,
.no-products i.icon-xl {
    font-size: inherit;
}

.no-products h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1.1rem;
    margin: 0;
}

/* Mensagem de erro de carregamento */
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.error-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dc3545;
    opacity: 0.8;
}

.error-message h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.error-message .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.error-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-solid);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-solid);
}

/* Removido efeitos de partículas para manter background limpo */

/* Carrinho (modal legado no header) */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

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

.cart-item-image {
    width: 76px;
    height: 76px;
    object-fit: contain;
    object-position: center;
    background: var(--color-border-subtle);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

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

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--color-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-text);
}

.quantity-btn:hover {
    background-color: var(--color-border-subtle);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
}

.remove-item-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 5px;
}

.remove-item-btn:hover {
    color: #c82333;
}

/* Links de produto → catalog-vitrine.css (Fase 12). */

/* ===========================================
   WHATSAPP FLUTUANTE
   =========================================== */

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1040;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
    text-decoration: none;
    color: var(--color-text-inverse);
    font-size: 1.65rem;
}

.whatsapp-float.whatsapp-float--intro {
    animation: pulse-whatsapp-intro 1.2s ease-out 1;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-inverse);
    text-decoration: none;
}

.whatsapp-float:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@keyframes pulse-whatsapp-intro {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
        transform: scale(0.92);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.12);
        transform: scale(1.04);
    }
    100% {
        box-shadow: var(--shadow-md);
        transform: scale(1);
    }
}

/* Tooltip do WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text);
    color: var(--color-text-inverse);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-text);
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Voltar ao topo — acima do WhatsApp, raio e cor brand */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: calc(24px + 56px + 12px);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-brand);
    box-shadow: var(--shadow-md);
    z-index: 1039;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-md);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

body.dark-theme .back-to-top {
    background: var(--color-surface-elevated);
    border-color: var(--color-border);
    color: var(--color-text);
}

body.dark-theme .back-to-top:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-text-inverse);
}

/* Responsividade do WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 1.55rem;
    }

    .back-to-top {
        right: 20px;
        bottom: calc(20px + 56px + 10px);
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Esconder WhatsApp quando não há celular */
.whatsapp-float.hidden {
    display: none;
}

/* Menu de Navegação com Categorias */
.header-navigation {
    background: var(--color-border-subtle);
    border-top: 1px solid rgba(13, 13, 13, 0.1);
}

.header-navigation .navbar {
    padding: 0.5rem 0;
}

/* Links da navegação do header */
.header-navigation .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.header-navigation .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(13, 13, 13, 0.1);
    text-decoration: none;
}

.header-navigation .nav-link:focus {
    color: var(--primary-color) !important;
    background-color: rgba(13, 13, 13, 0.1);
    box-shadow: 0 0 0 2px rgba(13, 13, 13, 0.2);
}

.header-navigation .nav-link.dropdown-toggle::after {
    border-top-color: var(--text-primary);
}

/* Botão Principal de Categorias */
.categories-main-btn {
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 13, 13, 0.1);
    border: 1px solid rgba(13, 13, 13, 0.2);
}

.categories-main-btn:hover {
    color: var(--primary-color) !important;
    background: rgba(13, 13, 13, 0.2);
    transform: translateY(-1px);
    border-color: rgba(13, 13, 13, 0.3);
    box-shadow: 0 2px 8px rgba(13, 13, 13, 0.15);
}

.categories-main-btn:focus {
    color: var(--primary-color) !important;
    background: rgba(13, 13, 13, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(13, 13, 13, 0.25);
}

.categories-main-btn i {
    font-size: 1rem;
}

/* Dropdown de Categorias */
.categories-dropdown {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.categories-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    background: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.categories-dropdown .dropdown-item:hover {
    background: var(--glass-bg);
    color: var(--color-brand);
    transform: translateX(5px);
    font-weight: 600;
}

.categories-dropdown .dropdown-item.active {
    background: rgba(242, 5, 25, 0.15);
    color: #7ba31a;
    font-weight: 600;
    border-left: 3px solid #F20519;
}

.categories-dropdown .dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.categories-dropdown .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
}

.categories-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--color-border);
}

.categories-dropdown .dropdown-item-text {
    padding: 0.75rem 1.5rem;
    color: #666666;
    font-style: italic;
}

/* Loading no Dropdown */
.loading-categories-nav {
    color: #666666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .categories-dropdown {
        min-width: 250px;
        max-height: 300px;
    }
    
    .categories-main-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .categories-dropdown {
        min-width: 200px;
        max-height: 250px;
    }
    
    .categories-main-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
    
    .categories-dropdown .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Tema Escuro */
body.dark-theme .header-navigation {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .categories-main-btn {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .categories-main-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .categories-dropdown {
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-theme .categories-dropdown .dropdown-item {
    color: var(--color-text);
    text-shadow: none;
}

body.dark-theme .categories-dropdown .dropdown-item:hover {
    background: var(--glass-bg);
    color: var(--color-brand);
    font-weight: 600;
}

body.dark-theme .categories-dropdown .dropdown-item.active {
    background: rgba(242, 5, 25, 0.25);
    color: #F20519;
    font-weight: 600;
    border-left: 3px solid #F20519;
}

body.dark-theme .categories-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .loading-categories-nav {
    color: #aaaaaa;
}

/* Header legado removido — fonte única: header-layout.css (Fase estética) */

/* ===========================================
   FOOTER MODERNO — profissional e interativo
   .footer-modern2 = alias legado (mesmos estilos)
   =========================================== */

.footer-modern,
.footer-modern2 {
    --footer-text-muted: #b3b3b3;
    --footer-link-color: #f0f0f0;
    --footer-link-hover: #F20519;
    --footer-title-color: #ffffff;
    --footer-btn-on-accent: #0D0D0D;
    --footer-surface: #161616;
    --footer-surface-border: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #0D0D0D 0%, #141414 48%, #0D0D0D 100%);
    color: var(--footer-link-color);
    padding: 0 0 1.5rem;
    margin-top: 4.5rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--color-accent);
}

.footer-modern__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(242, 5, 25, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(191, 4, 4, 0.08) 0%, transparent 45%);
}

.footer-modern__inner {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
}

/* CTA superior */
.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 2rem;
    background: var(--footer-surface);
    border: 1px solid var(--footer-surface-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.footer-cta__eyebrow {
    margin: 0 0 0.35rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--footer-link-hover);
}

.footer-cta__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.15rem, 2vw, var(--text-xl));
    font-weight: 700;
    color: var(--footer-title-color);
    letter-spacing: var(--tracking-tight);
}

.footer-cta__text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--footer-text-muted);
    max-width: 36ch;
    line-height: var(--leading-relaxed);
}

.footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    white-space: nowrap;
    font-weight: 600;
}

.footer-cta .btn.btn-accent {
    --bs-btn-color: var(--footer-btn-on-accent);
    --bs-btn-hover-color: var(--footer-btn-on-accent);
    --bs-btn-active-color: var(--footer-btn-on-accent);
}

.footer-cta .btn.btn-outline-secondary {
    --bs-btn-color: var(--footer-link-color);
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--color-accent);
    --bs-btn-hover-border-color: var(--color-accent);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--color-accent-hover);
    --bs-btn-active-border-color: var(--color-accent-hover);
}

.footer-cta__btn--whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #25d366;
    --bs-btn-border-color: #25d366;
    --bs-btn-hover-bg: #20ba5a;
    --bs-btn-hover-border-color: #20ba5a;
    --bs-btn-hover-color: #fff;
}

.footer-cta__btn--whatsapp.hidden {
    display: none !important;
}

.footer-main {
    margin-bottom: 0.5rem;
}

.footer-section {
    margin-bottom: 0;
    height: 100%;
}

.footer-brand-card {
    padding: 1.15rem;
    background: var(--footer-surface);
    border: 1px solid var(--footer-surface-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--transition), transform var(--transition);
}

.footer-brand-card:hover {
    box-shadow: var(--shadow-md);
}

.footer-logo {
    margin-bottom: 0.85rem;
}

.footer-company-logo {
    max-width: 220px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--footer-surface-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    box-shadow: none;
    transition: transform var(--transition);
}

.footer-brand-card:hover .footer-company-logo {
    transform: scale(1.02);
}

.footer-brand-name {
    margin: 0 0 0.35rem;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--footer-title-color);
    line-height: var(--leading-tight);
}

.footer-text {
    color: var(--footer-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: 0.35rem;
}

.footer-text--cnpj {
    margin-bottom: 0;
    font-size: var(--text-xs);
    opacity: 1;
}

.footer-company-logo.is-hidden {
    display: none !important;
}

.footer-logo-skeleton {
    width: 180px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--color-border-subtle) 25%, var(--color-surface) 50%, var(--color-border-subtle) 75%);
    background-size: 200% 100%;
    animation: footer-shimmer 1.4s ease-in-out infinite;
}

.footer-modern.is-loaded .footer-logo-skeleton,
.footer-modern2.is-loaded .footer-logo-skeleton {
    display: none;
}

.footer-skeleton-line {
    display: block;
    height: 0.85rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--color-border-subtle) 25%, var(--color-surface) 50%, var(--color-border-subtle) 75%);
    background-size: 200% 100%;
    animation: footer-shimmer 1.4s ease-in-out infinite;
}

.footer-skeleton-line--lg { width: 85%; }
.footer-skeleton-line--md { width: 70%; }
.footer-skeleton-line--sm { width: 55%; }
.footer-skeleton-line--short { width: 45%; }

.footer-skeleton-item {
    list-style: none;
    margin-bottom: 0.65rem;
}

.footer-title {
    color: var(--footer-title-color);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.55rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
}

/* Cards de contato clicáveis */
.footer-contact-card {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: var(--footer-surface);
    border: 1px solid var(--footer-surface-border);
    border-radius: var(--radius-sm);
    color: var(--footer-text-muted);
    text-decoration: none;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.footer-contact-card.is-visible {
    display: flex;
}

.footer-contact-card:hover {
    color: var(--footer-link-color);
    border-color: rgba(242, 5, 25, 0.45);
    background: rgba(242, 5, 25, 0.06);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.footer-contact-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(242, 5, 25, 0.12);
    color: var(--color-accent);
    font-size: 1rem;
}

.footer-contact-card__body {
    flex: 1;
    min-width: 0;
}

.footer-contact-card__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--footer-text-muted);
    margin-bottom: 0.1rem;
}

.footer-contact-card__value {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--footer-link-color);
    line-height: var(--leading-normal);
    word-break: break-word;
}

.footer-contact-card__arrow {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--transition), transform var(--transition), color var(--transition);
}

.footer-contact-card:hover .footer-contact-card__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-accent);
}

.footer-contact-card--address .footer-contact-card__value {
    font-weight: 400;
}

/* Legado skeleton */
.footer-contact-item {
    display: none;
}

.footer-contact-item--skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-modern.is-loaded .footer-contact-item--skeleton,
.footer-modern2.is-loaded .footer-contact-item--skeleton {
    display: none;
}

.footer-modern.is-loaded [data-footer-loading="true"] .footer-skeleton-line,
.footer-modern2.is-loaded [data-footer-loading="true"] .footer-skeleton-line {
    display: none;
}

.footer-modern.is-loaded [data-footer-loading="true"]:empty,
.footer-modern2.is-loaded [data-footer-loading="true"]:empty {
    display: none;
}

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

.footer-link--placeholder,
.social-link.footer-link--placeholder {
    display: none !important;
}

#footer-social-links:not(.has-visible-items) {
    display: none;
}

.footer-links {
    border-top: 1px solid var(--footer-surface-border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-column__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--footer-surface-border);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.footer-column__toggle .footer-subtitle {
    margin: 0;
    padding: 0;
}

.footer-column__toggle .footer-subtitle::after {
    display: none;
}

.footer-column__chevron {
    font-size: 1rem;
    color: var(--footer-text-muted);
    transition: transform var(--transition);
}

.footer-column.is-open .footer-column__chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

@media (max-width: 767.98px) {
    .footer-column__panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height var(--transition-slow),
            opacity var(--transition),
            padding var(--transition);
        padding-top: 0;
    }

    .footer-column.is-open .footer-column__panel {
        max-height: 420px;
        opacity: 1;
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .footer-column__panel {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        padding-top: 0 !important;
    }
}

.footer-subtitle {
    color: var(--footer-title-color);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.85rem;
    position: relative;
    padding-bottom: 0.45rem;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1.75rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

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

.footer-list li {
    margin-bottom: 0.45rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.2rem 0;
    transition: color var(--transition), transform var(--transition);
    position: relative;
}

.footer-link:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
    border-radius: 1px;
}

.footer-link:hover::before {
    width: 6px;
}

.footer-link--emphasis {
    font-weight: 600;
    color: var(--footer-title-color);
}

.footer-link--emphasis:hover {
    color: var(--footer-link-hover);
}

.footer-list .badge {
    font-size: var(--text-xs);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--footer-text-muted);
    border: 1px solid var(--footer-surface-border);
    vertical-align: middle;
}

.social-links,
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--footer-surface);
    border: 1px solid var(--footer-surface-border);
    border-radius: var(--radius-full);
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 1.15rem;
    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--footer-btn-on-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.footer-modern .social-link:hover,
.footer-modern2 .social-link:hover {
    color: var(--footer-btn-on-accent);
}

.footer-bottom {
    border-top: 1px solid var(--footer-surface-border);
    padding-top: 1.25rem;
    margin-top: 2rem;
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.copyright-text {
    color: var(--footer-text-muted);
    font-size: var(--text-xs);
    margin: 0;
}

.powered-by {
    color: var(--footer-text-muted);
    font-size: var(--text-xs);
    margin: 0;
}

.gestaopro-link {
    color: var(--footer-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.gestaopro-link:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.gestaopro-link strong {
    color: inherit;
    font-weight: 600;
}

/* Reveal ao rolar */
.footer-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-reveal.is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .footer-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .footer-contact-card:hover,
    .footer-link:hover,
    .social-link:hover,
    .footer-brand-card:hover {
        transform: none;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-modern,
    .footer-modern2 {
        margin-top: 3rem;
    }

    .footer-modern__inner {
        padding-top: 1.75rem;
    }

    .footer-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem;
    }

    .footer-cta__actions {
        flex-direction: column;
    }

    .footer-cta__btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

body.dark-theme .footer-modern,
body.dark-theme .footer-modern2,
html.catalogo-theme-dark .footer-modern,
html.catalogo-theme-dark .footer-modern2 {
    --footer-text-muted: #a3a3a3;
    --footer-link-color: #f5f5f5;
    --footer-link-hover: #F20519;
    --footer-title-color: #ffffff;
    --footer-btn-on-accent: #0D0D0D;
    --footer-surface: #1a1a1a;
    --footer-surface-border: rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #0D0D0D 0%, #121212 50%, #0D0D0D 100%);
    border-top-color: var(--color-accent);
}

body.dark-theme .footer-modern__decor,
html.catalogo-theme-dark .footer-modern__decor {
    background-image:
        radial-gradient(circle at 12% 8%, rgba(242, 5, 25, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 88% 92%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
}

body.dark-theme .footer-cta,
body.dark-theme .footer-brand-card,
body.dark-theme .footer-contact-card,
html.catalogo-theme-dark .footer-cta,
html.catalogo-theme-dark .footer-brand-card,
html.catalogo-theme-dark .footer-contact-card {
    background: var(--footer-surface);
    border-color: var(--footer-surface-border);
}

body.dark-theme .footer-cta__eyebrow,
html.catalogo-theme-dark .footer-cta__eyebrow {
    color: var(--color-accent-bright);
}

body.dark-theme .footer-cta__text,
html.catalogo-theme-dark .footer-cta__text {
    color: var(--footer-text-muted);
}

body.dark-theme .footer-cta .btn.btn-outline-secondary,
html.catalogo-theme-dark .footer-cta .btn.btn-outline-secondary {
    --bs-btn-color: var(--footer-link-color);
    --bs-btn-border-color: rgba(255, 255, 255, 0.35);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--color-accent);
    --bs-btn-hover-border-color: var(--color-accent);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--color-accent-hover);
    --bs-btn-active-border-color: var(--color-accent-hover);
}

body.dark-theme .footer-contact-card:hover,
html.catalogo-theme-dark .footer-contact-card:hover {
    background: rgba(242, 5, 25, 0.1);
    color: var(--footer-link-color);
}

body.dark-theme .footer-contact-card:hover .footer-contact-card__value,
html.catalogo-theme-dark .footer-contact-card:hover .footer-contact-card__value {
    color: var(--footer-title-color);
}

body.dark-theme .footer-company-logo,
html.catalogo-theme-dark .footer-company-logo {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-border);
}

body.dark-theme .footer-skeleton-line,
body.dark-theme .footer-logo-skeleton,
html.catalogo-theme-dark .footer-skeleton-line,
html.catalogo-theme-dark .footer-logo-skeleton {
    background: linear-gradient(90deg, var(--color-border-subtle) 25%, rgba(255, 255, 255, 0.08) 50%, var(--color-border-subtle) 75%);
    background-size: 200% 100%;
}

body.dark-theme .footer-column__toggle,
html.catalogo-theme-dark .footer-column__toggle {
    color: var(--footer-title-color);
}

body.dark-theme .footer-list .badge,
html.catalogo-theme-dark .footer-list .badge {
    background: var(--color-surface-elevated) !important;
    color: var(--footer-text-muted);
    border: 1px solid var(--color-border);
}

/* ===========================================
   FILTROS DE ORDENAÇÃO E ESTOQUE
   =========================================== */

.filtros-ordenacao {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.filtros-ordenacao .btn-group .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filtros-ordenacao .btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filtros-ordenacao .btn-group .btn.active {
    background: var(--primary-gradient);
    color: var(--color-text-inverse);
    border-color: var(--color-brand);
    box-shadow: var(--shadow-md);
}

.filtros-ordenacao .btn-group .btn i {
    margin-right: 0.5rem;
}

.filtros-ordenacao .vr {
    height: 2rem;
    width: 1px;
    background: #dee2e6;
    margin: 0 1rem;
}

.filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn.active {
    color: white;
    border-color: currentColor;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn-outline-success.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn-outline-warning.active {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border-color: #ffc107;
}

/* Tema escuro para filtros */
body.dark-theme .filtros-ordenacao {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .filtros-ordenacao .btn-group .btn {
    background: var(--color-surface-elevated);
    color: var(--color-text);
    border-color: var(--color-border);
}

body.dark-theme .filtros-ordenacao .btn-group .btn:hover {
    background: var(--glass-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}

body.dark-theme .filtros-ordenacao .btn-group .btn.active {
    background: var(--primary-gradient);
    color: var(--color-text-inverse);
    border-color: var(--color-brand);
}

body.dark-theme .filtros-ordenacao .vr {
    background: var(--color-border);
}

body.dark-theme .filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn {
    background: var(--color-surface-elevated);
    color: var(--color-text);
    border-color: var(--color-border);
}

body.dark-theme .filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn:hover {
    background: var(--glass-bg);
    color: var(--color-text);
}

body.dark-theme .filtros-ordenacao [role="group"][aria-label="Filtros de estoque"] .btn.active {
    color: white;
}

/* Estilos para filtros mobile */
.d-md-none {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.d-md-none .form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.d-md-none .btn-group.w-100 {
    gap: 0;
}

.d-md-none .btn-group .btn {
    border-radius: 0;
    font-size: 0.875rem;
    padding: 0.5rem;
}

.d-md-none .btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.d-md-none .btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.d-md-none .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.d-md-none .btn-group .btn.active {
    color: white;
    border-color: currentColor;
}

.d-md-none .btn-group .btn-outline-primary.active {
    background: var(--primary-gradient);
    border-color: var(--color-brand);
}

.d-md-none .btn-group .btn-outline-secondary.active {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    border-color: #6c757d;
}

.d-md-none .btn-group .btn-outline-success.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.d-md-none .btn-group .btn-outline-warning.active {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border-color: #ffc107;
}

/* Tema escuro para filtros mobile */
body.dark-theme .d-md-none {
    background: rgba(45, 45, 45, 0.95);
    border: 1px solid #404040;
}

body.dark-theme .d-md-none .form-label {
    color: #e0e0e0;
}

body.dark-theme .d-md-none .btn {
    background: rgba(60, 60, 60, 0.8);
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .d-md-none .btn:hover {
    background: rgba(80, 80, 80, 0.9);
}

/* Responsividade para filtros desktop */
@media (max-width: 992px) {
    .filtros-ordenacao {
        padding: 0.75rem;
    }
    
    .filtros-ordenacao .btn-group .btn span {
        display: none;
    }
}

@media (max-width: 768px) {
    .filtros-ordenacao {
        padding: 0.5rem;
    }
}

/* Preços promocionais → catalog-vitrine.css (Fase 12). */