<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><?php echo e($shop->name); ?> - Bali Arcade</title>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
    <link
        href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap"
        rel="stylesheet" />

    <style>
        :root {
            --gold: #152D6C;
            --gold-light: #1e3a8a;
            --gold-pale: #e0e7ff;
            --charcoal: #1c1c1c;
            --ink: #2d2d2d;
            --slate: #5a5a5a;
            --mist: #9a9a9a;
            --border: #e5dfd5;
            --border-soft: #eeece8;
            --ivory: #faf9f7;
            --warm-white: #fffef9;
            --radius-md: 12px;
            --radius-lg: 20px;
            --shadow-sm: 0 2px 12px rgba(28, 28, 28, .06);
            --shadow-md: 0 8px 32px rgba(28, 28, 28, .10);
            --shadow-lg: 0 20px 60px rgba(28, 28, 28, .13);
            --font-display: 'Cormorant Garamond', Georgia, serif;
            --font-ui: 'Jost', sans-serif;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-ui);
            background: var(--ivory);
            color: var(--ink);
        }

        /* ── HEADER HERO ── */
        .shop-hero {
            background: linear-gradient(135deg, rgba(21, 45, 108, .1) 0%, rgba(30, 58, 138, .08) 100%), var(--warm-white);
            padding: 48px 0;
            border-bottom: 1px solid var(--border);
        }

        .shop-header-content {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        @media (max-width: 768px) {
            .shop-header-content {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
        }

        .shop-logo-wrap {
            flex-shrink: 0;
        }

        .shop-logo {
            width: 120px;
            height: 120px;
            border-radius: var(--radius-lg);
            object-fit: cover;
            border: 2px solid var(--border);
            box-shadow: var(--shadow-md);
        }

        @media (max-width: 768px) {
            .shop-logo {
                width: 100px;
                height: 100px;
            }
        }

        .shop-info h1 {
            font-family: var(--font-display);
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 600;
            color: var(--charcoal);
            margin-bottom: 8px;
            letter-spacing: .01em;
        }

        .shop-info p {
            font-size: 1rem;
            color: var(--slate);
            margin: 0;
            line-height: 1.6;
        }

        .shop-stats {
            display: flex;
            gap: 24px;
            margin-top: 16px;
            flex-wrap: wrap;
        }

        @media (max-width: 768px) {
            .shop-stats {
                justify-content: center;
            }
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stat-item strong {
            font-size: .875rem;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        /* ── PRODUCT GRID ── */
        .products-section {
            padding: 60px 0;
        }

        @media (max-width: 575px) {
            .products-section {
                padding: 40px 0;
            }
        }

        .section-header {
            margin-bottom: 40px;
        }

        .section-label {
            font-size: .68rem;
            font-weight: 600;
            letter-spacing: .26em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-label::after {
            content: '';
            flex: 1;
            max-width: 32px;
            height: 1px;
            background: var(--gold-pale);
        }

        .section-title {
            font-family: var(--font-display);
            font-size: clamp(1.8rem, 3vw, 2.4rem);
            font-weight: 600;
            color: var(--charcoal);
            margin: 0;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 24px;
        }

        @media (max-width: 991px) {
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
                gap: 16px;
            }
        }

        @media (max-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 12px;
            }
        }

        /* ── PRODUCT CARD ── */
        .product-card {
            background: var(--warm-white);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: transform .3s ease, box-shadow .3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .product-image {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: var(--ivory);
        }

        @media (max-width: 768px) {
            .product-image {
                height: 160px;
            }
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .4s ease;
        }

        .product-card:hover .product-image img {
            transform: scale(1.08);
        }

        .product-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            font-size: .65rem;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            padding: 6px 12px;
            border-radius: 4px;
            background: rgba(21, 45, 108, .9);
            color: #fff;
            z-index: 1;
        }

        .product-badge.offer {
            background: #f0e6d3;
            color: var(--gold);
        }

        .product-info {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-title {
            font-size: .95rem;
            font-weight: 600;
            color: var(--charcoal);
            margin-bottom: 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-price {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--gold);
            margin-bottom: 12px;
            letter-spacing: .02em;
        }

        .product-price-old {
            font-size: .85rem;
            color: var(--mist);
            text-decoration: line-through;
            margin-left: 8px;
        }

        .product-actions {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }

        .btn-cart {
            flex: 1;
            padding: 10px;
            background: var(--charcoal);
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: .8rem;
            font-weight: 600;
            letter-spacing: .06em;
            cursor: pointer;
            transition: background .2s;
        }

        .btn-cart:hover {
            background: var(--gold);
        }

        .btn-view {
            flex: 1;
            padding: 10px;
            background: transparent;
            color: var(--gold);
            border: 1px solid var(--gold);
            border-radius: 6px;
            font-size: .8rem;
            font-weight: 600;
            letter-spacing: .06em;
            cursor: pointer;
            transition: all .2s;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-view:hover {
            background: var(--gold);
            color: #fff;
        }

        /* ── EMPTY STATE ── */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
        }

        .empty-state-icon {
            font-size: 4rem;
            color: var(--mist);
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            color: var(--ink);
            margin-bottom: 8px;
        }

        .empty-state p {
            color: var(--mist);
            margin-bottom: 24px;
        }

        /* ── BACK BUTTON ── */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            background: var(--gold);
            color: #fff;
            border: none;
            border-radius: 6px;
            text-decoration: none;
            font-size: .85rem;
            font-weight: 600;
            letter-spacing: .06em;
            text-transform: uppercase;
            cursor: pointer;
            transition: background .2s;
        }

        .back-button:hover {
            background: var(--gold-light);
        }
    </style>
</head>

<body>
    <?php if (isset($component)) { $__componentOriginal5fb469b9da69dc30a4591744f57abd9f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5fb469b9da69dc30a4591744f57abd9f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.navbar','data' => ['cartCount' => $cartCount,'navShops' => $navShops]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.navbar'); ?>
<?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(['cart-count' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($cartCount),'nav-shops' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($navShops)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5fb469b9da69dc30a4591744f57abd9f)): ?>
<?php $attributes = $__attributesOriginal5fb469b9da69dc30a4591744f57abd9f; ?>
<?php unset($__attributesOriginal5fb469b9da69dc30a4591744f57abd9f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5fb469b9da69dc30a4591744f57abd9f)): ?>
<?php $component = $__componentOriginal5fb469b9da69dc30a4591744f57abd9f; ?>
<?php unset($__componentOriginal5fb469b9da69dc30a4591744f57abd9f); ?>
<?php endif; ?>

    
    <div class="shop-hero">
        <div class="container">
            <div class="shop-header-content">
                <?php
                    $shopLogo = $shop->logo
                        ? (\Illuminate\Support\Str::startsWith($shop->logo, ['http://', 'https://'])
                            ? $shop->logo
                            : asset('storage/' . $shop->logo))
                        : 'https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=200&q=80';
                ?>

                <div class="shop-logo-wrap">
                    <img src="<?php echo e($shopLogo); ?>" alt="<?php echo e($shop->name); ?>" class="shop-logo">
                </div>

                <div class="shop-info">
                    <h1><?php echo e($shop->name); ?></h1>
                    <p><?php echo e(data_get($shop->contact, 'address', 'Quality products from trusted seller')); ?></p>

                    <div class="shop-stats">
                        <div class="stat-item">
                            <i class="bi bi-box-seam" style="color: var(--gold); font-size: 1.2rem;"></i>
                            <strong><?php echo e($products->count()); ?> Products</strong>
                        </div>
                        <div class="stat-item">
                            <i class="bi bi-lightning-fill" style="color: var(--gold); font-size: 1.2rem;"></i>
                            <strong>Fast Delivery</strong>
                        </div>
                    </div>

                    <div style="margin-top: 20px;">
                        <a href="<?php echo e(route('storefront.home')); ?>" class="back-button">
                            <i class="bi bi-arrow-left"></i> Back to Shops
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    
    <main class="products-section">
        <div class="container">
            <?php if($products->count() > 0): ?>
                <div class="section-header">
                    <p class="section-label">Browse</p>
                    <h2 class="section-title">Available <em
                            style="font-style: italic; color: var(--gold);">Products</em></h2>
                </div>

                <div class="products-grid">
                    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $hasOffer =
                                !is_null($product->offer_price) &&
                                $product->offer_price < $product->price &&
                                (is_null($product->offer_expiry_date) || $product->offer_expiry_date->isFuture());

                            $featureImage = $product->feature_image
                                ? (\Illuminate\Support\Str::startsWith($product->feature_image, ['http://', 'https://'])
                                    ? $product->feature_image
                                    : asset('storage/' . $product->feature_image))
                                : null;

                            $galleryImage = optional($product->images->first())->image_path;
                            $galleryImageUrl = $galleryImage
                                ? (\Illuminate\Support\Str::startsWith($galleryImage, ['http://', 'https://'])
                                    ? $galleryImage
                                    : asset('storage/' . $galleryImage))
                                : null;

                            $productImage =
                                $featureImage ?:
                                $galleryImageUrl ?:
                                'https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=600&q=80';
                        ?>

                        <article class="product-card">
                            <div class="product-image">
                                <img src="<?php echo e($productImage); ?>" alt="<?php echo e($product->product_title); ?>" loading="lazy">
                                <?php if($hasOffer): ?>
                                    <span class="product-badge offer">Sale</span>
                                <?php endif; ?>
                            </div>

                            <div class="product-info">
                                <h3 class="product-title"><?php echo e($product->product_title); ?></h3>

                                <div class="product-price">
                                    <?php if($hasOffer): ?>
                                        <?php echo e(number_format((float) $product->offer_price, 0)); ?>৳
                                        <span
                                            class="product-price-old"><?php echo e(number_format((float) $product->price, 0)); ?>৳</span>
                                    <?php else: ?>
                                        <?php echo e(number_format((float) $product->price, 0)); ?>৳
                                    <?php endif; ?>
                                </div>

                                <div class="product-actions">
                                    <form method="POST" action="<?php echo e(route('storefront.cart.add', $product)); ?>"
                                        style="flex: 1;">
                                        <?php echo csrf_field(); ?>
                                        <button type="submit" class="btn-cart w-100" title="Add to cart">
                                            <i class="bi bi-cart-plus"></i> Add
                                        </button>
                                    </form>
                                    <a href="<?php echo e(route('storefront.products.show', $product)); ?>" class="btn-view"
                                        title="View details">
                                        <i class="bi bi-eye"></i> View
                                    </a>
                                </div>
                            </div>
                        </article>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            <?php else: ?>
                <div class="empty-state">
                    <div class="empty-state-icon">
                        <i class="bi bi-inbox"></i>
                    </div>
                    <h3>No Products Available</h3>
                    <p>This shop doesn't have any in-stock products at the moment.</p>
                    <a href="<?php echo e(route('storefront.home')); ?>" class="back-button">
                        <i class="bi bi-arrow-left"></i> Explore Other Shops
                    </a>
                </div>
            <?php endif; ?>
        </div>
    </main>

    <?php if (isset($component)) { $__componentOriginalbf18abedf5585b715c19d869055fa37a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalbf18abedf5585b715c19d869055fa37a = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.footer','data' => ['footerShops' => $footerShops,'siteStats' => $siteStats]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('frontend.footer'); ?>
<?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(['footer-shops' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($footerShops),'site-stats' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($siteStats)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalbf18abedf5585b715c19d869055fa37a)): ?>
<?php $attributes = $__attributesOriginalbf18abedf5585b715c19d869055fa37a; ?>
<?php unset($__attributesOriginalbf18abedf5585b715c19d869055fa37a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalbf18abedf5585b715c19d869055fa37a)): ?>
<?php $component = $__componentOriginalbf18abedf5585b715c19d869055fa37a; ?>
<?php unset($__componentOriginalbf18abedf5585b715c19d869055fa37a); ?>
<?php endif; ?>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>
<?php /**PATH C:\Users\Abdur Rahman\Desktop\faa\resources\views\frontend\shop.blade.php ENDPATH**/ ?>