/* --- Configurações Gerais e Variáveis de Cor (TEMA AZUL) --- */
:root {
    --primary-blue: #2962ff; /* Azul Neon Principal */
    --dark-blue: #00296b;    /* Azul Escuro */
    --accent-cyan: #00d4ff;  /* Ciano */
    --accent-green: #00ff7f; /* Verde Neon */
    --bg-black: #050505;     /* Fundo principal */
    --bg-card: #0f1216;      /* Fundo dos cards */
    --text-white: #ffffff;
    --text-gray: #a0a5b0;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    background: var(--bg-black);
}

body {
    background-color: transparent;
    color: var(--text-white);
    padding-bottom: 50px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -18px;
    background: url('../img/fundo-central-bahia.png') center center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.04);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Cabeçalho --- */
.main-header {
    background-color: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* Compatibilidade Safari */
    border-bottom: 1px solid var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(41, 98, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(41, 98, 255, 0.5);
}

/* --- BARRA DE PESQUISA --- */
.search-bar {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--dark-blue);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 40%;
    transition: 0.3s;
}

.search-bar:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(41, 98, 255, 0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-white);
    outline: none;
    margin-left: 10px;
    width: 100%;
}

/* --- RESULTADOS DA PESQUISA (DROPDOWN MODERNO) --- */
.search-results-box {
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    background: #000000;
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    padding: 10px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-header-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: rgba(41, 98, 255, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(41, 98, 255, 0.2);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    border-bottom: 1px solid #111;
    transition: 0.2s;
}

.search-item:last-child { border-bottom: none; }

.search-item:hover {
    background: rgba(41, 98, 255, 0.15);
    border-left: 3px solid var(--primary-blue);
}

.search-item img {
    width: 50px !important;
    height: 35px !important;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-item span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Botões do Header --- */
.header-actions { display: flex; gap: 15px; }
button { cursor: pointer; transition: 0.3s; }

.btn-cart {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(41, 98, 255, 0.3);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--text-white);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-login:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* --- Hero Section --- */
.hero-section { padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 15px; }

.btn-purple, .btn-buy, .btn-buy-now, .btn-save {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-purple:hover, .btn-buy:hover, .btn-buy-now:hover, .btn-save:hover { 
    background: #1545e6; 
    box-shadow: 0 0 20px rgba(41, 98, 255, 0.6); 
}

.btn-whatsapp, .btn-discord {
    background: transparent;
    border: 1px solid #5865F2;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-whatsapp:hover, .btn-discord:hover { background: rgba(88, 101, 242, 0.14); box-shadow: 0 0 18px rgba(88, 101, 242, 0.35); }

/* --- Slider Hero --- */
.hero-banner-img { position: relative; }
.banner-slider {
    width: 100%;
    height: 350px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 40px rgba(41, 98, 255, 0.3);
    background: #000;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; z-index: 10; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(5,5,5,0.8) 100%);
}

/* --- Seções e Grids --- */
.section-divider { text-align: center; margin-bottom: 30px; position: relative; }
.section-divider h2 {
    background: var(--bg-black);
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--primary-blue);
    color: var(--accent-cyan);
}

.shop-layout {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 36px 0 300px;
}

.shop-layout .main-content {
    max-width: 935px;
    margin: 0 auto;
}

.category-sidebar {
    position: fixed;
    top: 105px;
    left: 36px;
    width: 230px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    z-index: 20;
}

.category-sidebar-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(18, 18, 20, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 9px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.category-sidebar-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    outline: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(22, 22, 25, 0.22));
    color: var(--text-white);
    border-radius: 10px;
    padding: 13px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.category-sidebar-item:last-child { margin-bottom: 0; }

.category-sidebar-item i {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.category-sidebar-item:hover,
.category-sidebar-item.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(20, 20, 23, 0.30));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.22);
    transform: translateX(2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 25px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #1a1f29;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 25px rgba(41, 98, 255, 0.25);
    transform: translateY(-5px);
}
.image-container {
    overflow: hidden;
    position: relative;
    background: transparent;
    display: block;
    border-bottom: 1px solid rgba(41, 98, 255, 0.16);
}
.image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: initial;
    object-position: center;
}
.card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 15px; height: 40px; overflow: hidden; }
.price-info { margin-bottom: 20px; }
.old-price { display: block; color: var(--text-gray); text-decoration: line-through; font-size: 0.8rem; }
.new-price { display: block; color: var(--text-white); font-size: 1.4rem; font-weight: 700; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.new-price small { font-size: 0.8rem; font-weight: 400; color: var(--text-gray); }
.pix-info { color: var(--accent-green); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; margin-top: 5px; }

.btn-buy {
    width: 100%;
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.btn-buy:hover { background: #1545e6; }

/* --- Botões Flutuantes --- */
.floating-buttons {
    position: fixed; bottom: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn.whatsapp, .float-btn.discord {
    background: #5865F2; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.float-btn.roleta {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-cyan));
    padding: 12px 25px; border-radius: 50px; font-weight: bold;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.4);
}

/* --- DETALHES --- */
.breadcrumb { padding: 20px 0; color: var(--text-gray); font-size: 0.9rem; }
.breadcrumb span { color: var(--text-white); font-weight: 600; }
.product-detail-container { padding-bottom: 80px; }
.product-main-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; margin-bottom: 60px; }
.product-gallery .main-image { position: relative; border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--dark-blue); }
.product-gallery img { width: 100%; display: block; }
.product-info-box { background: var(--bg-card); padding: 25px; border-radius: var(--border-radius); border: 1px solid var(--dark-blue); height: fit-content; }
.sold-count { color: var(--text-gray); font-size: 0.8rem; display: block; margin-bottom: 5px; }
.product-info-box h1 { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.3; }
.price-section { margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.final-price { font-size: 1.8rem; font-weight: 700; color: var(--accent-cyan); }
.stock-display { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }

.btn-buy-now {
    width: 100%; background: var(--primary-blue); color: white; border: none; padding: 15px;
    border-radius: 50px; font-weight: 700; font-size: 1rem; margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(41, 98, 255, 0.4);
}
.btn-buy-now:hover { background: #1545e6; }

.btn-add-cart { display: none !important; }

.description-container h3 { margin-bottom: 20px; border-left: 4px solid var(--primary-blue); padding-left: 10px; }
.neon-box { background: #050505; border: 2px solid var(--primary-blue); border-radius: 20px; padding: 40px; text-align: center; box-shadow: 0 0 30px rgba(41, 98, 255, 0.15), 0 0 10px rgba(41, 98, 255, 0.1) inset; position: relative; overflow: hidden; }

/* --- LOGIN E ADMIN --- */
.login-container { min-height: calc(100vh - 80px); display: flex; justify-content: center; align-items: center; padding: 30px 20px; }
.login-box { background: var(--bg-card); border: 1px solid var(--dark-blue); border-radius: 24px; padding: 40px; width: 100%; max-width: 450px; box-shadow: 0 0 30px rgba(41, 98, 255, 0.05); text-align: center; }
.input-wrapper input { width: 100%; background: #0a0a0a; border: 2px solid #222; border-radius: 12px; padding: 15px 15px 15px 45px; color: white; font-size: 1rem; outline: none; transition: 0.3s; }
.input-wrapper input:focus { border-color: var(--primary-blue); box-shadow: 0 0 15px rgba(41, 98, 255, 0.3); }
.btn-login-submit { width: 100%; background: var(--primary-blue); color: white; border: none; padding: 15px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 0 20px rgba(41, 98, 255, 0.3); }

.admin-body { display: flex; background-color: #050505; min-height: 100vh; }
.sidebar { width: 260px; background: #080a0d; border-right: 1px solid #222; display: flex; flex-direction: column; position: fixed; height: 100vh; padding: 20px; }
.admin-content { margin-left: 260px; flex: 1; padding: 30px; }
.stat-card { background: #111; border: 1px solid #222; padding: 25px; border-radius: 16px; display: flex; align-items: center; gap: 20px; }
.recent-orders, .add-product-box { background: var(--bg-card); border: 1px solid var(--dark-blue); border-radius: 16px; padding: 25px; box-shadow: 0 0 30px rgba(41, 98, 255, 0.05); }
.form-row input, .form-row select, .form-row textarea { flex: 1; background: #050505; border: 1px solid #333; padding: 12px; border-radius: 8px; color: white; outline: none; transition: 0.3s; }
.form-row input:focus { border-color: var(--primary-blue); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--text-gray); font-weight: 500; padding: 15px; border-bottom: 1px solid #333; }
td { padding: 15px; border-bottom: 1px solid #222; color: var(--text-white); }

@media (max-width: 900px) {
    .shop-layout {
        display: block;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .shop-layout .main-content { max-width: none; }
    .category-sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 30px;
    }
    .category-sidebar-panel { display: flex; gap: 8px; overflow-x: auto; padding: 8px; }
    .category-sidebar-item { width: auto; min-width: max-content; margin-bottom: 0; white-space: nowrap; }
    .category-sidebar-item:hover,
    .category-sidebar-item.active { transform: translateY(-1px); }
}

@media (max-width: 768px) {
    .hero-grid, .header-content { grid-template-columns: 1fr; flex-direction: column; }
    .search-bar, .header-actions { width: 100%; }
    .product-main-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
    .admin-body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .admin-content { margin-left: 0; }
}

/* --- ESTILOS DA PÁGINA DE CHECKOUT (MODERNO) --- */

.top-notification {
    background: linear-gradient(90deg, #0f1216, var(--dark-blue));
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--primary-blue);
}
.top-notification .badge, .badge-cart { background: #ff4444; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; margin: 0 5px; }

.checkout-container { padding: 40px 20px; }
.page-title { font-size: 1.8rem; margin-bottom: 5px; }
.page-subtitle { color: var(--text-gray); margin-bottom: 30px; font-size: 0.9rem; }

/* Grid de 3 Colunas */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* Esquerda, Meio (maior), Direita */
    gap: 20px;
    align-items: start;
}

.checkout-col {
    background: var(--bg-card);
    border: 1px solid var(--dark-blue);
    border-radius: 16px;
    padding: 20px;
}

.box-header {
    font-size: 1rem; font-weight: 600; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.badge-count { background: #222; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; color: var(--text-gray); }

/* Coluna 1: Pagamento */
.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-radio {
    display: flex; align-items: center; gap: 10px;
    background: #050505; border: 1px solid #333; padding: 12px; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.payment-radio input { display: none; }
.radio-mark {
    width: 18px; height: 18px; border: 2px solid #555; border-radius: 50%; display: block; position: relative;
}
.payment-radio input:checked + .radio-mark { border-color: var(--primary-blue); }
.payment-radio input:checked + .radio-mark::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; background: var(--primary-blue); border-radius: 50%;
}
.payment-radio.active, .payment-radio:hover { border-color: var(--primary-blue); background: rgba(41, 98, 255, 0.05); }

.input-group-checkout { margin-bottom: 15px; }
.input-group-checkout label { display: block; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 5px; }
.input-group-checkout input {
    width: 100%; background: #050505; border: 1px solid #333; padding: 10px; border-radius: 8px; color: white; outline: none;
}
.input-group-checkout input:focus { border-color: var(--primary-blue); }

.coupon-area {
    display: flex; align-items: center; gap: 10px; background: rgba(41, 98, 255, 0.05); border: 1px solid var(--primary-blue); padding: 10px; border-radius: 8px;
}
.coupon-icon { color: var(--primary-blue); font-size: 1.2rem; }
.coupon-text { flex: 1; display: flex; flex-direction: column; }
.coupon-text strong { font-size: 0.85rem; }
.coupon-text span { font-size: 0.7rem; color: var(--text-gray); }
.btn-add-coupon { background: transparent; border: 1px solid var(--text-white); color: white; padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* Coluna 2: Itens e Seletor de Quantidade */
.cart-item { display: flex; gap: 15px; align-items: center; background: #050505; padding: 10px; border-radius: 12px; border: 1px solid #222; }
.item-img img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.item-info { flex: 1; }
.item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }
.item-actions { display: flex; gap: 10px; align-items: center; }
.btn-trash { background: #222; color: #ff4444; border: none; width: 25px; height: 25px; border-radius: 4px; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.flash-delivery { color: var(--primary-blue); font-size: 0.7rem; display: flex; align-items: center; gap: 3px; }

.item-qty-price { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.item-price { font-weight: bold; font-size: 1rem; }

/* CORREÇÃO DO SELETOR DE QUANTIDADE */
.qty-selector {
    display: flex !important; align-items: center !important;
    background: #000 !important; border: 1px solid #333 !important; border-radius: 8px !important;
    width: 100px !important; height: 35px !important; overflow: hidden !important;
}
.qty-selector button {
    width: 30px !important; height: 100% !important; background: transparent !important;
    border: none !important; color: white !important; font-size: 1.2rem !important;
    cursor: pointer !important; display: flex !important; justify-content: center !important; align-items: center !important;
}
.qty-selector button:hover { background: rgba(255, 255, 255, 0.1) !important; }
.qty-selector input {
    flex: 1 !important; width: 100% !important; height: 100% !important;
    background: transparent !important; /* Remove fundo branco */
    border: none !important; color: white !important; text-align: center !important;
    font-size: 1rem !important; font-weight: bold !important; outline: none !important;
    
    /* Propriedades padrão para compatibilidade */
    appearance: textfield; 
    -moz-appearance: textfield;
}
/* Remove setinhas do input number no Webkit */
.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Coluna 3: Resumo */
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-gray); }
.divider { height: 1px; background: #333; margin: 15px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; color: white; margin-bottom: 20px; }
.terms-check { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 20px; cursor: pointer; }
.terms-check a { color: var(--primary-blue); text-decoration: none; }

.btn-finish-pay {
    width: 100%; background: var(--primary-blue); color: white; border: none; padding: 15px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 20px rgba(41, 98, 255, 0.3);
}
.btn-finish-pay:hover { background: #1545e6; transform: translateY(-2px); }

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .items-col { order: -1; }
}

/* --- MODAL DE EXCLUSÃO (CENTRALIZADO) --- */
.custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    
    /* Filtros padrão e prefixados */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    z-index: 10000; display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background: var(--bg-card); border: 1px solid var(--primary-blue); padding: 30px;
    border-radius: 16px; text-align: center; max-width: 400px;
    box-shadow: 0 0 40px rgba(41, 98, 255, 0.2);
    
    /* Animação padrão e prefixada */
    -webkit-animation: modalPop 0.3s ease-out;
    animation: modalPop 0.3s ease-out;
}

/* Keyframes duplicados para compatibilidade */
@-webkit-keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-content h3 { margin-bottom: 10px; color: white; }
.modal-content p { color: var(--text-gray); margin-bottom: 25px; }
.modal-actions { display: flex; gap: 15px; justify-content: center; }
.btn-modal-cancel { background: transparent; border: 1px solid #333; color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-modal-cancel:hover { background: #111; }
.btn-modal-confirm { background: #ff4444; border: none; color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-modal-confirm:hover { background: #cc0000; }

/* --- TELA DE PAGAMENTO PIX (FULLSCREEN) --- */
.pix-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 2000; display: none;
    flex-direction: column; align-items: center; justify-content: center;
    overflow-y: auto; padding: 20px;
}
.pix-container {
    width: 100%; max-width: 600px; background: #0a0a0a; border: 1px solid var(--primary-blue);
    border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 0 50px rgba(41, 98, 255, 0.2);
}
.pix-header { margin-bottom: 20px; text-align: left; border-bottom: 1px solid #333; padding-bottom: 15px; }
.pix-header h2 { color: white; font-size: 1.5rem; margin-bottom: 5px; }
.pix-header p { color: var(--text-gray); font-size: 0.9rem; }
.pix-info-box {
    background: rgba(41, 98, 255, 0.05); border: 1px solid var(--primary-blue);
    border-radius: 12px; padding: 15px; margin-bottom: 25px; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
}
.pix-info-text strong { display: block; color: white; margin-bottom: 5px; font-size: 0.9rem; }
.pix-info-text span { color: var(--text-gray); font-size: 0.8rem; }
.pix-value { font-size: 1.5rem; color: var(--accent-green); font-weight: bold; }
.qr-code-area { margin: 30px 0; position: relative; }
.qr-code-img { width: 250px; height: 250px; border-radius: 12px; border: 4px solid white; }
.qr-timer { margin-top: 10px; color: var(--text-gray); font-size: 0.9rem; }
.copy-paste-area { text-align: left; margin-top: 20px; }
.copy-paste-label { color: var(--text-gray); font-size: 0.8rem; margin-bottom: 5px; display: block; }
.copy-input-group { display: flex; gap: 10px; }
.copy-input { flex: 1; background: #111; border: 1px solid #333; color: white; padding: 12px; border-radius: 8px; outline: none; font-family: monospace; }
.btn-copy { background: var(--primary-blue); color: white; border: none; padding: 0 20px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-copy:hover { background: #1545e6; }
.pix-footer { margin-top: 30px; font-size: 0.9rem; color: var(--text-gray); }

.spinner {
    border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--primary-blue); border-radius: 50%; width: 20px; height: 20px; display: inline-block; vertical-align: middle; margin-right: 10px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}
@-webkit-keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* --- BOTÃO MEUS PEDIDOS (HEADER) --- */
.btn-orders {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.btn-orders:hover { background: rgba(41, 98, 255, 0.1); }

/* --- PÁGINA DE COMPRAS (DASHBOARD) --- */
.purchases-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 20px;
    min-height: 80vh;
}

/* Sidebar */
.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--dark-blue);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
}
.profile-card { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.profile-avatar {
    width: 50px; height: 50px; background: var(--primary-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white;
}
.profile-info strong { display: block; color: white; font-size: 0.9rem; }
.profile-info span { color: var(--text-gray); font-size: 0.8rem; }

.profile-menu a {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-gray); text-decoration: none; padding: 12px;
    border-radius: 8px; margin-bottom: 5px; transition: 0.3s;
}
.profile-menu a:hover, .profile-menu a.active {
    background: rgba(41, 98, 255, 0.1); color: var(--primary-blue);
}

/* Lista de Compras */
.purchases-content .section-title { font-size: 1.5rem; margin-bottom: 5px; }

.order-card {
    background: #0a0a0a; border: 1px solid #222; border-radius: 12px;
    padding: 20px; margin-bottom: 15px; transition: 0.3s;
}
.order-card:hover { border-color: var(--primary-blue); }

.order-header {
    display: flex; justify-content: space-between; margin-bottom: 15px;
    font-size: 0.8rem; color: var(--text-gray);
}
.status-badge {
    background: rgba(0, 255, 127, 0.1); color: var(--accent-green);
    padding: 2px 8px; border-radius: 4px; font-weight: bold;
}

.order-body { display: flex; align-items: center; gap: 20px; }
.order-body img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.order-details { flex: 1; }
.order-details h4 { font-size: 1rem; color: white; margin-bottom: 5px; }
.order-details p { font-size: 0.8rem; color: var(--text-gray); }

.btn-view-order {
    background: white; color: black; border: none; padding: 8px 15px;
    border-radius: 6px; font-weight: 600; cursor: pointer;
}
.btn-view-order:hover { background: #ddd; }

/* --- MODAL DE SUCESSO MODERNO (Checkout) --- */
.success-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 3000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.success-card {
    background: #0f1216; border: 2px solid var(--accent-green);
    border-radius: 24px; padding: 40px; text-align: center;
    max-width: 450px; width: 90%;
    box-shadow: 0 0 60px rgba(0, 255, 127, 0.2);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.success-icon-circle {
    width: 80px; height: 80px; background: rgba(0, 255, 127, 0.1);
    border-radius: 50%; margin: 0 auto 20px auto; display: flex; align-items: center; justify-content: center;
}
.success-icon-circle i { font-size: 40px; color: var(--accent-green); }

.success-card h2 { color: white; margin-bottom: 10px; font-size: 1.8rem; }
.success-card p { color: var(--text-gray); margin-bottom: 30px; }

.btn-access-purchases {
    background: var(--primary-blue); color: white; width: 100%; padding: 15px;
    border: none; border-radius: 12px; font-size: 1rem; font-weight: bold; cursor: pointer;
    box-shadow: 0 5px 20px rgba(41, 98, 255, 0.4);
}
.btn-access-purchases:hover { background: #1545e6; transform: translateY(-2px); }

@media (max-width: 768px) {
    .purchases-container { grid-template-columns: 1fr; }
    .order-body { flex-direction: column; align-items: flex-start; }
    .btn-view-order { width: 100%; }
}
/* --- PERFIL DO USUÁRIO NO HEADER --- */
.user-logged-area {
    position: relative;
    margin-left: 10px;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.user-avatar-header {
    width: 35px; height: 35px;
    background: #333; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    border: 2px solid var(--primary-blue);
}
.user-info-header {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.user-name { font-size: 0.9rem; font-weight: 600; color: white; }
.user-sub { font-size: 0.7rem; color: #888; }

/* --- MENU DROPDOWN --- */
.user-dropdown-menu {
    position: absolute;
    top: 120%; right: 0;
    width: 260px;
    background: #0a0a0a;
    border: 1px solid var(--primary-blue);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: none; /* Escondido por padrão */
    z-index: 2000;
    animation: fadeInMenu 0.2s ease-out;
}
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Quando ativo via JS */
.user-dropdown-menu.active { display: block; }

.dropdown-header-info {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 12px;
}
.user-avatar-header.small { width: 40px; height: 40px; font-size: 1.2rem; }
.info-text strong { display: block; color: white; font-size: 0.95rem; }
.info-text span { display: block; color: #888; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

.dropdown-divider-line { height: 1px; background: #222; margin: 8px 0; }

.dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 8px;
    text-decoration: none; color: #ccc; font-size: 0.9rem;
    transition: 0.2s;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: white; }

.icon-box {
    width: 30px; height: 30px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.icon-box.yellow { background: rgba(255, 215, 0, 0.1); color: gold; }
.icon-box.red { background: rgba(255, 68, 68, 0.1); color: #ff4444; }

.dropdown-item.logout:hover { background: rgba(255, 68, 68, 0.1); color: #ff4444; }
/* --- IDENTIDADE CENTRAL BAHIA --- */
.logo span::before {
    content: '';
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: url('../img/central-bahia-logo.png') center / contain no-repeat;
    filter: drop-shadow(0 0 10px rgba(41, 98, 255, 0.45));
    flex: 0 0 auto;
}
.vip-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}
.vip-kicker::before { content: '✦'; color: #fff; }
.hero-text h1 {
    background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.product-card::before {
    content: 'VIP';
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(5, 5, 5, 0.78);
    border: 1px solid var(--primary-blue);
    color: var(--accent-cyan);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 0 14px rgba(41, 98, 255, 0.35);
}
.product-card { position: relative; }

.float-btn.discord { cursor: pointer; }
.float-btn.discord:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(88,101,242,0.55); }


/* Central Bahia: compra sem cadastro/login */
#box-guest,
#box-user,
.header-actions .sep {
    display: none !important;
}

/* === RESPONSIVO CENTRAL BAHIA - SOMENTE TABLET/CELULAR === */
/* Desktop permanece com o CSS original do site. */
@media (max-width: 1024px) {
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    img, video, canvas, svg {
        max-width: 100% !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .main-header {
        padding: 12px 0 !important;
    }

    .header-content {
        min-width: 0 !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .logo {
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    .logo span {
        white-space: nowrap !important;
    }

    .search-bar {
        min-width: 260px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-section {
        padding: 55px 0 42px !important;
        overflow: hidden !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 2.8rem) !important;
    }

    .hero-text p {
        max-width: 720px !important;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .hero-banner-img,
    .banner-slider {
        width: 100% !important;
        max-width: 680px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .shop-layout {
        display: block !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 18px !important;
    }

    .shop-layout .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .category-sidebar {
        position: sticky !important;
        top: 76px !important;
        left: auto !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 28px 0 !important;
        z-index: 900 !important;
    }

    .category-sidebar-panel {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 9px !important;
        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .category-sidebar-panel::-webkit-scrollbar {
        height: 0 !important;
    }

    .category-sidebar-item {
        width: auto !important;
        min-width: max-content !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        scroll-snap-align: start !important;
    }

    .category-sidebar-item:hover,
    .category-sidebar-item.active {
        transform: translateY(-1px) !important;
    }

    .product-grid {
        width: 100% !important;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
        gap: 22px !important;
    }

    .product-main-grid,
    .details-grid,
    .checkout-grid,
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .product-gallery,
    .product-info-box,
    .checkout-summary,
    .checkout-form,
    .cart-items,
    .cart-summary {
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-body {
        flex-direction: column !important;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    .admin-content {
        margin-left: 0 !important;
        padding: 22px !important;
        width: 100% !important;
    }

    .stats-grid,
    .admin-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    table {
        min-width: 760px !important;
    }

    .recent-orders,
    .add-product-box,
    .table-wrapper,
    .admin-table-wrapper {
        overflow-x: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 28px !important;
    }

    .main-header .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .header-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo img {
        height: 32px !important;
        max-width: 44px !important;
    }

    .logo span {
        font-size: 1rem !important;
    }

    .header-actions {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .btn-cart-blue {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    .search-bar {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .search-bar input {
        width: 100% !important;
        font-size: 0.9rem !important;
    }

    .hero-section {
        padding: 38px 0 34px !important;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.12 !important;
    }

    .hero-text p {
        font-size: 0.95rem !important;
    }

    .hero-buttons {
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-buttons a,
    .hero-buttons button,
    .btn-primary,
    .btn-secondary {
        flex: 1 1 160px !important;
        justify-content: center !important;
    }

    .banner-slider {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .shop-layout {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .category-sidebar {
        top: 116px !important;
    }

    .section-divider {
        margin-bottom: 22px !important;
    }

    .section-divider h2 {
        max-width: 100% !important;
        font-size: 0.86rem !important;
        padding: 9px 18px !important;
        line-height: 1.25 !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .product-card {
        border-radius: 14px !important;
    }

    .card-content {
        padding: 15px !important;
    }

    .card-content h3 {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        height: auto !important;
        min-height: 38px !important;
    }

    .new-price {
        font-size: 1.2rem !important;
    }

    .pix-info,
    .old-price {
        font-size: 0.72rem !important;
    }

    .btn-buy {
        padding: 11px 8px !important;
        font-size: 0.82rem !important;
    }

    .neon-box {
        padding: 24px 18px !important;
    }

    .product-info-box,
    .checkout-card,
    .checkout-summary,
    .cart-summary,
    .cart-item,
    .login-box {
        padding: 20px !important;
    }

    .form-row {
        flex-direction: column !important;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .logo span {
        font-size: 0.92rem !important;
    }

    .btn-cart-blue span:not(.cart-count),
    .btn-cart-blue .cart-text {
        display: none !important;
    }

    .hero-text h1 {
        font-size: 1.72rem !important;
    }

    .hero-buttons a,
    .hero-buttons button,
    .btn-primary,
    .btn-secondary {
        flex: 1 1 100% !important;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .product-card {
        max-width: 360px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .category-sidebar-item {
        font-size: 0.78rem !important;
        padding: 11px 13px !important;
    }

    .floating-buttons {
        bottom: 14px !important;
        right: 14px !important;
    }

    .float-btn.whatsapp,
    .float-btn.discord {
        width: 46px !important;
        height: 46px !important;
        font-size: 22px !important;
    }
}

