/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #16151D;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: rgb(48, 48, 136);
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 100;
}

#logo {
    color: white;
    font-size: 1.6em;
    font-weight: bold;
}

#ipesquisa {
    padding: 7px 14px;
    border-radius: 18px;
    border: none;
    width: 220px;
    font-size: 0.95em;
}

.pc {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pc a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
    font-size: 1em;
}

.pc a:hover {
    opacity: 0.8;
}

.material-symbols-outlined {
    font-size: 1.3em;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: rgb(48, 48, 136);
    width: 200px;
    border-radius: 0 0 0 10px;
    box-shadow: -2px 5px 10px rgba(0,0,0,0.3);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Botão Voltar */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.botao-voltar-desktop {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.botao-voltar-desktop:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.botao-voltar-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background-color: rgba(48, 48, 136, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
    font-size: 1em;
    font-weight: 500;
}

.botao-voltar-mobile:hover {
    background-color: rgba(48, 48, 136, 1);
}

/* Conteúdo do Produto */
.produto-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 18px;
    flex: 1;
}

.produto-layout {
    display: flex;
    gap: 30px;
    background-color: #222222;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.produto-imagem {
    flex-shrink: 0;
    width: 280px;
}

.produto-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.produto-detalhes {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produto-detalhes h1 {
    font-size: 2em;
    color: white;
    margin-bottom: 15px;
}

.produto-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.produto-rating .estrelas {
    color: #ffd700;
}

.produto-rating .nota {
    color: #a3a3a3;
}

.produto-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
}

.produto-info-grid .label {
    color: #a3a3a3;
    font-weight: 500;
}

.produto-info-grid .valor {
    color: white;
}

.produto-selects {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.produto-selects select {
    background-color: #2a2a2a;
    color: white;
    padding: 10px 15px;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: border-color 0.3s;
}

.produto-selects select:focus {
    outline: none;
    border-color: rgb(48, 48, 136);
}

.produto-sinopse {
    margin-bottom: 25px;
}

.produto-sinopse h2 {
    font-size: 1.2em;
    color: white;
    margin-bottom: 10px;
}

.produto-sinopse p {
    color: #a3a3a3;
    line-height: 1.6;
    font-size: 1em;
}

.produto-preco {
    font-size: 2em;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.produto-botoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-comprar {
    background-color: rgb(48, 48, 136);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-comprar:hover {
    background-color: rgb(60, 60, 160);
    transform: translateY(-2px);
}

.btn-carrinho {
    background-color: #2a2a2a;
    color: white;
    border: 2px solid #444;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-carrinho:hover {
    border-color: rgb(48, 48, 136);
    background-color: rgba(48, 48, 136, 0.2);
}

/* Seção de Comentários */
.comentarios-section {
    background-color: #222222;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
}

.comentarios-section h2 {
    font-size: 1.5em;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(48, 48, 136);
}

.comentario-input {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.comentario-input input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 1em;
    transition: border-color 0.3s;
}

.comentario-input input:focus {
    outline: none;
    border-color: rgb(48, 48, 136);
}

.comentario-input input::placeholder {
    color: #888;
}

.comentario-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comentario-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comentario-conteudo {
    flex: 1;
}

.comentario-conteudo .nome {
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
    font-size: 0.95em;
}

.comentario-conteudo .rating {
    font-size: 0.8em;
    color: #ffd700;
    margin-bottom: 6px;
}

.comentario-conteudo .texto {
    color: #c0c0c0;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Footer */
footer {
    background-color: #222222;
    width: 100%;
    padding: 18px;
    margin-top: 20px;
}

#cor2 {
    background-color: rgb(48, 48, 136);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 8px;
}

#termodu {
    color: white;
    text-decoration: none;
    font-size: 1.05em;
}

footer p {
    text-align: center;
    color: #a3a3a3;
    font-size: 0.95em;
    line-height: 1.5;
    max-width: 750px;
    margin: 0 auto;
}

/* Responsividade */
@media (max-width: 900px) {
    .pc {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px;
        padding: 0 15px;
    }

    #logo {
        font-size: 1.5em;
    }

    .botao-voltar-desktop {
        display: none;
    }

    .botao-voltar-mobile {
        display: flex;
    }

    #ipesquisa {
        width: 180px;
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .mobile-menu {
        top: 60px;
    }

    .produto-layout {
        flex-direction: column;
        padding: 20px;
    }

    .produto-imagem {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .produto-detalhes h1 {
        font-size: 1.6em;
        text-align: center;
    }

    .produto-rating {
        justify-content: center;
    }

    .produto-preco {
        font-size: 1.6em;
        text-align: center;
    }

    .produto-botoes {
        justify-content: center;
    }

    .produto-selects {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 10px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    #ipesquisa {
        width: 100%;
        order: 3;
        margin-top: 8px;
    }

    .hamburger {
        order: 2;
    }

    .produto-container {
        margin: 15px auto;
        padding: 0 12px;
    }

    .produto-layout {
        padding: 15px;
    }

    .produto-detalhes h1 {
        font-size: 1.4em;
    }

    .produto-preco {
        font-size: 1.4em;
    }

    .btn-comprar, .btn-carrinho {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1.05em;
        flex: 1;
    }

    .produto-botoes {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100%;
    }

    .produto-info-grid {
        grid-template-columns: 100px 1fr;
        font-size: 0.9em;
        padding: 12px;
    }

    .produto-selects {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .produto-selects select {
        width: 100% !important;
    }

    .comentarios-section {
        padding: 18px;
    }

    .comentario-input {
        flex-direction: column;
    }

    .comentario-input input {
        width: 100% !important;
    }

    footer {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .produto-detalhes h1 {
        font-size: 1.2em;
    }

    .produto-preco {
        font-size: 1.3em;
    }

    .produto-info-grid {
        grid-template-columns: 1fr;
    }
}