/* =====================================================
MUBARAK SHOPPING
Professional Mobile First CSS
Version : 1.0
===================================================== *
:root{

    --primary:#5B21B6;

    --primary-hover:#6D28D9;

    --bg:#F8FAFC;

    --card:#FFFFFF;

    --text:#1F2937;

    --text-light:#6B7280;

    --success:#16A34A;

    --danger:#EF4444;

    --warning:#F59E0B;

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

/* =====================================
HEADER
===================================== */


.mobile-header{
    position:sticky;
    top:0;
    z-index:999;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}

.logo img{
    height:42px;
}

.header-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.header-right a{
    font-size:22px;
    color:#222;
    position:relative;
}

.cart-badge{
    position:absolute;
    top:-8px;
    right:-10px;
    background:#ff1744;
    color:#fff;
    font-size:10px;
    border-radius:50%;
    min-width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
}

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

.search-box{
    width:100%;
    height:48px;
    display:flex;
    align-items:center;
    background:var(--primary);
    border-radius:30px;
    overflow:hidden;
}

.search-box i{
    padding-left:15px;
    color:#888;
}

.search-box input{
    flex:1;
    border:none;
    outline:none;
    background:transparent;
    padding:0 12px;
    font-size:14px;
}

.search-box button{
    width:70px;
    height:48px;
    border:none;
    background:#6f42c1;
    color:#fff;
    font-weight:600;
}

/* =====================================
LOCATION
===================================== */

.location-box{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 0;
    font-size:14px;
    font-weight:500;
}

.location-box i{
    color:var(--primary);
}

/*=========================================
PREMIUM HOME SLIDER
=========================================*/

.home-slider{

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.slider-image{

    width:100%;

    aspect-ratio:1060/395;

    object-fit:cover;

}

.carousel-caption{

    left:35px;

    bottom:35px;

    right:auto;

}

.carousel-caption h3{

    font-size:28px;

    font-weight:700;

    color:#fff;

    text-shadow:0 3px 10px rgba(0,0,0,.35);

}

.carousel-caption p{

    font-size:15px;

    color:#fff;

    text-shadow:0 2px 8px rgba(0,0,0,.35);

}

.carousel-indicators button{

    width:10px;

    height:10px;

    border-radius:50%;

}

.carousel-control-prev-icon,
.carousel-control-next-icon{

    background-color:rgba(0,0,0,.45);

    border-radius:50%;

    padding:18px;

}

/* =====================================
SERVICE ICONS
===================================== */

.service-icons{
    background:#fff;
    margin-top:10px;
    padding:12px 0;
}

.service-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    scrollbar-width:none;
}

.service-scroll::-webkit-scrollbar{
    display:none;
}

.service-item{
    min-width:95px;
    height:80px;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    flex-shrink:0;
}

.service-item i{
    font-size:24px;
    margin-bottom:6px;
}

.service-item span{
    font-size:12px;
    font-weight:600;
    text-align:center;
}

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

