:root {
    --bg-dark: #0b0d17;
    --bg-card: #151828;
    --primary-yellow: #f0b90b;
    --primary-red: #e60000;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2d42;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    /* Cor de fundo sólida do site inteiro */
    background-color: var(--bg-dark);
    
    /* As 6 imagens PNG que formam a pintura do fundo */
    background-image: 
        url('../Img/Loja/1.png'), 
        url('../Img/Loja/3.png'), 
        url('../Img/Loja/5.png'), 
        url('../Img/Loja/6.png'), 
        url('../Img/Loja/2.png'), 
        url('../Img/Loja/4.png');
    
    /* Posicionamento exato para livrar a Logo no topo e alinhar com o Footer */
    background-position: 
        right 150px,  /* 1.png: Parede DIREITA, descida para livrar o Header */
        left 135px,   /* 3.png: Parede ESQUERDA, topo */
        left 850px,   /* 5.png: Parede ESQUERDA, altura Destaques */
        right 850px,  /* 6.png: Parede DIREITA, altura Destaques */
        left bottom,  /* 2.png: Parede ESQUERDA, final do Footer */
        right bottom; /* 4.png: Parede DIREITA, final do Footer */
    
    /* Nenhuma imagem se repete */
    background-repeat: 
        no-repeat, no-repeat, no-repeat, 
        no-repeat, no-repeat, no-repeat;
    
    background-size: 
        auto, auto, auto, 
        auto, auto, auto;
    
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.main-header {
    padding: 15px 0 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Puxa o Menu (Páginas) para cima alinhando com a Logo */
}

/* Configuração da Logo Oficial */
.logo {
    display: flex;
    align-items: center;
    margin-bottom: -5px; 
}

.logo-img {
    max-width: 170px;
    height: auto;
    display: block;
}

.search-bar {
    display: flex;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    width: 400px;
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    width: 100%;
    outline: none;
}
.search-bar button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 10px;
}

.user-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}
.user-actions a {
    font-size: 0.9rem;
    font-weight: 600;
}
.cart-icon {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--primary-yellow);
    color: black;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Nav (Menu de Páginas) */
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 15px 0;
}
.main-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.main-nav a:hover, .highlight-link {
    color: var(--primary-yellow);
}

/* Hero Section */
.hero-section {
    padding: 35px 0;
}
.hero-content {
    display: flex;
    align-items: center;
}
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-title-img {
    max-width: 450px; 
    margin-bottom: 10px;
    margin-left: -60px; 
}
.hero-text p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}
.btn-primary {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--bg-dark);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.btn-primary:hover {
    transform: scale(1.05);
}

/* IMAGEM DA RAQUETE GIGANTE */
.hero-image {
    flex: 1;
    height: 380px;
    background: url('../Img/Loja/raquete.png') no-repeat center right; 
    background-size: contain;
}

/* Benefits Bar */
.benefits-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 25px;
    background: rgba(11, 13, 23, 0.6);
    backdrop-filter: blur(5px);
}
.benefits-container {
    display: flex;
    justify-content: space-between;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.benefit-item i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
}
.benefit-item strong {
    display: block;
    font-size: 0.85rem;
}
.benefit-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Categories & Sections Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.view-all {
    color: var(--primary-yellow);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card i {
    font-size: 1.3rem;
    color: #fff;
    background: var(--bg-card);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.category-card span {
    font-size: 0.65rem;
    font-weight: 600;
}
.highlight-cat i {
    color: var(--primary-red);
}

/* Products Grid */
.products-section {
    margin-bottom: 30px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-yellow);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}
.product-img-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4d62;
    margin-bottom: 8px;
}
.product-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}
.stars {
    color: var(--primary-yellow);
    font-size: 0.7rem;
    margin-bottom: 8px;
}
.stars span {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}
.installments {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.add-to-cart-btn {
    background: transparent;
    border: 1px solid var(--primary-yellow);
    color: var(--primary-yellow);
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.add-to-cart-btn:hover {
    background: var(--primary-yellow);
    color: var(--bg-dark);
}

/* Kits Section */
.kits-section {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}
.kits-banner {
    flex: 1;
    background: rgba(21, 24, 40, 0.8);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
}
.kits-banner h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}
.kits-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.kits-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.kit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}
.kit-card::before {
    content: '\f45d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 5rem;
    color: #2a2d42;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.5;
}
.kit-info h4 { font-size: 0.9rem; margin-bottom: 5px; color: var(--text-muted); }
.kit-info p { font-size: 0.8rem; margin-bottom: 15px; line-height: 1.4; }
.kit-discount {
    display: block;
    color: var(--primary-yellow);
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

/* Footer (Fundo Transparente para as manchas PNG aparecerem) */
footer {
    background: transparent; 
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}
.footer-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-feature i {
    font-size: 2rem;
    color: var(--primary-yellow);
}
.footer-feature strong { display: block; font-size: 0.9rem; margin-bottom: 5px;}
.footer-feature span { font-size: 0.8rem; color: var(--text-muted); }

.footer-main {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}
.footer-brand .socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.footer-brand .socials i {
    font-size: 1.2rem;
    cursor: pointer;
}
.footer-links h4, .footer-payments h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--primary-yellow); }

.payment-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pay-icon {
    background: #fff;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    background: transparent; 
    text-align: center;
    padding: 15px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}
/* ... (MANTENHA TODO O SEU LOJA.CSS DE ANTES AQUI EM CIMA) ... */

/* ======================================================== */
/* MODAL DE LOGIN (IFRAME)                                  */
/* ======================================================== */
.modal-iframe-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    z-index: 9000; display: flex; justify-content: center; align-items: center;
}
.modal-iframe-overlay iframe { width: 100%; height: 100%; border: none; background: transparent; }
.btn-fechar-iframe { 
    position: absolute; top: 20px; right: 40px; font-size: 50px; color: white; cursor: pointer; 
    z-index: 10000; transition: 0.3s; 
}
.btn-fechar-iframe:hover { color: var(--primary-yellow); transform: scale(1.1); }

/* ======================================================== */
/* MODAL DE LOGOUT E PERFIL                                 */
/* ======================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px);
    z-index: 9500; display: flex; justify-content: center; align-items: center;
}

.logout-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
    padding: 35px 30px;
    border-radius: 25px;
    border: 2px solid var(--primary-yellow);
    text-align: center;
    max-width: 400px;
    width: 90%;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: popupLogout 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupLogout {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.logo-pequena {
    height: 55px; width: auto; margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.4));
}

.logout-box h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-yellow); margin-bottom: 8px; font-size: 1.6rem; letter-spacing: 0.5px;
}
.logout-box p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 25px; }

.opcoes-perfil { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.btn-perfil-item {
    width: 100%; padding: 14px 20px; border: none; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-perfil-item:hover {
    background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px);
    color: var(--primary-yellow); border-color: var(--primary-yellow);
}

.btn-perfil-item.sair { background-color: var(--primary-red); color: white; border: none; box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2); }
.btn-perfil-item.sair:hover { background-color: #ff3333; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4); color: white; }

.btn-fechar-perfil { background: transparent; border: none; color: #aaa; font-size: 0.9rem; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-fechar-perfil:hover { color: white; text-decoration: underline; }