<?php if($products->count() > 0): ?>
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="products-grid">
        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="relative group">
                <?php if (isset($component)) { $__componentOriginal3fd2897c1d6a149cdb97b41db9ff827a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3fd2897c1d6a149cdb97b41db9ff827a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.product-card','data' => ['product' => $product,'cartQuantity' => $cartStatus[$product->id]['quantity'] ?? 0]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('product-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['product' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($product),'cartQuantity' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($cartStatus[$product->id]['quantity'] ?? 0)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3fd2897c1d6a149cdb97b41db9ff827a)): ?>
<?php $attributes = $__attributesOriginal3fd2897c1d6a149cdb97b41db9ff827a; ?>
<?php unset($__attributesOriginal3fd2897c1d6a149cdb97b41db9ff827a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3fd2897c1d6a149cdb97b41db9ff827a)): ?>
<?php $component = $__componentOriginal3fd2897c1d6a149cdb97b41db9ff827a; ?>
<?php unset($__componentOriginal3fd2897c1d6a149cdb97b41db9ff827a); ?>
<?php endif; ?>
                <button onclick="openQuickView(<?php echo e($product->id); ?>)" class="absolute top-3 right-3 z-30 bg-[#7d6a52] text-white px-4 py-2 rounded-full text-sm hover:bg-[#9d8566] opacity-0 group-hover:opacity-100 transition-all shadow-lg font-medium">
                    Quick View
                </button>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
    
    <!-- Pagination -->
    <div class="mt-8" id="pagination-container">
        <?php echo e($products->links()); ?>

    </div>
<?php else: ?>
    <div class="bg-white p-8 rounded-lg shadow-md text-center">
        <p class="text-[#645443] text-lg">No products found.</p>
        <p class="text-[#9d8566] mt-2">Try adjusting your filters.</p>
    </div>
<?php endif; ?>






<?php /**PATH C:\xampp\htdocs\catalogue-builder\resources\views/products/partials/product-grid.blade.php ENDPATH**/ ?>