@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit: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');

body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Banner */
.bannerprod {
    width: 100%;
    height: 60vh;
    /*background-image: url("https://static.vecteezy.com/ti/photos-gratuite/p1/45987511-variete-de-pains-sur-en-bois-table-gratuit-photo.jpeg");*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;

}
.bannerprod .slogan-container{
    width: 100%;
    height: 100%;
    background: rgba(36, 14, 0, 0.516);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.bannerprod .text{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fadcc3;
    font-family: "Varela Round", sans-serif;
    font-size: 20px;
    font-weight: 700;
}
.bannerprod .text a{
    text-decoration: none;
    cursor: pointer;
    color: #fffcf3;
    transition: color ease 0.2s;
}

.bannerprod .slogan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bannerprod .slogan {
    font-size: 60px;
    color: #fffaed;
    margin-top: 10px;
    font-family: Pacifico;
    line-height: 1.5;
}
.bannerprod .text :hover{
    color: #ffb97c;
}

/* Aboutproduct */
.aboutproduct {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: #fae3c6;
    border-radius: 20px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 90%;
}

.aboutprod {
    flex: 1;
    padding-right: 30px;
    font-family: "Varela Round", sans-serif;
    color: #8b5e34;
}

.prodpicture {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prodpicture img {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.aboutprod p {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.7;
    color: #6b3e26;
    margin: 15px 0;
}

.aboutprod i {
    color: #d4883b;
}

@media screen and (max-width: 1000px) {
    .aboutproduct {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .aboutprod {
        padding-right: 0;
    }

    .prodpicture img {
        max-width: 100%;
    }
}


@media screen and (max-width: 600px) {
    .aboutproduct {
        padding: 15px;
        max-width: 100%;
    }

    .aboutprod p {
        font-size: 18px;
    }
}








/* Product */
.prod {
    padding: 10px 20px;
    background-color: #9b7c56;
    max-width: 80%;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 3-4 sütunlu düzən */
    gap: 20px;
    padding: 40px 50px;
    justify-content: center;
}

h2 {
    font-family: "Varela Round", sans-serif;
    color: #1f1a0f;
    font-size: 50px;
    margin-bottom: 20px;
    cursor: default;
}

.cardproduct {
    position: relative;
    width: 100%;
    max-width: 250px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3e1c3;
    padding: 1em;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
}

.cardproduct:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

.detail-button {
    position: absolute;
    left: 0;
    bottom: -50px;
    background: #db8a34;
    color: #fff;
    height: 2.5em;
    width: 100%;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: all 0.3s ease;
    line-height: 2.5em;
    text-decoration: none;
}
.cardproduct:hover .detail-button {
    bottom: 0;
    opacity: 1;
}



.cardproduct .title {
    font-family: "Varela Round", sans-serif;
    font-size: 1.2em;
    margin-top: 10px;
    font-weight: 600;
    color: #5e3c23;
}

.cardproduct .price {
    font-family: "Varela Round", sans-serif;
    font-size: 1em;
    color: #a34a28;
    font-weight: bold;
    margin-top: 5px;
}

.productphoto {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.cardproduct:hover .productphoto {
    transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .products {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        padding: 10px;
    }
}


/* Səhifələmə */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination-container button {
    background-color: #a34a28;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.pagination-container button:hover {
    background-color: #d6784f;
    transform: scale(1.1);
}


#currentPageNumber {
    font-size: 18px;
    font-weight: bold;
    color: #5e3c23;
    padding: 5px 10px;
    background: #f4c26b;
    border-radius: 5px;
    margin: 0 15px;
}

#paginationContainer button.active {
    background: #d2691e;
    color: white;
    font-weight: bold;
}



/* Bestseller */
.bestseller-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #fffaf0;
}

.bestseller-title {
    font-size: 32px;
    color: #d2691e;
    font-weight: bold;
    margin-bottom: 20px;
}

.bestseller-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.bestseller-card {
    background: #ffefdb;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.bestseller-card:hover {
    transform: translateY(-5px);
}

.bestseller-img {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bestseller-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


.bestseller-info {
    padding: 10px 0;
}

.bestseller-info h3 {
    font-size: 20px;
    color: #8b4513;
    font-weight: bold;
}

.bestprice {
    font-size: 18px;
    color: #d2691e;
    margin: 10px 0;
}

.details-btn {
    background: #ff8c00;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.details-btn:hover {
    background: #d2691e;
}


@media (max-width: 768px) {
    .bestseller-container {
        flex-direction: column;
        align-items: center;
    }
}




