@php // Self-derive theme tokens — this partial renders inside the CHILD theme's // @section scope, which does NOT inherit the base template's local @php // vars. Pull them from the passed $theme array (same fallbacks as the base) // so it works no matter which theme includes it. $theme = $theme ?? []; $settings = $settings ?? []; $brand = $brand ?? ($theme['brand'] ?? ($settings['brand_color'] ?? '#075E54')); $bg = $bg ?? ($theme['bg'] ?? '#FBFAF6'); $surface = $surface ?? ($theme['surface'] ?? '#FFFFFF'); $text = $text ?? ($theme['text'] ?? '#0B1F1C'); $muted = $muted ?? ($theme['muted'] ?? '#6B807C'); $border = $border ?? ($theme['border'] ?? '#E5DFD0'); $accent = $accent ?? ($theme['accent'] ?? $brand); $shopName = $shopName ?? ($workspace?->name ?: 'Store'); $hero = $hero ?? ($settings['hero_text'] ?? ''); @endphp

{!! $hero ?: 'Welcome to ' . e($shopName) . '.' !!}

{{ $settings['hero_sub'] ?? 'Hand-picked products. Order any item directly on WhatsApp — no checkout forms, no app installs.' }}

{{ __('Cash on delivery') }} {{ __('Free chat support') }} {{ __('Easy returns') }}
@if ($products->isEmpty())

{{ __('No products yet') }}

{{ __('The owner is still setting things up — please check back soon.') }}

@else
{{ $products->count() }} {{ \Illuminate\Support\Str::plural('product', $products->count()) }}
{{-- Filter sidebar --}} {{-- Product grid --}}
@foreach ($products as $p) @include('storefront._partials.card', ['p' => $p]) @endforeach
{{ __('Nothing matches those filters') }}
@if (!empty($hasMore))
@if (!empty($total))
Showing {{ $products->count() }} of {{ $total }} {{ __('products') }}
@endif
@endif
@endif