/* ======================================= */
/* ARQUIVO: loja.css                       */
/* ESTILOS: FiveM / Dark / Glassmorphism   */
/* ======================================= */

/* --- Variáveis de Cores --- */
:root {
    --color-primary: #00bcd4; /* Azul Ciano/Água (Efeito Neon) */
    --color-secondary: #007bff; /* Azul Forte (Para botões primários) */
    --color-highlight: #4a90e2; /* Azul para destaque/vidro */
    --color-dark: #0a1421; /* Azul escuro quase preto (Fundo principal) */
    --color-card: rgba(21, 32, 43, 0.7); /* Fundo dos elementos (Semi-transparente) */
    --color-border: rgba(0, 188, 212, 0.3); /* Borda Neon suave */
    --color-success: #28a745;
    --color-error: #f00;
    --shadow-neon: 0 0 10px rgba(0, 188, 212, 0.5);
    --shadow-dark: 0 5px 20px rgba(0, 0, 0, 0.7);
}

/* --- Geral e Fundo --- */
body { 
    background-color: var(--color-dark); 
    color: #fff; 
    font-family: 'Arial', sans-serif; 
    background-size: cover;
    background-attachment: fixed;
}
.container { 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 20px; 
}

/* --- NOVO: Cabeçalho da Loja (Simplificado) --- */
/* Remove os estilos antigos de .header, .header-container, .nav a */
.store-header-simple {
    background: var(--color-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}
.store-header-container {
    display: flex;
    justify-content: flex-start; /* Alinha o botão à esquerda */
    align-items: center;
    max-width: 1200px; 
    margin: auto; 
    padding: 0 20px;
}
.btn-back-to-site {
    background: none;
    color: #fff;
    border: 1px solid var(--color-primary);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.btn-back-to-site:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}
.header-logo-container {
    flex-grow: 1;
    text-align: center;
}
.header-logo-container img {
    height: 40px; /* Tamanho da logo no header */
    margin-left: -100px; /* Compensar o espaço do botão Voltar */
}


/* --- Estilos do Login (Glassmorphism e Neon) --- */
.login-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    z-index: 1000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.login-box { 
    background: rgba(10, 20, 33, 0.8); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 40px; 
    border-radius: 15px; 
    text-align: center; 
    max-width: 400px; 
    width: 90%; 
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-neon), var(--shadow-dark);
}
.login-box h2 { 
    margin-bottom: 20px; 
    color: var(--color-primary); 
    font-size: 2.2em;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.8); 
}
.login-box p { 
    color: #ccc; 
}
.login-box input { 
    width: 100%; 
    padding: 14px; 
    margin-bottom: 15px; 
    border: 1px solid var(--color-border); 
    background: rgba(0, 0, 0, 0.4); 
    color: #fff; 
    border-radius: 8px; 
    transition: border-color 0.3s, box-shadow 0.3s;
}
.login-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5); 
    outline: none;
}
.login-box button { 
    background: linear-gradient(90deg, #0056b3, var(--color-primary)); 
    color: #fff; 
    padding: 14px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.3s, transform 0.2s; 
    width: 100%; 
    font-weight: bold; 
    letter-spacing: 1px;
}
.login-box button:hover { 
    background: linear-gradient(90deg, #003f8a, #0097a7);
    transform: translateY(-2px);
}
.login-box #loginError { 
    color: var(--color-error); 
    margin-top: 10px; 
}

/* --- Layout da Loja e Produtos --- */
.loja-container { 
    padding: 40px 20px; 
    max-width: 1200px; 
    margin: auto; 
}
.shop-header { 
    text-align: center; 
    margin-bottom: 40px; 
}
.shop-header h1 { 
    color: var(--color-primary); 
    font-size: 2.8em; 
    font-weight: 800; 
    margin-bottom: 10px; 
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); 
}
.shop-header p { 
    color: #aaa; 
    font-size: 1.1em; 
}
.shop-header #welcomeUser { 
    color: var(--color-primary); 
}

/* --- Abas de Categoria --- */
.tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}
.tab-button { 
    background: var(--color-dark); 
    color: #fff; 
    padding: 10px 20px; 
    margin: 5px; 
    border: 1px solid var(--color-border); 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background 0.3s, color 0.3s, border-color 0.3s; 
    font-weight: 600; 
    text-transform: uppercase;
}
.tab-button:hover { 
    background: #15202b; 
    border-color: var(--color-primary); 
}
.tab-button.active { 
    background: var(--color-primary); 
    color: var(--color-dark); 
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.7);
}

/* --- Cards de Produtos (Adição de Imagem) --- */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}
.product-card { 
    background: var(--color-card); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    padding: 20px; 
    border-radius: 10px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
    border: 2px solid transparent; 
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; 
    overflow: hidden; /* Para garantir que a imagem não vaze */
}
.product-card:hover { 
    border-color: var(--color-primary); 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-dark), 0 0 15px rgba(0, 188, 212, 0.8);
}

