/* Banner - For the Big Animation gif */
.banner {
    margin-block-start: 86px;
    min-height: 320px;
    background-position: left;
    text-align: center;
}

.bannerWord {
    color: white;
    margin-block: 16px 26px;
}

.banner .btn {
    background-color: rgb(165, 188, 207);
    margin-inline: auto;
}

.banner .btn:hover {
    background-color: #505e3c;
}


/* Feature Services */
.feature {
    --section-padding: 20px;
    text-align: center;
    font-family: GFS;
}

.feature .scroll_area {
    gap: 0;
}

.feature .can_scroll {
    min-width: 50%;
}

.feature .can_scroll:not(:last-of-type) {
    border-inline-end: 1.5px solid hsl(0, 0%, 92%);
}

.can_scroll div{
    max-width: max-content;
    margin-inline: auto;
} 


/* News */
.news_box {
    align-content: center;
    border-radius: 13px;
    margin: 0;
    padding: 23px;
    display: grid;
    aspect-ratio: 550 / 380;
    background-color: hsl(0, 0%, 80%);
}

.news_box p {
    font-weight: bolder;
    font-size: 1.6rem;
}

.news_box h3 {
    margin-block: 8px 26px;
    line-height: 1.1;
    color: black;
    font-size: 2.4rem;
}

.news_box .btn {
    background-color: #adc58a;
}

.news_box .btn:is(:hover, :focus) {
    background-color: black;
}

.grid_view {
    /* Rx: Best Seller & Latest News <ul>*/
    display: grid;
    gap: 30px;
}


/*Rx: Popular Categories & Best Seller (Sharing)*/
.bigbigTitle {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3.6rem;
    line-height: 1.1;
}

.bigbigTitle span {
    color: #505e3c;
    display: inline;
}

/* Popular Category */
.cat_box .two_image {
    border-radius: 6px;
}

.cat_box .box_name {
    margin-block-start: 15px;
    text-align: center;
    transition: 0.25s ease;
}

.cat_box .box_name:is(:hover, :focus) {
    color: #adc58a;
}

.cat_box h3 {
    --fs-3: 2rem;

}

.cat_box img {
    width: 100%;
    height: 100%;
    background-color: hsl(0, 0%, 80%);
    object-fit: cover;
    aspect-ratio: 310 / 300;
}


/* Best Seller */
.best_box {
    text-align: center;
}

.best_box h3 {
    --fs-3: 1.8rem;
    margin-block: 8px 10px;
    line-height: 1.2; 
    font-size: var(--fs-3);
}

.best_box .price {
    color: #adc58a;
    font-size: 2rem;
    font-weight: 700;
}

.best_box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.best_box .two_image {
    border: 2.8px solid hsl(118, 10%, 80%);
    aspect-ratio: 320/ 320;
    background-color: hsl(0, 0%, 80%);
    overflow: hidden;
}


/* ViewPorts */
@media (min-width: 580px) {
    .banner {
        justify-content: flex-start;
        display: grid;
        padding-inline-start: 22px;
        align-items: center;
    }

    .news .grid_view {
        grid-template-columns: 1fr;
    }

    .grid_view {
        grid-template-columns: 1fr 1fr;
    }

    /* Best Seller */
    .best_box .two_image {
        position: relative;
    }

    .best_box .two_image .hover {
        display: block;
        position: absolute;
    }

    .best_box .two_image .hover {
        top: 0;
        left: 0;
    }

    .best_box:is(:hover, :focus-within) .original,
    .best_box .hover {
        opacity: 0;
    }

    .best_box .original,
    .best_box:is(:hover, :focus-within) .hover {
        opacity: 1;
    }

}

@media (min-width: 780px) {
    .banner {
        aspect-ratio: 1510 / 780;
        padding-inline-start: 10%;
    }

    .bannerWord {
        font-size: 2.4rem;
    }

    .grid_view {
        grid-template-columns: repeat(3, 1fr);
    }

    .news .grid_view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 990px) {
    .banner {
        margin-block-start: 0;
    }

}