@php
$brandName = $storeConfig['brandName'] ?? 'Aangina';
$metaTitle = isset($pageTitle) && $pageTitle !== ''
? "{$pageTitle} | {$brandName}"
: "{$brandName} — {$storeConfig['tagline']}";
$metaDescription = $pageDescription
?? 'Authentic handwoven Jamdani, Muslin, Katan & Cotton sarees in Bangladesh. Cash on Delivery nationwide.';
$ogType = $ogType ?? 'website';
$ogImage = isset($ogImageUrl) ? url($ogImageUrl) : url('/images/sarees/hero-desktop-1.svg');
$themeTokens = $storeConfig['themeTokens'] ?? [];
@endphp
{{ $metaTitle }}
{{-- Browser theme-color meta tag reads current --brand-primary from storeConfig --}}
{{-- Automated Open Graph (og:) Meta Tags for Facebook, Messenger & WhatsApp Link Previews --}}
@if(!empty($currentSaree))
@endif
{{-- Google Fonts: Cormorant Garamond (600, 700) & Plus Jakarta Sans (400, 500, 600, 700) --}}
{{-- Dynamic :root CSS Token Injection from storeConfig (Powers instant Admin re-theming in Phase B) --}}
@if(!empty($themeTokens))
@endif
@vite(['resources/css/app.css', 'resources/js/app.js'])
@stack('head')
{{-- Accessibility Skip Link --}}
Skip to main content
{{-- 1. Optional Top Announcement Bar --}}
{{-- 2. Sticky Global Header (Supports MODE_A & MODE_B) --}}
{{-- 3. Mobile Left Slide-Out Navigation Drawer (82vw) --}}
{{-- 4. Main Page Content --}}
@yield('content')
{{-- 5. Global 4-Column Footer --}}
{{-- 6. Global Overlays Slot (Quick View Modal & Right Cart Drawer connected in Step 4) --}}
@if(view()->exists('components.product.quick-view-modal'))
@endif
@if(view()->exists('components.product.cart-drawer'))
@endif
{{-- 7. Brand-Harmonized Floating WhatsApp / Messenger Assist Widget --}}
{{-- 8. Global Toast Notification Banner --}}
@stack('scripts')