:root {
    --primary-color: #F9592A;
    --secondary-color: #EF8911;
    --background-color: #FFFFFF;
    --text-color: #000000;
    --font-family: "Lato", sans-serif;
    --font-style: normal;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --dark-background-color: #1B1B1D;
    --dark-text-color: #FFFFFF;

    --gray-shade10: #C6C8CF;
    --gray-shade50: #868686;

    --desktop-padding: 76px;
    --tablet-padding: 32px;
    --mobile-padding: 16px;
}

/* search bar */
header .search-bar {
    padding-inline: 16px;
    padding-block: 32px;
    position: relative;
}

header .search-bar .left-icon {
    position: absolute;
    font-size: 20px;
    color: #CBD2E0;
    transform: translateY(-50%);
    top: 50%;
    left: 25px;
}

header .search-bar input {
    border-radius: 6px;
    border: 1px solid #CBD2E0;
    margin-bottom: 0;
    padding-left: 35px;
    height: 46px;
    background: transparent;
}

.dark-mode header .search-bar input {
    color: #FFFFFF;
}

/* FEATURED CATEGORIES */
main.homepage .featured-categories {
    padding-inline: 16px;
    padding-block: 0px;
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(100px, 2fr)); */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

main.homepage .featured-categories .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #000;
}

.dark-mode main.homepage .featured-categories .item {
    color: #FFFFFF;
}

main.homepage .featured-categories .item .label {
    transition: color .5s ease-in-out;
}

main.homepage .featured-categories .item:hover .label {
    /* color: rgba(0, 0, 0, 0.5); */
    color: var(--primary-color);
    font-weight: bold;
}

main.homepage .featured-categories .item .img-container {
    border: 2px solid #000;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .5s ease-in-out, transform .5s ease-in-out;
}

.dark-mode main.homepage .featured-categories .item .img-container {
    border: 2px solid #FFF;
}

main.homepage .featured-categories .item:hover .img-container {
    /* background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
    opacity: 0.5; */
    /* background: var(--primary-color); */
    box-shadow: 0 0 10px var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

main.homepage .featured-categories .item .img-container img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

/* CAROUSEL */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
    padding-inline: 16px;
    margin-block: 32px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    /* Dark overlay */
}

.carousel-content {
    position: absolute;
    /* bottom: 20px; */
    /* left: 20px; */
    color: white;
    text-shadow: 0 0 5px black;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 80%;
    text-align: center;
}

.carousel-content h2 {
    font-size: 28px;
    margin: 0;
}

.carousel-content button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    background: var(--primary-color);
    color: #FFF;
    border-radius: 10px;
    cursor: pointer;
}

.carousel-content button:hover {
    color: var(--primary-color);
    background-color: #FFF;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: red;
}

/* TRENDING PRODUCT */
.trending-products {
    padding-block: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-products .header {
    padding-inline: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trending-products .header .title {
    font-size: 24px;
    margin: 0;
}

.trending-products .header .right {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 16px;
}

.trending-products .header .right i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.trending-products .header .right i:hover {
    opacity: .5;
}

.trending-products .header .right i.arrow-left {
    background: #FFEBE5;
    color: #F9592A;
}

.trending-products .header .right i.arrow-right {
    background: #F9592A;
    color: #FFF;
}

.trending-products .items {
    display: flex;
    max-width: 100%;
    overflow: auto;
    padding-inline: 16px;
    gap: 16px;
}

.trending-products .items::-webkit-scrollbar {
    display: none;
}

.trending-products .items .item {
    color: #000;
}

.dark-mode .trending-products .items .item {
    color: #FFF;
}

.trending-products .items .item .top {
    width: 200px;
    height: 150px;
    border-radius: 10px 10px 0 0;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

.trending-products .items .item .top i {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 16px;
}

.trending-products .items .item .top i:hover {
    color: var(--primary-color);
    background: #FFF;
}

.trending-products .items .item .bottom {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
}

.dark-mode .trending-products .items .item .bottom {
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.trending-products .items .item .bottom .top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.trending-products .items .item .bottom .top i {
    position: initial;
    color: var(--secondary-color);
    background: transparent;
}

.trending-products .items .item .bottom .top span {
    color: #868686;
}

.dark-mode .trending-products .items .item .bottom .top span {
    color: rgba(255, 255, 255, 0.7);
}

.trending-products .items .item .bottom .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trending-products .items .item .bottom .footer .left h2 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.trending-products .items .item .bottom .footer .left .price {
    font-weight: bold;
}

.trending-products .items .item .bottom .footer .add-to-cart {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease-in-out;
}

.trending-products .items .item .bottom .footer .add-to-cart:hover {
    box-shadow: 0 0 10px rgba(249, 89, 42, 0.5);
    transform: scale(1.2);
}

/* NEW COLLECTIONS */
.new-collections {
    padding-block: 32px;
    display: flex;
    flex-direction: column;
    padding-inline: 16px;
    gap: 16px;
}

.new-collections .right .header {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.new-collections .right .header .title {
    font-size: 24px;
    margin: 0;
}

.new-collections .right .header .right {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 16px;
    padding-inline: 16px;
}

.new-collections .right .header .right i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.new-collections .right .header .right i:hover {
    opacity: .5;
}

.new-collections .right .header .right i.arrow-left {
    background: rgba(249, 89, 42, 0.5);
    color: #F9592A;
}

.new-collections .right .header .right i.arrow-right {
    background: #F9592A;
    color: #FFF;
}

.new-collections .right .image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-top: 16px;
    background-repeat: no-repeat;
    background-size: cover;
}

.new-collections .left .image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-size: cover;
}

.new-collections .left .caption {
    color: #868686;
    margin-top: 16px;
    text-align: center;
}

.new-collections .left button {
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    margin-top: 16px;
    cursor: pointer;
    width: 100%;
}

.new-collections .left button:hover {
    color: #FFF;
    background-color: var(--primary-color);
}

/* BEST SELLERS */
.best-sellers {
    padding-block: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-inline: 16px;
}

.best-sellers .bs-header {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.best-sellers .bs-header .title {
    font-size: 24px;
    margin: 0;
}

.best-sellers .bs-header .right {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 16px;
}

.best-sellers .bs-header .right i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.best-sellers .bs-header .right i:hover {
    opacity: .5;
}

.best-sellers .bs-header .right i.arrow-left {
    background: rgba(249, 89, 42, 0.5);
    color: #F9592A;
}

.best-sellers .bs-header .right i.arrow-right {
    background: #F9592A;
    color: #FFF;
}

.best-sellers .bs-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.best-sellers .bs-body .bs-body-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.best-sellers .bs-body .bs-body-left .bs-item {
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dark-mode .best-sellers .bs-body .bs-body-left .bs-item {
    color: #FFF;
}

.best-sellers .bs-body .bs-body-left .bs-item .image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
}

.best-sellers .bs-body .bs-item .bs-title {
    font-weight: bold;
}

.best-sellers .bs-body .bs-item .bs-prices {
    display: flex;
    gap: 8px;
}

.best-sellers .bs-body .bs-item .bs-prices .bs-price {
    color: #868686;
    text-decoration: line-through;
}

.best-sellers .bs-body .bs-item .bs-prices .bs-discount-price {
    font-weight: bold;
    color: var(--primary-color);
}

.best-sellers .bs-body .bs-body-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #000;
}

.dark-mode .best-sellers .bs-body .bs-body-right {
    color: #FFF;
}

.best-sellers .bs-body .bs-body-right .bs-image {
    width: 100%;
    height: 200px;
    border-radius: 50px;
    background-size: cover;
    background-repeat: no-repeat;
}

/* WHY CHOOSE US */
.why-choose-us {
    padding-block: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-inline: 16px;
}

.why-choose-us .left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
}

.why-choose-us .left .header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.why-choose-us .left .header .title {
    margin: 0;
    font-weight: 28px;
}

.why-choose-us .left .header .caption {
    color: #6C6B6B;
    width: 70%;
    margin: auto;
}

.why-choose-us .left .header a button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
}

.why-choose-us .left .header a button:hover {
    color: #FFF;
    background: var(--primary-color);
}

.why-choose-us .left .image {
    width: 100%;
    height: 325px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}

.why-choose-us .right {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.why-choose-us .right .wcu-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.why-choose-us .right .wcu-carousel-slide {
    min-width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

/* .why-choose-us .right .image {
    width: 100%;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
} */

.why-choose-us .right .navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-choose-us .right .navigation i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .5;
    background: #FFEBE5;
    color: var(--primary-color);
}

.why-choose-us .right .navigation i.nav-right {
    background: #FFEBE5;
    color: var(--primary-color);
}

.why-choose-us .right .navigation i.active {
    opacity: 1;
    background: var(--primary-color);
    color: #FFF;
}

/* Responsive Media Queries */
@media (min-width: 768px) {

    /* Styles for screens greater than 768px */
    .why-choose-us .right {
        height: 500px;
    }
}

@media (min-width: 992px) {

    /* Styles for screens greater than 992px */
    header .search-bar {
        display: none;
    }

    main.homepage .featured-categories {
        display: none;
    }

    .carousel-container {
        height: 500px;
        padding-inline: 0;
        padding: 0;
        margin: 0;
    }

    .carousel-content {
        width: 60%;
    }

    .carousel-content h2 {
        font-size: 32px;
    }

    .carousel-slide img {
        border-radius: 0;
    }

    .carousel-overlay {
        border-radius: 0;
    }

    .trending-products .header {
        padding-inline: var(--desktop-padding);
    }

    .trending-products .items {
        padding-inline: var(--desktop-padding);
        gap: 32px;
    }

    .new-collections {
        flex-direction: row;
        gap: 32px;
        padding-inline: var(--desktop-padding);
    }

    .new-collections .left {
        flex: 1;
        height: fit-content;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .new-collections .right {
        flex: 1;
        height: fit-content;
    }

    .new-collections .right .header .right {
        justify-content: right;
    }

    .new-collections .right .image-container {
        min-height: 400px;
        height: 400px;
    }

    .new-collections .right .image-container .image {
        height: 100%;
    }

    .new-collections .left .image {
        height: 100%;

    }

    .new-collections .left .bottom .caption {
        text-align: left;
        width: 70%;
    }

    .new-collections .left .bottom button {
        width: fit-content;
        padding-inline: 32px;
    }

    .best-sellers {
        padding-inline: var(--desktop-padding);
    }

    .best-sellers .bs-body {
        flex-direction: row;
        width: 100%;
        gap: 32px;
    }

    .best-sellers .bs-body .bs-body-left {
        flex: 1;
        gap: 32px;
    }

    .best-sellers .bs-body .bs-body-left .bs-item .image {
        height: 200px;
    }

    .best-sellers .bs-body .bs-body-right {
        flex: 1;
    }

    .best-sellers .bs-body .bs-body-right .bs-image {
        height: 100%;
    }

    .why-choose-us {
        flex-direction: row-reverse;
        padding-inline: var(--desktop-padding);
        gap: 32px;
    }

    .why-choose-us .left {
        flex: 1;
    }

    .why-choose-us .left .image {
        display: block;
        height: 230px;
    }

    .why-choose-us .right {
        flex: 1;
        height: auto;
    }

    .why-choose-us .right .image {
        height: 100%;
    }
}

@media (min-width: 1200px) {
    /* Styles for screens greater than 1200px */

}