@keyframes shimmer-animation {
    0% {
        left: -100%;
    }
    100% {
        left:100%;
    }
}

body {
    background: #f2f3f7;
}

/* Dealing with offers */
.home-page-offers {
    display: flex;
}

.offer-image-wrapper {
    padding: 0px 30px;
}
.offer-image-slide {
    border-radius: 100px;
}

.offer-image {
    object-fit: cover;
    max-height: 300px;
}

.offer-title {
    font-size: 45px;
    margin: 30px;
    margin-bottom: 0px;
    margin-left: 30px;
}

.offer-text {
    font-size: 17px;
    letter-spacing: 1px;
}

.offer-text {
    width: 90%;
    margin: 20px;
}

.offer-button {
    background: white;
    border: 1px solid black;
    border-radius: 2px;
    width: 90px;
    padding: 6px;
    color: black;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    margin-left: 20px;
}

/* Dealing with Trending Products */
.trending-products-title {
    margin-top: 20px;
    margin-left: 20px;
    font-size: 25px;
}

.trending-categories {
    display: flex;
    margin-top: 10px;
    margin-left: 50px;
    gap: 70px;
    font-size: 17px;
}
.trending-category {
    position: relative;
    cursor: pointer;
}
.trending-category::before {
    content: "";
    width: 100%;
    position: absolute;
    bottom: 30px;
    height: 3px;
    bottom: -4px;
    border-radius: 3px;
    background: blue;
}

.trending-products-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 30px;
    width: 90%;
    margin: 20px 50px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.trending-product {
    flex: 0 0 auto;
    text-align: start;
    border: 1px solid rgb(212, 212, 212);
    padding: 20px;
    background: white;
    transition: box-shadow 0.3s;
    text-align: start;
    justify-content: start;
    align-items:start;
    max-width: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 260px;
    user-select: none;
}

.trending-product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.trending-product-image {
    width: 100%;
    height: auto;
    position: relative;
    white-space: nowrap;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
    overflow: hidden;
    min-width: 150px;
    min-height: 150px;
    background-color: whitesmoke;
}
.trending-product-title {
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    margin-top: 5px;
    max-height: 50px;
    overflow: hidden;
    text-overflow: clip;
}
.trending-product-price {
    margin: 5px 0;
    font-size: 14px;
}
.trending-product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* background: linear-gradient(120deg, rgba(255,255,255,0) 0%,rgba(255,255,255,0.4) 50%,rgba(255,255,255,0) 100%); */
    z-index: 1;
    /* animation: shimmer-animation 2s infinite; */
    
}



.trending-product-add-to-cart-button {
    width: 90%;
    background-color: #5409DA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    pointer-events: auto;
}

/* Deals with category */
.categories-display-row {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    position: relative;
    margin-top: 50px;
}

.category-card {
    width: 250px;
    padding: 20px;
    height: 400px;
    border: 1px solid black ;
    background-color: white;
}

.vertical-only-card {
    
}
.vertical-only-card-image {
    width: 100%;
    height: 80%;
    object-fit: cover;
    cursor: pointer;
}
.four-with-grid-card {
    padding: 20px;
}
.four-with-grid-card-images-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 20px;
}

.category-image-container {
    position: relative;
    width: 110px;
    border: 1px solid black;
    height: auto;
}
.four-with-grid-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    cursor: pointer;
}
.four-with-grid-card-link {
    position: absolute;
    bottom: 20px;
}
.one-horizontal-three-small-card {
    

}
.one-horizontal-main-image {
    width: 100%;
    height: auto;
    border: 1px solid black;
    object-fit: contain;
    cursor: pointer;
}
.one-full-three-small-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.one-full-three-small-card {
    position: relative;
    width: 90px;
    height: 70px;
    border: 1px solid black;
}

.one-full-three-small-card-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}
.one-full-three-small-card::before {
    content: attr(category-name);
    position: absolute;
    width: 100%;
    text-align: start;
    bottom: -30px;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    align-items: center;
}
.one-horizontal-three-small-card-link {
    position: absolute;
    bottom: 20px;
}
.category-image-container::after {
    content: attr(category-name);
    position: absolute;
    width: 100%;
    text-align: start;
    line-height: 20px;
    left: 0;
    bottom: -20px;
    z-index: 1000;
    font-size: 14px;
    text-align: center;
}
.category-card-title {
    font-size: 25px;
    margin: 10px;
}

@media (max-width: 500px) {
    .trending-products-container {
        gap: 30px;
        width: 90%;
        margin: 20px 20px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
  
    .offer-image-wrapper {
        width: 100%;
        padding: 0px 00px;
    }
    .offer-image-slide {
        width: 100%;
    }
}
