/* ========================================
   VARIÁVEIS DE CORES - BRASECOM
   ======================================== */
:root {
    --primary-color: #318CE7;
    --secondary-color: #afcdea;
    --accent-color: #318CE7;
    --success-color: #318CE7;
    --text-dark: #0F1111;
    --text-light: #565959;
    --bg-light: #F7F8FA;
    --bg-white: #FFFFFF;
    --border-color: #D5D9D9;
    --amazon-orange: #318CE7;
    --brasecom-blue: #318CE7;
    --brasecom-light: #afcdea;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo responsivo */
@media (max-width: 640px) {
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
}

.nav-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--amazon-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amazon-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#mobileMenuBtn {
    color: white;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-primary {
    background: var(--amazon-orange);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-primary:hover {
    background: #2070c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-quote {
    background: var(--amazon-orange);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(49, 140, 231, 0.3);
    white-space: nowrap;
    font-size: 14px;
}

.btn-quote:hover {
    background: #2070c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 140, 231, 0.4);
}

/* ========================================
   FILTROS DE CATEGORIA (SIDEBAR)
   ======================================== */
.category-filter {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}

.category-filter:hover {
    background: rgba(49, 140, 231, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-filter.active:hover {
    background: #2070c0;
    border-color: #2070c0;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    aspect-ratio: 1/1;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 50px;
    line-height: 1.4;
}

.product-card .category-badge {
    display: inline-block;
    background: #f3f4f6;
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card .btn-quote {
    margin-top: auto;
}

.text-primary {
    color: var(--primary-color);
}

/* ========================================
   RESPONSIVE - PRODUTOS
   ======================================== */
@media (max-width: 768px) {
    .product-card {
        padding: 12px;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card h3 {
        font-size: 14px;
        min-height: 38px;
        margin-bottom: 8px;
    }
    
    .product-card .category-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .btn-quote {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    /* Grid de produtos - 2 colunas no mobile */
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    /* Manter 2 colunas mesmo em telas pequenas */
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .product-card h3 {
        font-size: 13px;
        min-height: 36px;
        line-height: 1.3;
    }
    
    .btn-quote {
        padding: 8px 10px;
        font-size: 11px;
        gap: 3px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}