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

<div class="page">

    <div class="container p-0">

        <div class="mt-4 mb-3">
            <h3 class="bold"> Cart ( <span class="cart-length"> 5 </span> ) </h3>
        </div>

        <div class="row">

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

                <div class="cart-products-list mb-4">


                    <?php foreach (range(1, 3) as $i) { ?>

                        <div class="product-card-cart mb-3">

                            <div class="start">
                                <div class="w-120px h-120px border-radius-sm overflow-hidden">
                                    <div class="shimmer"></div>
                                </div>
                            </div>

                            <div class="center">

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

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

                                <div class="flex-start gap-1 mb-3">

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

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

                                </div>

                                <div class="flex-start gap-2">

                                    <div class="change-quantity-wrapper">

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

                                    </div><!-- change-quantity-wrapper -->

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

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

                                </div>

                            </div>

                            <div class="end flex-center align-items-start gap-2">

                                <div class="w-80px h-25px border-radius-xs overflow-hidden mb-2">
                                    <div class="shimmer"></div>
                                </div>
                                <div class="w-80px h-25px border-radius-xs overflow-hidden mb-2">
                                    <div class="shimmer"></div>
                                </div>

                            </div>
                        </div>
                    <?php } ?>

                    <?php foreach (range(1, 16) as $i) { ?>
                        <?php include 'shared-html/product-card-cart.php' ?>
                    <?php } ?>
                </div>

            </div>

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

                <div class="card">

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


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

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


                <div class="card mb-3">

                    <p class="lead font-medium  mb-1"> Total </p>

                    <p class="h4 font-medium color-primary mb-3"> 127.350 KWD </p>

                    <a href="product-checkout.php" class="btn btn-primary btn-block"> Checkout </a>

                </div>


                <div class="d-block">

                    <div class="flex-between mb-2">

                        <h6 class="mb-2 bold"> wishlist </h6>
                        <a href="#" class="color-primary font-medium lead"> See all </a>
                    </div>

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

                        <div class="swiper-container swiper-custom"
                            data-per-view="2.5"
                            data-per-view-md="2.5"
                            data-per-view-sm="1.5"
                            data-per-view-xs="1.5"
                            data-space-between="10">

                            <div class="swiper-wrapper">


                                <?php foreach (range(1, 3) as $inner_i) { ?>
                                    <div class="swiper-slide">
                                        <div class="product-card-square">

                                            <div class="top">

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

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

                                            <div class="bottom">

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

                                                <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                                    <div class="shimmer shimmer-gray"></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 shimmer-gray"></div>
                                                        </div>
                                                        <div class="w-100 h-10px border-radius-sm overflow-hidden mb-2">
                                                            <div class="shimmer shimmer-gray"></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 shimmer-gray"></div>
                                                        </div>
                                                    </div>
                                                </div>

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

                                        </div>
                                    </div>
                                <?php } ?>



                                <?php foreach (range(0, 20) as $inner_i) { ?>

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

                                <?php } ?>

                            </div>

                        </div>

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

                </div>


            </div>

        </div>

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

</div>

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





<script>
    $(document).ready(function() {
        $(document).on('click', '.icon-wishlist.liked', function() {
            $(this).parents('.col-md-3').remove();
        });
    });
</script>