/* --- Variáveis e Reset (Y2K Brutalism) --- */
:root {
    --bg-color: #c0c0c0;
    --text-color: #000000;
    --accent-color: #0000ff;
    --border-style: 2px solid #000000;
    --box-shadow-brutal: 4px 4px 0px #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: var(--text-color);
    padding: 20px;
    background-image: linear-gradient(#fd0000 1px, transparent 1px), linear-gradient(90deg, #000000 1px, transparent 1px);
    background-size: 20px 20px;
}

/* =========================================
   HEADER DESKTOP
   ========================================= */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    border: var(--border-style);
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow-brutal);
}

.logo-container, .header-spacer {
    flex: 1; 
}

.logo-container {
    flex: 1; 
    display: flex;
}

.logo-container.left {
    justify-content: flex-start; 
}

.logo-container.right {
    justify-content: flex-end; 
    width: 100px;
}

.logo {
    max-height: 140px; 
    width: auto;
    border: var(--border-style);
    display: block;
}

.main-nav {
    flex: 2;
    display: flex;
    justify-content: center; 
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: #39FF14;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    text-decoration: underline;
}

.main-nav a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* =========================================
   HAMBURGUER (escondido no desktop)
   ========================================= */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: var(--border-style);
    padding: 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #39FF14;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #39FF14;
}

/* Menu mobile — painel que abre */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #000;
    border: var(--border-style);
    border-top: none;
    box-shadow: var(--box-shadow-brutal);
    margin-bottom: 20px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #39FF14;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

.mobile-menu a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* =========================================
   BANNERS
   ========================================= */

.hero-section {
    margin-bottom: 20px;
    border: var(--border-style);
    box-shadow: var(--box-shadow-brutal);
    background: #000;
}

.hero-banner {
    width: 100%;
    height: 900px;
    object-fit: cover;
    display: block;
}

/* --- Separador --- */
.separator-section {
    margin: 40px 0;
    border: var(--border-style);
    box-shadow: var(--box-shadow-brutal);
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.separator-banner {
    width: 500px;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* --- Marquee --- */
.marquee-container {
    background-color: #ffff00;
    color: #000;
    border: var(--border-style);
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow-brutal);
}

/* =========================================
   GRID DE PRODUTOS
   ========================================= */

.clothing-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border: var(--border-style);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.1s;
}

.product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--box-shadow-brutal);
}

.image-wrapper {
    border-bottom: var(--border-style);
    background: #FFFFFF;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 15px;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: contrast(120%) grayscale(20%);
    transition: filter 0.2s, transform 0.2s;
}

.product-card:hover img {
    filter: contrast(150%) saturate(200%);
    transform: scale(1.05);
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    flex-grow: 1;
}

.price {
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 10px;
    font-size: 1rem;
}

.buy-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 8px;
    font-weight: bold;
    border: var(--border-style);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.buy-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background-color: #000;
    color: #39FF14;
    text-align: center;
    padding: 20px;
    border: var(--border-style);
    box-shadow: var(--box-shadow-brutal);
    margin-top: 40px;
    position: relative;
}

.footer-content p {
    margin: 5px 0;
    font-weight: bold;
}

