/* =========================
   P-SERIES FASHION FINAL CSS
   SCREEN FIX + PROFESSIONAL UI
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    overflow-x:hidden;
    font-family:Arial,sans-serif;
    background:#f5f5f5;
}

/* ================= TOPBAR ================= */

.topbar{
    width:100%;
    background:linear-gradient(to right,#081b3a,#0f2f63);
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 20px;
    font-size:14px;
    flex-wrap:wrap;
}

/* ================= HEADER ================= */

.header{
    width:100%;
    background:#071739;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    flex-wrap:wrap;
    gap:15px;
}

.logo img{
    width:90px;
}

/* ================= SEARCH ================= */

.search-box{
    flex:1;
    max-width:500px;
    display:flex;
    overflow:hidden;
    border-radius:8px;
}

.search-box input{
    flex:1;
    padding:12px;
    border:none;
    outline:none;
    font-size:15px;
}

.search-box button{
    width:60px;
    background:#ffb400;
    border:none;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
}

/* ================= PREMIUM MENU ================= */

.premium-topbar{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

.nav-btn{
    text-decoration:none;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    font-size:15px;
    font-weight:bold;
    transition:.3s;
}

.login-btn{
    background:#0d47a1;
}

.signup-btn{
    background:#ef6c00;
}

.wishlist-btn{
    background:#c2185b;
}

.cart-btn{
    background:#2e7d32;
}

.earn-btn{
    background:#ffb300;
    color:#000;
}

.nav-btn:hover{
    transform:translateY(-3px);
    opacity:.9;
}

/* ================= MENU ================= */

.menu{
    width:100%;
    background:#0b1a3a;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    padding:14px;
}

.menu span{
    color:#fff;
    cursor:pointer;
    font-size:16px;
    padding:6px 10px;
    transition:.3s;
}

.menu span:hover{
    color:#00e5ff;
}

/* ================= MEGA MENU ================= */

.menu-item{
    position:relative;
}

.mega-menu{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    width:1000px;
    max-width:95vw;
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,0.2);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.menu-item:hover .mega-menu{
    opacity:1;
    visibility:visible;
}

.menu-column{
    min-width:180px;
}

.menu-column h3{
    margin-bottom:10px;
    color:#071739;
    font-size:18px;
}

.menu-column a{
    display:block;
    text-decoration:none;
    color:#444;
    margin-bottom:8px;
    transition:.3s;
    font-size:14px;
}

.menu-column a:hover{
    color:red;
    padding-left:5px;
}

/* ================= SLIDER ================= */

.premium-slider{
    width:100%;
    height:450px;
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:.7s;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* ================= SLIDER BUTTON ================= */

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:#fff;
    border:none;
    padding:12px;
    cursor:pointer;
    z-index:10;
    border-radius:5px;
}

.prev{
    left:10px;
}

.next{
    right:10px;
}

/* ================= PRODUCTS ================= */

#product-list{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:20px;
}

.card{
    background:#fff;
    border-radius:12px;
    padding:15px;
    text-align:center;
    transition:.3s;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.card:hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}

.card h4{
    margin-top:10px;
}

.card p{
    margin:8px 0;
    font-weight:bold;
}

/* ================= BUTTONS ================= */

.buy{
    background:#2e7d32;
    color:#fff;
}

.cart{
    background:#ef6c00;
    color:#fff;
}

.wish{
    background:#c2185b;
    color:#fff;
}

.buy,
.cart,
.wish{
    border:none;
    padding:10px 12px;
    border-radius:6px;
    margin:5px;
    cursor:pointer;
    font-weight:bold;
}

/* ================= FOOTER ================= */

.footer{
    width:100%;
    background:#111827;
    color:#fff;
    margin-top:40px;
}

.footer-row{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:30px;
    padding:40px 20px;
}

.footer-col{
    flex:1;
    min-width:220px;
}

.footer-col h3{
    margin-bottom:15px;
}

.footer-col a{
    display:block;
    color:#ccc;
    text-decoration:none;
    margin-bottom:10px;
}

.footer-col a:hover{
    color:#22c55e;
}

.footer-col p{
    margin-bottom:10px;
    color:#ddd;
}

.footer-social{
    text-align:center;
    background:#1f2937;
    padding:15px;
}

.footer-bottom{
    text-align:center;
    background:#000;
    padding:12px;
    font-size:14px;
}

/* ================= MOBILE FIX ================= */

@media(max-width:768px){

    .topbar{
        justify-content:center;
        gap:10px;
        text-align:center;
    }

    .header{
        flex-direction:column;
        align-items:center;
    }

    .search-box{
        width:100%;
    }

    .premium-slider{
        height:250px;
    }

    .menu{
        gap:10px;
    }

    #product-list{
        grid-template-columns:1fr 1fr;
        padding:10px;
        gap:10px;
    }

    .mega-menu{
        position:static;
        width:100%;
        box-shadow:none;
        opacity:1;
        visibility:visible;
        display:none;
    }

    .menu-item:hover .mega-menu{
        display:flex;
    }

}

/* ================= SMALL MOBILE ================= */

@media(max-width:480px){

    #product-list{
        grid-template-columns:1fr;
    }

    .nav-btn{
        width:100%;
        text-align:center;
    }

    .premium-slider{
        height:220px;
    }

}