@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Shadows+Into+Light&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

* a{
    text-decoration: none;
    color: black;
}

body {
    background-color: #f8f8ff;
}

.logo-div {
    display: flex;
}

.logo_name {
    padding-top: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
    background-color: white;
    border-bottom: 2px solid rgb(170, 170, 170);
}

header ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

header ul li a img {
    height: 25px;
    width: 25px;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.menu-div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px auto;
}

.menu ul li {
    cursor: pointer;
    font-weight: 500;
    text-align: center;
}

.menu ul li img {
    transform: rotate(-90deg);
}

.menu ul li:hover {
    transition: 0.2s ease-in;
    color: #7b44ff;
}

.product-btn:hover .arr,
.otherlink-btn:hover .arr {
    filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(250deg);
    transition: 0.3s ease-out;
    transform: rotate(90deg);
}

.User-icon:hover .user-icon-box {
    display: flex;
}

.user-icon-box {
    position: absolute;
    height: 215px;
    width: 185px;
    background-color: #F3F4F6;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    vertical-align: middle;

    z-index: 99;

    top: 45px;
    right: 20px;
    display: none;
}

.user-icon-box a {
    text-decoration: none;
    color: black;

    margin-left: 2rem;
}

.user-icon-box img {
    height: 25px;
    width: 25px;

    margin-right: 20px;
}

.search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search input {
    padding: 2rem;
    border-radius: 8px;
    border: none;
    width: 250px;
    background-color: #F3F4F6;
}

.search {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    /* leave space for the icon */
    font-size: 16px;
}

.search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    cursor: pointer;
}


.search input:focus {
    outline: none;
}

.menu-icon {
    display: none;
}

.products-box {
    position: absolute;
    height: 350px;
    width: 550px;
    background-color: #F3F4F6;
    border-radius: 20px;

    display: flex;
    justify-content: space-around;
    vertical-align:auto;

    z-index: 99;

    top: 120px;
    left: 5%;

    display: none;
}

.products-box a,
.otherlink-box a {
    text-decoration: none;
    color: black;

    font-weight: 300;
}

.products-box-left,
.products-box-right {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    text-align: left;
}
#popup-message{
    position: fixed;
    top: 70px;
    right: 20px;
    background: #7b44ff;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
}

.products-box a:hover {
    transition: .5s ease-in;
    color: #7b44ff;
}

.otherlink-box {
    position: absolute;
    height: 350px;
    width: 250px;
    background-color: #F3F4F6;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: left;

    z-index: 99;

    top: 120px;
    left: 30%;

    padding: 1rem;
    display: none;
}

.otherlink-btn:hover .otherlink-box,
.product-btn:hover .products-box,
.User-icon:hover .user-icon-box{
    display: flex;
}


.hero {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e7d7ff;
    padding: 2rem 5rem;
    border-radius: 20px;
    margin: 2rem 5rem;
}

.hero img {
    transform: rotate(8deg)
}

.left-arrow,
.right-arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
}

.left-arrow {
    top: 50%;
    transform: translateX(-50%);
    left: 4px;
}

.right-arrow {
    top: 50%;
    transform: translateX(-50%);
    right: -40px;
}

.left-arrow img,
.right-arrow img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero .text {
    max-width: 60%;
}

.hero p {
    margin-top: 10px;
}

.hero button {
    background: #7b44ff;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 50px;
}

.btn a {
    text-decoration: none;
    color: white;
}

.categories img {
    height: 120px;
    mix-blend-mode: darken;
}

.categories,
.featured-products {
    margin: 2rem 5rem;
    height: 100%;
    position: relative;
}

.categories-div h3,
.featured-products h3 {
    margin-bottom: 3rem;
    text-decoration: underline solid #7b44ff;
    text-underline-offset: 10px;
}
.categories-div{
    display: flex;
    justify-content: space-between;
}