.footer-mascot {
    position: absolute;
    bottom: 0;
    height: 90px;
    width: auto;
    opacity: 0.85;
    filter: drop-shadow(2px 2px 0px #39FF14);
    transition: transform 0.3s ease;
}

.footer-mascot:hover { transform: scale(1.1); }
.footer-mascot.left  { left: 15px; }
.footer-mascot.right { right: 15px; transform: scaleX(-1); }
.footer-mascot.right:hover { transform: scaleX(-1) scale(1.1); }

/* =========================================
   STICKER BOMB
   ========================================= */

.sticker-bomb-container {
    width: 100%;
    max-width: 900px;
    height: 400px;
    position: relative;
}

.sticker {
    position: absolute;
    box-shadow: 4px 4px 0px #000; 
    border: 2px solid #000; 
    transition: transform 0.2s ease, z-index 0.2s;
    object-fit: contain;
}

.sticker:hover {
    transform: scale(1.1) !important;
    z-index: 50 !important;
    cursor: crosshair;
}

.s1 { top: 5%; left: 2%; height: 220px; transform: rotate(-12deg); z-index: 10; }
.s2 { bottom: -5%; left: 25%; height: 280px; transform: rotate(8deg); z-index: 20; }
.s3 { top: 10%; right: 20%; height: 180px; transform: rotate(-5deg); z-index: 15; }
.s4 { bottom: 5%; right: -2%; height: 250px; transform: rotate(15deg); z-index: 25; }

/* =========================================
   PÁGINA DE PRODUTO INDIVIDUAL
   ========================================= */

.single-product-container {
    display: flex;
    gap: 40px;
    background-color: #000;
    border: var(--border-style);
    box-shadow: var(--box-shadow-brutal);
    padding: 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-gallery {
    flex: 1;
    border: var(--border-style);
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 500px;
}

.main-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.main-image-wrapper img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: contain;
    filter: contrast(120%) grayscale(10%);
}

.product-details-extended {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.product-details-extended h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #39FF14;
    text-shadow: 2px 2px 0px #ff0000;
}

.price-large {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 25px;
    border-bottom: 2px dashed #fff;
    padding-bottom: 15px;
}

.description {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
    color: #c0c0c0;
}

.description p { margin-bottom: 5px; }

.options-group { margin-bottom: 25px; }

.options-group h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.size-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.size-selector input[type="radio"] { display: none; }

.size-selector label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: var(--border-style);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 2px 2px 0px #39FF14;
    transition: all 0.1s;
}

.size-selector label:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #39FF14;
}

.size-selector input[type="radio"]:checked + label {
    background-color: #39FF14;
    color: #000;
    box-shadow: inset 2px 2px 0px #000;
    transform: translate(2px, 2px);
}

.buy-btn-large {
    margin-top: auto;
    padding: 20px;
    background-color: #ff0000;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: var(--border-style);
    cursor: pointer;
    box-shadow: 4px 4px 0px #fff;
    transition: all 0.2s;
    font-family: 'Courier New', Courier, monospace;
}

.buy-btn-large:hover {
    background-color: #39FF14;
    color: #000;
    box-shadow: 4px 4px 0px #ff0000;
}

/* =========================================
   GALERIA COM MINIATURAS
   ========================================= */

.thumbnail-list {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: var(--border-style);
    background-color: #fff;
    cursor: pointer;
    filter: grayscale(100%) contrast(120%);
    transition: all 0.2s ease;
}

.thumb-img:hover {
    filter: grayscale(0%) contrast(150%) saturate(150%);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0px #39FF14;
}

.thumb-img.active-thumb {
    filter: grayscale(0%) contrast(110%);
    border-color: #39FF14;
    box-shadow: inset 0px 0px 0px 2px #39FF14, 2px 2px 0px #000;
}

/* =========================================
   HOVER FRENTE/COSTAS (VITRINE)
   ========================================= */

.hover-swap { position: relative; }

.hover-swap .img-front {
    opacity: 1;
    transition: opacity 0.3s ease, filter 0.2s, transform 0.2s;
}

.hover-swap .img-back {
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    transition: opacity 0.3s ease, filter 0.2s, transform 0.2s;
}

.product-card:hover .hover-swap .img-front { opacity: 0; }

.product-card:hover .hover-swap .img-back {
    opacity: 1;
    filter: contrast(150%) saturate(200%);
    transform: translate(-50%, -50%) scale(1.05);
}

/* =========================================
   PRÉ-VENDA MARQUEE
   ========================================= */

