.top-menu{
    font-size: 0.5rem;
    padding: 0.5rem;
}

section {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: space-between;
}

.product-image {
    flex: 0 1 48%;
    min-width: 280px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-gallery img:hover {
    opacity: 0.8;
}

.detalhes-produto {
    flex: 0 1 48%;
    min-width: 280px;
    padding: 0.5rem;
}

.nome-do-produto {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: #C747F5;
    padding: 0.35rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #d467fc;
    color: white;
    transform: translateY(-0.8px);
}

.vendedor {
    color: #666;
    margin-bottom: 0.6rem;
}

.classificacao {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.8rem;
}

.avaliacao {
    color: #666;
}

.classificacao img {
    width: 20px;
    height: 20px;
}

.preco {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 0.8rem;
}

.frete {
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.frete input {
    width: 150px;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.frete button {
    background-color: #2c5282;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.frete button:hover {
    background-color: #2a4365;
}

.valor-frete {
    margin-top: 0.5rem;
    color: #666;
}

.quantidade {
    margin: 0.8rem 0;
}

.quantidade input[type="number"] {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantidade button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 0.3rem;
    margin: 0.3rem 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    gap: 0.5rem;
}

.quantidade button svg {
    width: 1rem;
    height: 1rem;
}

.adicionar-carrinho {
    background-color: #C747F5;
    color: white;
}

.adicionar-carrinho:hover {
    background-color: #d467fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(199, 71, 245, 0.2);
}

.comprar {
    background-color: #48bb78;
    color: white;
}

.comprar:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(72, 187, 120, 0.2);
}

.descricao {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.descricao h2 {
    color: #333;
    margin-bottom: 1rem;
}

.descricao p {
    color: #666;
    line-height: 1.6;
}

.adicionar-carrinho{
    font-size: 0.9rem !important;
}

.comprar{
    font-size: 0.9rem !important;
}


@media (max-width: 768px) {
    section {
        padding: 0 0.5rem;
        display: flex;
        justify-content: center;
    }

    .product-item {
        flex-direction: column;
        gap: 1rem;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .product-image, .detalhes-produto {
        flex: 1;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .nome-do-produto {
        font-size: 1.3rem;
        text-align: center;
        margin: 0.5rem 0;
    }

    .tags {
        justify-content: center;
        margin: 0.5rem 0;
    }

    .vendedor {
        text-align: center;
        margin: 0.5rem 0;
    }

    .classificacao {
        justify-content: center;
        margin: 0.5rem 0;
    }

    .preco {
        font-size: 1.6rem;
        text-align: center;
        margin: 0.5rem 0;
    }

    .image-gallery {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }

    .image-gallery img {
        width: 50px;
        height: 50px;
    }

    .quantidade {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0.5rem 0;
    }

    .quantidade p {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .quantidade input[type="number"] {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }

    .quantidade button {
        width: 100%;
        max-width: 300px;
        margin: 0.3rem 0;
    }

    .frete {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        text-align: center;
    }

    .frete p {
        margin-bottom: 0.5rem;
    }

    .frete input {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .frete button {
        width: 100%;
        margin: 0.5rem 0;
    }

    .valor-frete {
        margin-top: 0.5rem;
    }

    .descricao {
        text-align: center;
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .descricao h2 {
        margin-bottom: 0.5rem;
    }

    .descricao p {
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .product-image img {
        max-width: 100%;
    }

    .image-gallery img {
        width: 40px;
        height: 40px;
    }

    .nome-do-produto {
        font-size: 1.2rem;
    }

    .preco {
        font-size: 1.4rem;
    }

    .tags {
        gap: 0.3rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .classificacao {
        font-size: 0.9rem;
    }

    .frete {
        padding: 0.8rem;
    }

    .quantidade button {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    .descricao {
        padding: 0.8rem;
    }

    .descricao h2 {
        font-size: 1.1rem;
    }

    .descricao p {
        font-size: 0.9rem;
    }
}
