/*Estilo geral das páginas*/

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

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

/* HEADER */
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;

    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LOGO + TÍTULO (ESQUERDA) */
.area-logo-titulos {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* BUSCA (CENTRO) */
.area-da-barra-de-pesquisa {
    display: flex;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 500px;
}

/* REDES (DIREITA) */
.area-de-midias-sociais {
    display: flex;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.nome-da-empresa {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BARRA DE BUSCA */
.campo-busca {
    flex: 1;
    padding: 12px;
    border-radius: 12px 0 0 12px;
    border: none;
    outline: none;
    background: #1e293b;
    color: white;
}

.botao-busca {
    padding: 12px 16px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: #22c55e;
    cursor: pointer;
    transition: 0.3s;
}

.botao-busca:hover {
    background: #16a34a;
}

/* REDES SOCIAIS */
.area-de-midias-sociais a img {
    width: 32px;
    transition: 0.3s;
    filter: brightness(0.9);
}

.area-de-midias-sociais a img:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* CATEGORIAS */
.linha-de-categorias {
    width: 100%;
    margin-top: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between; /* JUSTIFICADO */
    width: 100%;
}

nav ul li {
    position: relative;
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: rgba(34,197,94,0.2);
}

/* SUBMENU (AGORA POR CLIQUE) */
nav ul li ul {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #1e293b;
    border-radius: 12px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* MOSTRAR AO CLICAR */
nav ul li:focus-within ul {
    display: block;
}

/* ITENS SUBMENU */
nav ul li ul li {
    margin-bottom: 5px;
}

nav ul li ul li a {
    display: block;
    padding: 8px;
    border-radius: 8px;
}

nav ul li ul li a:hover {
    background: rgba(34,197,94,0.3);
}

/* FOOTER */
footer {
    margin-top: 60px;
    padding: 30px;
    background: rgba(0,0,0,0.5);
    text-align: center;
    font-size: 14px;
    color: #cbd5f5;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    margin-bottom: 10px;
}

/*Estilo da página de produtos*/

.card-principal-do-produto {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 25px;
    padding: 30px;
    margin: 40px;
    
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* GALERIA (ESQUERDA) */
.campo-da-galeria-do-produto {
    display: flex;
    gap: 15px;

    background: rgba(15, 23, 42, 0.6);
    padding: 15px;
    border-radius: 15px;
}

/* THUMBNAILS */
.lista-de-midias {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lista-de-midias img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.lista-de-midias img:hover {
    transform: scale(1.1);
    border: 2px solid #22c55e;
}

/* IMAGEM PRINCIPAL */
.imagem-ou-video-selecionado {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f172a;
    border-radius: 15px;
    padding: 10px;
}

.imagem-ou-video-selecionado img,
.imagem-ou-video-selecionado video {
    max-width: 100%;
    border-radius: 10px;
}

/* DADOS DO PRODUTO (MEIO) */
.campo-de-dados-do-produto {
    display: flex;
    flex-direction: column;
    gap: 15px;

    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 15px;
}

/* LOJA */
.card-da-loja {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foto-da-loja {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* NOME PRODUTO */
.nome-do-produto {
    font-size: 22px;
}

/* AVALIAÇÃO */
.avaliacao {
    color: #facc15;
    font-size: 16px;
}

.avaliacao span {
    color: #cbd5f5;
    font-size: 14px;
    margin-left: 5px;
}

/* PREÇOS */
.preco-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 16px;
}

.preco-descontado {
    color: #22c55e;
    font-size: 26px;
    font-weight: bold;
}

/* BENEFÍCIOS */
.lista-de-beneficios {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

/* PAGAMENTO (DIREITA) */
.campo-de-pagamento-do-produto {
    display: flex;
    align-items: flex-start;
}

.divisão-arredondada {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* DESTAQUES */
.informacao-de-frete {
    font-size: 14px;
    color: #cbd5f5;
}

.mensagem-de-destaque {
    color: #22c55e;
    font-weight: bold;
}

/* BOTÃO */
.botao-de-compra {
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #22c55e;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.botao-de-compra:hover {
    background: #16a34a;
    transform: scale(1.05);
}

/* SELECT */
.quantidade-do-produto {
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #1e293b;
    color: white;
}

/* DETALHES (EMBAIXO) */
.detalhes-tecnicos-do-produto {
    grid-column: span 3;
    margin-top: 20px;

    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    border-radius: 15px;
}

/*Estilo da página de categorias selecionadas*/

/*Será feito*/

/* GRID DE PRODUTOS */
.campo-de-produtos-normais {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* CARD */
.card-produto {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}

.card-produto:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* IMAGEM */
.card-produto-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTEÚDO */
.card-produto-conteudo {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LOJA */
.card-produto-loja {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-produto-loja img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.card-produto-loja span {
    font-size: 12px;
    color: #cbd5f5;
}

/* NOME */
.card-produto-nome {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}

/* AVALIAÇÃO */
.card-produto-avaliacao {
    font-size: 13px;
    color: #facc15;
}

.card-produto-avaliacao span {
    color: #94a3b8;
    font-size: 12px;
}

/* PREÇOS */
.card-produto-preco-original {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.card-produto-preco {
    font-size: 18px;
    font-weight: bold;
    color: #22c55e;
}

/* BADGE DESCONTO */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #22c55e;
    color: black;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
}