/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   BARRA DE PROGRESSO GLOBAL
   ============================================ */
.progress-bar-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar-global.active {
    opacity: 1;
}

.progress-bar-global .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00b894, #00cec9, #0984e3);
    background-size: 200% 100%;
    animation: progressGradient 2s linear infinite;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
    transition: width 0.3s ease-out;
}

.progress-bar-global.indeterminate .progress-bar-fill {
    width: 30%;
    animation: progressGradient 2s linear infinite, progressIndeterminate 1.5s ease-in-out infinite;
}

@keyframes progressGradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes progressIndeterminate {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

/* Performance: usar will-change apenas quando necessário */
/* Performance: preferir transform e opacity para animações */

/* Desabilitar zoom no mobile e scroll suave */
html {
    touch-action: manipulation;
    scroll-behavior: smooth;
    /* Performance: habilitar GPU para scroll suave */
    -webkit-overflow-scrolling: touch;
}

:root {
    --primary-gradient: linear-gradient(135deg, #003d7a 0%, #002850 100%);
    --primary-dark: #002850;
    --primary: #003d7a;
    --primary-light: #0056a8;
    --secondary: #00b894;
    --accent: #fdcb6e;
    --success: #00b894;
    --warning: #e17055;
    --danger: #d63031;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance: usar transform para transições */
    --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
    letter-spacing: -0.3px;
    /* Performance: evitar layout shifts */
    text-rendering: optimizeSpeed;
}

html {
    overflow-x: hidden;
}

/* Performance: contain para elementos independentes */
.product-card,
.vitrine-item {
    contain: layout style;
}

/* Barra Superior de Informações */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    padding: 6px 0;
    font-size: 11px;
    border-bottom: none;
    letter-spacing: 0.2px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.top-bar-info i {
    font-size: 10px;
    opacity: 0.85;
}

.top-bar-separator {
    opacity: 0.4;
    margin: 0 4px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.top-bar-contact a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.top-bar-contact a:hover {
    color: #fff;
}

.top-bar-contact i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* Header */
.header {
    background: white;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
    box-shadow: none;
    border-bottom: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Busca no Header */
.header-search {
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
    background: white;
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 14px;
    padding: 11px 15px;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-light);
    font-size: 13px;
}

.header-search .search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

.header-search .search-btn:hover {
    background: var(--primary-dark);
}

.header-search .search-btn i {
    font-size: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo {
    cursor: default;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Area no Header */
.user-area {
    display: flex;
    align-items: center;
}

.login-btn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.login-btn-header:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.login-btn-header i {
    font-size: 14px;
}

/* Botão de Login Clean (apenas texto, sem caixa) */
.login-btn-header-clean {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-dark);
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn-header-clean:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.login-btn-header-clean i {
    font-size: 16px;
    color: var(--primary);
}

/* Botão de Login Elaborado (com saudação e CTA) */
.login-btn-header-elaborate {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.login-btn-header-elaborate:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 82, 147, 0.1);
}

.login-btn-header-elaborate .login-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn-header-elaborate .login-btn-icon i {
    font-size: 28px;
    color: var(--primary);
}

.login-btn-header-elaborate .login-btn-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.login-btn-header-elaborate .login-greeting {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.login-btn-header-elaborate .login-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--primary);
    white-space: nowrap;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.user-info-header:hover {
    background: var(--border-color);
}

.user-info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.user-greeting {
    font-size: 13px;
    color: #333;
    font-style: italic;
}

.user-greeting strong {
    font-style: normal;
    font-weight: 600;
}

.user-razao {
    font-size: 11px;
    color: #555;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-link {
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-link i {
    font-size: 10px;
}

.user-info-header > i:first-child {
    font-size: 20px;
    color: var(--primary);
}

.user-dropdown-header {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 0;
}

/* Ponte invisível entre o header e o dropdown para evitar que desapareça */
.user-dropdown-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.user-info-header:hover .user-dropdown-header {
    display: block;
}

.user-dropdown-header a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.user-dropdown-header a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.user-dropdown-header a i {
    font-size: 14px;
    color: var(--text-medium);
    width: 16px;
}

.whatsapp-btn-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #128C7E;
    color: white;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.whatsapp-btn-header:hover {
    background: #075E54;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.whatsapp-btn-header i {
    font-size: 16px;
}

.whatsapp-btn-header .whatsapp-text {
    display: inline;
}

@media (max-width: 992px) {
    .whatsapp-btn-header .whatsapp-text {
        display: none;
    }
}

.cart-btn {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--border-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Categories Bar - Estilo Limpo */
.categories-bar {
    background: white;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 0 20px;
    border: none;
}

.categories-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
}

.categories-nav {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    flex: 1;
    justify-content: flex-start;
}

.categories-nav li {
    flex-shrink: 0;
}

.categories-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.2px;
    border-radius: 0;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    background: transparent;
}

.categories-nav a:hover {
    color: var(--primary);
    background: transparent;
}

.categories-nav a.active {
    color: var(--primary);
    background: transparent;
    font-weight: 600;
}

.categories-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* Botão Ver Mais Categorias */
.categories-more {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.categories-more:hover {
    color: var(--primary);
}

.categories-more.visible {
    display: flex;
}

/* Botão Todas as Categorias */
.all-categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    background: transparent;
    border-radius: 0;
    margin-right: 0;
    border-right: 1px solid var(--border-color);
}

.all-categories-btn:hover {
    color: var(--primary);
    background: transparent;
}

.all-categories-btn i.fa-bars {
    color: var(--accent);
}

.all-categories-btn .chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.all-categories-btn.open .chevron {
    transform: rotate(180deg);
}

/* Dropdown de todas as categorias */
.all-categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 280px;
    max-height: 450px;
    overflow-y: auto;
    margin-top: 5px;
}

.all-categories-dropdown.open {
    display: block;
}

.all-categories-dropdown ul {
    list-style: none;
    padding: 10px 0;
}

.all-categories-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.all-categories-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Dropdown de categorias extras */
.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.categories-dropdown.open {
    display: block;
}

.categories-dropdown ul {
    list-style: none;
    padding: 10px 0;
}

.categories-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.categories-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Responsividade do Header e Categorias */
@media (max-width: 992px) {
    .header-container {
        gap: 10px;
    }
    
    .header-search {
        max-width: 350px;
    }
    
    .login-btn-header span,
    .whatsapp-btn-header .whatsapp-text {
        display: none;
    }
    
    .login-btn-header,
    .whatsapp-btn-header {
        padding: 10px 12px;
    }
    
    .categories-nav li {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .header-actions {
        order: 2;
        gap: 8px;
        flex: 0 0 auto;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    
    .header-search input {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .header-search .search-btn {
        padding: 12px 16px;
    }
    
    .header-search .search-btn span {
        display: none;
    }
    
    .user-info-header,
    .login-btn-header,
    .favoritos-btn-header,
    .whatsapp-btn-header,
    .cart-btn {
        padding: 8px 10px;
    }
    
    .user-name-header {
        display: none;
    }
    
    /* Categorias - só mostrar dropdown no mobile */
    .categories-nav {
        display: none;
    }
    
    .all-categories-btn {
        flex: 1;
        justify-content: center;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .user-info-header,
    .login-btn-header,
    .login-btn-header-clean,
    .login-btn-header-elaborate,
    .favoritos-btn-header,
    .whatsapp-btn-header,
    .cart-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    .login-btn-header-clean span {
        display: none;
    }
    
    /* Simplificar botão elaborado em telas menores */
    .login-btn-header-elaborate .login-btn-text {
        display: none;
    }
    
    .login-btn-header-elaborate {
        padding: 8px 12px;
    }
    
    .login-btn-header-elaborate .login-btn-icon i {
        font-size: 22px;
    }
    
    .user-info-header > i:first-child {
        font-size: 16px;
    }
    
    .cart-btn,
    .favoritos-btn-header {
        font-size: 14px;
    }
}

/* Banner Info (substituiu Hero Search) */
.banner-info {
    background: var(--primary-gradient);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.banner-content h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Vitrines da Home */
.vitrines-home {
    margin-bottom: 30px;
}

.vitrine {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 25px;
}

.vitrine-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.vitrine-header-nav {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.vitrine-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: var(--transition);
}

.vitrine-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.vitrine-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vitrine-nav-btn:disabled:hover {
    background: white;
    color: var(--text-medium);
    border-color: var(--border-color);
}

.vitrine-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.vitrine-header h2 i {
    color: var(--primary);
}

.vitrine-badge {
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
}

.vitrine-produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .vitrine-produtos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vitrine-produtos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vitrine-produtos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Card de vitrine */
.vitrine-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vitrine-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.vitrine-card-image {
    height: 220px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vitrine-card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.vitrine-card:hover .vitrine-card-image img {
    transform: scale(1.03);
}

.vitrine-card-image .no-image {
    color: var(--text-light);
    font-size: 48px;
}

/* Navegação de imagens no card da vitrine */
.vitrine-card-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Container não intercepta cliques */
    z-index: 10;
}

.vitrine-card:hover .vitrine-card-nav,
.vitrine-card-nav:focus-within {
    opacity: 1;
    /* Mantém pointer-events: none no container, só os botões são clicáveis */
}

/* Em dispositivos touch, sempre mostrar os botões de navegação */
@media (hover: none) {
    .vitrine-card-nav {
        opacity: 1;
    }
}

.vitrine-img-nav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 11;
    pointer-events: auto; /* Apenas os botões são clicáveis */
}

.vitrine-img-nav:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Dots indicadores de imagem */
.vitrine-card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vitrine-card:hover .vitrine-card-dots {
    opacity: 1;
}

.vitrine-card-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.vitrine-card-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.vitrine-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--border-color);
}

/* Header do card: código + marca na mesma linha */
.vitrine-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vitrine-card-code {
    color: var(--text-medium);
    font-size: 12px;
    font-weight: 500;
}

.vitrine-card-brand {
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vitrine-card-brand:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vitrine-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    margin-bottom: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.vitrine-card-name:hover {
    color: var(--primary);
}

/* Categoria do card */
.vitrine-card-category {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: auto;
    padding-bottom: 8px;
    text-transform: uppercase;
}

/* Ações do card da vitrine */
.vitrine-card-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.btn-view-details-vitrine {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0 15px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-details-vitrine:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

.vitrine-add-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}

.qty-control-mini {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--primary);
    height: 36px;
}

.qty-btn-mini {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-mini:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary);
}

.qty-input-mini {
    width: 40px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input-mini::-webkit-outer-spin-button,
.qty-input-mini::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-vitrine {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0 16px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-vitrine:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-sm);
}

/* Botão quando produto já está no carrinho */
.btn-add-vitrine.in-cart {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-add-vitrine.in-cart:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
}

/* Vitrine Inteligente (Recomendados) - Estilo padrão */
.vitrine-inteligente .vitrine-header h2 i {
    color: #ffc107;
}

/* Vitrine Compre Novamente - Estilo personalizado */
.vitrine-compre-novamente .vitrine-header h2 i {
    color: #27ae60;
}

.vitrine-compre-novamente .vitrine-header h2 {
    background: linear-gradient(90deg, var(--text-dark) 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vitrine de Liquidação - Estilo padrão, apenas destaque no título */
.vitrine-liquidacao .vitrine-header h2 {
    color: #d63031;
}

.badge-liquidacao {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-weight: 600;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Card com Liquidação */
.vitrine-card-liquidacao {
    position: relative;
}

.badge-liquidacao-vitrine {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b, #d63031);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

.badge-liquidacao-vitrine i {
    font-size: 10px;
}

/* Indicador de página nas vitrines */
.vitrine-pagina {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0 10px;
}

.products-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.products-title-area {
    flex: 1;
    min-width: 0; /* Importante para text-overflow funcionar em flex */
    max-width: 50%;
}

.products-title-area h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-subtitle {
    color: var(--text-medium);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: var(--bg-light);
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-gradient);
    color: white;
}

/* Ações do header de produtos */
.products-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Filtros de Busca Dinâmicos */
.filtros-busca {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filtros-busca select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 160px;
    max-width: 200px;
    transition: all 0.2s ease;
}

.filtros-busca select:hover {
    border-color: var(--primary);
}

.filtros-busca select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.filtros-busca select option {
    color: var(--text-dark);
}

.btn-limpar-filtros {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-limpar-filtros:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.btn-limpar-filtros i {
    font-size: 10px;
}

/* Filtro de Ordenação */
.ordenacao-filtro {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ordenacao-filtro label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ordenacao-filtro label i {
    font-size: 12px;
    color: var(--primary);
}

.ordenacao-filtro select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 150px;
    transition: all 0.2s ease;
}

.ordenacao-filtro select:hover {
    border-color: var(--primary);
}

.ordenacao-filtro select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Modo lista para vitrine-card no grid */
.products-grid.list-view .vitrine-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
}

.products-grid.list-view .vitrine-card-image {
    width: 180px;
    min-width: 180px;
    height: 180px;
    flex-shrink: 0;
    position: relative;
}

.products-grid.list-view .vitrine-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .vitrine-card-name {
    -webkit-line-clamp: 3;
}

/* Favoritos e marca no modo lista - mover para não sobrepor */
.products-grid.list-view .btn-favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
}

.products-grid.list-view .vitrine-card-brand {
    position: relative;
    z-index: 5;
}

/* Estilos antigos mantidos para compatibilidade */
.products-grid.list-view .product-card {
    display: flex;
    gap: 20px;
}

.products-grid.list-view .product-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
}

/* Product Card (mantido para compatibilidade) */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .no-image {
    color: var(--text-light);
    font-size: 48px;
}

.product-info {
    padding: 15px;
}

.product-code-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.product-code {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.product-brand {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-brand:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    color: var(--text-medium);
    font-size: 13px;
    margin-bottom: 15px;
}

/* Botão Ver Detalhes para produtos PAI */
.btn-view-details {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-details:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-unit {
    color: var(--text-medium);
    font-size: 12px;
    margin-bottom: 12px;
}

/* Add Button Modern */
.add-button-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border-color);
}

.qty-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-add-cart.added {
    background: var(--success);
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    max-width: 95vw;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-light);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-image:hover {
    border-color: var(--primary);
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-code {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty label {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 500;
}

.cart-item-qty input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: scale(1.05);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background: white;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-summary {
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-medium);
}

.cart-summary-row span:first-child {
    font-weight: 500;
}

.cart-summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-summary-total {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}

.cart-summary-total strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.btn-ir-carrinho {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.btn-ir-carrinho:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.4);
}

.btn-ir-carrinho i {
    font-size: 18px;
}

/* Cart Item Redesign */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-image:hover {
    border-color: var(--primary);
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-image i {
    color: #ccc;
    font-size: 20px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    cursor: pointer;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-code {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-marca {
    font-size: 10px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 24px;
    text-align: center;
}

.cart-item-preco {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
}

.cart-item-preco-unit {
    font-size: 11px;
    color: var(--text-medium);
}

.cart-item-preco-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 12px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
}

/* Cart Empty State */
.cart-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.cart-empty-state i {
    font-size: 56px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.cart-empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.cart-empty-state p {
    font-size: 13px;
    color: var(--text-medium);
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-light);
}

.btn-generate-pdf {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-bottom: 10px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a5f7a 0%, #0d3d4d 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #0d3d4d 0%, #1a5f7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

.btn-whatsapp-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.btn-whatsapp-cart:hover {
    background: #128C7E;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease;
}

.modal-small {
    max-width: 500px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-medium);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-subtitle {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* Product Detail Modal */
.modal-product-detail {
    max-width: 950px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.product-detail-image {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-detail-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.product-detail-info {
    padding: 10px 0;
}

.product-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-detail-info h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-detail-code {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    background: rgba(0, 61, 122, 0.08);
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.product-detail-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.product-detail-brand:hover {
    transform: scale(1.05);
}

.product-detail-category {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.product-detail-category i {
    color: var(--primary);
}

/* Seção de adicionar do modal */
.product-detail-add-section {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.product-detail-add-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.product-detail-add-section .add-button-modern {
    max-width: 100%;
}

/* Children Section */
.children-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.children-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.children-count {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.children-section h3 i {
    color: var(--primary);
}

.children-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
}

.child-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.child-item:hover {
    background: white;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.child-item.selected {
    border: 2px solid var(--primary);
    background: rgba(0, 61, 122, 0.05);
}

.child-image {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.child-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.child-image .no-image-small {
    color: var(--text-light);
    font-size: 24px;
}

.child-info {
    flex: 1;
    min-width: 0;
}

.child-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.child-code {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.child-add-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.child-add-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-add-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions .btn-secondary {
    width: auto;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.overlay.open {
    display: block;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--success);
    font-size: 18px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-medium);
    grid-column: 1 / -1;
}

/* Paginação */
.paginacao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.paginacao-info {
    color: var(--text-medium);
    font-size: 14px;
}

.paginacao-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pag-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pag-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pag-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
}

.pag-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.paginacao-porpagina {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paginacao-porpagina label {
    color: var(--text-medium);
    font-size: 14px;
}

.paginacao-porpagina select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.paginacao-porpagina select:hover {
    border-color: var(--primary);
}

.paginacao-porpagina select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* =====================================================
   RESPONSIVE - MOBILE FIRST
   ===================================================== */

/* Tablets e telas médias */
@media (max-width: 992px) {
    .header-search {
        max-width: 350px;
    }
    
    .vitrines-section {
        padding: 30px 15px;
    }
    
    .vitrine-header h2 {
        font-size: 20px;
    }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 0 15px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .header-search .search-btn span {
        display: none;
    }
    
    .header-search .search-btn {
        padding: 14px 18px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .whatsapp-btn-header {
        padding: 10px 15px;
    }
    
    .whatsapp-btn-header span {
        display: none;
    }
    
    .cart-btn {
        padding: 10px 12px;
    }
    
    /* Top bar */
    .top-bar {
        padding: 6px 0;
        font-size: 11px;
    }
    
    /* Categorias */
    .categories-bar {
        padding: 8px 10px;
    }
    
    .all-categories-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .all-categories-btn span {
        display: none;
    }
    
    .all-categories-btn .chevron {
        display: none;
    }
    
    .categories-nav {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .categories-nav::-webkit-scrollbar {
        display: none;
    }
    
    .categories-nav a {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Vitrines */
    .vitrines-section {
        padding: 25px 10px;
    }
    
    .vitrine-header {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    .vitrine-header h2 {
        font-size: 18px;
    }
    
    .vitrine-nav {
        gap: 8px;
    }
    
    .vitrine-nav button {
        width: 36px;
        height: 36px;
    }
    
    /* Cards das vitrines */
    .vitrine-card-image {
        height: 200px;
        padding: 15px;
    }
    
    .vitrine-card-info {
        padding: 12px;
    }
    
    .vitrine-card-name {
        font-size: 12px;
        min-height: 34px;
    }
    
    .vitrine-card-code {
        font-size: 11px;
    }
    
    .vitrine-card-brand {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .qty-control-mini {
        flex: 1;
    }
    
    .qty-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .qty-input-mini {
        width: 35px;
        font-size: 12px;
    }
    
    .btn-add-vitrine {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .btn-add-vitrine span {
        display: none;
    }
    
    /* Products Section */
    .products-section {
        padding: 20px 10px;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .products-title-area {
        max-width: 100%;
        width: 100%;
    }
    
    .products-title-area h2 {
        font-size: 18px;
    }
    
    .products-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filtros-busca {
        width: 100%;
        order: -1;
        margin-bottom: 5px;
    }
    
    .filtros-busca select {
        flex: 1;
        min-width: 120px;
        max-width: none;
        font-size: 12px;
        padding: 8px 28px 8px 10px;
    }
    
    .ordenacao-filtro {
        flex: 1;
    }
    
    .ordenacao-filtro label {
        display: none;
    }
    
    .ordenacao-filtro select {
        width: 100%;
        min-width: unset;
        font-size: 12px;
        padding: 8px 28px 8px 10px;
    }
    
    .products-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .view-switcher {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Modal */
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .cart-sidebar-header {
        padding: 15px;
    }
    
    .cart-sidebar-body {
        padding: 15px;
    }
    
    .cart-item {
        flex-direction: row;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .cart-sidebar-footer {
        padding: 15px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 12px 0;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .header-search input {
        padding: 12px 8px 12px 0;
        font-size: 14px;
    }
    
    .cart-btn {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .whatsapp-btn-header {
        padding: 8px 12px;
    }
    
    /* Top bar - esconder em telas muito pequenas */
    .top-bar-info span:not(:first-child) {
        display: none;
    }
    
    .top-bar-separator {
        display: none;
    }
    
    /* Categorias */
    .categories-bar {
        padding: 6px 8px;
    }
    
    .all-categories-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .categories-nav a {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Vitrines */
    .vitrines-section {
        padding: 20px 8px;
    }
    
    .vitrine-header h2 {
        font-size: 16px;
    }
    
    .vitrine-nav button {
        width: 32px;
        height: 32px;
    }
    
    /* Cards */
    .vitrine-card-image {
        height: 180px;
        padding: 12px;
    }
    
    .vitrine-card-info {
        padding: 10px;
    }
    
    .vitrine-card-header {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .vitrine-card-name {
        font-size: 11px;
        min-height: 30px;
    }
    
    .vitrine-card-category {
        font-size: 10px;
    }
    
    .vitrine-card-actions {
        padding-top: 8px;
    }
    
    .vitrine-add-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .qty-control-mini {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-vitrine {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-vitrine span {
        display: inline;
    }
    
    .btn-view-details-vitrine {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .products-title h1 {
        font-size: 20px;
    }
    
    .products-subtitle {
        font-size: 13px;
    }
    
    /* Modal */
    .modal-content {
        margin: 5px;
        border-radius: var(--radius-md);
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .product-gallery {
        height: 250px;
    }
    
    .product-images {
        height: 250px;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        min-width: 35px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Telas muito pequenas */
@media (max-width: 360px) {
    .header-container {
        gap: 8px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .vitrine-card-image {
        height: 180px;
    }
    
    .cart-btn,
    .whatsapp-btn-header {
        padding: 8px;
    }
}

/* Footer */
.footer {
    background: #f7f8f9;
    color: var(--text-dark);
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 30px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.footer-section h4 i {
    color: var(--primary);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.footer-slogan {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.footer-phone,
.footer-whatsapp,
.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    margin-top: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-phone:hover,
.footer-email:hover,
.footer-whatsapp:hover {
    color: var(--primary);
}

.footer-whatsapp i {
    color: #25D366;
}

.footer-bottom {
    background: white;
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-medium);
    margin: 0;
}

/* =====================================================
   RODAPÉ PROFISSIONAL - Padrão Azul do Site
   ===================================================== */

.footer-profissional {
    background: white;
    color: var(--text-dark);
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    padding: 50px 0 40px;
}

.footer-container-pro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-profissional .footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-profissional .footer-col h4 i {
    color: var(--accent);
}

.footer-profissional .footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-profissional .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-profissional .footer-slogan {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.footer-profissional .footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-profissional .footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-profissional .footer-link i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.footer-profissional .footer-link.footer-whatsapp i {
    color: #25D366;
}

.footer-profissional .footer-horario {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Selo SSL Profissional */
.footer-ssl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.footer-ssl i {
    font-size: 20px;
    color: #27ae60;
}

.footer-ssl .ssl-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-ssl .ssl-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 13px;
}

.footer-ssl .ssl-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Barra de Redes Sociais */
.footer-social-bar {
    background: white;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

.footer-social-bar .footer-container-pro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-bar .footer-ssl {
    margin: 0;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.linkedin {
    background: #0a66c2;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Google Reviews */
.google-reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.google-reviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.google-reviews i {
    font-size: 24px;
    color: #4285f4;
}

.reviews-info {
    display: flex;
    flex-direction: column;
}

.reviews-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.reviews-info span {
    font-size: 12px;
    color: #666;
}

/* Rodapé Inferior */
.footer-profissional .footer-bottom {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

.footer-profissional .footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-align: center;
}

/* Responsivo */
@media (max-width: 1024px) {
    .footer-container-pro {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-container-pro {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-profissional .footer-col h4 {
        justify-content: center;
    }
    
    .footer-profissional .footer-link {
        justify-content: center;
    }
    
    .footer-profissional .footer-link:hover {
        padding-left: 0;
    }
    
    .footer-social-bar .footer-container-pro {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-ssl {
        justify-content: center;
    }
}

/* =====================================================
   PREÇOS - Exibição para clientes logados
   ===================================================== */

.produto-preco {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    padding: 8px 0;
}

.preco-atual {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.preco-atual.promocao {
    color: var(--success);
}

.preco-antigo {
    font-size: 13px;
    color: var(--text-medium);
    text-decoration: line-through;
}

/* Preço no card da vitrine */
.vitrine-card .produto-preco {
    padding: 6px 0;
    margin-top: 4px;
    margin-bottom: auto;
}

.vitrine-card .preco-atual {
    font-size: 16px;
}

.vitrine-card .preco-antigo {
    font-size: 12px;
}

/* Preço "A partir de" para produtos com variações */
.preco-apartir {
    flex-direction: column;
    align-items: flex-start;
}

.apartir-label {
    font-size: 11px;
    color: var(--text-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preco-apartir .preco-atual {
    color: var(--primary);
}

/* Link "Ver preço" para usuários não logados */
.preco-login {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.ver-preco-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 82, 155, 0.08), rgba(0, 82, 155, 0.12));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.ver-preco-link:hover {
    background: linear-gradient(135deg, rgba(0, 82, 155, 0.15), rgba(0, 82, 155, 0.2));
    transform: translateY(-1px);
}

.ver-preco-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ver-preco-link i {
    font-size: 11px;
    opacity: 0.9;
}

.vitrine-card .ver-preco-link {
    font-size: 12px;
    padding: 6px 12px;
}

/* Preço carregando */
.preco-carregando {
    font-size: 13px;
    color: var(--text-medium);
    font-style: italic;
}

.preco-carregando i {
    margin-right: 5px;
    color: var(--primary);
}

/* =====================================================
   TAGS DE PRODUTO (IPI, Eletrônico, etc)
   ===================================================== */

.tag-ipi {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.aviso-eletronico {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 13px;
    color: #e65100;
}

.aviso-eletronico i {
    font-size: 16px;
    color: #ff9800;
}

.aviso-eletronico span {
    flex: 1;
    font-weight: 500;
}

/* Modal de Voltagem */
.modal-voltagem {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-voltagem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-voltagem-icon i {
    font-size: 36px;
    color: #ff9800;
}

.modal-voltagem h3 {
    color: #e65100;
    font-size: 22px;
    margin-bottom: 15px;
}

.modal-voltagem p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.modal-voltagem p strong {
    color: #333;
}

.modal-voltagem-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
}

.modal-voltagem-buttons .btn-cancelar {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-voltagem-buttons .btn-cancelar:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.modal-voltagem-buttons .btn-confirmar {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-voltagem-buttons .btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Aviso de venda múltipla */
.aviso-multipla {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1976d2;
    margin-top: 8px;
    padding: 6px 10px;
    background: #e3f2fd;
    border-radius: 6px;
}

.aviso-multipla i {
    font-size: 14px;
}

/* Tag no card da vitrine */
.vitrine-card .tag-ipi {
    font-size: 9px;
    padding: 2px 6px;
}

/* =====================================================
   FAVORITOS - Botão e estilos
   ===================================================== */

.btn-favorito {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition);
}

.btn-favorito:hover {
    transform: scale(1.1);
}

.btn-favorito i {
    font-size: 16px;
    color: var(--text-medium);
    transition: var(--transition);
}

.btn-favorito:hover i {
    color: #e74c3c;
}

.btn-favorito.favorito-ativo i {
    color: #e74c3c;
}

/* Posicionamento relativo para o card */
.vitrine-card {
    position: relative;
}

/* Contador de favoritos no header */
.favoritos-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão de favoritos no header */
.favoritos-btn-header {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: #e74c3c;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favoritos-btn-header:hover {
    background: var(--border-color);
    color: #e74c3c;
}

/* Botão de favoritos clean (quando logado) */
.favoritos-btn-header-clean {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-medium);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.favoritos-btn-header-clean i {
    font-size: 16px;
    color: #e74c3c;
}

.favoritos-btn-header-clean:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.favoritos-btn-header-clean span {
    color: inherit;
}

/* =====================================================
   PÁGINAS MINHA CONTA, FAVORITOS, PEDIDOS
   ===================================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary);
}

.page-header p {
    color: var(--text-medium);
    margin-top: 8px;
}

/* Cards de informação */
.info-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.info-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.info-item span {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Grid de favoritos/produtos */
.favoritos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Pedidos lista */
.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pedido-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.pedido-numero {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.pedido-data {
    font-size: 13px;
    color: var(--text-medium);
}

.pedido-status {
    padding: 5px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
}

.pedido-status.pendente {
    background: #ffeaa7;
    color: #d68910;
}

.pedido-status.aprovado {
    background: #d4edda;
    color: #155724;
}

.pedido-status.enviado {
    background: #cce5ff;
    color: #004085;
}

.pedido-status.entregue {
    background: var(--success);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    /* Remover centralização para página de produto */
    justify-content: flex-start;
}

.breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Botão voltar */
.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.btn-voltar:hover {
    color: var(--primary);
}

/* Empty states */
.empty-favoritos,
.empty-pedidos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-favoritos i,
.empty-pedidos i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-favoritos h3,
.empty-pedidos h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-favoritos p,
.empty-pedidos p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* Vendedor card */
.vendedor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.vendedor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.vendedor-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.vendedor-info p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.vendedor-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.vendedor-whatsapp:hover {
    background: #128C7E;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4 {
        justify-content: center;
    }
    
    .footer-phone,
    .footer-whatsapp,
    .footer-email {
        justify-content: center;
    }
    
    .footer-logo {
        margin: 0 auto 15px;
    }
}

/* ===== MODAIS DE LOGIN E CADASTRO ===== */

/* Modal Login */
.modal-login {
    max-width: 420px;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-modal-header i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 15px;
}

.login-modal-header h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.login-modal-header p {
    color: var(--text-medium);
    font-size: 14px;
}

.input-password-modal {
    position: relative;
}

.input-password-modal input {
    padding-right: 45px;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.toggle-pwd:hover {
    color: var(--primary);
}

.login-modal-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #e74c3c;
    font-size: 13px;
    display: none;
}

.login-modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.btn-entrar {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

.btn-entrar:hover {
    background: #00a17d;
}

.btn-entrar.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-entrar.loading i {
    visibility: hidden;
}

.btn-entrar.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.btn-cadastrar {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: inherit;
}

.btn-cadastrar:hover {
    background: var(--primary);
    color: white;
}

.login-modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.login-modal-footer small {
    color: var(--text-medium);
    font-size: 12px;
}

/* Modal Cadastro */
.modal-cadastro {
    max-width: 700px;
    max-height: 90vh;
}

.modal-cadastro .modal-body {
    max-height: calc(90vh - 40px);
    overflow-y: auto;
    padding: 25px 30px;
}

.cadastro-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.cadastro-modal-header i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.cadastro-modal-header h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cadastro-modal-header p {
    color: var(--text-medium);
    font-size: 13px;
}

.tipo-pessoa-selector {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tipo-pessoa-selector > span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.tipo-pessoa-options {
    display: flex;
    gap: 20px;
}

.tipo-pessoa-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
}

.tipo-pessoa-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.cadastro-section {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cadastro-section:last-of-type {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
}

.section-title i {
    font-size: 14px;
}

.form-row-modal {
    display: flex;
    gap: 12px;
}

.form-row-modal .form-group {
    flex: 1;
}

.form-row-3 .form-group {
    flex: 1;
}

.cadastro-section .form-group {
    margin-bottom: 12px;
}

.cadastro-section .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cadastro-section .form-group input,
.cadastro-section .form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.cadastro-section .form-group input:focus,
.cadastro-section .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== FEEDBACK DE VALIDAÇÃO CPF/CNPJ ===== */
.campo-feedback {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    min-height: 16px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.campo-feedback small {
    display: block;
    margin-top: 2px;
}

.feedback-sucesso {
    color: #28a745;
}

.feedback-sucesso i {
    margin-right: 4px;
}

.feedback-erro {
    color: #dc3545;
}

.feedback-erro i {
    margin-right: 4px;
}

.feedback-aviso {
    color: #856404;
}

.feedback-aviso i {
    margin-right: 4px;
}

.feedback-info {
    color: #0c5460;
    background-color: #d1ecf1;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #bee5eb;
}

.feedback-info i {
    margin-right: 4px;
}

/* Campo válido */
.cadastro-section .form-group input.campo-valido {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.05);
}

.cadastro-section .form-group input.campo-valido:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

/* Campo inválido */
.cadastro-section .form-group input.campo-invalido {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}

.cadastro-section .form-group input.campo-invalido:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.radio-inline-group {
    display: flex;
    gap: 15px;
    margin-top: 6px;
}

.radio-inline-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px !important;
    cursor: pointer;
}

.radio-inline-group input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.input-cep-group {
    display: flex;
    gap: 8px;
}

.input-cep-group input {
    flex: 1;
}

.input-cep-group button {
    padding: 0 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-cep-group button:hover {
    background: #002850;
}

.estado-hint {
    display: block;
    font-size: 10px;
    color: var(--text-medium);
    margin-top: 4px;
}

.cadastro-termos {
    margin: 15px 0;
}

.cadastro-termos label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-medium);
    cursor: pointer;
    line-height: 1.4;
}

.cadastro-termos input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.cadastro-termos a {
    color: var(--primary);
    font-weight: 500;
}

.cadastro-modal-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #e74c3c;
    font-size: 12px;
    display: none;
}

.cadastro-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-voltar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-voltar:hover {
    border-color: var(--text-medium);
    color: var(--text-dark);
}

.btn-enviar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-enviar:hover {
    background: #00a17d;
    transform: translateY(-2px);
}

.btn-enviar.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    min-width: 150px;
}

.btn-enviar.loading i {
    visibility: hidden;
}

.btn-enviar.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Modal Sucesso */
.modal-sucesso {
    max-width: 420px;
}

.sucesso-content {
    text-align: center;
    padding: 20px;
}

.sucesso-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, #00a17d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sucesso-icon i {
    font-size: 40px;
    color: white;
}

.sucesso-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sucesso-content p {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 5px;
}

.sucesso-detail {
    font-size: 13px !important;
    margin-top: 10px;
}

.btn-fechar-sucesso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 20px;
}

.btn-fechar-sucesso:hover {
    background: #00a17d;
    transform: translateY(-2px);
}

/* Link Esqueci Minha Senha */
.login-modal-forgot {
    text-align: center;
    margin: 15px 0;
}

.login-modal-forgot a {
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.login-modal-forgot a:hover {
    color: #00a17d;
    text-decoration: underline;
}

.login-modal-forgot a i {
    font-size: 12px;
}

/* Modal Recuperar Senha */
.modal-recuperar {
    max-width: 420px;
}

.recuperar-header {
    text-align: center;
    margin-bottom: 25px;
}

.recuperar-header i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.recuperar-header h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.recuperar-header p {
    color: var(--text-medium);
    font-size: 14px;
}

.recuperar-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.recuperar-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recuperar-option i {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.recuperar-option div {
    display: flex;
    flex-direction: column;
}

.recuperar-option strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.recuperar-option span {
    font-size: 12px;
    opacity: 0.9;
}

.recuperar-whatsapp {
    background: #25D366;
    color: white;
}

.recuperar-whatsapp:hover {
    background: #1ebe5d;
    transform: translateX(5px);
    color: white;
}

.recuperar-email {
    background: var(--primary);
    color: white;
}

.recuperar-email:hover {
    background: #c41e0a;
    transform: translateX(5px);
    color: white;
}

.recuperar-telefone {
    background: #2196F3;
    color: white;
}

.recuperar-telefone:hover {
    background: #1976D2;
    transform: translateX(5px);
    color: white;
}

.recuperar-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.recuperar-footer p {
    color: var(--text-medium);
    margin-bottom: 12px;
}

/* Formulário de Recuperar Senha */
#formRecuperarSenha {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

#formRecuperarSenha .form-group {
    margin-bottom: 0;
}

#formRecuperarSenha label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 6px;
}

#formRecuperarSenha input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#formRecuperarSenha input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.recuperar-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.recuperar-error.recuperar-sucesso {
    background: #e8f5e9;
    color: #2e7d32;
}

.recuperar-actions {
    margin-top: 5px;
}

.btn-solicitar-reset {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-solicitar-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-solicitar-reset.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-solicitar-reset.loading i {
    animation: spin 1s linear infinite;
}

/* Modal Sucesso (para reset enviado) */
.modal-sucesso {
    max-width: 420px;
}

.modal-sucesso .sucesso-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-sucesso .sucesso-icon i {
    font-size: 40px;
    color: white;
}

.modal-sucesso h2 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.modal-sucesso p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
}

.modal-sucesso .sucesso-info {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #1565c0;
    margin-bottom: 20px;
    text-align: left;
}

.modal-sucesso .sucesso-info i {
    margin-right: 8px;
}

.btn-voltar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-voltar-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal Cliente Existente */
.modal-cliente-existente {
    max-width: 420px;
}

.cliente-existente-content {
    text-align: center;
    padding: 20px;
}

.cliente-existente-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cliente-existente-icon i {
    font-size: 40px;
    color: white;
}

.cliente-existente-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cliente-existente-msg {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cliente-existente-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.cliente-existente-info .info-item {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cliente-existente-info .info-aviso {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-size: 12px;
}

.cliente-existente-info .info-aviso i {
    color: #f0ad4e;
}

.cliente-existente-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-fazer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-fazer-login:hover {
    background: #00a17d;
    transform: translateY(-2px);
}

.btn-recuperar-senha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--text-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-recuperar-senha:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal Estado Não Atendido */
.modal-estado-nao-atendido {
    max-width: 420px;
}

.estado-nao-atendido-content {
    text-align: center;
    padding: 20px;
}

.estado-nao-atendido-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.estado-nao-atendido-icon i {
    font-size: 40px;
    color: white;
}

.estado-nao-atendido-content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.estado-nao-atendido-empresa {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.estado-nao-atendido-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.estado-detectado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    margin-bottom: 12px;
}

.estado-detectado i {
    color: #f0ad4e;
    font-size: 16px;
}

.estado-aviso {
    text-align: center;
}

.estado-aviso p {
    color: var(--text-medium);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.estados-atendidos {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.estado-badge i {
    font-size: 11px;
}

.estado-nao-atendido-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-entendi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-entendi:hover {
    background: #00a17d;
    transform: translateY(-2px);
}

.btn-whatsapp-estado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-whatsapp-estado:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    color: white;
}

/* Formulário de Solicitar Acesso */
.form-solicitar-acesso {
    text-align: left;
}

.form-solicitar-acesso .form-group {
    margin-bottom: 12px;
}

.form-solicitar-acesso label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.form-solicitar-acesso input[type="email"],
.form-solicitar-acesso input[type="tel"],
.form-solicitar-acesso input[type="text"],
.form-solicitar-acesso textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-solicitar-acesso input:focus,
.form-solicitar-acesso textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-solicitar-acesso textarea {
    resize: vertical;
    min-height: 60px;
}

.form-solicitar-acesso .radio-group-inline {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.form-solicitar-acesso .radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
}

.form-solicitar-acesso .radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-solicitar-acesso .error-message {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
}

/* Input de senha com botão de visibilidade */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 40px !important;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--primary);
}

.btn-solicitar-acesso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-solicitar-acesso:hover {
    background: #00a17d;
}

.btn-solicitar-acesso:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsivo para modais */
@media (max-width: 768px) {
    .modal-cadastro .modal-body {
        padding: 20px 15px;
    }
    
    .form-row-modal {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row-3 {
        flex-direction: column;
    }
    
    .tipo-pessoa-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .login-modal-actions {
        flex-direction: column;
    }
    
    .cadastro-modal-actions {
        flex-direction: column-reverse;
    }
    
    .btn-voltar,
    .btn-enviar {
        width: 100%;
    }
}

/* Aviso de venda múltipla */
.info-multiplo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--primary);
    background: rgba(0, 61, 122, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.info-multiplo i {
    font-size: 10px;
}

/* Aviso de venda múltipla - Página de Detalhes (melhorado) */
.aviso-multiplo-detalhe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1565c0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(21, 101, 192, 0.12));
    padding: 8px 14px;
    border-radius: 6px;
    border-left: 3px solid #1565c0;
    margin-top: 10px;
    font-weight: 500;
    width: fit-content;
    max-width: 200px;
}

.aviso-multiplo-detalhe i {
    font-size: 14px;
    color: #1565c0;
}

/* =============================================
   ESTILOS PARA PRODUTOS INATIVOS/INDISPONÍVEIS
   ============================================= */

/* Card de produto inativo */
.vitrine-card.produto-inativo {
    position: relative;
    opacity: 0.7;
    filter: grayscale(40%);
    pointer-events: none;
}

/* Permitir cliques apenas em alguns elementos */
.vitrine-card.produto-inativo .vitrine-card-image,
.vitrine-card.produto-inativo .vitrine-card-name,
.vitrine-card.produto-inativo .vitrine-card-brand {
    pointer-events: auto;
    cursor: pointer;
}

/* Desabilitar hover no card inativo */
.vitrine-card.produto-inativo:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    transform: none;
}

/* Imagem do produto inativo - mais escurecida */
.vitrine-card.produto-inativo .vitrine-card-image {
    position: relative;
}

.vitrine-card.produto-inativo .vitrine-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.3);
    pointer-events: none;
}

/* Badge de produto indisponível - visual clean */
.badge-indisponivel {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(99, 110, 114, 0.85);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-indisponivel i {
    font-size: 10px;
}

/* Ações desabilitadas para produtos inativos */
.vitrine-card.produto-inativo .vitrine-card-actions {
    opacity: 0.5;
    pointer-events: none;
}

/* Botões dentro de produtos inativos */
.vitrine-card.produto-inativo .btn-add-vitrine,
.vitrine-card.produto-inativo .btn-view-details-vitrine,
.vitrine-card.produto-inativo .qty-btn-mini {
    background: #b2bec3 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Mensagem de indisponível nas ações - visual clean */
.produto-indisponivel-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    background: #b2bec3;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.produto-indisponivel-msg i {
    font-size: 12px;
}

/* Preço de produto inativo - tachado ou oculto */
.vitrine-card.produto-inativo .produto-preco,
.vitrine-card.produto-inativo .preco-container {
    opacity: 0.6;
    text-decoration: line-through;
    color: var(--text-light);
}

/* Estilo alternativo para card inativo - visual sutil */
.vitrine-card.produto-inativo {
    opacity: 0.85;
}

/* Responsivo */
@media (max-width: 768px) {
    .badge-indisponivel {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .produto-indisponivel-msg {
        font-size: 10px;
        padding: 8px 10px;
    }
}

/* =============================================
   RESPONSIVO MOBILE - VERSÃO COMPLETA
   ============================================= */

/* ===== MOBILE - 768px e abaixo ===== */
@media (max-width: 768px) {
    /* Reset de margens e paddings para mobile */
    body {
        font-size: 14px;
    }
    
    /* Top Bar Mobile - Ocultar em mobile */
    .top-bar {
        display: none;
    }
    
    /* Header Mobile - Layout Reorganizado */
    .header {
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    /* Header compacto ao rolar - esconde a busca */
    .header.header-compact .header-search {
        display: none;
    }
    
    .header.header-compact .header-container {
        grid-template-rows: auto;
        padding: 8px 12px;
    }
    
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
        padding: 10px 12px;
        align-items: center;
        transition: padding 0.2s ease;
    }
    
    /* Logo - Centro da primeira linha */
    .logo {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }
    
    .logo-img {
        height: 36px;
        max-width: 150px;
        object-fit: contain;
    }
    
    /* Busca Mobile - Segunda linha completa */
    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 10px;
        max-width: 100%;
        transition: opacity 0.2s ease, max-height 0.2s ease;
    }
    
    .header-search input {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 8px 0 0 8px;
    }
    
    .header-search .search-btn {
        padding: 11px 14px;
        border-radius: 0 8px 8px 0;
    }
    
    .header-search .search-btn span {
        display: none;
    }
    
    /* Header Actions Mobile - Lado direito */
    .header-actions {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: 0;
    }
    
    /* Esconder elementos do header no mobile (serão acessados via menu hamburger) */
    .user-area,
    .user-info-header,
    .login-btn-header,
    .login-btn-header-clean,
    .login-btn-header-elaborate,
    .favoritos-btn-header,
    .favoritos-btn-header-clean,
    .whatsapp-btn-header {
        display: none !important;
    }
    
    /* Apenas carrinho visível no header mobile */
    .cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        background: var(--primary-color, #003d7a);
        border-radius: 8px;
        color: #fff;
        font-size: 18px;
        position: relative;
    }
    
    .cart-btn i {
        color: #fff;
    }
    
    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #00b894;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Barra de Categorias Mobile - Ocultar (acessar via menu hamburger) */
    .categories-bar {
        display: none;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 15px 12px;
    }
    
    /* Vitrines Mobile */
    .vitrine {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: var(--radius-md);
    }
    
    .vitrine-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .vitrine-header h2 {
        font-size: 16px;
        width: 100%;
    }
    
    .vitrine-header-nav {
        margin-left: 0;
    }
    
    .vitrine-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Grid de Produtos Mobile - 2 colunas */
    .vitrine-produtos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Cards Mobile */
    .vitrine-card-image {
        height: 180px;
        padding: 12px;
    }
    
    .vitrine-card-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .vitrine-card-info {
        padding: 10px;
    }
    
    .vitrine-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .vitrine-card-code {
        font-size: 11px;
    }
    
    .vitrine-card-brand {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .vitrine-card-name {
        font-size: 12px;
        min-height: 32px;
        -webkit-line-clamp: 2;
    }
    
    .vitrine-card-category {
        font-size: 10px;
    }
    
    /* Ações do Card Mobile */
    .vitrine-card-actions {
        padding-top: 8px;
    }
    
    .btn-view-details-vitrine {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: var(--radius-sm);
    }
    
    .vitrine-add-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .qty-control-mini {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-vitrine {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* Navegação de imagens no card */
    .vitrine-card-nav {
        opacity: 1;
        pointer-events: auto;
    }
    
    .vitrine-img-nav {
        width: 28px;
        height: 28px;
    }
    
    .vitrine-card-dots {
        opacity: 1;
    }
    
    /* Carrinho Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
    
    .cart-header {
        padding: 18px;
    }
    
    .cart-header h3 {
        font-size: 18px;
    }
    
    .cart-items {
        padding: 12px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 55px;
        height: 55px;
    }
    
    .cart-item-name {
        font-size: 12px;
    }
    
    /* Carrinho Sidebar Mobile - Footer sempre visível dentro do sidebar */
    .cart-sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height para mobile */
        z-index: 2000;
        position: fixed;
        right: -100%;
        width: 100%;
        max-width: 100vw;
    }
    
    .cart-sidebar.open {
        right: 0;
        z-index: 2000;
    }
    
    .cart-items {
        flex: 1;
        overflow-y: auto;
        min-height: 0; /* Importante para flex scroll */
        padding-bottom: 20px;
        margin-bottom: 0;
    }
    
    .cart-footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        padding: 15px;
        padding-bottom: calc(25px + env(safe-area-inset-bottom, 20px));
        margin-bottom: 0;
        background: white !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 100 !important;
        flex-shrink: 0;
        border-top: 2px solid var(--primary-color, #2563eb);
        pointer-events: auto !important;
        touch-action: auto !important;
    }
    
    .btn-ir-carrinho {
        padding: 18px 24px;
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 10px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border-radius: 10px;
        background: var(--primary-gradient, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%));
        color: white;
        border: none;
        cursor: pointer;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        position: relative;
        z-index: 101;
    }
    
    .cart-summary {
        margin-bottom: 10px;
        pointer-events: auto !important;
    }
    
    /* Overlay do carrinho mobile - não deve bloquear o sidebar */
    .overlay.open {
        z-index: 1999;
        pointer-events: auto;
    }
    
    /* Garantir que sidebar está acima do overlay e recebe eventos */
    .cart-sidebar.open * {
        pointer-events: auto !important;
    }

    /* Modais Mobile */
    .modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 20px auto;
        border-radius: var(--radius-md);
    }
    
    .modal-login,
    .modal-cadastro {
        width: 95%;
        max-width: 95vw;
    }
    
    .modal-cadastro {
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .login-modal-header h2,
    .cadastro-modal-header h2 {
        font-size: 20px;
    }
    
    .form-row-modal {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row-3 {
        flex-direction: column;
    }
    
    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    /* WhatsApp Float Mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    /* Toast Mobile */
    .toast {
        left: 50%;
        right: auto;
        bottom: 100px;
        width: calc(100% - 32px);
        max-width: 340px;
        min-width: auto;
        font-size: 13px;
        transform: translateX(-50%) translateY(100px);
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Paginação Mobile */
    .paginacao {
        width: 100%;
        max-width: 100%;
        padding: 15px 10px;
        gap: 10px;
        flex-direction: column;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .paginacao-controls {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pag-btn {
        min-width: 36px;
        padding: 8px 10px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .paginacao-info {
        font-size: 12px;
        text-align: center;
        order: -1;
    }
    
    .paginacao-porpagina {
        display: none;
    }
}

/* ===== MOBILE PEQUENO - 480px e abaixo ===== */
@media (max-width: 480px) {
    /* Header ainda mais compacto */
    .header-container {
        padding: 8px 10px;
        gap: 0;
    }
    
    .logo-img {
        height: 32px;
        max-width: 130px;
    }
    
    .header-search {
        margin-top: 8px;
    }
    
    .header-search input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-search .search-btn {
        padding: 10px 12px;
    }
    
    .cart-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }
    
    .menu-hamburger {
        width: 38px;
        height: 38px;
    }
    
    .menu-hamburger span {
        width: 18px;
    }
    
    /* Main Content */
    .main-content {
        padding: 10px 8px;
    }
    
    /* Vitrines */
    .vitrine {
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    
    .vitrine-header h2 {
        font-size: 14px;
    }
    
    /* Cards menores */
    .vitrine-card-image {
        height: 160px;
        padding: 12px;
    }
    
    .vitrine-card-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .vitrine-card-info {
        padding: 8px;
    }
    
    .vitrine-card-name {
        font-size: 11px;
        min-height: 28px;
    }
    
    .vitrine-card-code {
        font-size: 10px;
    }
    
    .vitrine-card-brand {
        font-size: 8px;
    }
    
    /* Botões ainda menores */
    .btn-view-details-vitrine {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .btn-add-vitrine {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .qty-btn-mini {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .qty-input-mini {
        width: 35px;
        font-size: 13px;
    }
    
    /* Modais ainda mais compactos */
    .modal-body {
        padding: 15px;
    }
    
    .login-modal-header i,
    .cadastro-modal-header i {
        font-size: 40px;
    }
    
    .login-modal-header h2,
    .cadastro-modal-header h2 {
        font-size: 18px;
    }
    
    .login-modal-header p,
    .cadastro-modal-header p {
        font-size: 13px;
    }
    
    /* Footer */
    .footer-container {
        padding: 20px 15px;
    }
    
    .footer-section h4 {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 11px;
        padding: 15px;
    }
}

/* ===== MOBILE MUITO PEQUENO - 360px e abaixo ===== */
@media (max-width: 360px) {
    /* Grid de produtos - 1 coluna */
    .vitrine-produtos {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards em coluna única ficam maiores */
    .vitrine-card-image {
        height: 220px;
    }
    
    .vitrine-card-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .vitrine-card-name {
        font-size: 13px;
        min-height: auto;
        -webkit-line-clamp: 3;
    }
    
    .vitrine-card-info {
        padding: 12px;
    }
    
    /* Header mínimo */
    .logo-img {
        height: 28px;
        max-width: 110px;
    }
    
    .header-search input {
        font-size: 13px;
        padding: 9px 10px;
    }
    
    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .menu-hamburger {
        width: 36px;
        height: 36px;
    }
}

/* =============================================
   MENU HAMBURGER MOBILE
   ============================================= */

/* Botão Hamburger */
.menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: #f5f7fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.2s ease;
}

.menu-hamburger:hover {
    background: #e9ecef;
}

.menu-hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    background: var(--accent, #fdcb6e);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.menu-hamburger.active {
    background: var(--primary-color, #003d7a);
}

.menu-hamburger.active span {
    background: #fff;
}

.menu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mostrar hamburger em mobile */
@media (max-width: 768px) {
    .menu-hamburger {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }
}

/* Menu Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    left: 0;
}

/* Header do Menu Mobile */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-header .logo-mobile {
    height: 35px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Área do Usuário Mobile */
.mobile-user-area {
    padding: 15px 20px;
    background: #f5f7fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-user-info i {
    font-size: 36px;
    color: var(--primary-color, #003d7a);
}

.mobile-user-info .user-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.mobile-user-info .user-details p {
    font-size: 12px;
    color: #666;
    margin: 3px 0 0;
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color, #003d7a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-login-btn:hover {
    background: #002a54;
}

/* Links do Menu Mobile */
.mobile-menu-links {
    padding: 10px 0;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-links a:hover {
    background: #f5f7fa;
    color: var(--primary-color, #003d7a);
}

.mobile-menu-links a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary-color, #003d7a);
}

.mobile-menu-links a.logout-link {
    color: #dc3545;
}

.mobile-menu-links a.logout-link i {
    color: #dc3545;
}

/* Categorias Mobile */
.mobile-categories-section {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.mobile-categories-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    cursor: pointer;
}

.mobile-categories-title i {
    transition: transform 0.3s;
}

.mobile-categories-title.expanded i {
    transform: rotate(180deg);
}

.mobile-categories-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-categories-list.expanded {
    max-height: 500px;
}

.mobile-categories-list a,
.mobile-categories-list li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-categories-list a:hover,
.mobile-categories-list li a:hover {
    background: #f5f7fa;
    color: var(--primary-color, #003d7a);
}

.mobile-categories-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Contato Mobile */
.mobile-contact-section {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.mobile-contact-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mobile-contact-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.mobile-contact-section a i {
    color: var(--primary-color, #003d7a);
    width: 18px;
    text-align: center;
}

.mobile-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.mobile-whatsapp-btn:hover {
    background: #128c7e;
}

/* =====================================================
   BANNERS HOME - Carousel de Banners
   ===================================================== */

.banners-home {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f7fa;
}

.banners-home.banner-hidden {
    display: none;
}

/* Container do banner - largura total */
.banners-home.banner-full {
    max-width: 100%;
}

/* Container do banner - largura container */
.banners-home.banner-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Carousel */
.banners-carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Cada banner */
.banner-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.banner-item.sem-link {
    cursor: default;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Imagem mobile oculta por padrão */
.banner-item .banner-img-mobile {
    display: none;
}

/* Conteúdo textual do banner (opcional) */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    max-width: 80%;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 18px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Navegação do banner */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary, #003d7a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.banners-home:hover .banner-nav {
    opacity: 1;
}

.banner-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-nav-prev {
    left: 20px;
}

.banner-nav-next {
    right: 20px;
}

/* Indicadores (bolinhas) */
.banners-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator:hover {
    background: rgba(255,255,255,0.8);
}

.banner-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Apenas 1 banner - esconder navegação */
.banners-home.single-banner .banner-nav,
.banners-home.single-banner .banners-indicators {
    display: none;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .banners-home {
        margin: 0;
    }
    
    /* Mostrar imagem mobile */
    .banner-item .banner-img-mobile {
        display: block;
    }
    
    .banner-item .banner-img-desktop {
        display: none;
    }
    
    .banner-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
        opacity: 1;
    }
    
    .banner-nav-prev {
        left: 10px;
    }
    
    .banner-nav-next {
        right: 10px;
    }
    
    .banners-indicators {
        bottom: 10px;
    }
    
    .banner-indicator {
        width: 8px;
        height: 8px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
}

/* Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

/* =====================================================
   EFEITOS DE TRANSIÇÃO DO CARROSSEL DE BANNERS
   ===================================================== */

/* Variável CSS para duração da transição */
.banners-carousel {
    --transition-duration: 500ms;
}

/* Efeito SLIDE (padrão) */
.banners-carousel.transition-slide {
    display: flex;
    transition: transform var(--transition-duration) ease;
}

.banners-carousel.transition-slide .banner-item {
    flex: 0 0 100%;
    width: 100%;
}

/* Efeito FADE */
.banners-carousel.transition-fade {
    display: block;
    position: relative;
}

.banners-carousel.transition-fade .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-duration) ease, visibility var(--transition-duration) ease;
}

.banners-carousel.transition-fade .banner-item:first-child {
    position: relative;
}

.banners-carousel.transition-fade .banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Efeito ZOOM */
.banners-carousel.transition-zoom {
    display: block;
    position: relative;
}

.banners-carousel.transition-zoom .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    transition: opacity var(--transition-duration) ease, 
                transform var(--transition-duration) ease, 
                visibility var(--transition-duration) ease;
}

.banners-carousel.transition-zoom .banner-item:first-child {
    position: relative;
}

.banners-carousel.transition-zoom .banner-item.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    z-index: 1;
}

/* Efeito FLIP */
.banners-carousel.transition-flip {
    display: block;
    position: relative;
    perspective: 1000px;
}

.banners-carousel.transition-flip .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: rotateY(-90deg);
    transform-origin: center;
    backface-visibility: hidden;
    visibility: hidden;
    transition: opacity var(--transition-duration) ease, 
                transform var(--transition-duration) ease, 
                visibility var(--transition-duration) ease;
}

.banners-carousel.transition-flip .banner-item:first-child {
    position: relative;
}

.banners-carousel.transition-flip .banner-item.active {
    opacity: 1;
    transform: rotateY(0deg);
    visibility: visible;
    z-index: 1;
}

/* Efeito CUBE */
.banners-carousel.transition-cube {
    display: block;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform var(--transition-duration) ease;
}

.banners-carousel.transition-cube .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
}

.banners-carousel.transition-cube .banner-item:first-child {
    position: relative;
}

/* Efeito NONE (sem animação) */
.banners-carousel.transition-none {
    display: block;
}

.banners-carousel.transition-none .banner-item {
    display: none;
}

/* =====================================================
   ESTILOS COMPARTILHADOS: MINHA CONTA / FAVORITOS
   ===================================================== */

/* Layout Principal com Menu Lateral */
.conta-layout {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .conta-layout {
        grid-template-columns: 1fr;
        margin: 10px auto;
        padding: 0 10px;
        gap: 15px;
    }
    
    .conta-sidebar {
        order: 2;
    }
    
    .conta-content {
        order: 1;
    }
    
    .conta-sidebar-menu a {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* Menu Lateral */
.conta-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
}

.conta-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.conta-sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.conta-sidebar-menu li:last-child {
    border-bottom: none;
}

.conta-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.conta-sidebar-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.conta-sidebar-menu a.active {
    background: var(--primary);
    color: #fff;
}

.conta-sidebar-menu a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.conta-sidebar-menu a.logout-link {
    color: #dc3545;
}

.conta-sidebar-menu a.logout-link:hover {
    background: #fef2f2;
}

/* Conteúdo Principal */
.conta-content {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.conta-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading */
.loading-conta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-medium);
}

.loading-conta i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.banners-carousel.transition-none .banner-item.active {
    display: block;
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.btn-voltar-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
}

.btn-voltar-topo.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-voltar-topo:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.4);
}

.btn-voltar-topo:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .btn-voltar-topo {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ============================================
   MODAL DE NOTIFICAÇÃO POP-UP
   ============================================ */
.modal-notificacao-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-notificacao-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-notificacao {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-notificacao-overlay.active .modal-notificacao {
    transform: scale(1) translateY(0);
}

.modal-notificacao-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-notificacao-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.modal-notificacao-icone {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    box-shadow: 0 8px 25px rgba(0, 61, 122, 0.25);
}

.modal-notificacao-icone i {
    font-size: 28px;
    color: white;
}

/* Tipos de notificação */
.modal-notificacao.tipo-info .modal-notificacao-icone {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
}

.modal-notificacao.tipo-sucesso .modal-notificacao-icone {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.25);
}

.modal-notificacao.tipo-alerta .modal-notificacao-icone {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.25);
}

.modal-notificacao.tipo-erro .modal-notificacao-icone {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.25);
}

.modal-notificacao.tipo-promocao .modal-notificacao-icone {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.25);
}

.modal-notificacao.tipo-novidade .modal-notificacao-icone {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.25);
}

.modal-notificacao-conteudo {
    padding: 0 30px;
    text-align: center;
}

.modal-notificacao-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.3;
}

.modal-notificacao-mensagem {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-notificacao-imagem {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.modal-notificacao-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-notificacao-link {
    margin-top: 15px;
}

.modal-notificacao-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.modal-notificacao-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.modal-notificacao-footer {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modal-notificacao-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
}

.modal-notificacao-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-notificacao-fechar {
    padding: 12px 40px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-notificacao-fechar:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

/* Cor do botão por tipo */
.modal-notificacao.tipo-sucesso .btn-notificacao-fechar {
    background: #00b894;
}
.modal-notificacao.tipo-sucesso .btn-notificacao-fechar:hover {
    background: #00a085;
}

.modal-notificacao.tipo-alerta .btn-notificacao-fechar {
    background: #f39c12;
}
.modal-notificacao.tipo-alerta .btn-notificacao-fechar:hover {
    background: #e67e22;
}

.modal-notificacao.tipo-erro .btn-notificacao-fechar {
    background: #e74c3c;
}
.modal-notificacao.tipo-erro .btn-notificacao-fechar:hover {
    background: #c0392b;
}

.modal-notificacao.tipo-promocao .btn-notificacao-fechar {
    background: #9b59b6;
}
.modal-notificacao.tipo-promocao .btn-notificacao-fechar:hover {
    background: #8e44ad;
}

@media (max-width: 480px) {
    .modal-notificacao {
        width: 95%;
        margin: 10px;
    }
    
    .modal-notificacao-icone {
        width: 60px;
        height: 60px;
    }
    
    .modal-notificacao-icone i {
        font-size: 24px;
    }
    
    .modal-notificacao-titulo {
        font-size: 18px;
    }
    
    .modal-notificacao-mensagem {
        font-size: 14px;
    }
    
    .modal-notificacao-conteudo {
        padding: 0 20px;
    }
    
    .modal-notificacao-footer {
        padding: 20px;
    }
}

/* ============================================
   CORREÇÕES TOAST/NOTIFICAÇÕES MOBILE
   ============================================ */

/* Garantir que toast funcione corretamente no mobile */
@media (max-width: 768px) {
    .toast {
        z-index: 99999 !important; /* Acima de todos os elementos */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        border-radius: 10px;
    }
    
    /* Ajustar modal de notificação para mobile */
    .modal-notificacao-overlay {
        z-index: 100000 !important; /* Acima do toast */
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    
    .modal-notificacao {
        max-height: calc(100vh - 32px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Garantir que botão de fechar seja fácil de clicar no mobile */
    .modal-notificacao-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
    
    /* Melhorar footer do modal para mobile */
    .modal-notificacao-footer {
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    .btn-notificacao-fechar {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Safe area para iOS (notch e home indicator) */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .toast {
            bottom: max(100px, calc(80px + env(safe-area-inset-bottom))) !important;
        }
    }
}

