/* =========================
   AEXPLUS MARKETPLACE CSS
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#fafafa;
    color:#222;
    overflow-x:hidden;
}

/* =========================
   HERO / BANNER
========================= */

.hero{
    text-align:center;
    padding:30px 15px;
    background:#fff;
}

.banner{
    max-width:1200px;
    margin:auto;
}

.banner img{
    width:100%;
    height:auto;
    display:block;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

/* =========================
   SECTION HEADER
========================= */

.section-header{
    max-width:1200px;
    margin:35px auto 15px;
    padding:0 20px;
    position:relative;
    text-align:center;
}

.section-header h2{
    font-size:28px;
    font-weight:700;
    color:#222;
}

.view-all{
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    color:#007bff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.view-all:hover{
    text-decoration:underline;
}

/* =========================
   CATEGORIES
========================= */

.categories-wrapper{
    max-width:1200px;
    margin:auto;
}

.categories{
    display:flex;
    gap:15px;
    overflow-x:auto;
    padding:15px;
    scroll-behavior:smooth;
}

.categories::-webkit-scrollbar{
    display:none;
}

.categories{
    scrollbar-width:none;
}

.cat{
    min-width:160px;
    background:#fff;
    border-radius:14px;
    padding:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
    cursor:pointer;
}

.cat:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.cat img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:10px;
}

.cat p{
    text-align:center;
    margin-top:10px;
    font-size:13px;
    font-weight:600;
    color:#333;
}

/* =========================
   PRODUCT GRID
========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
    padding:20px;
    max-width:1200px;
    margin:auto;
}

.card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    position:relative;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.card h3{
    font-size:14px;
    font-weight:600;
    margin:12px 12px 6px;
    line-height:1.4;
    color:#222;
}

.price{
    margin:0 12px;
    font-size:18px;
    font-weight:700;
    color:#e91e63;
}

.rating{
    margin:8px 12px;
    font-size:13px;
    color:#ffb400;
}

/* =========================
   BADGE
========================= */

.badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff5a5f;
    color:#fff;
    font-size:11px;
    font-weight:600;
    padding:5px 10px;
    border-radius:6px;
    z-index:2;
}

/* =========================
   BUTTONS
========================= */

.btns{
    display:flex;
    gap:8px;
    padding:12px;
}

.btn{
    flex:1;
    text-align:center;
    padding:10px;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.add{
    background:#111;
    color:#fff;
}

.buy{
    background:#ff5a5f;
    color:#fff;
}

.add:hover,
.buy:hover{
    opacity:.9;
    transform:translateY(-2px);
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .hero{
        padding:15px;
    }

    .section-header h2{
        font-size:22px;
    }

    .view-all{
        position:static;
        display:block;
        margin-top:10px;
        transform:none;
    }

    .grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
        padding:12px;
    }

    .card img{
        height:160px;
    }

    .card h3{
        font-size:13px;
    }

    .price{
        font-size:16px;
    }

    .cat{
        min-width:130px;
    }

    .cat img{
        height:100px;
    }

    .btn{
        font-size:12px;
        padding:8px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media(max-width:480px){

    .grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .card img{
        height:140px;
    }

    .section-header h2{
        font-size:20px;
    }
}