main {
    height: 100%;
    background-color: #87C66D;
    padding-bottom: 100px;
}

body {
    max-width: 1920px;
    margin: 0 auto;

}



.search {
    display: flex;
    background-color: white;
    border-radius: 50px;
    font-size: 1.3rem;
    overflow: hidden;
    max-width: 380px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    padding: 0;
    margin: 5px 25px;
}



    .search input {
        border: none;
        outline: none;
        padding: 10px;
        width: 80%;
        font-size: 1.2rem;
    }



    .search button {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ffc107;
        border: none;
        cursor: pointer;
        outline: none;
        padding: 10px 20px;
        width: 20%;
    }

        .search button:hover {
            background-color: #f0ad4e;
        }



        .search button img {
            transition: transform 0.3s ease;
        }

        .search button:hover img {
            transform: scale(1.1);
        }



.products-container {
    max-width: 1300px;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
}

.products {
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    margin: 40px 0px;
    justify-content: center;
/*    background-color: #ff9800;
*/}

.product-container {
    flex-basis: calc(25% - 10px);
    z-index:5;
}
.product {
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 8px solid rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    margin: 5px;
    padding: 0;
}

    .product:hover {
        border-color: #FFB800;
        transform: scale(1.05);
    }


    .product img {
        width: 100%;
        display: block;
    }

    .product a {

        margin:0px;
        padding:0px;
    }

.product-caption {
    background-color: #FFB800;
    padding: 8px;
    border: none;
    display: flex;
    text-align: center;
    justify-content: center;
    margin: 0;
    font-weight: 500;
    font-size: 20px;
    padding: 15px 0;
    cursor: pointer;
}


@media (max-width: 992px) {
    .product-container {
        flex-basis: calc(33.33% - 10px); /* Three items per row on medium screens */
    }
}

@media (max-width: 768px) {
    .product-container {
        flex-basis: calc(50% - 10px); /* Two items per row on small screens */
    }
}

@media (max-width: 576px) {
    .product-container {
        flex-basis: 100%; /* One item per row on extra small screens */
        margin: 15px;
    }
}



.product-code {
    margin:0 auto;
    text-align: right;
}




.pagination {
    display: flex;
    justify-content: center;
    align-items:center;
    margin:10px auto;
}



    .pagination a {
        text-decoration: none;
        color: #FFFFFFEE;
        font-size: 1.7rem;
        padding:0 10px;
    }

    .pagination .active {
        font-weight: bold;
        color: white;
        font-size: 2.2rem;
    }

    .pagination .second-prev,
    .pagination .second-next {
        font-size: 1.2rem;
        color: #FFFFFFEA;
    }

    .pagination .third-prev,
    .pagination .third-next {
        font-size: 0.7rem;
        color: #FFFFFFDE;
    }


    footer {
        box-shadow: 0 -40px 0 0 #87C66D;
    }












.not-found-container {
    position: relative;
    background-color: #87c66d;
    height: 500px;
    border: dashed 4px #cde7c1;
    width: 100%;
    border-radius: 10px;
    padding: 40px 20px;
    display: flex;
    overflow: hidden;
    margin-top: 40px;
    box-sizing: border-box;
}

.image-wrapper {
    height: 100%;
    width: 35%;
    align-items: center;
    display: flex;
}

.error-image {
    width: 30%;
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
}

.not-found-content {
    height: 100%;
    width: 65%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}






.not-found-error-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    font-size: 600px;
    color: rgba(0, 0, 0, 0.03);
    font-weight: bolder;
    z-index: 0;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes moveAndShake {
0% {
    transform: translateX(0);
}

25% {
    transform: translateX(1rem); 
}

75% {
    transform: translateX(-1rem); 
}

100% {
    transform: translateX(0);
}


}

.not-found-message {
    width: 100%;
    height: 40%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .not-found-message strong {
        position: absolute;
        top: 30%;
        transform: translate(-50%, -50%);
        font-size: 50px;
        font-weight: bolder;
        animation: moveAndShake 0.2s ease forwards 0s 2;
        text-align: center;
    }


.suggested-products-section {
    width: 100%;
    height: 50%;
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px;
    box-sizing: border-box;
    justify-content: center;


}


.products-header {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

    .products-header span {
        border-bottom: 2px solid black;
        padding-bottom: 30px;
        width: 30%;
        text-align: center;
        font-size: large;
        -webkit-user-drag: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

.suggested-product-link {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out; 
    transform-origin: center center;
}

.suggested-product-link:hover {
    transform: scale(1.1); 
}



.suggested-product-item {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
    overflow: hidden;
    justify-content: center;
    align-items: center;
    display: flex;
}

    .suggested-product-item img {
        width: 100%;
    }



@media (max-width: 992px) {
    .not-found-content {
        width: 100%;
    }

    .image-wrapper {
        width: 0px;
    }

    .error-image {
        width: 60%;
        left: 20%;
        right: 20%;
        opacity: 0.1;
    }
}

@media (max-width: 576px) {

    .not-found-container {

        height: 750px;
    }
    .not-found-message {
        height: 20%;
    }
    .suggested-products-section {
        height: 80%;
    }

    .not-found-message strong {
        font-size: 30px;
    }

    .suggested-product-link {
        width: 50%;

    }

    .products-header span {
        width: 100%;
    }
}
