<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ config('app.name', 'Toko Online') }}</title>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!-- Font Awesome 6 (Free Icons) -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">

    @vite(['resources/css/app.css', 'resources/js/app.js'])

    <style>
        body {
            font-family: 'Inter', sans-serif;
        }

        /* ── HEADER ── */
        .page-header {
            background: #fff;
            border-bottom: 1px solid #ebebeb;
            padding: 20px 0;
        }

        .page-header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .page-header-inner h2,
        .page-header-inner .dash-header-title {
            font-family: 'Poppins', sans-serif !important;
            font-weight: 500;
        }

        /* ── FOOTER ── */
        .site-footer {
            background: #0a0a0a;
            color: #fff;
            margin-top: 80px;
        }

        .site-footer-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 64px 24px 48px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr;
            gap: 48px;
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 36px;
            }
        }

        /* ── FOOTER BRAND ── */
        .footer-brand-name {
            font-family: 'Poppins', sans-serif;
            font-size: 1.6rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            color: #fff;
            margin-bottom: 16px;
        }

        .footer-brand-name span {
            color: #d4a017;
        }

        .footer-brand-desc {
            font-size: 0.85rem;
            font-weight: 300;
            line-height: 1.8;
            color: #888;
            max-width: 260px;
        }

        /* ── FOOTER SECTIONS ── */
        .footer-section-label {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: #777;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #1e1e1e;
        }

        .footer-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .footer-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .footer-list-icon {
            width: 28px;
            font-size: 0.9rem;
            color: #d4a017;
            text-align: center;
        }

        .footer-list-content {
            flex: 1;
        }

        .footer-list-key {
            font-size: 0.65rem;
            font-weight: 500;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #d4a017;
            display: block;
            margin-bottom: 2px;
        }

        .footer-list-val {
            font-size: 0.85rem;
            font-weight: 300;
            color: #888;
            line-height: 1.5;
        }

        /* Tanpa label key untuk beberapa item */
        .footer-list-item.no-label {
            align-items: flex-start;
        }
        
        .footer-list-item.no-label .footer-list-content {
            padding-top: 0;
        }

        /* ── FOOTER BOTTOM ── */
        .footer-bottom {
            margin-top: 56px;
            padding-top: 24px;
            border-top: 1px solid #1a1a1a;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .footer-copyright {
            font-size: 0.7rem;
            font-weight: 300;
            letter-spacing: 0.06em;
            color: #555;
        }

        .footer-tagline {
            font-family: 'Poppins', sans-serif;
            font-size: 0.8rem;
            font-weight: 400;
            font-style: italic;
            color: #666;
        }
    </style>
</head>
<body class="antialiased" style="background:#f7f7f7; color:#1a1a1a; min-height:100vh; display:flex; flex-direction:column;">

    <div style="display:flex; flex-direction:column; min-height:100vh;">

        @include('layouts.navigation')

        @if (isset($header))
            <header class="page-header">
                <div class="page-header-inner">
                    {{ $header }}
                </div>
            </header>
        @endif

        <main style="flex:1;">
            {{ $slot }}
        </main>

        {{-- ── FOOTER DENGAN ICON ── --}}
        <footer class="site-footer">
            <div class="site-footer-inner">
                <div class="footer-grid">

                    {{-- Brand Section --}}
                    <div>
                        <div class="footer-brand-name">ELEVATE</div>
                        <p class="footer-brand-desc">
                            Destinasi belanja terbaik untuk kebutuhan Anda. 
                            Kualitas terjamin dengan pengiriman aman dan cepat ke seluruh Indonesia.
                        </p>
                    </div>

                    {{-- Kontak Section --}}
                    <div>
                        <div class="footer-section-label">
                            <i class="fas fa-phone-alt" style="margin-right: 8px; font-size: 0.7rem;"></i>
                            Hubungi Kami
                        </div>
                        <ul class="footer-list">
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-envelope"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Email</span>
                                    <span class="footer-list-val">ElevateStore@gmail.com</span>
                                </div>
                            </li>
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-phone-alt"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Telp</span>
                                    <span class="footer-list-val">+62 82-8975-8556</span>
                                </div>
                            </li>
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-map-marker-alt"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Lokasi</span>
                                    <span class="footer-list-val">Jakarta, Indonesia</span>
                                </div>
                            </li>
                        </ul>
                    </div>

                    {{-- Jam Operasional Section --}}
                    <div>
                        <div class="footer-section-label">
                            <i class="fas fa-clock" style="margin-right: 8px; font-size: 0.7rem;"></i>
                            Jam Operasional
                        </div>
                        <ul class="footer-list">
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-calendar-week"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Sen–Jum</span>
                                    <span class="footer-list-val">08:30 – 21:00</span>
                                </div>
                            </li>
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-calendar-weekend"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Sab–Min</span>
                                    <span class="footer-list-val">10:00 – 18:00</span>
                                </div>
                            </li>
                            <li class="footer-list-item">
                                <div class="footer-list-icon">
                                    <i class="fas fa-globe"></i>
                                </div>
                                <div class="footer-list-content">
                                    <span class="footer-list-key">Online</span>
                                    <span class="footer-list-val">24 / 7</span>
                                </div>
                            </li>
                        </ul>
                    </div>

                </div>

                <div class="footer-bottom">
                    <span class="footer-copyright">
                        <i class="far fa-copyright" style="margin-right: 4px;"></i>
                        {{ date('Y') }} Elevate Store. All rights reserved.
                    </span>
                    <span class="footer-tagline">
                        <i class="fas fa-check-circle" style="margin-right: 6px; color: #d4a017; font-size: 0.7rem;"></i>
                        Quality. Delivered.
                    </span>
                </div>
            </div>
        </footer>

    </div>

</body>
</html>