/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff0000;
    --secondary: #ffffff;
    --dark: #0a0a0a;
    --dark-2: #1a1a1a;
    --dark-3: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --border: #333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-top {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--glow);
}

.search-bar {
    flex: 1;
    max-width: 500px;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Esconder botão menu no desktop */
.menu-toggle {
    display: none !important;
}

.search-form {
    display: flex;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-size: 0.95rem;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: scale(1.05);
}

.search-form button:active {
    transform: scale(0.95);
}

.header-icon {
    position: relative;
    color: var(--text);
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.header-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--secondary);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Navigation */
.nav {
    background: var(--dark-3);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 15px 0;
}

.nav-menu li {
    display: block;
}

/* Esconder botão de fechar no desktop */
.menu-close-item {
    display: none !important;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Menu Hamburguer - Escondido no desktop */
.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
}

.menu-toggle i {
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Banner */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.03;
    animation: heroGrid 20s linear infinite;
}

@keyframes heroGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--glow);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Products Grid */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.product-image {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--dark-3);
    border-radius: 10px 10px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--secondary);
    flex-grow: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header Top - Esconder em mobile */
    .header-top {
        display: none;
    }
    
    /* Header Main */
    .header-main {
        padding: 12px 0;
    }
    
    .header-main .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        align-items: center;
    }
    
    .logo {
        font-size: 1.3rem;
        grid-column: 1;
        grid-row: 1;
        letter-spacing: 1px;
    }
    
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        justify-content: flex-end;
    }
    
    .header-icon {
        font-size: 1.3rem;
        padding: 6px;
    }
    
    .menu-toggle {
        display: flex !important;
        font-size: 1.3rem;
        padding: 6px;
        margin-left: 5px;
    }
    
    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .search-form input {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .search-form button {
        padding: 10px 20px;
    }
    
    /* Navigation - Menu Hamburguer */
    .nav {
        display: block; /* Manter visível para o menu funcionar */
        position: relative;
    }
    
    .nav .container {
        padding: 0;
        height: 0; /* Esconder visualmente mas manter funcional */
        overflow: visible;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-2);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease-out;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    /* Mostrar botão de fechar no mobile */
    .menu-close-item {
        display: flex !important;
        justify-content: flex-end;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
        background: var(--dark-3);
    }
    
    .menu-close {
        background: none;
        border: none;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-close:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }
    
    .nav-menu a {
        display: block;
        padding: 18px 25px;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
        font-size: 0.95rem;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--dark-3);
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    /* Overlay para fechar menu */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Hero */
    .hero {
        height: 350px;
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .price-old {
        font-size: 0.85rem;
    }
    
    .product-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .btn-block {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Section */
    .section {
        padding: 35px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 2px;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .header-icon,
    .menu-toggle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
    }
}

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

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

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-info {
    background: rgba(0, 150, 255, 0.1);
    border-color: #0096ff;
    color: #0096ff;
}