.preorder-marquee {
    background-color: #ffff00;
    height: 80px;
    display: flex;
    align-items: center;
    margin: 60px 0 30px 0;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.preorder-marquee marquee {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
}

/* =========================================
   PÁGINA ABOUT
   ========================================= */

.about-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-container {
    display: flex;
    background-color: #000;
    border: var(--border-style);
    box-shadow: 8px 8px 0px #39FF14;
    overflow: hidden;
}

.about-image {
    flex: 1;
    border-right: var(--border-style);
    background-color: #111;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(130%);
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #ffff00;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 5px;
    text-align: center;
}

.about-content {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content h1 {
    color: #39FF14;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px #ff0000;
}

.about-content p {
    color: #c0c0c0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.text-white { color: #fff; font-weight: bold; }

.highlight-green { background-color: #39FF14; color: #000; padding: 0 5px; font-weight: bold; }
.highlight-red   { background-color: #ff0000; color: #fff; padding: 0 5px; font-weight: bold; }

.terminal-text {
    font-size: 1.3rem !important;
    border-left: 4px solid #39FF14;
    padding-left: 15px;
}

.about-footer-note {
    margin-top: auto;
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 2px;
}

.about-mascot-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mascot-img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0px #39FF14);
    transition: transform 0.3s ease;
}

.mascot-img:hover { transform: scale(1.05); }

/* =========================================
   WORLD CUP MARQUEE (SHOP)
   ========================================= */

.world-cup-marquee {
    background-color: #39FF14;
    color: #000;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid #000;
}

.world-cup-marquee marquee {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* =========================================
   RESPONSIVIDADE DESKTOP INTERMEDIÁRIO
   ========================================= */

@media (max-width: 1024px) {
    .clothing-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   MOBILE (até 768px)
   ========================================= */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    /* --- Header mobile: só logo esquerda + hamburguer --- */
    .main-header {
        padding: 10px 15px;
    }

    .logo-container.right { display: none; }

    .logo-container.left {
        flex: 1;
        justify-content: center;
    }

    .logo { max-height: 60px; }

    /* Hamburguer absoluto para não deslocar a logo do centro */
    .main-header { position: relative; }

    .hamburger-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav { display: none; } /* Esconde nav desktop */

    .hamburger-btn { display: flex; } /* Mostra hamburguer */

    /* --- Banners --- */
    .hero-banner {
        height: auto;       /* Remove altura fixa */
        max-height: 60vw;   /* Proporcional à tela */
        object-fit: cover;
        width: 100%;
    }

    .separator-section {
        margin: 20px 0;
    }

    .separator-banner {
        width: 100%;
        height: auto;
        max-height: 45vw;
        object-fit: cover;
    }

    /* --- Marquee menor --- */
    .marquee-container {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .world-cup-marquee marquee { font-size: 1.2rem; }

    /* --- Grid 2 colunas --- */
    .clothing-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .image-wrapper { height: 180px; padding: 10px; }

    .product-info h4 { font-size: 0.75rem; }
    .price { font-size: 0.85rem; }
    .buy-btn { font-size: 0.7rem; padding: 6px; }

    /* --- Produto individual empilha --- */
    .single-product-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .product-gallery {
        min-height: 300px;
    }

    .main-image-wrapper img {
        min-height: 260px;
    }

    .product-details-extended h1 { font-size: 1.6rem; }
    .price-large { font-size: 1.4rem; }

    .size-selector label {
        padding: 8px 14px;
        font-size: 1rem;
    }

    .buy-btn-large {
        font-size: 1rem;
        padding: 15px;
    }

    /* --- About --- */
    .about-container { flex-direction: column; }

    .about-image {
        height: 250px;
        border-right: none;
        border-bottom: var(--border-style);
    }

    .about-image img {
        object-fit: cover !important;
        object-position: center top !important;
    }

    .about-content {
        padding: 20px;
        gap: 15px;
    }

    .about-content h1 { font-size: 1.4rem; }
    .about-content p  { font-size: 0.8rem; }
    .terminal-text    { font-size: 0.85rem !important; line-height: 1.4; }
    .about-content    { gap: 10px; }

    /* --- Footer mobile: esconde as duas cobrinhas absolutas --- */
    .footer-mascot { display: none; }

    /* Adiciona padding extra no footer para a cobrinha centralizada ter espaço */
    .site-footer {
        padding-bottom: 30px;
    }

    /* Cobrinha única centralizada abaixo do texto */
    .site-footer::after {
        content: '';
        display: block;
        width: 70px;
        height: 70px;
        background-image: url('king-slime-mascote.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin: 15px auto 0;
        filter: drop-shadow(2px 2px 0px #39FF14);
        opacity: 0.85;
    }
}

/* =========================================
   MOBILE PEQUENO (até 480px)
   ========================================= */

@media (max-width: 480px) {

    .hero-banner { max-height: 55vw; }

    .clothing-row { gap: 8px; }

    .image-wrapper { height: 150px; }

    .product-info h4 { font-size: 0.7rem; }

    /* cobrinhas já ocultas no breakpoint 768px */
}