<?php include 'header.php'; ?>
<?php include '_top-header.php'; ?>

<div class="page">

    <div class="shimmer-wrapper mt-5">
        <div class="container">


            <div class="w-100 h-380px rounded overflow-hidden mb-3">
                <div class="shimmer shimmer-gray border-radius-lg"></div>
            </div>


            <div class="card mb-3">

                <div class="flex-between flex-wrap row-gap-3">
                    
                    <?php foreach (range(1, 8) as $i) { ?>
                        <div class="h-120px aspect-ratio-1-1 rounded overflow-hidden">
                            <div class="shimmer shimmer-gray border-radius-lg"></div>
                        </div>
                    <?php } ?>

                </div>

            </div>


            <div class="card">

                <div class="flex-between flex-wrap row-gap-3">

                    <?php foreach (range(1, 6) as $i) { ?>
                        <div class="h-170px aspect-ratio-1-1 rounded overflow-hidden">
                            <div class="shimmer shimmer-gray border-radius-lg"></div>
                        </div>
                    <?php } ?>

                </div>

            </div>




        </div>

    </div>
</div>

<div class="container p-0 mt-5">

    <div class="shop-layout">

        <div class="d-block mb-4">

            <div class="swiper-slider-wrapper shopping-swiper">

                <div class="swiper-container swiper-custom"
                    data-per-view="1"
                    data-per-view-md="1"
                    data-per-view-sm="1"
                    data-per-view-xs="1"
                    data-space-between="0"
                    data-next-button="shopping-button-next"
                    data-prev-button="shopping-button-prev"
                    data-pagination="shopping-pagination"
                    data-pagination-type="bullets">

                    <div class="swiper-wrapper">

                        <div class="swiper-slide">
                            <a href="card-list.php">
                                <div class="w-100 h-380px rounded overflow-hidden">
                                    <div class="shimmer shimmer-gray"></div>
                                </div>
                            </a>
                        </div>

                        <?php foreach (range(0, 4) as $i) { ?>
                            <div class="swiper-slide">
                                <a href="card-list.php">
                                    <img src="assets/img/banners/06.png" class="w-100 banner">
                                </a>
                            </div>
                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

                <div class="swiper-buttons-wrapper">

                    <img src="assets/img/slider-shape.svg" class="slider-shape">

                    <div class="swiper-button-prev shopping-button-prev">
                        <i class="icon icon-arrow-rhombus-left"></i>
                    </div>

                    <div class="swiper-button-next shopping-button-next">
                        <i class="icon icon-arrow-rhombus-right"></i>
                    </div>

                </div> <!-- swiper-buttons-wrapper -->

                <div class="pagination-wrapper">
                    <div class="swiper-pagination" id="shopping-pagination"></div>
                </div>

            </div> <!-- swiper-slider-wrapper -->

        </div>

        <div class="d-block card mb-4">

            <div class="flex-between mb-3">
                <h5> Categories </h5>
                <a href="product-list.php" class="color-primary"> See all </a>
            </div>

            <div class="swiper-slider-wrapper arrows-sides pagination-bottom">

                <div class="swiper-container swiper-custom"
                    data-per-view="9"
                    data-per-view-md="6"
                    data-per-view-sm="4"
                    data-per-view-xs="2"
                    data-space-between="20"
                    data-next-button="categories-button-next"
                    data-prev-button="categories-button-prev"
                    data-pagination="categories-pagination"
                    data-pagination-type="progressbar">

                    <div class="swiper-wrapper">

                        <?php foreach (range(0, 5) as $i) { ?>

                            <div class="swiper-slide">
                                <div class="category-card-square flex-center flex-column p-0">
                                    <div class="w-105px h-105px border-radius-lg overflow-hidden mb-2">
                                        <div class="shimmer"></div>
                                    </div>
                                    <div class="w-100 h-10px border-radius-sm overflow-hidden">
                                        <div class="shimmer"></div>
                                    </div>
                                </div>
                            </div>

                        <?php } ?>

                        <?php foreach ($categoriesList as $index => $item) { ?>

                            <div class="swiper-slide">
                                <?php include 'shared-html/category-card.php' ?>
                            </div>

                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

                <div class="swiper-button-prev categories-button-prev">
                    <i class="icon icon-arrow-circle-left"></i>
                </div>

                <div class="swiper-button-next categories-button-next">
                    <i class="icon icon-arrow-circle-right"></i>
                </div>

                <div class="pagination-wrapper">
                    <div class="swiper-pagination" id="categories-pagination"></div>
                </div>

            </div> <!-- swiper-slider-wrapper -->

        </div>

        <div class="d-block card mb-4">

            <div class="flex-between mb-3">
                <h5> Top Products </h5>
                <a href="product-list.php" class="color-primary"> See all </a>
            </div>


            <div class="swiper-slider-wrapper arrows-sides pagination-bottom">

                <div class="swiper-container swiper-custom"
                    data-per-view="5"
                    data-per-view-md="4"
                    data-per-view-sm="3"
                    data-per-view-xs="2"
                    data-space-between="10"
                    data-next-button="products-button-next"
                    data-prev-button="products-button-prev"
                    data-pagination="products-pagination"
                    data-pagination-type="progressbar">

                    <div class="swiper-wrapper">


                        <?php foreach (range(0, 2) as $i) { ?>

                            <div class="swiper-slide">

                                <div class="product-card-square">

                                    <div class="top">

                                        <div class="w-100 h-200px border-radius-sm overflow-hidden mb-1">
                                            <div class="shimmer"></div>
                                        </div>

                                    </div><!-- top -->

                                    <div class="bottom">

                                        <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                            <div class="shimmer"></div>
                                        </div>

                                        <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                            <div class="shimmer"></div>
                                        </div>

                                        <div class="flex-between align-items-end">
                                            <div class="d-block w-50">
                                                <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                                    <div class="shimmer"></div>
                                                </div>
                                                <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                                    <div class="shimmer"></div>
                                                </div>
                                            </div>
                                            <div class="d-flex align-items-center justify-content-end w-25">

                                                <div class="w-30px h-30px border-radius-sm overflow-hidden mb-2">
                                                    <div class="shimmer"></div>
                                                </div>
                                            </div>
                                        </div>

                                    </div><!-- bottom -->

                                </div><!-- product-card-square -->

                            </div>

                        <?php } ?>


                        <?php foreach ($categoriesList as $index => $item) { ?>

                            <div class="swiper-slide">
                                <?php include 'shared-html/product-card-square.php' ?>
                            </div>

                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

                <div class="swiper-button-prev" id="products-button-prev">
                    <i class="icon icon-arrow-circle-left"></i>
                </div>

                <div class="swiper-button-next" id="products-button-next">
                    <i class="icon icon-arrow-circle-right"></i>
                </div>

                <div class="pagination-wrapper">
                    <div class="swiper-pagination" id="products-pagination"></div>
                </div>

            </div> <!-- swiper-slider-wrapper -->

        </div>

        <div class="d-block card mb-4">

            <div class="flex-between mb-3">
                <h5> Stores </h5>
                <a href="product-list.php" class="color-primary"> See all </a>
            </div>

            <div class="swiper-slider-wrapper arrows-sides pagination-bottom">

                <div class="swiper-container swiper-custom"
                    data-per-view="8"
                    data-per-view-md="5"
                    data-per-view-sm="4"
                    data-per-view-xs="2"
                    data-space-between="10"
                    data-next-button="stores-button-next"
                    data-prev-button="stores-button-prev"
                    data-pagination="stores-pagination"
                    data-pagination-type="progressbar">

                    <div class="swiper-wrapper">

                        <?php foreach ($storesList as $index => $item) { ?>

                            <div class="swiper-slide">
                                <?php include 'shared-html/store-card-square.php' ?>
                            </div>

                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

                <div class="swiper-button-prev" id="stores-button-prev">
                    <i class="icon icon-arrow-circle-left"></i>
                </div>

                <div class="swiper-button-next" id="stores-button-next">
                    <i class="icon icon-arrow-circle-right"></i>
                </div>

                <div class="pagination-wrapper">
                    <div class="swiper-pagination" id="stores-pagination"></div>
                </div>

            </div> <!-- swiper-slider-wrapper -->

        </div>

        <div class="d-block card mb-4">

            <h2 class="text-center p-2 font-medium text-capitalize mb-3"> Mega Offers </h2>

            <div class="row">
                <?php foreach (range(0, 7) as $i) { ?>
                    <div class="col-lg-3 col-6 mb-4">
                        <?php include 'shared-html/offer-card-square.php' ?>
                    </div>
                <?php } ?>
            </div>
        </div>

        <div class="d-block mb-4">
            <a href="product-list.php">
                <img src="assets/img/banners/01.png" class="w-100">
            </a>
        </div>

        <div class="d-block mb-4">
            <a href="product-list.php">
                <img src="assets/img/banners/02.png" class="w-100">
            </a>
        </div>

        <div class="d-block mb-4">
            <a href="product-list.php">
                <img src="assets/img/banners/03.png" class="w-100">
            </a>
        </div>

        <div class="d-block mb-4">
            <a href="product-list.php">
                <img src="assets/img/banners/04.png" class="w-100">
            </a>
        </div>

        <div class="d-block card mb-4">

            <div class="flex-between mb-3">
                <h5> Order again </h5>
                <a href="product-list.php" class="color-primary"> See all </a>
            </div>


            <div class="swiper-slider-wrapper pagination-bottom">

                <div class="swiper-container swiper-custom"
                    data-per-view="4"
                    data-per-view-md="3"
                    data-per-view-sm="2"
                    data-per-view-xs="1"
                    data-space-between="10"
                    data-next-button="order-again-button-next"
                    data-prev-button="order-again-button-prev"
                    data-pagination="order-again-pagination"
                    data-pagination-type="progressbar">

                    <div class="swiper-wrapper">

                        <?php foreach (range(0, 7) as $i) { ?>

                            <div class="swiper-slide">
                                <?php include 'shared-html/product-card-wide-2.php' ?>
                            </div>

                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

            </div> <!-- swiper-slider-wrapper -->

        </div>

        <div class="d-block bg-gradient-1 p-3 base-border-radius mb-4">

            <div class="flex-between mb-3">
                <h5 class="color-white"> Only for you </h5>
            </div>

            <div class="swiper-slider-wrapper only-for-you-bottom">

                <div class="swiper-container swiper-custom"
                    data-per-view="4"
                    data-per-view-md="3"
                    data-per-view-sm="2"
                    data-per-view-xs="1"
                    data-space-between="10"
                    data-next-button="only-for-you-button-next"
                    data-prev-button="only-for-you-button-prev"
                    data-pagination="only-for-you-pagination"
                    data-pagination-type="progressbar">

                    <div class="swiper-wrapper">

                        <?php foreach (range(0, 7) as $i) { ?>

                            <div class="swiper-slide">
                                <?php include 'shared-html/product-card-wide-3.php' ?>
                            </div>

                        <?php } ?>

                    </div>

                </div> <!-- swiper-container -->

            </div> <!-- swiper-slider-wrapper -->

        </div> <!-- d-block -->

        <div class="d-block mb-4">

            <div class="card">

                <div class="row d-flex justify-content-between align-items-center">

                    <div class="col-lg-6 mb-3 mb-lg-0">
                        <img src="assets/img/banner-ads-banner.png" class="w-100">
                    </div>

                    <div class="col-lg-6">

                        <div class="row">

                            <div class="col-md-3 col-6 mb-3 mb-lg-0">
                                <a href="#" class="card base-border p-2 text-center">
                                    <img src="assets/img/banner-ads-item-1.png" class="w-100 h-115px contain">
                                    <p class="m-0"> Category name</p>
                                </a>
                            </div>

                            <div class="col-md-3 col-6 mb-3 mb-lg-0">
                                <a href="#" class="card base-border p-2 text-center">
                                    <img src="assets/img/banner-ads-item-2.png" class="w-100 h-115px contain">
                                    <p class="m-0"> Category name</p>
                                </a>
                            </div>

                            <div class="col-md-3 col-6 mb-3 mb-lg-0">
                                <a href="#" class="card base-border p-2 text-center">
                                    <img src="assets/img/banner-ads-item-3.png" class="w-100 h-115px contain">
                                    <p class="m-0"> Category name</p>
                                </a>
                            </div>

                            <div class="col-md-3 col-6 mb-3 mb-lg-0">
                                <a href="#" class="card base-border p-2 text-center">
                                    <img src="assets/img/banner-ads-item-4.png" class="w-100 h-115px contain">
                                    <p class="m-0"> Category name</p>
                                </a>
                            </div>

                        </div> <!-- row -->

                    </div> <!-- col-lg-6 -->

                </div> <!-- row -->

            </div> <!-- card -->

        </div> <!-- d-block -->

    </div> <!-- shop-layout -->

</div> <!-- container -->

</div> <!-- page -->

<?php include 'footer.php'; ?>