@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

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


main {
    flex: 1;
}


body {
    background-color: #faf7f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.logo-home {
    width: 200px;
}

.slogan {
    font-family: "Oooh Baby", cursive;
    font-size: 25px;
    text-align: center;
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #393331;
}

.card img {
   width: 60%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

.card span {
    flex: 1;
    text-align: center;
    font-family: "Lora", serif;
    font-size: 20px;
}

.maternidade {
    background-color: #ebcfd0;
}

.infantil {
    background-color: #dce6d9;
}

.outros {
    background-color: #e9d7bb;
}

.logo {
  width: 150px;
}

.categoria{
    font-size: 25px;
    text-align: center;
  font-family: "Short Stack", cursive;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
}

.itens {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    padding: 5px;
}

.itens img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* =========================
   LIGHTBOX
========================= */

#lightbox {
    width: 92%;
    max-width: 500px;
    max-height: 90dvh;
    margin: auto;
    padding: 15px;
    border: none;
    border-radius: 20px;
    background-color: #faf7f2;
    color: #393331;
    overflow-y: auto;
}

#lightbox::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Botão fechar */

#fechar-lightbox {
    display: block;
    margin-left: auto;
    margin-bottom: 5px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #393331;
    cursor: pointer;
}

/* Imagem ampliada */

.lightbox-imagem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imagem-ampliada {
    display: block;
    width: 100%;
    height: 40vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Botões de navegação */

#imagem-anterior,
#proxima-imagem {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#imagem-anterior {
    left: 5px;
}

#proxima-imagem {
    right: 5px;
}

/* Contador */

#contador-imagens {
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
}

/* Nome do produto */

#nome-produto {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Short Stack", cursive;

}

/* Solicitação de orçamento */

.lightbox-orcamento {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-orcamento h3 {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    text-align: center;
    font-family: "Lora", serif;

}

.lightbox-orcamento p {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    font-family: "Lora", serif;

}

.lightbox-orcamento label {
    font-size: 14px;
    font-weight: 600;
}

#personalizacao {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}

/* Botão WhatsApp */

#solicitar-orcamento {
    width: 100%;
    padding: 15px;
    background-color: #128c7e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#solicitar-orcamento:hover {
    background-color: #075e54;
}

/* Bloquear rolagem da página */

body:has(#lightbox[open]) {
    overflow: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
    box-sizing: border-box;

    background-color: #faf7f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #393331;
    text-decoration: none;
    cursor: pointer;
}

.nav-titulo {
    font-family: "Lora", serif;
    font-size: 16px;
}

.nav-voltar span {
    font-size: 24px;
}

.nav-home {
    font-size: 20px;
}

body:has(#navbar) {
    padding-top: 50px;
}


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

.footer {
    background-color: #ede5db;
    color: #393331;
    padding: 20px 15px 15px;
    margin-top: 30px;
    text-align: center;
}

#footer {
    margin-top: auto;
}

.footer-conteudo {
    max-width: 600px;
    margin: 0 auto;
}

.footer-descricao {
    font-family: "Lora", serif;
    font-size: 13px;
    margin: 0 0 15px;
}

.footer-redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 15px 0;
}

.footer-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #796b60;
    text-decoration: none;
    transition: transform 0.3s ease,
                color 0.3s ease;
}

.footer-redes svg {
    display: block;
    width: 26px;
    height: 26px;
}

.footer-redes a:hover {
    transform: scale(1.15);
    color: #393331;
}

.footer-creditos {
    border-top: 1px solid #cfc2b4;
    padding-top: 10px;
    font-family: "Lora", serif;
    font-size: 11px;
    color: #796b60;
}

.footer-creditos p {
    margin: 5px 0;
}

#footer,
.footer,
.footer-conteudo {
    height: auto;
    max-height: none;
    overflow: visible;
}

.footer-creditos {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
    border-top: 1px solid #cfc2b4;
    padding-top: 10px;
    color: #796b60;
    font-size: 11px;
}

.footer-creditos p {
    display: block;
    margin: 5px 0;
}