:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-alt: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --accent: #dc143c;
    --accent-hover: #b01030;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #e53e3e;
}

body.dark-mode {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-alt: #2d3748;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --border: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* === NAVBAR === */
nav {
    background: var(--bg-alt);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-display {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-center ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-center a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle, .admin-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.theme-toggle:hover, .admin-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

/* === BANNER === */
.hero-welcome {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    padding: 8rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-welcome h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.highlight {
    color: white;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

/* === SEÇÕES === */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* === CATEGORIAS HOME === */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.categoria-card {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border);
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--accent);
}

.categoria-img {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
}

.categoria-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoria-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.categoria-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.categoria-card p {
    color: var(--text-secondary);
}

/* === CATEGORIAS LOJA === */
.categorias {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
    padding: 1rem 0;
}

.categoria-btn {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.categoria-btn:hover, .categoria-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* === PRODUTOS === */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.produto-card {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border);
    position: relative;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--accent);
}

.produto-img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-img-placeholder {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.categoria-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.estoque-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.produto-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.produto-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.preco {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    text-align: center;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-alt);
    border-radius: 25px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--danger);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #c53030;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-categoria {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-avaliacoes {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.stars {
    color: #ffd700;
}

.modal-preco {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 1.5rem 0;
}

.modal-estoque {
    background: var(--warning);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-add-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* === INFO CARDS === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--bg-alt);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--accent);
}

.info-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.btn-copiar, .btn-discord {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-copiar:hover, .btn-discord:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* === FOOTER === */
footer {
    background: var(--bg-alt);
    padding: 3rem 2rem 1rem;
    border-top: 2px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* === SEARCH === */
.search-filter-container {
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 25px;
    background: var(--bg-alt);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

/* === MANUTENÇÃO === */
.manutencao-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manutencao-content {
    text-align: center;
    color: white;
    padding: 3rem;
    background: rgba(0,0,0,0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.manutencao-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-center ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-welcome h1 {
        font-size: 2rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr;
    }
    
    .categorias {
        justify-content: flex-start;
    }
}

.ver-mais-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ver-mais:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}
    /* Navbar   */
    nav {
        transition: transform 0.3s ease-in-out;
    }
    
    nav.hidden {
        transform: translateY(-100%);
    }
    
    
    .info-card {
        padding: 2rem;
        min-height: 200px;
    }
    @media (max-width: 1200px) {
        .info-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .info-grid {
            grid-template-columns: 1fr;
        }
    }
/* CENTRALIZAÇÃO DOS SUBTÍTULOS */
.destaque-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: block;
    width: 100%;
}

#categorias-home h2,
#produtos-home h2,
#sobre h2 {
    text-align: center;
}

/* CENTRALIZAÇÃO DE CATEGORIAS E PRODUTOS */
.categorias-grid,
.produtos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 0 auto;
}
/* === SOBRE NÓS === */
#sobre {
    background: var(--bg-secondary);
}

#sobre .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

#sobre h2 {
    margin-bottom: 2rem;
}

#sobre p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Card de categoria */
.categoria-card {
    flex: 0 0 auto;
    width: 280px;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid var(--border);
}

.categoria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

/* Card de produto */
.produto-card {
    flex: 0 0 auto;
    width: 280px;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

/* Responsivo - mantém centralização */
@media (max-width: 768px) {
    .categorias-grid,
    .produtos-grid {
        gap: 1.5rem;
    }
    
    .categoria-card,
    .produto-card {
        width: calc(50% - 1rem);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .categoria-card,
    .produto-card {
        width: 100%;
    }
}

/* COR PERSONALIZÁVEL*/
.highlight {
    color: var(--highlight-color, var(--accent));
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Garantir que hero-welcome esteja centralizado */
.hero-welcome {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-welcome h1 {
    text-align: center;
    width: 100%;
}
