/* ARQUIVO: assets/css/loja.css */

:root { 
    --cor-laranja: #E06C00; 
    --cor-preta: #111111; 
    --cor-branca: #FFFFFF; 
    --cor-marrom: #3b2015; 
    --cor-cinza-claro: #222222; 
    --cor-fundo-escuro: #000000; /* Fundo base preto */
    --cor-fundo-destaque: #111111; /* Preto ligeiramente mais claro (cinza muito escuro) para as fichas técnicas */
}

body { 
    margin: 0; 
    font-family: 'Rubik', sans-serif; 
    background-color: var(--cor-fundo-escuro); 
    color: var(--cor-branca); 
    overflow-x: hidden; 
}

/* =======================================================
    HEADER
   ======================================================= */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 15px 50px; 
    background-color: transparent; 
    border-bottom: none; 
}
.logos { display: flex; align-items: center; gap: 20px; }
.logos img { height: 50px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { 
    color: var(--cor-branca); 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px; 
    transition: 0.3s; 
}
nav a:hover { color: var(--cor-laranja); }

/* APENAS CARRINHO (Sem Lupa ou Boneco) */
.carrinho-container { 
    position: relative; 
    cursor: pointer; 
    color: var(--cor-branca); 
    font-size: 1.3rem; 
    transition: 0.3s; 
    margin-left: 10px; 
}
.carrinho-container:hover { color: var(--cor-laranja); }
.carrinho-badge { 
    position: absolute; 
    top: -8px; 
    right: -12px; 
    background-color: var(--cor-laranja); 
    color: #fff; 
    font-size: 0.7rem; 
    font-weight: bold; 
    padding: 3px 6px; 
    border-radius: 50%; 
    text-align: center; 
}

/* =======================================================
    PÁGINA DE DETALHES DO PRODUTO
   ======================================================= */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.voltar { display: inline-block; margin-bottom: 20px; color: #ccc; text-decoration: none; font-weight: 600; font-size: 0.9rem;}
.voltar:hover { color: var(--cor-laranja); }

.produto-detalhe { display: flex; background: transparent; border-radius: 20px; overflow: hidden; }
.produto-img { flex: 1; padding: 60px; display: flex; align-items: center; justify-content: center; border-radius: 20px; }
.produto-img img { max-width: 100%; max-height: 500px; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,0.5)); transition: transform 0.5s;}
.produto-img img:hover { transform: scale(1.05); }