/* Novo Estilo para a Imagem do Produto */
.product-image-container {
    height: 150px; /* Altura fixa para as imagens */
    margin: -20px -20px 20px -20px; /* Estender para as bordas do card */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}


.product-card h3 { 
    color: var(--color-primary); 
    margin: 10px 0; 
    font-size: 1.4em; 
    text-transform: uppercase; 
    text-shadow: 0 0 3px rgba(0, 188, 212, 0.5);
}
/* Estilo para lista de descrição */
.product-card ul { 
    color: #ccc; 
    margin-bottom: 15px; 
    min-height: 80px; 
    font-size: 0.9em;
    text-align: left; 
    list-style: none;
    padding-left: 0;
}
.product-card ul li {
    padding: 3px 0;
}

.product-card .price { 
    color: var(--color-primary); 
    font-size: 2.2em; 
    font-weight: bold; 
    margin-bottom: 20px; 
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.7);
}
.product-card button { 
    background: linear-gradient(90deg, #007bff, var(--color-highlight)); 
    color: #fff; 
    padding: 10px 15px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background 0.3s; 
    font-weight: bold; 
    text-transform: uppercase;
}
.product-card button:hover { 
    background: #0056b3; 
}

/* --- Checkout/Carrinho (Mantido) --- */
.checkout-section { 
    background: rgba(16, 28, 41, 0.9); 
    padding: 30px; 
    border-radius: 10px; 
    margin-top: 60px;
    border: 1px solid var(--color-border);
}
.checkout-section h2 { 
    color: var(--color-primary); 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--color-border); 
    padding-bottom: 10px; 
    font-size: 1.8em;
}
.checkout-section #checkoutUser {
    color: var(--color-primary);
}
.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
    border-bottom: 1px dashed var(--color-border); 
    color: #ccc; 
}
.cart-item-remove { 
    cursor: pointer; 
    color: var(--color-error); 
    font-size: 1.2em; 
    margin-left: 15px; 
    transition: color 0.3s;
}
.cart-item-remove:hover { 
    color: #ff5555; 
}
.cart-total { 
    font-size: 1.8em; 
    font-weight: bold; 
    color: #fff; 
    margin-top: 20px; 
    text-align: right; 
}
.cart-total span { 
    color: var(--color-primary); 
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
}

/* --- Informações de Pagamento PIX --- */
.payment-info { 
    margin-top: 30px; 
    padding: 25px; 
    border: 2px solid var(--color-primary); 
    border-radius: 8px; 
    background: var(--color-card); 
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}
.payment-info h3 { 
    color: var(--color-primary); 
    margin-bottom: 15px; 
    font-size: 1.5em; 
}
.payment-info p { 
    margin-bottom: 10px; 
    color: #ccc; 
}
.payment-info .pix-key-highlight {
    color: var(--color-highlight); 
    font-weight: bold; 
    font-size: 1.1em;
}
.payment-info .warning-text {
    color: #ff5555; 
    font-weight: bold; 
    margin-top: 10px;
}

.payment-info input[type="file"], 
.payment-info textarea,
.payment-info hr {
    margin-top: 10px; 
    padding: 12px; 
    border: 1px solid var(--color-border); 
    background: var(--color-dark); 
    color: #fff; 
    width: 100%; 
    border-radius: 5px; 
}
.payment-info textarea {
    resize: vertical;
}

.payment-info button[type="submit"] { 
    background: var(--color-success); 
    color: #fff;
    margin-top: 20px;
    padding: 14px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.3s; 
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
}
.payment-info button[type="submit"]:hover { 
    background: #1e7e34; 
}
#checkoutMessage {
    color: var(--color-success);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* Link Admin */
.admin-link { 
    margin-top: 20px; 
    text-align: center; 
}
.admin-link a { 
    color: var(--color-primary); 
    text-decoration: none; 
    font-weight: 600;
    transition: color 0.3s; 
}
.admin-link a:hover { 
    color: var(--color-highlight); 
    text-decoration: underline;
}

/* --- Rodapé (Mantenha consistente com index.html) --- */
.footer { 
    background: var(--color-dark); 
    padding: 20px 0; 
    text-align: center; 
    margin-top: 50px; 
    border-top: 1px solid rgba(0, 188, 212, 0.1); 
}
.footer .copyright { 
    color: #aaa; 
    font-size: 0.9em; 
}

/* --- Media Queries (Mobile Adaptation) --- */
@media (max-width: 600px) {
    .login-box { padding: 30px 20px; }
    .login-box h2 { font-size: 1.8em; }
    .loja-container { padding: 20px 10px; }
    .tabs { flex-direction: column; }
    .tab-button { width: 100%; margin: 5px 0; }
    .products-grid { grid-template-columns: 1fr; }
    .cart-total { font-size: 1.4em; }
    .header-logo-container img { margin-left: 0; }
}