@import url('https://fonts.googleapis.com/css2?family=Proxima+Nova:wght@400;600;700&display=swap');

:root {
    --amarelo-ml: #FFE600;
    --azul-ml: #3483FA;
    --azul-escuro: #2968C8;
    --cinza-100: #EBEBEB;
    --cinza-200: #E6E6E6;
    --cinza-300: #CCCCCC;
    --cinza-600: #666666;
    --cinza-700: #333333;
    --branco: #FFFFFF;
    --preto: #000000;
}

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

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--cinza-100);
    color: var(--cinza-700);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header fixo estilo Mercado Livre */
.header {
    background: var(--amarelo-ml);
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--azul-ml);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--azul-ml);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amarelo-ml);
    font-weight: 700;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.search-bar input::placeholder {
    color: var(--cinza-600);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cinza-200);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Menu lateral recolhível e menor */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--azul-ml);
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 180px;
    background: var(--branco);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-logo {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--cinza-200);
    font-weight: 700;
    color: var(--azul-ml);
    font-size: 0.9375rem;
}

.sidebar nav {
    padding: 0.5rem 0;
}

.sidebar nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--cinza-700);
    font-size: 0.875rem;
    transition: background 0.2s;
}

.sidebar nav a:hover {
    background: var(--cinza-100);
}

.sidebar nav a.active {
    background: var(--amarelo-ml);
    color: var(--azul-ml);
    font-weight: 600;
    border-left: 3px solid var(--azul-ml);
}

/* Overlay para fechar menu */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 98;
    display: block;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .overlay {
        display: none !important;
    }
}

/* Conteúdo principal */
.content {
    margin-top: 60px;
    padding: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero/Banner */
.hero {
    background: var(--branco);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 1.5rem;
    color: var(--cinza-700);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero p {
    color: var(--cinza-600);
    font-size: 0.9375rem;
}

/* Grid de produtos estilo Mercado Livre */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--cinza-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cinza-600);
    font-size: 0.875rem;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 0.875rem;
    color: var(--cinza-700);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cinza-700);
    margin-bottom: 0.25rem;
}

.product-installments {
    font-size: 0.75rem;
    color: var(--cinza-600);
}

.badge {
    display: inline-block;
    background: var(--azul-ml);
    color: var(--branco);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Cards estilo Mercado Livre */
.card {
    background: var(--branco);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.125rem;
    color: var(--cinza-700);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card p {
    font-size: 0.9375rem;
    color: var(--cinza-600);
    margin-bottom: 0.75rem;
}

.card strong {
    font-size: 1.5rem;
    color: var(--azul-ml);
    font-weight: 600;
}

/* Botões */
.btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--azul-ml);
    color: var(--branco);
}

.btn-primary:hover {
    background: var(--azul-escuro);
}

.btn-secondary {
    background: var(--amarelo-ml);
    color: var(--cinza-700);
}

.btn-secondary:hover {
    background: #E6D000;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Lista de tendências */
.list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    background: var(--branco);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-item strong {
    color: var(--cinza-700);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.list-item p {
    color: var(--cinza-600);
    font-size: 0.875rem;
}

.list-item span {
    background: var(--amarelo-ml);
    color: var(--azul-ml);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Formulário de contato */
.contact-card {
    background: var(--branco);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-card label {
    display: block;
    font-weight: 600;
    color: var(--cinza-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    border: 1px solid var(--cinza-300);
    border-radius: 4px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--azul-ml);
}

.contact-card textarea {
    resize: vertical;
}

/* Painel de pesquisa */
.search-panel {
    background: var(--branco);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-panel input {
    width: 100%;
    border: 1px solid var(--cinza-300);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--azul-ml);
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cinza-200);
    color: var(--cinza-600);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--azul-ml);
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer small {
    font-size: 0.8125rem;
    display: block;
}

.section-title {
    font-size: 1.5rem;
    color: var(--cinza-700);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsivo */
@media (min-width: 768px) {
    .content {
        padding: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        width: 200px;
        top: 60px;
    }
    
    .content {
        margin-left: 200px;
    }
    
    .hamburger {
        display: none;
    }
    
    .sidebar {
        transform: translateX(0);
    }
    
    .overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    
    .hero {
        padding: 1.5rem;
    }
}
