@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --accent:#7c3aed;

    --bg:#f8fafc;
    --card:rgba(255,255,255,0.72);

    --text:#0f172a;
    --muted:#64748b;

    --border:rgba(255,255,255,0.22);

    --shadow:
    0 10px 30px rgba(15,23,42,0.06);

    --hover-shadow:
    0 20px 45px rgba(37,99,235,0.16);

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;

    font-family:'Poppins',sans-serif;

    scroll-behavior:smooth;
}

body{

    background:
    radial-gradient(circle at top left,#dbeafe 0%,transparent 25%),
    radial-gradient(circle at bottom right,#ede9fe 0%,transparent 25%),
    var(--bg);

    color:var(--text);

    overflow-x:hidden;
}

/* TOP BAR */

.top-bar{

    background:#0f172a;

    color:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 6%;

    font-size:14px;
}

.left-top{
    display:flex;
    gap:25px;
}

.left-top span{
    display:flex;
    align-items:center;
    gap:8px;
}

/* NAVBAR */

.navbar{

    position:sticky;

    top:0;

    z-index:1000;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 6%;

    background:rgba(255,255,255,0.7);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,0.25);

    box-shadow:
    0 8px 30px rgba(15,23,42,0.05);

    transition:0.4s ease;
}

.logo{

    font-size:34px;

    font-weight:800;

    color:var(--primary);

    letter-spacing:-1px;
}

.search-box{

    width:50%;

    display:flex;

    align-items:center;

    overflow:hidden;

    border-radius:18px;

    background:white;

    border:1px solid rgba(226,232,240,0.9);

    box-shadow:var(--shadow);
}

.search-box select{

    border:none;

    outline:none;

    padding:15px;

    background:#f1f5f9;

    color:var(--muted);

    font-weight:500;
}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    padding:15px;

    font-size:15px;

    background:white;
}

.search-box button{

    border:none;

    padding:15px 28px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:0.4s ease;
}

.search-box button:hover{

    transform:scale(1.03);
}

.nav-icons{

    display:flex;

    align-items:center;

    gap:25px;

    font-size:23px;
}

.nav-icons i{

    cursor:pointer;

    transition:0.3s ease;
}

.nav-icons i:hover{

    color:var(--primary);

    transform:translateY(-3px);
}

.cart{

    position:relative;

    cursor:pointer;

    color:inherit;

    text-decoration:none;
}

#cart-count{

    position:absolute;

    top:-10px;

    right:-12px;

    width:20px;

    height:20px;

    border-radius:50%;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-size:11px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:600;
}

/* MENU */

.menu{

    display:flex;

    gap:40px;

    padding:18px 6%;

    background:rgba(255,255,255,0.7);

    backdrop-filter:blur(12px);

    border-top:1px solid rgba(255,255,255,0.15);

    border-bottom:1px solid rgba(255,255,255,0.15);
}

.menu a{

    text-decoration:none;

    color:#334155;

    font-weight:500;

    position:relative;

    transition:0.3s ease;
}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:0.3s ease;
}

.menu a:hover{

    color:var(--primary);
}

.menu a:hover::after{

    width:100%;
}

/* HERO */

.hero{

    margin:60px 6%;

    padding:70px;

    border-radius:36px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

    overflow:hidden;

    position:relative;

    background:
    linear-gradient(
    135deg,
    rgba(37,99,235,0.12),
    rgba(124,58,237,0.12)
    );

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,0.35);

    box-shadow:
    0 20px 50px rgba(15,23,42,0.08);
}

.hero-text{

    width:50%;
}

.hero-text h1{

    font-size:52px;

    line-height:1.1;

    margin-bottom:15px;
}

.hero-text h2{

    font-size:72px;

    color:var(--primary);

    margin-bottom:20px;

    line-height:1;
}

.hero-text p{

    font-size:18px;

    line-height:1.8;

    color:var(--muted);

    margin-bottom:30px;
}

.hero-text button{

    padding:16px 38px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.4s ease;

    box-shadow:
    0 15px 30px rgba(37,99,235,0.18);
}

.hero-text button:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 20px 40px rgba(37,99,235,0.25);
}

.hero-image img{

    width:520px;

    border-radius:28px;

    transition:0.6s ease;
}

.hero-image img:hover{

    transform:scale(1.03);
}

/* CATEGORIES */

.categories{

    margin:80px 6%;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(150px,1fr));

    gap:25px;
}

.category{

    background:var(--card);

    backdrop-filter:blur(14px);

    border:1px solid var(--border);

    padding:30px;

    border-radius:24px;

    text-align:center;

    cursor:pointer;

    transition:0.4s ease;

    box-shadow:var(--shadow);
}

