:root {
    --border-radius: 10px;
}


.nav-logo img {
    /* filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.0)) brightness(0) invert(0); */

}

/* ################################# hero #################################### */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* padding: 20px 20px 10px 20px; */
    padding: 0px 0px -00px 0px;
}

.header-space {
    /* height: 1px; */
}

.hero-carousel {
    max-width: var(--max-width);
    width: 100vw;
    /* height: 100vh; */
    aspect-ratio: 9 / 3;
    /* border-radius: var(--border-radius); */
    /* box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.3), 2px 2px 2px rgba(0, 0, 0, 0.3); */
    background-color: var(--color-3);
    transition: all var(--transition-normal) ease-out;
}

@media (orientation: portrait) {
    .hero-carousel {
        aspect-ratio: 9 / 6;
    }
}

@media (max-width: 1050px) {
    .hero {
        /* padding: 10px 20px 10px 20px; */
    }
}


@media (max-width: 510px) {
    .hero {
        padding:
            0px 0px 0px 0px;
    }

    .hero-carousel {
        border-radius: 0px;
    }

}


.hero-carousel:hover {
    box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.3) 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.swiper-wrapper {
    height: 100%;
    width: 100%;
}

.hero-carousel .swiper-slide {
    position: relative;
    height: 100%;
    width: 100%;
}

.swiper-slide a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.7); */
    transition: all var(--transition-normal) ease-out;
}


.hero-carousel:hover img {
    filter: brightness(0.9);
}


.swiper-slide.has-text .carousel-image {
    filter: brightness(0.8);
}


.swiper-slide.has-text:hover .carousel-image {
    filter: brightness(0.6);
}


.carousel-content {
    position: absolute;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 5px var(--text-color));
    max-width: var(--max-width);
    width: 100%;
    padding: 100px;
    text-align: center;
    overflow-wrap: anywhere;
    color: var(--color-1);
    transition: all var(--transition-normal) ease-out;
}


.carousel-content label {
    font-size: var(--icon-size-large);
    font-weight: 800;
    margin: 0;
    cursor: pointer;
}

.carousel-content p {
    font-weight: 400;
    letter-spacing: 1px;
    font-size: var(--font-size-normal);
    margin: 0;
}

.hero-carousel-nav {
    max-width: calc(var(--max-width) + 40px);
    width: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 2;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    pointer-events: all;
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--color-1) 30%, transparent);
    backdrop-filter: blur(2px);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-slow);
    font-size: 30px;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    /* opacity: 0.8; */
}

.hero-carousel-nav svg {
    z-index: 2;
    height: 25px;
    width: 25px;
}

.hero-prev:hover,
.hero-next:hover {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    scale: 1.1;
    opacity: 1;
    background: var(--text-color);
    color: var(--color-1);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 510px) {
    .hero-carousel-nav {
        padding: 0 20px;
    }
}

/* ################################# posts #################################### */

.home-posts {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px 20px;
    position: relative;
}

.home-posts__container {
    width: 100%;
    /* aspect-ratio: 6/1; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-posts__container-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 5px;
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);

}

.home-posts__container-card:hover {
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.2));
}

.home-posts__container-card img {
    width: 150px;
    aspect-ratio: 1/1;
    background-color: var(--color-3);
    border-radius: 50%;
    border: 2px solid var(--color-3);
    object-fit: contain;
    transition: all var(--transition-normal);
}

.home-posts__container-card:hover img {
    border: 2px solid var(--text-color);

}

.home-posts__container-card_text {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
}


.home-posts__container-card_text label {
    cursor: inherit
}

.home-posts__container-card_title {
    width: 100%;
    font-size: var(--font-size-small);
    line-height: var(--font-size-normal);
    letter-spacing: 1.5px;
    font-weight: 800;
    text-align: center;
}



@media (max-width: 1210px) {
    .home-posts__container-card img {
        width: 130px;
    }
}


@media (max-width: 1050px) {
    .home-posts__container-card img {
        width: 120px;
    }
}



@media (max-width: 810px) {
    .home-posts__container-card img {
        width: 110px;
    }
}

@media (max-width: 760px) {
    .home-posts__container-card img {
        width: 100px;
    }
}

@media (max-width: 512px) {
    .home-posts__container-card img {
        width: 80px;
    }
}

/* ################################# categories #################################### */
.home-products {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 0px 20px;
    position: relative;
}

.home-products__title {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.home-products__title label {
    font-size: var(--font-size-large);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 0px 10px;
    background-color: var(--color-2);
}

.home-products__title div {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
}

.home-products__explore-btn {
    position: absolute;
    right: 0;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--color-2);
    padding: 0 10px;
    transition: color var(--transition-fast);
}

.home-products__explore-btn:hover {
    color: var(--text-color);
}

@media (max-width: 512px) {
    .home-products__explore-btn {
        position: static;
        font-size: 10px;
        padding: 0 0 0 10px;
        letter-spacing: 1px;
        background-color: var(--color-2);
    }

    .home-products__title {
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--text-color);
    }

    .home-products__title div {
        display: none;
    }
}


