<?php $__env->startSection('content'); ?>
<?php $lang = app()->getLocale(); ?>
<section class="relative overflow-hidden" style="background: linear-gradient(130deg, #05202C 0%, #0B5E6B 55%, #0D7B8A 100%); padding: 4rem 0 5rem;">
<div class="absolute inset-0 pointer-events-none opacity-5" style="background-image: radial-gradient(circle, white 1px, transparent 1px); background-size: 40px 40px;"></div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative">
<a href="<?php echo e(lang_url('/products')); ?>" class="inline-flex items-center gap-1.5 text-xs font-semibold mb-5 transition-opacity hover:opacity-70" style="color:rgba(255,255,255,0.60);">
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M10 19l-7-7m0 0l7-7m-7 7h18"/></svg>
<?php echo e(__('site.nav_products')); ?>
</a>
<h1 class="text-4xl sm:text-5xl font-black text-white mb-4" style="letter-spacing:-0.04em;"><?php echo e($category->getTranslation('name',$lang) ?: $category->name); ?></h1>
<p class="text-lg max-w-2xl" style="color:rgba(255,255,255,0.65);"><?php echo e($category->getTranslation('description',$lang) ?: $category->description); ?></p>
</div>
<div class="absolute bottom-0 left-0 right-0 overflow-hidden">
<svg viewBox="0 0 1440 50" preserveAspectRatio="none" class="w-full h-[36px]" fill="white"><path d="M0,50 C360,0 1080,0 1440,50 L1440,50 L0,50 Z"/></svg>
</div>
</section>
<div style="background:rgba(244,169,34,0.12);border-bottom:1px solid rgba(244,169,34,0.25);">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 flex items-center gap-3">
<svg class="w-4 h-4 flex-shrink-0" style="color:var(--accent)" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
<p class="text-sm font-medium" style="color:var(--dark);">Informational catalog — no prices shown. <a href="<?php echo e(lang_url('/contact')); ?>" class="underline" style="color:var(--primary);">Enquire</a> for pricing and availability.</p>
</div>
</div>
<section class="py-16" style="background:white;">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($products->count()): ?>
<div class="mb-6 flex items-center justify-between">
<p class="text-sm" style="color:var(--text-muted);">Showing <?php echo e($products->total()); ?> products</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-4 mb-10">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="card p-4 flex flex-col items-center text-center group reveal">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->image): ?>
<img src="<?php echo e(asset('storage/'.$product->image)); ?>" alt="<?php echo e($product->getTranslation('name',$lang)); ?>" class="w-full h-28 object-contain mb-3 rounded-xl">
<?php else: ?>
<div class="w-full h-28 rounded-xl flex items-center justify-center mb-3 text-4xl" style="background:var(--primary-light);">💊</div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<p class="font-semibold text-xs leading-snug mb-1 group-hover:text-primary transition-colors" style="color:var(--dark);"><?php echo e($product->getTranslation('name',$lang) ?: $product->name); ?></p>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->manufacturer): ?><p class="text-[10px]" style="color:var(--text-muted);"><?php echo e($product->manufacturer); ?></p><?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->medicine_form): ?><span class="mt-2 text-[10px] font-semibold px-2 py-0.5 rounded-full" style="background:var(--primary-light);color:var(--primary);"><?php echo e(ucfirst($product->medicine_form)); ?></span><?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<?php echo e($products->links()); ?>
<?php else: ?>
<div class="text-center py-24">
<p class="text-5xl mb-4">💊</p>
<p class="font-bold text-lg" style="color:var(--dark);"><?php echo e(__('site.products_no_results')); ?></p>
<p class="text-sm mt-2 mb-6" style="color:var(--text-muted);"><?php echo e(__('site.products_contact_cta')); ?></p>
<a href="<?php echo e(lang_url('/contact')); ?>" class="btn-primary"><?php echo e(__('site.btn_send_enquiry')); ?></a>
</div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
</section>
<section class="py-14" style="background:var(--bg);border-top:1px solid var(--border);">
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2 class="text-2xl font-black mb-3" style="color:var(--dark);letter-spacing:-0.03em;">Need a Specific Product?</h2>
<p class="mb-6" style="color:var(--text-muted);">Send us your product list and we'll check availability and pricing for you.</p>
<div class="flex flex-wrap gap-3 justify-center">
<a href="<?php echo e(lang_url('/contact')); ?>" class="btn-primary"><?php echo e(__('site.products_enquire')); ?></a>
<a href="<?php echo e(whatsapp_url()); ?>" target="_blank" class="btn-outline"><?php echo e(__('site.btn_whatsapp')); ?></a>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<script>
const obs = new IntersectionObserver((entries) => { entries.forEach(e => { if(e.isIntersecting){e.target.classList.add('visible');obs.unobserve(e.target);} }); }, {threshold:0.05});
document.querySelectorAll('.reveal').forEach(el => obs.observe(el));
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/stpnp/chandrasons.com/resources/views/pages/products/category.blade.php ENDPATH**/ ?>