/* ==========================================
        ROSHNI STORE
        PREMIUM E-COMMERCE
        STYLE.CSS
========================================== */


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}


html {

    scroll-behavior: smooth;

}


body {

    background: #f8f9ff;

    color: #222;

}


/* =========================
        NAVBAR
========================= */


.navbar {

    width: 90%;

    margin: auto;

    padding: 25px 0;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.logo {

    font-size: 28px;

    font-weight: 700;

    color: #7b2cbf;

}


nav {

    display: flex;

    gap: 30px;

}


nav a {

    text-decoration: none;

    color: #333;

    font-weight: 500;

    transition: .3s;

}


nav a:hover {

    color: #7b2cbf;

}


.nav-icons {

    display: flex;

    gap: 20px;

}


.nav-icons i {

    font-size: 22px;

    cursor: pointer;

    color: #7b2cbf;

}




/* =========================
        HERO
========================= */


.hero {

    width: 90%;

    margin: 40px auto;

    padding: 60px;

    border-radius: 30px;

    background: linear-gradient(135deg,
            #7b2cbf,
            #c77dff);

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: white;

}


.hero-content h1 {

    font-size: 55px;

    line-height: 1.2;

}


.hero-content p {

    margin: 20px 0;

    font-size: 18px;

}


.hero button {

    padding: 15px 35px;

    border: none;

    border-radius: 40px;

    background: white;

    color: #7b2cbf;

    font-weight: 600;

    cursor: pointer;

}



.hero-image img {

    width: 300px;

    animation: float 3s infinite;

}


@keyframes float {


    0% {

        transform: translateY(0);

    }


    50% {

        transform: translateY(-20px);

    }


    100% {

        transform: translateY(0);

    }


}



/* =========================
        SEARCH
========================= */


.search-section {

    width: 70%;

    margin: 50px auto;

    display: flex;

    background: white;

    border-radius: 50px;

    box-shadow: 0 10px 30px #ddd;

    overflow: hidden;

}


.search-section input {

    flex: 1;

    padding: 18px 25px;

    border: none;

    outline: none;

    font-size: 16px;

}


.search-section button {

    width: 80px;

    border: none;

    background: #7b2cbf;

    color: white;

    font-size: 20px;

}




/* =========================
        SECTIONS
========================= */


section {

    width: 90%;

    margin: 70px auto;

}


section h2 {

    text-align: center;

    font-size: 35px;

    margin-bottom: 40px;

    color: #7b2cbf;

}


/* =========================
        CATEGORY
========================= */


.category-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

}


.category-card {

    background: white;

    padding: 35px;

    text-align: center;

    border-radius: 20px;

    font-size: 35px;

    box-shadow: 0 10px 25px #ddd;

    transition: .3s;

}


.category-card:hover {

    transform: translateY(-10px);

}

/* =========================
        PRODUCTS
========================= */


.product-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

}


.product-card {

    background: white;

    border-radius: 25px;

    padding: 20px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);

    transition: .3s;

}


.product-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 15px 35px rgba(123, 44, 191, .25);

}


.product-card img {

    width: 100%;

    height: 220px;

    object-fit: cover;

    border-radius: 20px;

}


.product-card h3 {

    margin: 20px 0 10px;

    font-size: 22px;

}


.product-card p {

    color: #7b2cbf;

    font-size: 20px;

    font-weight: 700;

}


.product-card button {

    margin-top: 15px;

    padding: 12px 25px;

    border: none;

    border-radius: 30px;

    background: #7b2cbf;

    color: white;

    cursor: pointer;

    transition: .3s;

}


.product-card button:hover {

    background: #5a189a;

}



/* =========================
        OFFER SECTION
========================= */


.offer {

    background: linear-gradient(135deg,
            #7b2cbf,
            #ff4da6);

    color: white;

    border-radius: 30px;

    padding: 60px;

    text-align: center;

}


.offer h2 {

    color: white;

    font-size: 40px;

}


.offer p {

    font-size: 18px;

    margin: 20px;

}


.offer button {

    padding: 15px 35px;

    border: none;

    border-radius: 40px;

    background: white;

    color: #7b2cbf;

    font-weight: 600;

    cursor: pointer;

}



/* =========================
        SERVICES
========================= */


.service-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}


.service-card {

    background: white;

    padding: 35px;

    border-radius: 25px;

    text-align: center;

    box-shadow: 0 10px 30px #ddd;

    transition: .3s;

}


.service-card:hover {

    transform: translateY(-8px);

}


.service-card i {

    font-size: 45px;

    color: #7b2cbf;

    margin-bottom: 20px;

}



/* =========================
        NEWSLETTER
========================= */


.newsletter {

    background: #f3e8ff;

    padding: 50px;

    border-radius: 30px;

    text-align: center;

}


.subscribe-box {

    margin-top: 30px;

    display: flex;

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

    background: white;

    border-radius: 50px;

    overflow: hidden;

}


.subscribe-box input {

    flex: 1;

    padding: 18px;

    border: none;

    outline: none;

}


.subscribe-box button {

    padding: 0 30px;

    border: none;

    background: #7b2cbf;

    color: white;

    cursor: pointer;

}




/* =========================
        FOOTER
========================= */


footer {

    background: #1a1a1a;

    color: white;

    padding: 50px 20px;

    text-align: center;

}


.footer-content h2 {

    color: #c77dff;

}


.social {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin: 25px 0;

}


.social i {

    font-size: 25px;

    cursor: pointer;

    transition: .3s;

}


.social i:hover {

    color: #ff4da6;

}



/* =========================
        RESPONSIVE
========================= */


@media(max-width:1000px) {


    .product-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .category-grid {

        grid-template-columns: repeat(2, 1fr);

    }


    .hero {

        flex-direction: column;

        text-align: center;

    }


    .service-grid {

        grid-template-columns: 1fr;

    }


}



@media(max-width:600px) {


    .navbar {

        flex-direction: column;

        gap: 20px;

    }


    nav {

        flex-wrap: wrap;

        justify-content: center;

    }


    .hero {

        padding: 35px 20px;

    }


    .hero-content h1 {

        font-size: 38px;

    }


    .hero-image img {

        width: 220px;

    }


    .search-section {

        width: 90%;

    }


    .product-grid {

        grid-template-columns: 1fr;

    }


    .category-grid {

        grid-template-columns: 1fr;

    }


    .subscribe-box {

        flex-direction: column;

    }


    .subscribe-box button {

        padding: 15px;

    }


}



    .ecommerce-icon{

    background:linear-gradient(
        135deg,
        #7b2cbf,
        #c77dff
    );

    }

    