/* =========================================
   1. RESET E REGRAS GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #000;
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
}

/* =========================================
   2. CABEÇALHO (HEADER)
   ========================================= */
.header-gocase {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-inline: auto;
    position: relative;
}

.logo-container a { text-decoration: none; }
.logo-black { font-weight: 900; font-size: 20px; color: #000; letter-spacing: -1px; }

/* ÍCONES DO HEADER */
.menu-icon, .cart-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: #000;
    border-radius: 2px;
    margin: 2px 0;
}

/* BUSCA */
.search-container {
    width: 100%;
    background: #fff;
}
.search-box {
    display: flex;
    background-color: #f2f2f2;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px auto;
    max-width: 1200px;
}
.search-box input { border: none; background: transparent; flex: 1; outline: none; font-size: 14px; }
.search-btn { background: none; border: none; cursor: pointer; }

/* =========================================
   3. MENU LATERAL (ESQUERDA) - NOVO
   ========================================= */
.menu-wrapper { position: relative; }

/* Menu Escondido */
.menu-oculto {
    display: none; 
    position: absolute;
    top: 45px;
    left: -10px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 180px;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

/* Menu Visível (Ativado pelo JS) */
.menu-oculto.menu-aberto { display: flex !important; }

.menu-oculto a {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.menu-oculto a:hover {
    background-color: #f5f5f5;
    color: #e92323; /* Vermelho Destaque */
}

/* =========================================
   4. LAYOUT DA HOME (HERO E CARDS)
   ========================================= */
.hero {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.hero h1 { font-size: 28px; margin-bottom: 10px; }

.times { padding: 40px 20px; }
.times h2 { text-align: center; margin-bottom: 30px; color: #333; }

.grid-times {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    width: 300px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 15px; }
.card h3 { font-size: 18px; margin-bottom: 15px; }
.card button {
    padding: 10px 25px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.card button:hover { background: #333; }

/* =========================================
   5. SIMULADOR (VISUALIZAÇÃO DA CAPA)
   ========================================= */
.container-produto {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    gap: 50px;
    padding: 0 20px;
    align-items: flex-start;
}

.coluna-preview, .coluna-controles { flex: 1; }
.capa-preview { position: relative; width: 320px; height: 650px; margin: 0 auto; } /* Altura fixa para alinhar */
.capa-preview img { width: 100%; display: block; }

/* NOME NA CAPA */
#texto-nome {
    position: absolute;
    bottom: 27%; left: 0; width: 100%; text-align: center;
    font-family: 'Fla2025', sans-serif; /* Fonte padrão */
    color: #ffffff;
    font-size: 35px;
    text-transform: uppercase;
    
    /* Contorno Preto Externo */
    -webkit-text-stroke: 6px #000000;
    paint-order: stroke fill;
    z-index: 5;
}

/* NÚMERO NA CAPA */
.container-numero { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.camada-numero {
    position: absolute;
    top: 300%; left: 0; width: 100%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 220px;
    line-height: 1;
    font-weight: normal;
    
    /* Sem contorno no número */
    -webkit-text-stroke: 0 !important;
    paint-order: normal !important;
    color: #ffffff;
    z-index: 4;
}

/* Regras de Cores para Flamengo 2025 (Quando ativado via JS) */
.estilo-fla2025 #num-layer-1 { font-family: 'Fla25-Base' !important; color: #000000b1 !important; z-index: 1 !important; }
.estilo-fla2025 #num-layer-2 { font-family: 'Fla25-Meio' !important; color: #ffffff !important; z-index: 2 !important; }
.estilo-fla2025 #num-layer-3 { font-family: 'Fla25-Topo' !important; color: #000000 !important; z-index: 3 !important; }
.estilo-fla2025 #num-layer-4 { font-family: 'Fla25-Detalhe' !important; color: #000000 !important; z-index: 4 !important; }


/* =========================================
   6. CONTROLES DO SIMULADOR (BOTÕES E INPUTS)
   ========================================= */
.controles { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.area-preco { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.titulo-capa { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.precos { display: flex; align-items: center; gap: 10px; }
.preco-antigo { color: #999; text-decoration: line-through; font-size: 14px; }
.preco-novo { color: #000; font-size: 26px; font-weight: 900; }
.desconto-tag { background: #00D656; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }

.label-divisoria {
    display: flex; align-items: center; margin: 20px 0 10px;
    font-size: 11px; color: #999; font-weight: 700; letter-spacing: 1px;
}
.label-divisoria span { background: #fff; padding-right: 10px; }

/* Botões de Opção (iPhone, Samsung, Material) */
.seletor-marcas, .seletor-material { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }

.btn-marca {
    background: #fff; border: 1px solid #ddd; padding: 8px 16px;
    border-radius: 20px; font-size: 13px; color: #555; cursor: pointer; transition: 0.2s;
}
.btn-marca:hover { border-color: #000; color: #000; }
.btn-marca.ativo { background: #000; color: #fff; border-color: #000; font-weight: bold; }

/* Inputs e Selects */
input[type="text"], input[type="number"], select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; outline: none; margin-bottom: 5px;
}
input:focus, select:focus { border-color: #000; }

/* Botões de Ação */
.btn-add-cart {
    width: 100%; padding: 16px;
    background: transparent; color: #000; border: 2px solid #000;
    border-radius: 6px; font-weight: 900; font-size: 14px;
    cursor: pointer; margin-top: 10px; text-transform: uppercase; transition: 0.2s;
}
.btn-add-cart:hover { background: #000; color: #fff; }

.botao-comprar {
    width: 100%; padding: 16px;
    background: #00D656; color: #fff; border: none;
    border-radius: 6px; font-weight: 900; font-size: 14px;
    cursor: pointer; margin-top: 15px; text-transform: uppercase; transition: 0.2s;
}
.botao-comprar:hover { background: #00b349; }

.link-reset { display: block; text-align: center; margin-top: 15px; color: #999; font-size: 12px; text-decoration: underline; }

/* =========================================
   7. CARRINHO LATERAL (ESTILO GOCASE) - FINAL
   ========================================= */

/* Fundo Escuro */
.cart-overlay {
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px);
    z-index: 9998;
}

/* Barra Lateral */
#cart-sidebar {
    position: fixed; top: 0; right: -450px; /* Escondido */
    width: 400px; max-width: 85%; height: 100%;
    background: #fff; z-index: 9999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
/* Classe que abre */
#cart-sidebar.cart-aberto { right: 0 !important; }

/* Topo do Carrinho */
.cart-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cart-count-badge { background: #e3f2fd; color: #2196f3; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.close-cart { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }

/* Lista de Itens */
.cart-items { flex: 1; overflow-y: auto; padding: 20px; background: #f9f9f9; }
.cart-empty-msg { text-align: center; color: #999; margin-top: 50px; }

.cart-item { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; justify-content: space-between; }
.item-info strong { font-size: 14px; display: block; margin-bottom: 4px; }
.item-details { font-size: 12px; color: #666; line-height: 1.4; }
.item-price-block { text-align: right; }
.item-price { font-weight: bold; color: #000; font-size: 14px; }
.btn-remove { color: #ff3b3b; font-size: 11px; background: none; border: none; cursor: pointer; margin-top: 5px; text-decoration: underline; }

/* Rodapé do Carrinho */
.cart-footer { padding: 20px; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -4px 15px rgba(0,0,0,0.05); }
.cart-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: #555; }
.total-final { font-size: 18px; font-weight: 900; color: #000; border-top: 1px dashed #ddd; padding-top: 10px; margin-top: 10px; }

.btn-finalize-cart { 
    width: 100%; padding: 16px; background: #00D656; color: #fff; 
    border: none; border-radius: 6px; font-size: 16px; font-weight: 800; 
    text-transform: uppercase; cursor: pointer; transition: background 0.2s; margin-top: 10px;
}
.btn-finalize-cart:hover { background: #00b84a; }

/* =========================================
   8. RESPONSIVO (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .container-produto { flex-direction: column; align-items: center; }
    .coluna-preview, .coluna-controles { width: 100%; }
    .header-top { padding: 0 10px; }
    #cart-sidebar { width: 100%; max-width: 100%; }
}