/* style.css - CodesVIP Marketplace Premium */
:root {
    --bg: #0b0f19;
    --header: #020617;
    --card: #1e293b;
    --primary: #10b981;
    --primary-hover: #059669;
    --border: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR RESPONSIVA */
header {
    background: var(--header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
}

/* MENU PC */
.desktop-menu {
    display: none;
}

.desktop-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 20px;
    transition: 0.2s;
}

.desktop-menu a:hover {
    color: #fff;
}

.btn-client {
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff !important;
}

/* MENU CELULAR (HAMBURGER) */
.menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: block;
}

.mobile-menu {
    display: none;
    background: var(--header);
    flex-direction: column;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* HERO E BUSCA (ESTILO CODESTER) */
.hero {
    background: linear-gradient(180deg, #020617 0%, var(--bg) 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

/* GRID DE PRODUTOS */
.grid-produtos {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* CARDS DA VITRINE */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.card-img {
    width: 100%;
    height: 180px;
    background: #0b1120;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-preco {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(2, 6, 23, 0.9);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(74, 222, 128, 0.2);
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 20px;
    flex: 1;
}

.card-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.1);
}

/* PÁGINA INTERNA DO PRODUTO (produto.php) */
.product-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.prod-media {
    background: #0b1120;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.prod-media img {
    width: 100%;
    display: block;
}

.prod-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: -0.5px;
}

.prod-desc-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.buy-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.buy-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.buy-price span {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: normal;
}

.license-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 0.95rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.2s;
    border: none;
}

.btn-demo { background: transparent; border: 1px solid var(--border); color: #fff; }
.btn-demo:hover { background: rgba(255,255,255,0.05); border-color: var(--text-muted); }
.btn-pix { background: #32bcad; color: #fff; }
.btn-pix:hover { background: #249185; }
.btn-paypal { background: #0079C1; color: #fff; }
.btn-paypal:hover { background: #005a91; }

.features-list {
    margin-top: 25px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--primary);
}

/* RESPONSIVIDADE (PC / TABLET) */
@media(min-width: 768px) {
    .menu-btn { display: none; }
    .desktop-menu { display: flex; align-items: center; }
    .mobile-menu { display: none !important; }
    .grid-produtos { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
}

@media(min-width: 1024px) {
    .grid-produtos { grid-template-columns: repeat(3, 1fr); }
    .product-container { grid-template-columns: 2fr 1fr; }
}

/* ================= LOGIN & CADASTRO CLIENTE ================= */
.auth-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
    background: #020617; 
}
.auth-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    padding: 40px 30px; 
    border-radius: 16px; 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.auth-card h2 { 
    margin-bottom: 5px; 
    color: #fff; 
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}
.auth-card p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-bottom: 25px; 
}
.auth-card input { 
    width: 100%; 
    padding: 14px; 
    margin: 8px 0; 
    background: rgba(0,0,0,0.3); 
    border: 1px solid var(--border); 
    color: #fff; 
    border-radius: 8px; 
    box-sizing: border-box; 
    outline: none; 
    transition: 0.2s; 
    font-size: 1rem;
}
.auth-card input:focus { 
    border-color: var(--primary); 
}
.auth-card button { 
    width: 100%; 
    padding: 14px; 
    background: var(--primary); 
    border: none; 
    color: #fff; 
    font-weight: bold; 
    font-size: 1.1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: 0.2s;
}
.auth-card button:hover { 
    background: var(--primary-hover); 
}
.auth-card a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600; 
}