@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif; 
 }
  
  :root {
     --color1:#d6e1e5; 
     --color2:#a93429;
     --color3:#962329;
     --color4:#c81d1b;
     --color5:#304999;
     --color6:#FED34A;
     
 
 } 

 body {
    background-color:#fff;
 }

a{
    color: unset;
    text-decoration: none;
}

.search-bar {
    margin: 20px 0;
    text-align: center;
}

.search-bar input {
    width: 80%;
    padding: 10px;
    border: 1px solid var(--color6);
    color: var(--color3);
    border-radius: 5px;
    font-size: 1rem;
}

.search-bar input::placeholder{
    color: var(--color3);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-buttons button {
    background-color: var(--color3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
    background-color: var(--color4);
}


.container {
    width: 10000px;
    max-width: 90vw;
    margin: auto;
    padding-top: 10px;
    text-align: center;
}

.heading  {
    font-size: 4rem;
    margin-bottom: 3rem;
    text-align: center;
    color:var(--color6);
    width: 100%; /* Adiciona largura completa para garantir que o título não afete os cards */
}

.span{
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color3);
    width: 100%; /* Adiciona largura completa para garantir que o título não afete os cards */
}

.ListProduct .item img {
    width: 60%;
    filter: drop-shadow(0 10px 20px #0009);
}

.ListProduct {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.ListProduct .item {
    flex: 1 1 30%;
    text-align: center;
    /* background-color: var(--color3); */
    /*border: 1px solid var(--color6);*/
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 96%;
}

.listProduct .item:hover{
    transform: scale(1.05);
}

.ListProduct .item h2{
    color: var(--color3);
    font-size: 1.4rem;
    margin-top: 10px;
}

.ListProduct .item .price {
    color: var(--color5);
    font-size: 1rem;
    font-weight: 500;
    margin: 0.2rem 0 0.5rem;
}

/* detail page */
.detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    text-align: left;
 
}

.detail .image img {
    width: 80%;
   
}

.detail .image {
    position: relative;
}

.detail .image::before{
    position: absolute;
    width: 300px;
    height: 300px;
    content: '';
    /*background-color: var(--color1);*/
    z-index: -1;
    border-radius: 190px 100px 170px 180px;
    left: calc(50% - 150px);
    top: 50px;
}

.detail .name {
    font-size: xx-large;
    padding: 40px 0 0 0;
    margin: 0 0 10px 0;
    color: var(--color5);
}

.detail .price {
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 7px;
    margin-bottom: 20px;
    color: var(--color6);
}


.detail .description {
    font-weight: 500;
    color: var(--color3);
}

.listProduct {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.listProduct .item {
    flex: 1 1 30%;
    text-align: center;
    border: 1px solid var(--color6);
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 97%;
}

.listProduct .item:hover {
    transform: scale(1.05);
}

.listProduct .item img {
    max-width: 100%;
    height: auto;
}

.ListProduct .item h2 .name{
    color: var();
}
.span {
    color: var(--color6);
    margin-top: 34px;
    font-size: 3rem;
}

.listProduct .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--color5);
    margin-top: 10px;
}

/* button voltar  */
#backButton {
    position: absolute;
    top: 30px; 
    left: 30px;
    z-index: 1000; 
    border: none;
    font-size: 2.5rem;
    display: flex;
    background: none;
    color: var(--color4); 
    cursor: pointer;
}

/* pagination */
.pagination {
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-button {
    margin: 0 5px;
    padding: 10px 15px;
    border-radius: 50%;
    border: none;
    background-color: var(--color3);
    color: white;
    cursor: pointer;
    transition: 3 ease;
}

.page-button:hover{
    background: var(--color4);
}

.page-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* // ipad */
@media only screen and (max-width: 992px) {
    .listProduct{
        grid-template-columns: repeat(3, 1fr);
    }
    .detail{
        grid-template-columns:  40% 1fr;
    }
}


/* mobile */
@media only screen and (max-width: 768px) {
    .listProduct{
        grid-template-columns: repeat(2, 1fr);
    }
    .detail{
        text-align: center;
        grid-template-columns: 1fr;
    }
    .detail .image img{
        width: unset;
        height: 40vh;
    } 
    .detail .name{
        font-size: x-large;
        margin: 0;

    }
    .detail .buttons button{
        font-size: small;
    }
    .detail .buttons{
        justify-content: center;
    }
}