.home-products__container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
}

.home-products__container::-webkit-scrollbar {
    height: 8px;
}

.home-products__container::-webkit-scrollbar-track {
    background: var(--color-3);
    border-radius: 10px;
}

.home-products__container::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 10px;
}

.home-products__container {
    scrollbar-color: var(--text-color) var(--color-3);
    scrollbar-width: thin;
}

.home-products__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-width: 300px;
    /* background-color: var(--color-2); */
    /* border-radius: var(--border-radius); */
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    /* overflow: hidden; */
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    /* filter: drop-shadow(0px 0px 0px var(--color-3) ); */
}

.home-products__card:hover {
    /* border-radius: 0; */
    /* border: 2px solid var(--text-color); */
    /* filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.3)); */
    /* filter: drop-shadow(2px 2px 0px var(--color-3) ); */
}

.home-products__card label {
    cursor: inherit;
}

.home-products__card img {
    background-color: var(--color-3);
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--border-radius);
    object-fit: cover;
    transition: all var(--transition-normal);
    filter: drop-shadow(0px 0px 0px var(--color-4));
}

.home-products__card:hover img {
    /* border-radius: 0; */
    /* filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3)); */
    filter: drop-shadow(6px 6px 0px var(--color-4));
}

.home-products__card img.transparent-image {
    object-fit: contain;
    padding: 15px;
}

.home-products__card_discount {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--color-6);
    color: var(--color-1);
    font-size: var(--font-size-small);
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

.home-products__card_text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 90px;
    gap: 5px;
    overflow: hidden;
    padding-top: 10px;
    transition: var(--transition-normal);
    filter: drop-shadow(0px 0px 0px var(--color-4));
}

.home-products__card:hover .home-products__card_text {
    filter: drop-shadow(2px 2px 1px var(--color-4));
}

.home-products__card_title {
    width: 100%;
    font-size: var(--font-size-medium);
    font-weight: 800;
    text-align: center;
    padding: 0px 10px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-products__card_desc {
    width: 100%;
    font-size: var(--font-size-small);
    font-weight: 400;
    text-align: left;
    padding: 0px 10px;
    text-transform: none;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

    display: none;
}


.home-products__card_price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.home-products__card_old-price {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-small);
    font-weight: 600;
    opacity: 0.5;
}

.home-products__card_old-price div {
    position: absolute;
    width: calc(100% + 2px);
    border-radius: 1px;
    height: 1px;
    background-color: var(--text-color);
}


.home-products__card_price {
    font-size: var(--font-size-large);
    font-weight: 800;
}

.home-products__card_button-cart {
    position: absolute;
    width: var(--icon-size-extra-large);
    height: var(--icon-size-extra-large);
    /* background-color: var(--color-2); */
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    bottom: 10px;
    right: 10px;
    transition: all var(--transition-normal);
}

.home-products__card_button-cart svg{
    position:absolute;
    padding: 5px;
    width: var(--icon-size-extra-large);
    height: var(--icon-size-extra-large);
    transition: var(--transition-normal);
}

.home-products__card_button-cart svg:last-child{
    opacity: 0;
}

.added-to-cart svg:last-child{
    opacity: 1 !important; 
}

