:root {
    /* Cores Principais */
    --primary: #000000;
    --primary-light: #1a1a1a;
    --secondary: #1e1e1e;
    --accent: #e63946;
    --accent-dark: #c1121f;
    --accent-light: #ff6b7a;
    --text-main: #e1e1e1;
    --text-muted: #888888;
    --text-dark: #666666;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --bg-hover: #242424;
    --border: #2a2a2a;
    --success: #25d366;
    --success-dark: #128c7e;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.6);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ========== HEADER ========== */
header {
    background: var(--primary);
    padding: 12px 5%;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

/* Logo como Imagem */
.logo {
    display: flex;
    align-items: start;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-img {
    height: 7rem;
    width: 10rem;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Barra de Pesquisa */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--secondary);
}

.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.search-bar button:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.02);
}

/* ========== BANNER HERO ========== */
.hero-banner {
    height: 400px;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%), 
                url('imagens/IMG-20260331-WA0010.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ========== BOTÕES ========== */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ========== FAIXA DE BENEFÍCIOS ========== */
.benefits-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--primary-light);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.benefit:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.benefit i {
    font-size: 1.2rem;
    color: var(--accent);
}

/* ========== CONTAINER E TÍTULOS ========== */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    position: relative;
}

.section-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.section-link:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

/* ========== GRID DE PRODUTOS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Cards de Produtos */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: white;
    transition: var(--transition-normal);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
}

.product-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.product-installment {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-code {
    font-size: 0.7rem;
    color: var(--text-dark);
    font-family: monospace;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--secondary);
    margin: 2% auto;
    width: 95%;
    max-width: 1000px;
    border-radius: var(--radius-xl);
    position: relative;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.close:hover {
    color: var(--accent);
    transform: rotate(90deg);
    background: rgba(255,255,255,0.2);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.modal-img {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.modal-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.modal-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.modal-brand {
    display: inline-block;
    background: var(--bg-hover);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 20px 0;
}

.modal-installment {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-desc {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-specs {
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 25px;
}

.modal-specs h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.modal-specs ul {
    list-style: none;
    padding-left: 0;
}

.modal-specs li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--success);
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.btn-buy:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== LOADING SKELETON ========== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--secondary) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== RESPONSIVIDADE ========== */
/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .logo-img {
        height: 48px;
    }
}

/* Celular Grande */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between; 
        align-items: center;  
        gap: 12px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-banner {
        height: 300px;
        background-attachment: scroll;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .benefits-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* Grid 2 colunas no celular */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 0.8rem;
        height: 38px;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .product-installment {
        font-size: 0.7rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-img {
        min-height: 250px;
    }
    
    .modal-img img {
        max-height: 250px;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px;
    }
    
    .modal-info h2 {
        font-size: 1.3rem;
    }
    
    .modal-price {
        font-size: 1.8rem;
    }
    
    .close {
        background: rgba(0,0,0,0.5);
        right: 16px;
        top: 16px;
    }
    
    .logo-img {
        height: 45px;
    }
}

/* Celular Pequeno */
@media (max-width: 480px) {
    .product-grid {
        gap: 10px;
    }
    
    .product-card img {
        height: 130px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-info h3 {
        font-size: 0.7rem;
        height: 32px;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 12px;
        margin: 20px auto;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 70px;
    }
}

/* ========== UTILIDADES ========== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }