/* style.css - NMix Technology - Design Azul Profissional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: #1a2c3e;
    line-height: 1.5;
}

/* ==================== LAYOUT PRINCIPAL ==================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR - MENU LATERAL ==================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f2b3d 0%, #1a4a6f 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    text-align: center;
}

/* Logo */
.sidebar-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 0.5rem auto;
    display: block;
}

.sidebar-header p {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* Seletor de Idiomas */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0 1rem 1rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
}

.language-selector a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.language-selector a:hover,
.language-selector a.active {
    background: #ffd700;
    color: #1a2c3e;
}

/* Navegação do Sidebar */
.sidebar-nav {
    padding: 0 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.sidebar-nav a i {
    width: 1.5rem;
    font-size: 1.1rem;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
}

/* Rodapé do Sidebar */
.sidebar-footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 1rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.sidebar-footer p {
    margin: 0.3rem 0;
}

.sidebar-footer i {
    width: 1.2rem;
    color: #ffd700;
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

/* Header do Conteúdo */
.content-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.content-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a2c3e;
}

.content-header h2 i {
    color: #1a4a6f;
    margin-right: 0.5rem;
}

.header-contact {
    display: flex;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4a5568;
}

.contact-item i {
    color: #1a4a6f;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #1a2c3e;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== SEÇÃO PRODUTOS ==================== */
.produtos-section {
    padding: 1rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Grid de Produtos */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

/* Card de Produto */
.produto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.produto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Imagem do Produto */
.produto-imagem {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
    padding: 10px;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.02);
}

/* Informações do Produto */
.produto-info {
    padding: 1rem;
}

.produto-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1a2c3e;
}

.produto-sku {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    font-family: monospace;
    background: #f1f5f9;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.preco-comiva {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a4a6f;
    margin: 0.5rem 0 0.2rem;
}

.preco-semiva {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Botão Detalhe */
.btn-detalhe {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f7ff;
    color: #1a4a6f;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.8rem;
    transition: all 0.3s;
}

.btn-detalhe:hover {
    background: #1a4a6f;
    color: white;
    gap: 0.8rem;
}

/* ==================== CARACTERÍSTICAS ==================== */
.features {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    padding: 1rem;
}

.feature i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1a4a6f, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0f2b3d;
}

.feature p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ==================== PRODUTOS RELACIONADOS ==================== */
.produtos-relacionados {
    margin-top: 3rem;
}

.produtos-relacionados h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1a2c3e;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.relacionado-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.relacionado-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.relacionado-imagem {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relacionado-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
    padding: 10px;
}

.relacionado-card:hover .relacionado-imagem img {
    transform: scale(1.02);
}

.relacionado-info {
    padding: 0.8rem;
}

.relacionado-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1a2c3e;
    line-height: 1.3;
}

.relacionado-preco {
    font-weight: bold;
    color: #1a4a6f;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.relacionado-info small {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.3rem;
}

/* ==================== PÁGINA DE PRODUTO DETALHE ==================== */
.produto-detalhe {
    padding: 1rem 0;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: #1a4a6f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.produto-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.main-image img {
    width: 100%;
    border-radius: 16px;
}

.produto-info-detalhe h1 {
    font-size: 1.8rem;
    color: #0f2b3d;
    margin: 0.5rem 0;
}

.sku-badge {
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: monospace;
}

.precos-detalhe {
    background: linear-gradient(135deg, #f0f7ff, #e6f0fa);
    padding: 1.2rem;
    border-radius: 16px;
    margin: 1rem 0;
}

.preco-com-iva {
    font-size: 2rem;
    font-weight: 800;
    color: #1a4a6f;
}

.iva-info {
    font-size: 0.8rem;
    color: #64748b;
}

.tamanhos-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tamanho-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tamanho-btn:hover {
    background: #1a4a6f;
    border-color: #1a4a6f;
    color: white;
}

.tamanho-btn.active {
    background: #1a4a6f;
    border-color: #1a4a6f;
    color: white;
}

.tamanho-preco {
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* ==================== PÁGINA DE CATEGORIA ==================== */
.categoria-header h1 {
    font-size: 1.8rem;
    color: #1a2c3e;
    border-left: 4px solid #1a4a6f;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.total-produtos {
    color: #64748b;
    margin: 0.5rem 0 1.5rem 0;
    font-size: 0.9rem;
}

.subcategorias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.subcat-link {
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    color: #1a4a6f;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.subcat-link:hover {
    background: #1a4a6f;
    color: white;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #0f2b3d;
    color: #cbd5e1;
    padding: 2.5rem 0 1rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffd700;
}

.footer-col p {
    font-size: 0.8rem;
    margin: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-col i {
    color: #ffd700;
    width: 1.2rem;
}

.social-links-footer {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links-footer a {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.social-links-footer a:hover {
    color: #ffd700;
    background: rgba(255,215,0,0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e4a6f;
    font-size: 0.7rem;
}

/* ==================== NO PRODUCTS ==================== */
.no-products {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-products h3 {
    margin-bottom: 0.5rem;
    color: #1a2c3e;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        z-index: 1001;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Header */
    .content-header {
        padding: 0.8rem 1rem;
    }
    
    .header-contact {
        display: none;
    }
    
    /* Container */
    .container {
        padding: 1rem;
    }
    
    /* Produtos */
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .produto-imagem {
        height: 200px;
    }
    
    /* Produto Detalhe */
    .produto-main {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .preco-com-iva {
        font-size: 1.5rem;
    }
    
    /* Produtos Relacionados */
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .relacionado-imagem {
        height: 140px;
    }
    
    /* Características */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-col p {
        justify-content: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links-footer {
        justify-content: center;
    }
    
    /* Categoria */
    .subcategorias-grid {
        justify-content: center;
    }
    
    /* Idioma */
    .language-selector {
        margin-bottom: 0.5rem;
    }
    
    /* Logo */
    .sidebar-logo {
        max-width: 160px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop grande */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}