.added-to-cart svg:first-child{
    opacity: 0 !important; 
}
.added-to-cart{
pointer-events: none;
}

.home-products__card_button-cart:hover {
    background-color: var(--text-color);
    color: var(--color-1);
    scale: 1.2;
}


@media (max-width: 810px) {
    .home-products__card {
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 760px) {
    /* .home-products__card {
        width: 300px;
        min-width: 300px;
        flex-direction: row;
    }
    .home-products__card img {
        max-height: 100px;
    border-radius:0 var(--border-radius) var(--border-radius) 0 ;
    } */
}

@media (max-width: 512px) {
    .home-products__card {
        width: 150px;
        min-width: 150px;
    }

    .home-products__container {
        /* justify-content: center;
        overflow-x: none;
        flex-wrap: wrap; */
        gap: 10px;
        padding: 20px 5px 5px 5px;
    }
}


/* ################################# ads #################################### */

.home-ads {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.home-ads__container {
    padding: 10px 20px 10px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: scroll;
    scrollbar-width: none;
}

.home-ads__container::-webkit-scrollbar {
    display: none;
}


.home-ads__container-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: calc(50vw - 30px);
    width: calc(50vw - 30px);
    aspect-ratio: 2/1;
    background-color: var(--color-3);
    border-radius: var(--border-radius);
    box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.3), 2px 2px 2px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

@media (max-width: 600px) {
    .home-ads__container-card {
        min-width: 100%;
        width: 100%;
    }
}

.home-ads__container-card:hover {
    box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.2), 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.home-ads__container-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-normal);
}


.home-ads__container-card:hover img {
    filter: brightness(0.9);
}


.home-ads .has-text img {
    filter: brightness(0.8);
}


.home-ads .has-text:hover img {
    filter: brightness(0.6);
}


.home-ads__container-card_text {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    gap: 2px;
    transition: all var(--transition-normal);
    z-index: 2;
    filter: drop-shadow(0 0 5px var(--text-color));
    color: var(--text-color);
}

.home-ads__container-card_text label {
    cursor: inherit
}

.home-ads__container-card_title {
    width: auto;
    font-size: var(--icon-size-medium);
    letter-spacing: 1.5px;
    font-weight: 800;
    text-align: center;
}

.home-ads__container-card_des {
    letter-spacing: 1px;
    font-size: var(--font-size-small);
    font-weight: 600;
    transition: all var(--transition-fast);
}


/* ################################# delivery #################################### */


.delivery {
    max-width: var(--max-width);
    margin: 40px auto 20px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery__header {
    text-align: center;
}

.delivery__subtitle {
    color: var(--color-6);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.delivery__title {
    margin: 10px;
    font-size: var(--font-size-extra-large-title);
    color: var(--text-color);
    line-height: 1.5;
}

.delivery__description {
    margin: 10px;
    color: rgba(0, 0, 0, .65);
    max-width: 650px;
    margin-inline: auto;
    line-height: 1;
}

.delivery__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.delivery__card {
    background: var(--color-3);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    /* box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3); */
}

.delivery__card:hover {
    /* border-radius:0; */
    border-color: var(--text-color);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.delivery__card i {
    font-size: var(--icon-size-extra-large);
    color: var(--color-6);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.delivery__card:hover i {
    color: var(--text-color);
}

.delivery__card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.delivery__card p {
    line-height: 1.6;
    opacity: .75;
}

@media(max-width:1000px) {

    .delivery__container {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:650px) {

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

}




.home-products__container li:first-child { margin-left: auto; }
.home-products__container li:last-child { margin-right: auto; }



/* Scroll Hints */
.home-products::before, .home-products::after { content: ''; position: absolute; top: 40px; bottom: 20px; width: 60px; pointer-events: none; z-index: 10; opacity: 0; transition: opacity 0.3s ease; }
.home-products::before { left: 0; background: linear-gradient(to right, var(--color-2) 10%, transparent); }
.home-products::after { right: 0; background: linear-gradient(to left, var(--color-2) 10%, transparent); }
.home-products.can-scroll-left::before { opacity: 1; }
.home-products.can-scroll-right::after { opacity: 1; }