.produto-info { flex: 1.2; padding: 40px 50px; display: flex; flex-direction: column; justify-content: center; background: transparent; }
.produto-info .subtitulo { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: #aaa; margin-bottom: 10px; font-weight: 600; }
.produto-info h1 { margin: 0 0 15px; font-size: 3.5rem; font-weight: 800; text-transform: uppercase; line-height: 1; color: var(--cor-branca); letter-spacing: -1px;}
.produto-info p.desc { font-size: 1.1rem; line-height: 1.6; color: #ccc; margin-bottom: 30px; }
.produto-info .preco { font-size: 2.5rem; color: var(--cor-branca); font-weight: 800; margin-bottom: 30px; letter-spacing: -1px; }

/* CAIXAS DE DESTAQUE */
.features-grid { display: flex; gap: 15px; margin-bottom: 35px; }
.feature-box { flex: 1; background: var(--cor-fundo-destaque); padding: 20px; border-radius: 12px; }
.feature-box i { font-size: 1.5rem; color: var(--cor-laranja); margin-bottom: 15px; display: block; }
.feature-box small { font-size: 0.7rem; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.feature-box strong { font-size: 0.95rem; color: var(--cor-branca); font-weight: 600; }

/* CONTROLES DE COMPRA */
.controles-compra { display: flex; flex-direction: column; gap: 15px; }
.controles-linha { display: flex; gap: 20px; align-items: stretch; width: 100%; }
.qtd-seletor { display: flex; align-items: center; border: 2px solid #333; border-radius: 30px; background: #1a1a1a; padding: 0 10px; }
.qtd-seletor button { background: none; border: none; padding: 10px; font-size: 1.2rem; cursor: pointer; font-weight: bold; color: var(--cor-branca); }
.qtd-seletor input { width: 40px; text-align: center; border: none; font-size: 1.1rem; font-weight: bold; outline: none; color: var(--cor-branca); background: transparent; }
.btn-acao { background-color: var(--cor-laranja); color: #fff; border: none; padding: 15px 30px; flex: 1; font-weight: 800; font-size: 1rem; border-radius: 30px; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.btn-acao:hover { background-color: #c05c00; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(224, 108, 0, 0.4); }

/* =======================================================
    FICHA TÉCNICA
   ======================================================= */
.ficha-bg { background-color: var(--cor-fundo-destaque); padding: 80px 20px; margin-top: 60px; }
.ficha-container { max-width: 1000px; margin: 0 auto; display: flex; gap: 60px; align-items: flex-start; }
.ficha-esquerda { flex: 1; }
.ficha-esquerda .label-top { color: var(--cor-laranja); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: block; }
.ficha-esquerda h2 { font-size: 3rem; margin: 0 0 20px; line-height: 1.1; font-weight: 800; color: var(--cor-branca); }
.ficha-esquerda h2 i { font-style: italic; font-weight: 400; }
.ficha-esquerda p { font-size: 1.1rem; color: #ccc; line-height: 1.6; }

.ficha-tabela { flex: 1.5; width: 100%; }
.ficha-linha { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.ficha-linha:last-child { border-bottom: none; }
.ficha-linha span:first-child { font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; width: 30%; }
.ficha-linha span:last-child { font-weight: 500; color: #eee; width: 70%; }

/* =======================================================
    SEÇÃO: VOCÊ TAMBÉM PODE GOSTAR / CARDS VITRINE
   ======================================================= */
.relacionados { background-color: transparent; padding: 80px 20px; text-align: center; }
.relacionados h2 { font-size: 2.2rem; text-transform: uppercase; font-weight: 800; margin-bottom: 50px; color: var(--cor-branca); letter-spacing: 1px; }
.relacionados h2 i { font-style: italic; color: var(--cor-laranja); font-weight: 400;}

/* FORÇAR 4 PRODUTOS NA MESMA LINHA (DESKTOP) E FLEXBOX */
.grid-loja {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

.produto-card { 
    width: 100% !important; max-width: 100% !important; box-sizing: border-box;
    border-radius: 20px; padding: 25px 20px; 
    display: flex; flex-direction: column; justify-content: space-between; text-align: left; text-decoration: none; 
    transition: transform 0.4s ease, box-shadow 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; 
}
.produto-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(255,255,255,0.05); }

.card-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.badge-top { font-size: 0.65rem; font-weight: 800; padding: 6px 12px; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; }
.btn-fav { background: rgba(255,255,255,0.8); color: #555; width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-fav:hover { transform: scale(1.1); }

.img-wrapper { text-align: center; margin-bottom: 25px; position: relative; }
.produto-card .img-wrapper img { width: auto; max-width: 100%; height: 220px; object-fit: contain; position: relative; z-index: 1; transition: transform 0.5s; }
.produto-card:hover .img-wrapper img { transform: scale(1.05); }

.card-sub { font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; opacity: 0.6; font-weight: 700; }
.card-title { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin: 0 0 15px 0; line-height: 1.1; letter-spacing: -0.5px; }

.card-price-area { border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 15px; margin-top: auto; margin-bottom: 20px;}
.price-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; font-weight: 700; display: block; margin-bottom: 5px; }
.price-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;}
.price-suffix { font-size: 0.8rem; font-weight: 500; opacity: 0.7; }

.btn-comprar-novo { display: block; width: 100%; padding: 14px 0; border-radius: 30px; text-align: center; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; border: none; cursor: pointer; }
.btn-comprar-novo:hover { background-color: var(--cor-laranja) !important; color: #fff !important; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2);}


/* =======================================================
    OVERLAY DO CARRINHO LATERAL
   ======================================================= */
.overlay-carrinho { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 999; }
.overlay-carrinho.ativo { display: block; }
.carrinho-lateral { position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: #111111; z-index: 1000; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.8); }
.carrinho-lateral.aberto { right: 0; }
.carrinho-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); background: #1a1a1a; color: var(--cor-branca); }
.btn-fechar-carrinho { background: none; border: none; color: inherit; font-size: 1.5rem; cursor: pointer; }
.carrinho-itens { flex: 1; overflow-y: auto; padding: 20px; color: var(--cor-branca); }
.item-carrinho { display: flex; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; }
.item-carrinho img { width: 60px; object-fit: contain; }
.item-detalhes h4 { margin: 0 0 5px; font-size: 0.9rem; }
.item-detalhes p { margin: 0; color: var(--cor-laranja); font-weight: bold; }
.btn-remover { color: #e74c3c; font-size: 0.8rem; cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; margin-top: 5px;}
.carrinho-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); background: #1a1a1a; color: var(--cor-branca); }
.carrinho-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }


/* =======================================================
    RESPONSIVIDADE (TABLET E MOBILE)
   ======================================================= */
@media (max-width: 1100px) {
    .grid-loja { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px; }
    nav { gap: 15px; flex-wrap: wrap; justify-content: center; }
    
    .produto-detalhe { flex-direction: column; border-radius: 0;}
    .produto-img { padding: 40px 20px; border-radius: 0; }
    .produto-info { padding: 40px 20px; }
    
    .features-grid { flex-direction: column; }
    .ficha-container { flex-direction: column; gap: 30px; }
    .ficha-esquerda h2 { font-size: 2.2rem; }
    .ficha-linha { flex-direction: column; gap: 5px; }
    .ficha-linha span:first-child, .ficha-linha span:last-child { width: 100%; }
    
    .grid-loja { grid-template-columns: 1fr !important; padding: 0 10px; }
    .produto-card { padding: 30px !important; }
    .produto-card .img-wrapper img { height: 280px; }
    
    .carrinho-lateral { width: 100%; right: -100%; }
}