.home-category{

    background:#fff;

    margin-top:12px;

    padding:15px;

    border-radius:15px;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.section-title h5{

    font-size:18px;

    font-weight:700;

    margin:0;

}

.section-title a{

    color:#6f42c1;

    font-size:14px;

    font-weight:600;

}

.category-grid{

    display:grid;

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

    gap:12px;

}

.category-item{

    background:#fafafa;

    border-radius:14px;

    text-align:center;

    padding:12px 6px;

    transition:.3s;

}

.category-item:hover{

    transform:translateY(-3px);

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.category-item img{

    width:55px;

    height:55px;

    object-fit:cover;

    border-radius:50%;

    margin:auto;

}

.category-item span{

    display:block;

    margin-top:8px;

    font-size:12px;

    font-weight:600;

}

/* ===============================
PRODUCT GRID
=============================== */

.products-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

/* Product Card */

.product-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:100%;
    border:1px solid #eee;
}

/* Image */

.product-card .product-image{
    width:100%;
    aspect-ratio:1/1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    padding:10px;
}

.product-card .product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

/* Body */

.product-card .product-body{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:10px;
}

/* Title */

.product-card .product-title{
    height:42px;
    overflow:hidden;
    font-size:14px;
    font-weight:600;
    line-height:21px;
}

/* Stock */

.product-stock{
    font-size:13px;
    margin-top:6px;
}

/* Price */

.product-price{
    margin-top:6px;
    font-size:18px;
    font-weight:bold;
}

/* Buttons */

.product-buttons{
    margin-top:auto;
}

.product-buttons .btn{
    width:100%;
    margin-top:6px;
}

/* Mobile */

@media(max-width:576px){

.products-grid{

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

gap:10px;

}

.product-card{

border-radius:10px;

}

}


/* =====================================================
FLASH SALE
===================================================== */

.flash-sale{

    margin-top:15px;

    background:#fff;

    border-radius:16px;

    padding:15px;

}

.flash-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.flash-header h4{

    color:#ff1744;

    font-weight:700;

    margin:0;

}

.flash-timer{

    background:#ff1744;

    color:#fff;

    padding:6px 12px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

}

/* =====================================================
SECTION SPACING
===================================================== */

.section-space{
    margin-top:15px;
}

/* =====================================================
HORIZONTAL PRODUCT LIST
===================================================== */

.product-scroll{

    display:flex;

    gap:12px;

    overflow-x:auto;

    padding-bottom:8px;

    scrollbar-width:none;

}

.product-scroll::-webkit-scrollbar{

    display:none;

}

.product-scroll .product-card{

    min-width:170px;

    max-width:170px;

    flex-shrink:0;

}

/* =====================================================
CATEGORY WISE PRODUCT
===================================================== */

.category-products{

    margin-top:18px;

}

.category-products .category-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:12px;

}

.category-products .category-header h5{

    font-size:18px;

    font-weight:700;

}

.category-products .category-header a{

    color:#6f42c1;

    font-weight:600;

    font-size:14px;

}

/* =====================================================
BRANDS
===================================================== */

.brand-section{

    background:#fff;

    border-radius:16px;

    padding:15px;

    margin-top:18px;

}

.brand-scroll{

    display:flex;

    gap:15px;

    overflow-x:auto;

    scrollbar-width:none;

}

.brand-scroll::-webkit-scrollbar{

    display:none;

}

.brand-item{

    min-width:90px;

    background:#fafafa;

    border-radius:14px;

    padding:10px;

    text-align:center;

    flex-shrink:0;

}

.brand-item img{

    width:70px;

    height:70px;

    object-fit:contain;

    margin:auto;

}

/* =====================================================
BANNERS
===================================================== */

.banner-section{

    margin-top:18px;

}

.banner-section img{

    width:100%;

    border-radius:16px;

}

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

.footer{

    background:#ffffff;

    margin-top:30px;

    padding:25px 15px;

    border-top:1px solid #eee;

}

.footer-logo{

    height:45px;

    margin-bottom:10px;

}

.footer p{

    font-size:14px;

    color:#666;

    line-height:24px;

}

.footer-links{

    margin-top:15px;

}

.footer-links a{

    display:block;

    color:#444;

    margin-bottom:10px;

    font-size:14px;

}

.footer-social{

    display:flex;

    gap:12px;

    margin-top:15px;

}

.footer-social a{

    width:40px;

    height:40px;

    border-radius:50%;

    background:#f3f3f3;

    display:flex;

    align-items:center;

    justify-content:center;

    color:var(--primary);

    font-size:18px;

}

/* =====================================================
BOTTOM NAVIGATION
===================================================== */

.bottom-nav{

    position:fixed;

    left:0;

    bottom:0;

    width:100%;

    background:#fff;

    display:flex;

    justify-content:space-around;

    align-items:center;

    height:65px;

    box-shadow:0 -3px 10px rgba(0,0,0,.08);

    z-index:999;

}

.bottom-nav a{

    text-align:center;

    color:#555;

    font-size:12px;

}

.bottom-nav i{

    display:block;

    font-size:22px;

    margin-bottom:4px;

}

.bottom-nav .active{

  color:var(--primary);

}

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

@media(min-width:768px){

    .category-grid{

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

    }

}

@media(min-width:992px){

    .mobile-header{

        max-width:600px;

        margin:auto;

    }

}