<?php $__env->startSection('title', ($activeCategory->name ?? 'Shop All') . ' — Natural Skincare'); ?>

<?php $__env->startSection('content'); ?>

    <?php if (isset($component)) { $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.breadcrumb','data' => ['items' => array_filter([['label' => 'Shop', 'url' => route('shop')], $activeCategory ? ['label' => $activeCategory->name] : null])]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('breadcrumb'); ?>
<?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(['items' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(array_filter([['label' => 'Shop', 'url' => route('shop')], $activeCategory ? ['label' => $activeCategory->name] : null]))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $attributes = $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $component = $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>

    
    <section class="bg-cream-100 py-12 text-center lg:py-16">
        <div class="container-shop">
            <p class="eyebrow mb-2"><?php echo e(config('shop.tagline')); ?></p>
            <h1 class="font-serif text-3xl font-medium text-ink-900 sm:text-4xl"><?php echo e($activeCategory->name ?? 'Shop All Skincare'); ?></h1>
            <p class="mx-auto mt-3 max-w-xl text-sm leading-relaxed text-ink-500">
                <?php echo e($activeCategory->description ?? 'Small-batch skincare and haircare, made with farm-fresh ingredients and zero nasties.'); ?>

            </p>
        </div>
    </section>

    <section class="py-12 lg:py-16">
        <div class="container-shop grid gap-10 lg:grid-cols-[250px_1fr]">

            
            <aside class="hidden lg:block" aria-label="Filters">
                <div class="sticky top-28 space-y-8">
                    <!-- Search input -->
                    <div>
                        <h2 class="mb-3 border-b border-cream-200 pb-3 text-xs font-semibold tracking-[0.2em] uppercase">Search Catalogue</h2>
                        <form action="<?php echo e(route('shop', $activeCategory->slug ?? null)); ?>" method="GET" class="flex gap-2">
                            <input type="text" name="search" value="<?php echo e($search); ?>" placeholder="Search products..." class="w-full border border-sand-300 px-3 py-2 text-xs focus:border-moss-600 focus:outline-none">
                            <button type="submit" class="btn-primary !px-3 !py-2 !text-xs">Go</button>
                        </form>
                    </div>

                    <div>
                        <h2 class="mb-4 border-b border-cream-200 pb-3 text-xs font-semibold tracking-[0.2em] uppercase">Categories</h2>
                        <ul class="space-y-2.5 text-sm text-ink-700">
                            <li>
                                <a href="<?php echo e(route('shop')); ?>" class="flex items-center justify-between transition-colors hover:text-moss-600 <?php echo e(!$activeCategory ? 'font-semibold text-moss-700' : ''); ?>">
                                    All Products
                                </a>
                            </li>
                            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li>
                                    <a href="<?php echo e(route('shop', $category->slug)); ?>" class="flex items-center justify-between transition-colors hover:text-moss-600 <?php echo e(($activeCategory->slug ?? null) === $category->slug ? 'font-semibold text-moss-700' : ''); ?>">
                                        <?php echo e($category->name); ?>

                                    </a>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                </div>
            </aside>

            
            <div>
                <div class="mb-8 flex flex-wrap items-center justify-between gap-4 border-b border-cream-200 pb-4">
                    <p class="text-sm text-ink-500">Showing <span class="font-semibold text-ink-900"><?php echo e($products->count()); ?></span> products</p>
                    
                    <form action="<?php echo e(route('shop', $activeCategory->slug ?? null)); ?>" method="GET" class="flex items-center gap-3">
                        <?php if($search): ?>
                            <input type="hidden" name="search" value="<?php echo e($search); ?>">
                        <?php endif; ?>
                        <label for="sort" class="hidden text-xs tracking-wider text-ink-500 uppercase sm:block">Sort by</label>
                        <select name="sort" id="sort" onchange="this.form.submit()" class="cursor-pointer border border-sand-300 bg-white px-3 py-2 text-sm focus:border-moss-600 focus:ring-1 focus:ring-moss-600 focus:outline-none">
                            <option value="newest" <?php echo e($sort === 'newest' ? 'selected' : ''); ?>>Newest Arrivals</option>
                            <option value="price_low" <?php echo e($sort === 'price_low' ? 'selected' : ''); ?>>Price: Low to High</option>
                            <option value="price_high" <?php echo e($sort === 'price_high' ? 'selected' : ''); ?>>Price: High to Low</option>
                            <option value="rating" <?php echo e($sort === 'rating' ? 'selected' : ''); ?>>Top Rated</option>
                        </select>
                    </form>
                </div>

                <?php if($products->isEmpty()): ?>
                    <div class="py-16 text-center">
                        <p class="font-serif text-xl text-ink-900">No products found matching your search</p>
                        <p class="mt-2 text-sm text-ink-500">Try clearing filters or searching for something else.</p>
                        <a href="<?php echo e(route('shop')); ?>" class="btn-outline mt-6">View All Products</a>
                    </div>
                <?php else: ?>
                    <div class="grid grid-cols-2 gap-x-5 gap-y-10 md:grid-cols-3">
                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?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]] + (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)]); ?>
<?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; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </section>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/koushikkona/Documents/Projects/divne/resources/views/pages/shop.blade.php ENDPATH**/ ?>