:root {
    --primary: #34D399;
    --dark: #121212;
    --card-bg: #1E1E1E;
    --bg: #0A0A0A;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border: #333333;
    --lilac: #8B5CF6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text-main); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header OrbiART */
.loja-header { background: var(--bg); padding: 20px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.loja-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.8rem; color: #FFF; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--primary); }
.loja-nav { display: flex; gap: 30px; align-items: center; }

/* Menu Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: transparent; color: #FFF; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dropbtn:hover { color: var(--primary); }
.dropdown-content { display: none; position: absolute; background-color: var(--card-bg); min-width: 220px; box-shadow: 0px 8px 16px rgba(0,0,0,0.5); z-index: 101; border-radius: 6px; border: 1px solid var(--border); top: 30px;}
.dropdown-content a { color: var(--text-main); padding: 12px 16px; text-decoration: none; display: block; border-bottom: 1px solid var(--border); font-size: 0.9rem;}
.dropdown-content a:hover { background-color: #2A2A2A; color: var(--primary); }
.dropdown:hover .dropdown-content { display: block; }

.btn-cart { background: transparent; color: #FFF; border: none; font-size: 1.4rem; cursor: pointer; position: relative; }
#cart-count { position: absolute; top: -8px; right: -10px; background: var(--primary); color: #000; font-size: 0.7rem; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Banner de Vantagens */
.trust-banner { background: #111827; border-bottom: 1px solid var(--border); padding: 15px 0; }
.trust-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.trust-item { color: var(--primary); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Vitrine Escura */
.catalog-header { margin: 40px 0 20px; display: flex; justify-content: space-between; align-items: center; }
.catalog-header h2 { font-size: 1.8rem; font-weight: 800; color: #FFF; text-transform: uppercase;}
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; padding: 20px 0 60px; }

.product-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; position: relative; display: flex; flex-direction: column;}
.product-card:hover { transform: translateY(-5px); border-color: #555; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.product-img { width: 100%; height: 260px; object-fit: cover; background: #2A2A2A; border-bottom: 1px solid var(--border); }

.product-info { padding: 20px; text-align: left; flex: 1; display: flex; flex-direction: column;}
.stars { color: #FBBF24; font-size: 0.8rem; margin-bottom: 8px; }
.product-brand { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; display: block;}
.product-info h3 { font-size: 1.05rem; color: #FFF; font-weight: 600; line-height: 1.4; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.price-area { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.installments { font-size: 0.85rem; color: #A1A1AA; font-weight: 500; margin-bottom: 20px; display: block; }

.btn-add { margin-top: auto; width: 100%; padding: 14px; background: #FFF; color: #000; border: none; border-radius: 6px; cursor: pointer; font-weight: 800; font-size: 0.95rem; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-add:hover { background: var(--primary); color: #000; }

/* Rodapé */
.loja-footer { background: #050A15; padding: 50px 0 0; margin-top: 50px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 15px; max-width: 300px; line-height: 1.6;}
.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 4px; background: #1C2541; color: #fff; text-decoration: none; transition: 0.2s;}
.social-icons a:hover { background: var(--lilac); }
.footer-bottom { border-top: 1px solid #1C2541; padding: 20px 0; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.8rem; }
.payment-flags { display: flex; gap: 10px; font-size: 1.5rem; color: #fff; }

/* Drawer do Carrinho */
.cart-drawer { position: fixed; top: 0; right: -450px; width: 100%; max-width: 450px; height: 100vh; background: var(--card-bg); z-index: 1000; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.5); }
.cart-drawer.active { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-header { padding: 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.cart-item { display: flex; gap: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.cart-footer { padding: 25px; border-top: 1px solid var(--border); background: var(--bg); }
.btn-checkout { width: 100%; padding: 18px; background: var(--primary); color: #000; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: 800; cursor: pointer; text-transform: uppercase; }

/* Correções de Responsividade Mobile */
@media (max-width: 768px) {
    .loja-header .container { flex-wrap: wrap; gap: 15px; }
    .loja-nav { width: 100%; justify-content: space-between; }
    .dropdown-content { position: static; box-shadow: none; border: none; background: #1A1C23; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand p { margin: 15px auto; }
    .social-icons { justify-content: center; }
    .trust-grid { flex-direction: column; align-items: center; text-align: center; }
    
    /* Correção do Carrinho Mobile */
    .cart-drawer { width: 100vw; max-width: 100vw; right: -100vw; }
}

/* Correção do Menu Dropdown fugindo no PC */
.dropdown-content {
    top: 100%; /* Substitui o top: 30px que criava o buraco */
    margin-top: 5px;
}

/* Ponte invisível para o hover do mouse não escapar */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}