/* =====================================================
   RESET GLOBAL
   Remove margens padrão e normaliza box model
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f2f2f2;
    color: #111;
}

/* =====================================================
   HEADER DO SITE
===================================================== */

.site-header {
    background: #000;
    width: 100%;
    position: relative;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Áreas do header */
.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    text-align: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Logo */
.logo {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

/* =====================================================
   MENU DESKTOP (DROPDOWN)
===================================================== */

.nav-dropdown {
    position: relative;
}

.nav-link {
    color: #fff;
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border-radius: 8px;
    min-width: 180px;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 999;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    background: #222;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* =====================================================
   MENU MOBILE
===================================================== */

.mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 10px 0;
}

.mobile-menu a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
}

.mobile-menu a:hover {
    background: #222;
}

.mobile-menu.active {
    display: flex;
}

/* =====================================================
   BOTÕES PADRÃO
===================================================== */

.glow-btn {
    padding: 8px 16px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #4b0000, #8b0000, #4b0000);
    filter: blur(6px);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 10px;
    z-index: -1;
}

.glow-btn:hover::before {
    opacity: 1;
}

/* =====================================================
   LISTAGEM DE PRODUTOS (HOME / CATEGORIAS)
===================================================== */

.titulo-principal {
    text-align: center;
    margin: 40px 0;
    font-size: 28px;
}

.produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 20px 60px;
}

.produto-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    text-align: center;
}

.produto-card .produto-imagem {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 10px;
}

.preco {
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-ver {
    display: block;
    padding: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* =====================================================
   RESPONSIVO GLOBAL
===================================================== */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {

    .header-inner {
        grid-template-columns: 1fr auto 1fr;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .header-right {
        justify-content: flex-end;
    }
}

/* =====================================================
   PRODUTO — PÁGINA INDIVIDUAL
===================================================== */

/* Container geral */
.produto-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 769px) {

    .produto-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
    }

    .produto-imagem img {
        width: 100%;
        max-width: 520px;
        border-radius: 16px;
        background: #fff;
        padding: 20px;
        object-fit: contain;
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

    .produto-info {
        text-align: left;
    }

    .produto-info .preco {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .produto-info .descricao {
        margin-bottom: 25px;
        line-height: 1.6;
        color: #333;
    }

    .produto-info select {
        max-width: 260px;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
}

/* =====================================================
   ESPAÇAMENTOS — PRODUTO
===================================================== */

.produto-info select {
    margin-bottom: 20px;
}

.produto-info .btn-ver {
    margin-bottom: 15px;
}

.produto-info .glow-btn {
    margin-top: 5px;
}

/* =====================================================
   MOBILE — PRODUTO (FLUXO NATURAL)
===================================================== */
@media (max-width: 768px) {

    .produto-container {
        display: block;
        text-align: center;
    }

    .produto-imagem img {
        width: 100%;
        max-width: 420px;
        margin: 0 auto 25px;
        display: block;
        border-radius: 16px;
        object-fit: contain;
        background: #fff;
        padding: 10px;
    }

    .produto-info {
        margin-top: 10px;
    }

    /* TÍTULO CENTRALIZADO DE VERDADE */
    .produto-titulo-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

    .produto-titulo-texto {
        font-size: 28px;
        line-height: 1.2;
        text-align: center;
    }

    /* ÍCONE FAVORITO */
    .favorito-icon {
        width: 22px;
        height: 22px;
        background-color: #bbb;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12a2 2 0 0 1 2 2v18l-8-5-8 5V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") no-repeat center;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12a2 2 0 0 1 2 2v18l-8-5-8 5V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") no-repeat center;
        cursor: pointer;
    }

    .favorito-icon.ativo {
        background-color: #25d366;
    }

    /* PREÇO — MESMO TAMANHO DO TÍTULO */
    .produto-info .preco {
        font-size: 28px;
        font-weight: bold;
        margin-top: 4px;
    }

    /* SELECT TAMANHO MAIOR */
    .produto-select {
        font-size: 18px;
        padding: 12px 16px;
        margin-top: 10px;
    }
}
