/* ==========================================================================
   GENESIS: MERCADO VIRTUAL TECH CONECTAR - FOLHA DE ESTILOS GERAIS (style.css)
   ========================================================================== */

/* VARIÁVEIS DE DESIGN SYSTEM (Cores, Sombras e Transições) */
:root {
    --primary-color: #0b1329;       /* Azul Escuro Profundo Corporativo */
    --secondary-color: #1c2541;     /* Azul de Destaque Secundário */
    --accent-orange: #ff6b00;       /* Laranja de Destaque e Preços */
    --bg-light: #f7fafc;            /* Fundo Geral da Página */
    --text-dark: #1e293b;           /* Texto Principal */
    --text-muted: #64748b;          /* Texto Secundário / Desativado */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 20px rgba(11, 19, 41, 0.05);
    --shadow-hover: 0 20px 30px rgba(11, 19, 41, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET COMPLETO DE PADRÕES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 80px;
    line-height: 1.5;
}

/* ==========================================================================
   BARRA SUPERIOR DE NAVEGAÇÃO (NAVBAR)
   ========================================================================== */
.public-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* IDENTIDADE VISUAL (Logo + Títulos) */
.brand-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-brand-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.brand-sub-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 2px solid #cbd5e1;
    padding-left: 10px;
    margin-left: 10px;
}

/* BOTÃO ENTRAR / CADASTRAR */
.btn-nav-login {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid #cbd5e1;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-nav-login:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(11, 19, 41, 0.15);
}

/* ==========================================================================
   ESTILIZAÇÃO DO CONTEÚDO DA LOJA (WORKSPACE)
   ========================================================================== */
.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* BARRA DE PESQUISA CENTRALIZADA */
.search-section {
    margin: 20px auto 35px auto;
    max-width: 700px;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.search-section input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 15px;
    background-color: #ffffff;
    color: var(--text-dark);
    outline: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.search-section input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.08);
}

/* BANNER HERO DE MARKETING (PROMOÇÕES) */
.promo-banner {
    position: relative;
    background: linear-gradient(135deg, #0b1329 0%, #1c2541 100%);
    border-radius: 20px;
    padding: 70px 50px;
    color: #ffffff;
    margin-bottom: 45px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(11, 19, 41, 0.15);
}

.banner-badge {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.banner-content h2 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.banner-content p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-banner-action {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-banner-action:hover {
    background-color: var(--accent-orange);
    color: #ffffff;
    transform: translateX(4px);
}

/* CABEÇALHOS DAS SECÇÕES */
.section-title-container {
    margin-bottom: 28px;
}

.section-main-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.section-sub-title {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   GRID DE PRODUTOS E CARDS DE E-COMMERCE
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* CARTÃO DE PRODUTO INDIVIDUAL */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: #e2e8f0;
}

/* Badges e Botões Internos do Card */
.discount-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(45deg, #ff6b00, #ff8800);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 30px;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.btn-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #cbd5e1;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.product-card:hover .btn-wishlist {
    color: #ef4444;
    border-color: #fee2e2;
    background-color: #fef2f2;
}

/* Box da Imagem do Produto */
.product-image-box {
    width: 100%;
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fafafa;
}

.product-image-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Detalhes de Conteúdo (Preços e Textos) */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 40px;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    color: #ffb800;
    font-size: 13px;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
}

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

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-orange);
}

/* Botão Adicionar ao Carrinho */
.btn-add-to-cart {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-add-to-cart:hover {
    background-color: var(--accent-orange);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.25);
}

/* ==========================================================================
   MEDIA QUERIES DE RESPONSIVIDADE (TABLETS E SMARTPHONES)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-brand {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .public-navbar {
        padding: 16px 20px;
    }
    
    .brand-sub-title {
        display: none; /* Esconde a tagline secundária para economizar espaço */
    }
    
    .nav-logo {
        height: 34px; /* Diminui ligeiramente o tamanho do logo em mobile */
    }
    
    .promo-banner {
        padding: 40px 24px;
        text-align: center;
    }
    
    .banner-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}