/* ============================================
   STRANGER THINGS THEME - LOJA IGNITE
   ============================================ */

/* Cores principais de Stranger Things */
:root {
    --st-primary: #FF0000;      /* Vermelho intenso */
    --st-secondary: #1A1A2E;    /* Azul escuro/preto */
    --st-accent: #FFD700;       /* Amarelo/Dourado */
    --st-light: #E0E0E0;        /* Cinza claro */
    --st-dark: #0F0F1E;         /* Preto profundo */
    --st-purple: #9D4EDD;       /* Roxo neon */
    --st-cyan: #00D9FF;         /* Ciano neon */
}

/* Fonte principal - estilo retrô dos anos 80 */
@import url('https://fonts.googleapis.com/css2?family=Righteous:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

body {
    font-family: 'Righteous', sans-serif;
    background-color: var(--st-dark);
    color: var(--st-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Efeito de glitch/distorção - estilo Stranger Things */
@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--st-primary), -2px 0 var(--st-cyan);
    }
    14% {
        text-shadow: 2px 0 var(--st-primary), -2px 0 var(--st-cyan);
    }
    15% {
        text-shadow: -2px 0 var(--st-primary), 2px 0 var(--st-cyan);
    }
    49% {
        text-shadow: -2px 0 var(--st-primary), 2px 0 var(--st-cyan);
    }
    50% {
        text-shadow: 2px 0 var(--st-primary), -2px 0 var(--st-cyan);
    }
    100% {
        text-shadow: 2px 0 var(--st-primary), -2px 0 var(--st-cyan);
    }
}

/* Efeito de neon */
@keyframes neon-glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--st-primary), 0 0 20px var(--st-primary), 0 0 30px var(--st-primary);
    }
    50% {
        text-shadow: 0 0 20px var(--st-primary), 0 0 30px var(--st-primary), 0 0 40px var(--st-primary);
    }
}

/* Cabeçalho temático */
header {
    background: linear-gradient(135deg, var(--st-dark) 0%, var(--st-secondary) 100%);
    border-bottom: 4px solid var(--st-primary);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 0, 0.03) 0px,
        rgba(255, 0, 0, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--st-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: neon-glow 2s ease-in-out infinite;
}

.tagline {
    font-size: 0.9rem;
    color: var(--st-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    animation: glitch 2s infinite;
}

/* Navegação */
nav {
    background-color: var(--st-secondary);
    border-top: 2px solid var(--st-primary);
    border-bottom: 2px solid var(--st-primary);
}

nav a {
    color: var(--st-light);
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--st-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--st-primary);
    background-color: rgba(255, 0, 0, 0.1);
}

nav a:hover::before {
    width: 100%;
}

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

/* Grade de produtos */
.products-grid {
    display: grid;
    /* Padrão para telas maiores: 4 colunas, mas permite que o minmax se ajuste */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

/* Card de produto */
.product-card {
    background: linear-gradient(135deg, var(--st-secondary) 0%, #2A2A4E 100%);
    border: 2px solid var(--st-primary);
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6), 0 0 20px rgba(157, 78, 221, 0.3);
    border-color: var(--st-cyan);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--st-dark);
    border: 1px dashed var(--st-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--st-accent);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--st-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.3;
    min-height: 40px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid var(--st-primary);
    border-bottom: 1px solid var(--st-primary);
}

.price-main {
    font-size: 1.5rem;
    color: var(--st-accent);
    font-weight: 900;
    text-shadow: 0 0 10px var(--st-accent);
}

.price-old {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

.discount-badge {
    background-color: var(--st-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-status {
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 10px;
    padding: 8px;
    text-align: center;
    border-radius: 3px;
}

.status-available {
    background-color: rgba(0, 217, 255, 0.2);
    color: var(--st-cyan);
    border: 1px solid var(--st-cyan);
}

.status-unavailable {
    background-color: rgba(255, 0, 0, 0.2);
    color: #FF6B6B;
    border: 1px solid #FF6B6B;
}

/* Botões */
.btn {
    background-color: var(--st-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    font-family: 'Righteous', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    border-radius: 3px;
}

.btn:hover {
    background-color: var(--st-cyan);
    color: var(--st-dark);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Rodapé */
footer {
    background-color: var(--st-secondary);
    border-top: 4px solid var(--st-primary);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}

footer p {
    color: var(--st-light);
    margin: 10px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--st-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--st-primary);
    text-shadow: 0 0 10px var(--st-primary);
}

/* Título da seção */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--st-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0 30px 0;
    text-align: center;
    position: relative;
    padding: 20px 0;
    border-top: 2px solid var(--st-primary);
    border-bottom: 2px solid var(--st-primary);
    animation: neon-glow 2s ease-in-out infinite;
}

/* Responsivo */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
    
    /* Regra para exibir 2 produtos por linha em dispositivos móveis (até 768px) */
    .products-grid {
        /* Força 2 colunas para telas menores que 768px */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .price-main {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Efeito de carga/animação */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--st-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--st-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--st-cyan);
}

/* Regras para ocultar elementos de verificação de idade e cookies */
.age-modal-overlay, .cookie-banner {
    display: none !important;
}
