:root { --bg: #121212; --card: #1e1e1e; --gold: #FFD700; --white: #fff; --gray: #aaa; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background: var(--bg); 
    color: var(--white); 
    font-family: 'Roboto', sans-serif; 
    margin: 0; 
    padding-top: 50px; 
}

/* AVISO TOPO */
.top-warning {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 30px; 
    background: #000; 
    color: #FFD700;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.70rem; 
    font-weight: bold; 
    z-index: 1000;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 1px solid #333; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}

/* HEADER */
header { 
    text-align: center; 
    margin-bottom: 20px; 
    margin-top: 0; 
}
.logo { max-height: 150px; width: auto; object-fit: contain; }

/* --- FEED CARD (GRID) --- */
.feed-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    padding-bottom: 50px;
}

.feed-card {
    background: var(--card); border: 1px solid #333; border-radius: 10px;
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
    position: relative;
}

.feed-header {
    padding: 8px 12px; border-bottom: 1px solid #2a2a2a;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #aaa; height: 40px; background: rgba(0,0,0,0.2);
}
.loja-info { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: bold; }
.loja-icon { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }

.feed-body { 
    display: flex; 
    flex-direction: column; 
    padding: 15px; gap: 15px; flex-grow: 1; 
}

/* FOTO BLINDADA */
.feed-img {
    width: 100%; 
    height: 200px; 
    background: #fff; 
    border-radius: 8px;
    position: relative; 
    overflow: hidden;
    margin-bottom: 5px;
}

.feed-img img { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
}

.feed-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }

.feed-title { font-family: 'Oswald', sans-serif; font-size: 1.1rem; line-height: 1.3; margin-bottom: 8px; color: #fff; font-weight: 500; }
.feed-condicao { font-size: 0.75rem; color: #ffbb33; font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.feed-price { font-size: 1.6rem; color: var(--gold); font-weight: 900; }
.feed-detail { font-size: 0.85rem; color: #ccc; margin-bottom: 10px; }

/* --- PADRONIZAÇÃO DE CUPONS --- */
.feed-cupom-box { 
    margin-top: 10px;
    font-size: 0.85rem; 
    color: #bbb; 
    border: 1px dashed #666; 
    padding: 6px 10px; 
    border-radius: 4px; 
    background: #252525;
    display: block; 
    width: 100%;
}

.feed-cupom-destaque {
    color: var(--gold); 
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    margin-left: 5px;
    text-transform: none; 
    word-break: break-word;
}

.cupom-box-single { 
    background: #151515; 
    border: 2px dashed var(--gold); 
    padding: 15px; 
    text-align: center; 
    margin: 20px 0; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    color: #ccc; 
}

.cupom-code {
    color: var(--gold);
    font-weight: 900;
    font-size: 1.3rem; 
    margin-left: 8px;
    display: inline-block;
}

/* --- FLAG ESGOTADO --- */
.esgotado-flag {
    position: absolute;
    top: 0;
    left: 0;
    background: #FF4444; 
    color: #fff;
    padding: 8px 12px;
    border-radius: 0 0 5px 0; 
    font-size: 0.9rem;
    font-weight: 900;
    z-index: 10; 
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

/* AÇÕES (RODAPÉ) */
.feed-actions { 
    display: flex; 
    border-top: 1px solid #2a2a2a; 
    height: 55px; 
    background: #1a1a1a;
    align-items: center;
}

.action-btn { 
    flex: 1; background: transparent; border: none; color: #bbb; font-size: 0.9rem; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    gap: 8px; border-right: 1px solid #2a2a2a; text-decoration: none; height: 100%;
}
.action-btn:last-child { border-right: none; } 
.action-btn:hover { background: #252525; color: #fff; }
.action-btn i.fab.fa-whatsapp { font-size: 1.3rem; color: #25D366; }

.like-count { font-size: 0.85rem; font-weight: bold; margin-left: 2px; }
.liked i { color: #ff4444; animation: pulse 0.3s; }
.liked .like-count { color: #ff4444; }

/* BOTÃO PEGAR OFERTA */
.action-btn.btn-buy { 
    background: var(--gold); 
    color: #000 !important; 
    font-weight: 900; 
    flex: 2; 
    border: none; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100%;
    padding: 0 15px;
}
.action-btn.btn-buy:hover { background: #fff; }
.action-btn.btn-buy i { margin-left: 5px; font-size: 1.1rem; }

/* MOBILE (Lista Vertical) */
@media (max-width: 768px) {
    .feed-container { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
    } 

    .feed-body { 
        flex-direction: row; 
        height: auto; 
    } 

    .feed-img { 
        width: 120px; 
        height: 120px; 
        min-width: 120px; 
        padding: 2px; 
    }

    .feed-actions { height: 50px; }
    .action-btn.btn-buy { font-size: 0.85rem; padding: 0 10px; }
}

/* SINGLE PAGE */
.single-container { padding: 20px; }
.product-flex { 
    display: flex; gap: 30px; background: var(--card); padding: 30px; border-radius: 12px; border: 1px solid #333; flex-direction: column; 
    position: relative; 
}
.product-left { background: #fff; border-radius: 8px; padding: 10px; height: 350px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); position: relative; }
.product-left img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; margin: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.product-right { flex: 1.5; display: flex; flex-direction: column; justify-content: center; }
.single-title { font-size: 1.8rem; line-height: 1.2; font-family: 'Oswald'; margin-bottom: 10px; }
.big-price { font-size: 3rem; color: var(--gold); font-weight: 900; line-height: 1; margin-bottom: 5px; }
.btn-big { background: var(--gold); color: #000; font-size: 1.4rem; font-weight: 900; text-align: center; padding: 15px; border-radius: 8px; display: block; margin-top: 20px; text-decoration: none; }

/* --- BOTÕES DE COMPARTILHAMENTO --- */
.social-share { 
    display: flex; 
    gap: 10px; 
    margin-top: 30px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.social-btn { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 15px; 
    border-radius: 6px; 
    font-size: 0.9rem; 
    color: #fff; 
    font-weight: bold; 
    text-decoration: none; 
    transition: transform 0.2s;
    border: none; /* Remove bordas padrão */
}

.social-btn:hover {
    transform: translateY(-2px); 
    opacity: 0.9;
}

/* Cores Específicas */
.social-btn.whatsapp { background: #25D366; color: #000; } 
.social-btn.telegram { background: #0088cc; color: #fff; } 
.social-btn.facebook { background: #3b5998; color: #fff; } 
.social-btn.twitter  { background: #1DA1F2; color: #fff; } 

/* --- BOTÃO COPIAR (CORREÇÃO MOBILE) --- */
.social-btn.copy-btn { 
    background-color: #444 !important; /* !important garante a cor no mobile */
    color: #fff !important; 
    cursor: pointer; 
    border: 1px solid #666;
}
.social-btn.copy-btn:hover { 
    background-color: #666 !important; 
}

.single-desc img { display: none !important; }
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
footer { text-align: center; padding: 40px; color: #666; margin-top: 60px; border-top: 1px solid #333; }

/* Desktop Adjust */
@media (min-width: 768px) {
    .product-flex { flex-direction: row; }
    .product-left { flex: 1; height: 450px; }
    .product-right { flex: 1.5; }
}

/* PAGINAÇÃO */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 20px;
}

.pag-btn {
    background: #333;
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid var(--gold);
    transition: 0.3s;
}

.pag-btn:hover {
    background: var(--gold);
    color: #000;
}

.pag-info {
    color: #888;
    font-size: 0.9rem;
}

/* --- HEADER COM BOTÃO SOCIAL --- */
.header-flex {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
}

.social-text {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    text-align: center;
}

.btn-zap-topo {
    background: transparent;
    border: 1px solid #25D366;
    color: #25D366;
    padding: 8px 20px;
    border-radius: 50px; 
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-zap-topo:hover {
    background: #25D366;
    color: #000; 
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4); 
}

@media (min-width: 768px) {
    .header-flex {
        flex-direction: row;      
        justify-content: center;  
        align-items: center;      
        gap: 40px;                
    }

    .logo {
        margin: 0 !important;     
        max-height: 160px;        
    }

    .social-text {
        text-align: left;         
        margin-bottom: 2px;
    }

    .header-social {
        padding-left: 40px;       
        border-left: 1px solid #333; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100px; 
    }
}

/* --- BARRA DE BUSCA --- */
.search-box {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.search-box form {
    display: flex;
    width: 100%;
    max-width: 600px; 
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--gold); 
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.search-box button {
    padding: 0 25px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.search-box button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- CONTROLE DE TEXTO DO AVISO --- */
.msg-mob { display: none !important; }
.msg-desk { display: inline !important; }

@media (max-width: 768px) {
    .msg-desk { display: none !important; }  
    .msg-mob { display: inline !important; } 
}

/* --- CORREÇÃO DOS TÍTULOS (LINKS ROXOS) --- */
.feed-title a {
    color: #fff !important;           
    text-decoration: none !important; 
}
.feed-title a:visited { color: #fff !important; }
.feed-title a:hover { color: #FFD700 !important; }

/* --- BOTÃO VOLTAR --- */
.voltar {
    display: inline-block;
    color: #aaa !important; 
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none !important;
    padding: 10px 20px;
    border: 1px solid #333;
    border-radius: 50px; 
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.voltar:hover {
    color: #000 !important;
    background: var(--gold); 
    border-color: var(--gold);
    transform: translateY(-3px); 
}

/* --- PÁGINA DE POLÍTICA --- */
.legal-content {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #333;
    line-height: 1.6;
    color: #ddd;
}

.legal-content h1 {
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    text-align: center;
}

.legal-content h2 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.legal-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 5px;
}

.destaque-legal {
    background: rgba(255, 215, 0, 0.1); 
    padding: 15px;
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .legal-content { padding: 20px; }
}