.category:hover{

    transform:
    translateY(-10px);

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    box-shadow:
    0 18px 40px rgba(37,99,235,0.18);
}

.category i{

    font-size:36px;

    margin-bottom:15px;

    color:var(--primary);

    transition:0.4s ease;
}

.category:hover i{

    color:white;
}

.category p{

    font-weight:600;
}

/* PRODUCTS */

.products-section{

    margin:90px 6%;
}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:40px;
}

.section-header h2{

    font-size:42px;

    letter-spacing:-1px;
}

.section-header button{

    border:none;

    padding:14px 28px;

    border-radius:14px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:0.4s ease;
}

.section-header button:hover{

    transform:translateY(-3px);
}

.products{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(270px,1fr));

    gap:30px;
}

.card{

    position:relative;

    background:var(--card);

    backdrop-filter:blur(14px);

    border:1px solid var(--border);

    border-radius:28px;

    overflow:hidden;

    padding:18px;

    transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border 0.45s ease;

    box-shadow:var(--shadow);
}

.card:hover{

    transform:
    translateY(-12px)
    scale(1.015);

    border:1px solid rgba(37,99,235,0.25);

    box-shadow:
    0 25px 50px rgba(37,99,235,0.12);
}

.card img{

    width:100%;

    height:240px;

    object-fit:cover;

    border-radius:22px;

    transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.card:hover img{

    transform:scale(1.06);

    filter:saturate(1.1);
}

.card h3{

    margin-top:20px;

    font-size:24px;

    font-weight:700;
}

.rating{

    color:#f59e0b;

    margin-top:12px;

    font-size:15px;
}

.price{

    margin-top:14px;

    font-size:30px;

    font-weight:800;

    color:var(--primary);
}

.card button{

    width:100%;

    margin-top:20px;

    padding:15px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:0.4s ease;

    box-shadow:
    0 10px 25px rgba(37,99,235,0.16);
}

.card button:hover{

    transform:translateY(-3px);

    box-shadow:
    0 20px 35px rgba(37,99,235,0.25);
}

/* CART */

.cart-section,
.cart-page{

    margin:90px 6%;

    padding:40px;

    border-radius:30px;

    background:var(--card);

    backdrop-filter:blur(16px);

    border:1px solid var(--border);

    box-shadow:var(--shadow);
}

.cart-section h2,
.cart-page h1{

    font-size:38px;

    margin-bottom:25px;
}

#cart-items{

    list-style:none;

    margin-bottom:20px;
}

.cart-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px;

    margin:18px 0;

    border-radius:18px;

    background:white;

    transition:0.4s ease;
}

.cart-item:hover{

    transform:translateY(-4px);

    box-shadow:
    0 10px 30px rgba(15,23,42,0.08);
}

.cart-item button{

    border:none;

    padding:12px 20px;

    border-radius:10px;

    background:#ef4444;

    color:white;

    cursor:pointer;

    font-weight:600;

    transition:0.3s ease;
}

.cart-item button:hover{

    background:#dc2626;
}

.checkout-btn{

    margin-top:30px;

    padding:16px 34px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
    );

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.4s ease;
}

.checkout-btn:hover{

    transform:translateY(-3px);
}

/* FEATURES */

.features{

    margin:90px 6%;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:30px;
}

.feature{

    background:var(--card);

    backdrop-filter:blur(14px);

    border:1px solid var(--border);

    border-radius:28px;

    padding:40px 30px;

    text-align:center;

    transition:0.4s ease;

    box-shadow:var(--shadow);
}

.feature:hover{

    transform:translateY(-10px);

    box-shadow:var(--hover-shadow);
}

.feature i{

    font-size:42px;

    margin-bottom:20px;

    color:var(--primary);
}

.feature h4{

    font-size:24px;

    margin-bottom:12px;
}

.feature p{

    color:var(--muted);

    line-height:1.7;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .hero{

        flex-direction:column;

        text-align:center;

        padding:50px;
    }

    .hero-text{

        width:100%;
    }

    .hero-image img{

        width:100%;
    }

    .search-box{

        width:100%;
    }
}

@media(max-width:768px){

    .top-bar{

        display:none;
    }

    .navbar{

        flex-direction:column;

        gap:20px;
    }

    .menu{

        overflow-x:auto;

        gap:25px;
    }

    .hero{

        padding:40px 25px;
    }

    .hero-text h1{

        font-size:38px;
    }

    .hero-text h2{

        font-size:54px;
    }

    .section-header{

        flex-direction:column;

        gap:20px;

        align-items:flex-start;
    }

    .section-header h2{

        font-size:34px;
    }

    .cart-item{

        flex-direction:column;

        gap:15px;

        align-items:flex-start;
    }
}
