/* Importação de fonte estilizada, como a "Oxanium" */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;700&display=swap');

/* Regras gerais para o corpo da página */
body {
    background: radial-gradient(circle, #0a0a0f 0%, #000000 100%); /* Fundo degradê */
    color: #c0c0c0;
    font-family: 'Oxanium', sans-serif;
    margin: 0;
    padding: 0;
}

/* Efeito glossy para botões e caixas */
.glossy-effect {
    position: relative;
    overflow: hidden;
}

.glossy-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: transform 0.3s ease-in-out;
}

.glossy-effect:hover::before {
    transform: translate(15%, 15%) rotate(45deg);
}

/* --- Layout Principal --- */

.main-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.left-column, .right-column {
    width: 20%;
    min-width: 200px;
}

.center-content {
    width: 60%;
    min-width: 600px;
}

/* --- Header / Topo --- */
.main-banner {
    background-image: url('assets/images/header_banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 30px 40px;
    border-bottom: 2px solid #5a5a5a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Camada semi-transparente sobre a imagem do banner */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.header-content {
    position: relative;
    z-index: 10;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #e0e0e0;
    /* Linha que restaura o efeito de brilho */
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff, 0 0 30px #00aaff;
    margin: 0;
}

/* Camada semi-transparente sobre a imagem do banner */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.logo h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff, 0 0 30px #00aaff;
    margin-bottom: 0; /* Alteração aqui! */
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-bar input {
    width: 400px;
    padding: 10px 15px;
    border: 2px solid #5a5a5a;
    background: #1a1a1a;
    color: #fff;
    border-radius: 5px;
    font-family: 'Oxanium', sans-serif;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.search-bar input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: inset 0 0 5px #00ffff, 0 0 10px #00ffff;
}

.search-bar button {
    background: linear-gradient(to bottom, #00ee00, #00aa00);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,255,0,0.5);
    transition: transform 0.3s ease;
}

.search-bar button:hover {
    transform: scale(1.05);
}

/* --- Menu Principal --- */
.main-menu {
    background: #1a1a1a;
    border-bottom: 2px solid #5a5a5a;
    padding: 10px 0;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    text-decoration: none;
    color: #c0c0c0;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

.main-menu li a:hover {
    color: #fff;
    border-color: #006eff; /* Borda luminosa */
    text-shadow: 0 0 10px #006eff;
}

/* --- Coluna Esquerda: Categorias --- */
.category-box {
    background: linear-gradient(to right, #2a2a2a, #5a5a5a, #2a2a2a);
    border: 1px solid #777;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    cursor: pointer; /* Adiciona o cursor de mão para indicar que é clicável */
    transition: all 0.3s ease; /* Transição suave para o efeito */
}

/* Efeito de hover */
.category-box:hover {
    border: 1px solid #00ffff; /* Borda ciano/azul neon */
    box-shadow: 0 0 15px #00ffff, 0 0 5px #00ffff inset; /* Brilho neon e interno */
    transform: scale(1.02); /* Aumenta um pouco a caixa */
}

.category-box h3 {
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

/* --- Coluna Direita: Banners --- */
.banner-promo {
    background: linear-gradient(45deg, #ff6600, #ff9900);
    border: 2px solid #fff;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 10px #ff6600, inset 0 0 10px #ff6600;
    animation: pulse 1.5s infinite alternate; /* Animação de pulsar */
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.banner-promo h4 {
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    font-size: 1.2em;
    animation: flash-text 1s infinite alternate; /* Texto piscante */
}

@keyframes flash-text {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* --- Centro da Página: Produtos --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-item {
    background: linear-gradient(to bottom, #333333, #111111);
    border: 1px solid #777;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.product-item::before { /* Efeito de moldura metálica */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #aaa;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 10px #777;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border: 1px solid #999;
}

.product-item h3 {
    margin: 10px 0;
    color: #fff;
    font-weight: bold;
}

.price-old {
    color: #ff5555;
    text-decoration: line-through;
}

.price-new {
    color: #00ff00;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.buy-button {
    background: linear-gradient(to bottom, #00ee00, #00aa00);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,255,0,0.5);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-button:hover {
    transform: scale(1.05);
}

/* Efeito glossy para o botão de compra */
.buy-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: transform 0.3s ease-in-out;
}

.buy-button:hover::before {
    transform: translate(20%, 20%) rotate(45deg);
}

.promo-gif, .new-gif {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
}

/* --- Rodapé --- */
footer {
    background: #000;
    color: #c0c0c0;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-top: 2px solid #5a5a5a;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
/* --- Seção de Ordenação --- */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinha o controle para a direita */
    margin-bottom: 20px;
    padding: 10px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: inset 0 0 5px #000;
}

.sort-controls label {
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
    text-transform: uppercase;
}

#sort-by {
    background-color: #333;
    color: #fff;
    border: 1px solid #5a5a5a;
    border-radius: 5px;
    padding: 5px 10px;
    font-family: 'Oxanium', sans-serif;
    cursor: pointer;
    -webkit-appearance: none; /* Remove o estilo padrão em navegadores WebKit */
    -moz-appearance: none;    /* Remove o estilo padrão em navegadores Mozilla */
    appearance: none;
}

#sort-by:focus {
    outline: none;
    box-shadow: 0 0 5px #00ffff;
}

/* Adicionando uma pequena seta para o select */
.sort-controls::after {
    content: '▼';
    color: #fff;
    font-size: 10px;
    position: relative;
    right: 25px;
    pointer-events: none;
}

/* Seleciona todas as imagens dentro de .product-grid */
.product-grid img {
    background-color: transparent !important;
    border: none !important;
}

/* Opcionalmente, remova o background do container */
.product-item {
    background-color: transparent;
}