.categories-div button{
    height: 50px;
    padding: .5rem 1rem;
    border-radius: 15px;

    background-color: transparent;
    border: 1px solid #ACACAC;
}

.categories-div button a{
    text-decoration: none;
    font-size: 16px;
    color: black;
}

.category-grid,
.product-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;

    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 1rem;

    padding: 1rem
}

.category-item {
    background: #CEC2FF;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    height: 200px;
    min-width: 250px;
}

.category-item a{
    text-decoration: none;
    color: black;
}

.product-item {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid black;
    padding: 1rem;
    text-align: center;
    height: 300px;
    min-width: 200px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}

.product-item:hover {
    cursor: pointer;
    transition: 0.5s ease-in;
    border-color: #7b44ff;
    box-shadow: 4px 4px 4px rgb(163, 163, 163);
}

.product-item img {
    height: 150px;
}

.add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.add-btn img {
    height: 25px;
    width: 25px;
}

.category-item p {
    margin-top: 20px;
}

.btn-scroll {
    position: absolute;
    top: 110%;
    transform: translateY(-110%);
    background: #7b44ff;
    color: white;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;

    height: 40px;
    width:40px;
}


.container {
    width: 100%;
    overflow: hidden;
}

.products-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-scroll:disabled {
    opacity: 0.4;
    cursor: default;
}

.btn-left {
    left:40%;
}

.btn-right {
    right: 40%;
}

.footer {
    background: #d4bfff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 50px;
}

.top-footer {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 2px solid #ACACAC;
}

.footer-column {
    max-width: 30%;
}

.footer-column div p {
    margin-top: 10px;
}

.contact {
    margin-top: 30px;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 10px;
}

.footer-column ul {
    margin-top: 20px;
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

.popular-categories a{
    text-decoration: none;
    color: black;
}



@media (max-width : 812px) {
    .menu {
        display: none;
        position: absolute;

        top: 140px;
        right: 20px;

        z-index: 10;
        background-color:#e3e3e3;

        padding: 1.5rem ;
        border-radius: 10px;
    }

    .menu ul{
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        gap: 20px;

    }

    .menu-icon {
        display: block;
        position: relative;
    }

    .search {
        max-width: 80vw;
    }

    .search input {
        height: 50px;
    }

    .hero {
        margin: 1rem 2rem;
    }

    
    .categories,
    .featured-products {
        margin: 1rem;
    }

    .otherlink-box,
    .products-box{
        position:relative;
        flex-direction: column;
        width: inherit;

        margin: 0;

        top: 0;
        left: 0;
        background-color: transparent;

        justify-content: flex-start;
        height: fit-content;

        margin-top: 10px;
        padding: 0;
    }

    .products-box-left ,
    .products-box-right,
    .otherlink-box {
        padding-left: 1rem;
    }

    .products-box-left a,
    .products-box-right a,
    .otherlink-box a{
        margin-top: 10px;
    }

    .menu ul li {
        text-align:left;
    }
}

@media (max-width:620px){
    .top-footer{
        flex-direction: column;
    }

    .footer-column{
        max-width: 100%;
        margin-top: 20px;
    }

    .hero{
        height: 250px;
        padding: 2rem 3rem;
    }

    .hero img{
        height: 80%;
        width: auto;
    }

    .hero button{
        margin-top: 20px;
    }

    .left-arrow,
    .right-arrow{
        height: 40px;
        width: 40px;
    }
    .left-arrow img,
    .right-arrow img{
        height: 20px;
        width: 20px;
    }


}

@media (max-width: 420px) {
    
    header{
        padding: .5rem 1rem ;
    }

    header ul{
        gap: 10px;
    }

    header ul li a img{
        height: 23px;
        width: 23px;
    }

    .hero{
        padding: 1rem 2rem ;
    }

    .hero h2{
        font-size: 20px;
    }

    .hero p{
        font-size: 16px;
    }

    .hero img{
        height: 70%;
        width: auto;
    }
}