@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;700;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.centro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("./resources/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
}

.topbar {
    background-color: rgb(39, 0, 0);
}

.topbar a:hover {
    color: #fce997;
    transition: 2s;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar-top {
    align-items: center;
    padding: 10px 55px;
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.topbar-top a {
    text-decoration: none;
    color: beige;
}

.logo {
    height: 40px;
    
}

.topbar-bottom {
    align-items: center;
    padding: 10px 55px;
    display: flex;
    gap: 30px;
    font-size: 15px;
}

.topbar-bottom a{
    text-decoration: none;
    color: beige;
}

.topbar-middle {
    align-items: center;
    padding: 10px 55px;
    display: flex;
    gap: 40px;
    font-size: 15px;
}


.topbar-middle input[type="search"] {
    width: 400px;
    background: #e5dfe5;
    border: none;
    outline: none;
    padding: 10px 40px;
    padding-right: 40px;
    border-radius: 10px;
    font-size: 15px;
    color: #5b5b5b;
    box-sizing: border-box;
}

.topbar-middle input[type="search"]::placeholder{
    color: #858585;

}

.login {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #744f2e;
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 350px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cl {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #f31e4c;
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 580px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.produtos {
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px #00000015;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pi img {
    max-width: 100%;
    min-width: 100%;
}

.preços {
    display: flex;
    flex-direction: column;
}

.normal {
    text-decoration: line-through;
    color: #777;
}

.lovers {
    font-size: 20px;
    font-weight: bold;
}

.add-cart {
    background: #3a7c2f;
    color:#fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.product-list {
    display: flex;
    gap: 20px;
}

body {
  margin: 0;
  background: #fff;
  font-family: sans-serif;
  padding: 0;
}

.carousel {
  width: 100%;
  max-width: 1200px; /* ajuste conforme seu banner real */
  overflow: hidden;
  border-radius: 20px;
}

/* container que se move */
.slides {
  display: flex;
  transition: transform 600ms ease; /* velocidade do DESLIZE */
  will-change: transform;
}

/* cada "slide" ocupa 100% do container */
.slide {
  flex: 0 0 100%;
  display: block;
}

/* imagem sem zoom/corte — mantém proporção real */
.slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* responsivo: reduz altura proporcional no celular, se necessário */
@media (max-width: 600px) {
  .carousel { max-width: 100%; }
}

.container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.image-area {
    flex: 1;
}

.product-img {
    width: 100%;
    border-radius: 8px;
}

.info-area {
    flex: 1;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.sku {
    color: gray;
    margin-bottom: 20px;
}

.desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    font-size: 18px;
}

.new-price {
    font-size: 26px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 5px 15px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.add-cart {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.cep-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

#cepInput {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    width: 120px;
}

.cep-btn {
    background: #744f2e;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.cep-btn i {
    font-size: 18px;
}

.search-wrapper {
    position: relative;
    width: 400px;  /* mesmo tamanho da sua barra */
}

#searchInput {
    width: 100%;
}

/* Caixa de resultados */
.results {
    width: 400px;
    background: #fff;
    border-radius: 10px;
    position: absolute;
    margin-top: 5px;
    box-shadow: 0 4px 10px #0002;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99;
}

/* Cada item */
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.result-item:hover {
    background: #f4f4f4;
}

/* IMAGEM */
.result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@media (max-width: 768px) {

    /* ===== OCULTA TUDO ===== */
    .topbar-bottom,
    .topbar a:not(.login):not(.cl),
    .product-list,
    .carousel + *,
    .produtos {
        display: none;
    }

    /* ===== TOPBAR EM COLUNA ===== */
    .topbar {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .topbar-top,
    .topbar-middle {
        padding: 0;
        gap: 10px;
        flex-direction: column;
    }

    /* ===== LOGO ===== */
    .logo {
        height: 32px;
        align-self: flex-start;
    }

    /* ===== BARRA DE BUSCA ===== */
    .search-wrapper,
    .topbar-middle input[type="search"] {
        width: 100%;
    }

    /* ===== BOTÕES ENTRAR E CEP ===== */
    .login,
    .cl {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .cep-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    #cepInput {
        width: 100%;
    }
}
