<div>
      <!-- Success Message -->
      <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('cart_success')): ?>
      <div class="alert-success-banner" id="successBanner">
          <div class="container">
              <div class="alert-content">
                  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                      <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
                      <polyline points="22 4 12 14.01 9 11.01"></polyline>
                  </svg>
                  <span><?php echo e(session('cart_success')); ?></span>
              </div>
              <button onclick="document.getElementById('successBanner').remove()" class="alert-close">
                  <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                      <line x1="18" y1="6" x2="6" y2="18"></line>
                      <line x1="6" y1="6" x2="18" y2="18"></line>
                  </svg>
              </button>
          </div>
      </div>
      <script>
          setTimeout(function() {
              const banner = document.getElementById('successBanner');
              if (banner) {
                  banner.style.opacity = '0';
                  setTimeout(() => banner.remove(), 300);
              }
          }, 5000);
      </script>
      <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

      <!-- Page Title -->
      <section class="s-page-title" style="background: linear-gradient(135deg, #2E3191 0%, #1B75BB 100%); padding: 60px 0;">
         <div class="container">
               <h2 class="page-title text-white font-sora">Products</h2>
         </div>
      </section>
   <!-- /Page Title -->
    <!-- Shop -->
    <section class="flat-spacing">
        <div class="container">
            <div class="row">
                <!-- Sidebar -->
                <div class="col-xl-3 col-lg-4">
                    <div class="canvas-sidebar sidebar-filter canvas-filter left">
                        <div class="canvas-wrapper">
                            <div class="canvas-header d-xl-none">
                                <span class="title h4 fw-medium text-primary">Filter</span>
                                <span class="icon-close link icon-close-popup close-filter"></span>
                            </div>
                            <div class="canvas-body p-xl-0">
                                <!-- Product Categories -->
                                <div class="widget-facet">
                                    <div class="facet-title" data-bs-target="#category" role="button"
                                        data-bs-toggle="collapse" aria-expanded="true" aria-controls="category">
                                        <h6>Product Categories</h6>
                                        <span class="icon icon-caret-down"></span>
                                    </div>
                                    <div id="category" class="collapse show">
                                        <ul class="collapse-body filter-group-check current-scrollbar">
                                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $this->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li class="list-item">
                                                <input type="checkbox" 
                                                    wire:click="toggleCategory(<?php echo e($category->id); ?>)"
                                                    <?php echo e(in_array($category->id, $selectedCategories) ? 'checked' : ''); ?>

                                                    class="tf-check style-2"
                                                    id="cat-<?php echo e($category->id); ?>">
                                                <label for="cat-<?php echo e($category->id); ?>" class="label">
                                                    <span class="cate-text"><?php echo e($category->name); ?></span>
                                                    <span class="count">(<?php echo e($category->products_count); ?>)</span>
                                                </label>
                                            </li>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        </ul>
                                    </div>
                                </div>
                                
                                <!-- Product Catalogs -->
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($this->catalogs->count() > 0): ?>
                                <div class="br-line d-flex"></div>
                                <div class="widget-facet">
                                    <div class="facet-title" data-bs-target="#catalogs" role="button"
                                        data-bs-toggle="collapse" aria-expanded="true" aria-controls="catalogs">
                                        <h6>Product Catalogs</h6>
                                        <span class="icon icon-caret-down"></span>
                                    </div>
                                    <div id="catalogs" class="collapse show">
                                        <div class="collapse-body">
                                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $this->catalogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $catalog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="catalog-item mb-3">
                                                <a href="<?php echo e(url('/storage/' . $catalog->file)); ?>" 
                                                   target="_blank" 
                                                   download 
                                                   class="tf-btn style-outline-primary w-100 d-flex align-items-center justify-content-between">
                                                    <span class="catalog-title"><?php echo e($catalog->title); ?></span>
                                                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                                        <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
                                                        <polyline points="7 10 12 15 17 10"></polyline>
                                                        <line x1="12" y1="15" x2="12" y2="3"></line>
                                                    </svg>
                                                </a>
                                            </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                                <?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(count($selectedCategories) > 0): ?>
                                <div class="br-line d-flex"></div>
                                <div class="widget-facet">
                                    <button wire:click="clearFilter" class="tf-btn style-fill-primary w-100">
                                        <i class="icon icon-close"></i> Clear All Filters
                                    </button>
                                </div>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Products Grid -->
                <div class="col-xl-9 col-lg-8">
                    <!-- Filter Button for Mobile -->
                    <div class="tf-shop-control">
                        <button type="button" id="filterShop" class="tf-btn-filter d-xl-none">
                            <span class="icon icon-SlidersHorizontal"></span>
                            <span class="text">Filters</span>
                        </button>
                    </div>

                    <div class="wrapper-control-shop gridLayout-wrapper">
                        <!-- Products List View -->
                        <div class="tf-list-layout wrapper-shop" id="listLayout" style="display: none;">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $this->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="card-product product-list">
                                <div class="card-product_wrapper">
                                    <a href="javascript:void(0)" 
                                        wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                        class="product-img">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->image): ?>
                                        <img class="img-product lazyload" 
                                            data-src="<?php echo e(url('/storage/' . $product->image)); ?>"
                                            src="<?php echo e(url('/storage/' . $product->image)); ?>"
                                            width="300" 
                                            height="300"
                                            alt="<?php echo e($product->title); ?>">
                                        <?php else: ?>
                                        <img class="img-product" width="300" height="300"
                                            src="<?php echo e(url('/')); ?>/assets/images/product/product-placeholder.jpg" 
                                            alt="<?php echo e($product->title); ?>">
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </a>
                                    <!-- <ul class="product-action_list">
                                        <li>
                                            <a href="javascript:void(0)"
                                                wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                                class="hover-tooltip tooltip-left box-icon">
                                                <span class="icon icon-eye"></span>
                                                <span class="tooltip">Quick view</span>
                                            </a>
                                        </li>
                                    </ul> -->
                                </div>
                                <div class="card-product_info">
                                    <div class="product_info_wrap">
                                        <a href="javascript:void(0)" 
                                            wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                            class="name-product lh-28 fw-medium link-underline text-primary">
                                            <?php echo e(Str::upper($product->title)); ?>

                                        </a>
                                    </div>
                                    <button wire:click="orderNow(<?php echo e($product->id); ?>)" 
                                        class="btn-add-to-card not-size">
                                        <span class="text text-1 text-caption-01">Order Now</span>
                                    </button>
                                </div>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?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($this->products->isEmpty()): ?>
                            <div class="text-center py-5">
                                <p class="text-muted">No products found.</p>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($selectedCategories) > 0): ?>
                                <button wire:click="clearFilter" class="tf-btn style-fill-primary mt-3">
                                    Clear Filters
                                </button>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>

                        <!-- Products Grid View (Responsive) -->
                        <div class="wrapper-shop tf-grid-layout tf-col-2 tf-col-md-3 tf-col-lg-4" id="gridLayout">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $this->products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="card-product grid">
                                <div class="card-product_wrapper">
                                    <a href="javascript:void(0)" 
                                        wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                        class="product-img">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->image): ?>
                                        <img class="img-product lazyload" 
                                            data-src="<?php echo e(url('/storage/' . $product->image)); ?>"
                                            src="<?php echo e(url('/storage/' . $product->image)); ?>"
                                            width="300" 
                                            height="300"
                                            alt="<?php echo e($product->title); ?>">
                                        <?php else: ?>
                                        <img class="img-product" width="300" height="300"
                                            src="<?php echo e(url('/')); ?>/assets/images/product/product-placeholder.jpg" 
                                            alt="<?php echo e($product->title); ?>">
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </a>
                                    <!-- <ul class="product-action_list">
                                        <li>
                                            <a href="javascript:void(0)"
                                                wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                                class="hover-tooltip tooltip-left box-icon">
                                                <span class="icon icon-eye"></span>
                                                <span class="tooltip">Quick view</span>
                                            </a>
                                        </li>
                                    </ul> -->
                                </div>
                                <div class="card-product_info">
                                    <div class="product_info_wrap">
                                        <a href="javascript:void(0)" 
                                            wire:click="showProductDetails(<?php echo e($product->id); ?>)"
                                            class="name-product lh-28 fw-medium link-underline text-primary">
                                            <?php echo e(Str::upper($product->title)); ?>

                                        </a>
                                    </div>
                                    <button wire:click="orderNow(<?php echo e($product->id); ?>)" 
                                        class="btn-add-to-card not-size">
                                        <span class="text text-1 text-caption-01">Order Now</span>
                                    </button>
                                </div>
                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?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($this->products->isEmpty()): ?>
                            <div class="col-12 text-center py-5">
                                <p class="text-muted">No products found.</p>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($selectedCategories) > 0): ?>
                                <button wire:click="clearFilter" class="tf-btn style-fill-primary mt-3">
                                    Clear Filters
                                </button>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                            <!-- Pagination -->
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($this->products->hasPages()): ?>
                            <div class="wg-pagination">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$this->products->onFirstPage()): ?>
                                <a href="#" wire:click.prevent="previousPage" class="pagination-item">
                                    <i class="icon icon-caret-left"></i>
                                </a>
                                <?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 $__currentLoopData = $this->products->getUrlRange(1, $this->products->lastPage()); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($page == $this->products->currentPage()): ?>
                                    <p class="pagination-item active"><?php echo e($page); ?></p>
                                    <?php else: ?>
                                    <a href="#" wire:click.prevent="gotoPage(<?php echo e($page); ?>)" class="pagination-item"><?php echo e($page); ?></a>
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?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($this->products->hasMorePages()): ?>
                                <a href="#" wire:click.prevent="nextPage" class="pagination-item">
                                    <i class="icon icon-caret-right"></i>
                                </a>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /Shop -->

    <!-- Product Detail Modal -->
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($showModal): ?>
    <div class="product-modal-overlay" 
        wire:click="closeModal">
        <div class="product-modal-container" wire:click.stop>
            <button wire:click="closeModal" class="product-modal-close" aria-label="Close modal">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <line x1="18" y1="6" x2="6" y2="18"></line>
                    <line x1="6" y1="6" x2="18" y2="18"></line>
                </svg>
            </button>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($isLoadingProduct): ?>
            <!-- Skeleton Loading UI -->
            <div class="product-modal-skeleton">
                <div class="skeleton-image-section">
                    <div class="skeleton-image"></div>
                </div>
                <div class="skeleton-details-section">
                    <div class="skeleton-header">
                        <div class="skeleton-title"></div>
                        <div class="skeleton-category"></div>
                    </div>
                    <div class="skeleton-body">
                        <div class="skeleton-text-line"></div>
                        <div class="skeleton-text-line"></div>
                        <div class="skeleton-text-line short"></div>
                        <div class="skeleton-tags">
                            <div class="skeleton-tag"></div>
                            <div class="skeleton-tag"></div>
                            <div class="skeleton-tag"></div>
                        </div>
                    </div>
                    <div class="skeleton-footer">
                        <div class="skeleton-button"></div>
                    </div>
                </div>
            </div>
            <?php elseif($selectedProduct): ?>
            <div class="product-modal-content">
                <div class="product-modal-image">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($selectedProduct->image): ?>
                    <img src="<?php echo e(url('/storage/' . $selectedProduct->image)); ?>" 
                        alt="<?php echo e($selectedProduct->title); ?>"
                        class="modal-product-img">
                    <?php else: ?>
                    <img src="<?php echo e(url('/')); ?>/assets/images/product/product-placeholder.jpg" 
                        alt="<?php echo e($selectedProduct->title); ?>"
                        class="modal-product-img">
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>

                <div class="product-modal-details">
                    <div class="product-modal-header">
                        <h2 class="product-modal-title"><?php echo e($selectedProduct->title); ?></h2>
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($selectedProduct->category): ?>
                        <span class="product-modal-category"><?php echo e($selectedProduct->category->name); ?></span>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>

                    <div class="product-modal-body">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($selectedProduct->meta_description): ?>
                        <div class="product-modal-section">
                            <h3>Description</h3>
                            <p><?php echo e($selectedProduct->meta_description); ?></p>
                        </div>
                        <?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($selectedProduct->meta_keywords): ?>
                        <div class="product-modal-section">
                            <h3>Features</h3>
                            <div class="product-keywords">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = explode(',', $selectedProduct->meta_keywords); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $keyword): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <span class="keyword-tag"><?php echo e(trim($keyword)); ?></span>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                        </div>
                        <?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($selectedProduct->subCategory): ?>
                        <div class="product-modal-section">
                            <h3>Category Details</h3>
                            <p><strong>Category:</strong> <?php echo e($selectedProduct->category->name); ?></p>
                            <p><strong>Sub-Category:</strong> <?php echo e($selectedProduct->subCategory->name); ?></p>
                        </div>
                        <?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($selectedProduct->gallery && count($selectedProduct->gallery) > 0): ?>
                        <div class="product-modal-section">
                            <h3>Product Gallery</h3>
                            <div class="product-modal-gallery">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $selectedProduct->gallery; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="gallery-item">
                                    <img src="<?php echo e(url('/storage/' . $image)); ?>" 
                                        alt="<?php echo e($selectedProduct->title); ?>"
                                        loading="lazy">
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                        </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>

                    <div class="product-modal-footer">
                        <button wire:click="orderFromModal" class="btn-order-now">
                            <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                                <circle cx="9" cy="21" r="1"></circle>
                                <circle cx="20" cy="21" r="1"></circle>
                                <path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
                            </svg>
                            Order Now
                        </button>
                    </div>
                </div>
            </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>

    <script>
        // Manage body scroll when modal opens/closes
        document.body.style.overflow = 'hidden';
        
        // Restore body scroll when modal closes
        window.addEventListener('livewire:update', function() {
            if (!document.querySelector('.product-modal-overlay')) {
                document.body.style.overflow = 'auto';
            }
        });

        // Handle ESC key to close modal
        document.addEventListener('keydown', function(e) {
            if (e.key === 'Escape' && document.querySelector('.product-modal-overlay')) {
                window.Livewire.find('<?php echo e($_instance->getId()); ?>').call('closeModal');
            }
        });
    </script>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    <!-- /Product Detail Modal -->

    <style>
        /* ===== SUCCESS ALERT BANNER ===== */
        .alert-success-banner {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10001;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
            animation: slideDown 0.3s ease;
            max-width: 90%;
            width: auto;
        }

        @keyframes slideDown {
            from {
                transform: translateX(-50%) translateY(-100px);
                opacity: 0;
            }
            to {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }

        .alert-success-banner .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .alert-content {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert-content svg {
            flex-shrink: 0;
        }

        .alert-content span {
            font-size: 14px;
            font-weight: 500;
        }

        .alert-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s ease;
            flex-shrink: 0;
        }

        .alert-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        @media (max-width: 576px) {
            .alert-success-banner {
                top: 10px;
                padding: 12px 15px;
            }

            .alert-content span {
                font-size: 13px;
            }
        }

        /* ===== MOBILE FIRST RESPONSIVE STYLES ===== */
        
        /* Product Catalog Styles */
        .catalog-item {
            margin-bottom: 12px;
        }

        .catalog-item .tf-btn {
            padding: 12px 16px;
            font-size: 14px;
            text-align: left;
            transition: all 0.3s ease;
            border: 1px solid var(--primary-color, #3F99D4);
            color: var(--primary-color, #3F99D4);
            background: white;
        }

        .catalog-item .tf-btn:hover {
            background: var(--primary-color, #3F99D4);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(63, 153, 212, 0.2);
        }

        .catalog-item .catalog-title {
            flex: 1;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-right: 8px;
        }

        .catalog-item .icon-download {
            font-size: 18px;
            flex-shrink: 0;
        }
        
        /* Base Mobile Styles (320px+) */
        .tf-shop-control {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tf-btn-filter {
            padding: 10px 20px;
            font-size: 14px;
            flex: 1;
            max-width: 200px;
        }

        .tf-control-layout {
            display: flex;
            gap: 8px;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .tf-view-layout-switch {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tf-view-layout-switch:hover,
        .tf-view-layout-switch.active {
            border-color: var(--primary-color, #3F99D4);
            background: var(--primary-color, #3F99D4);
            color: white;
        }

        /* Product Grid - Mobile First (2 columns default) */
        .wrapper-shop.tf-grid-layout {
            display: grid;
            gap: 15px;
            grid-template-columns: repeat(2, 1fr);
        }

        /* Card Product Responsive */
        .card-product {
            width: 100%;
        }

        .card-product_wrapper {
            position: relative;
            margin-bottom: 12px;
        }

        .product-img {
            display: block;
            width: 100%;
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 8px;
        }

        .img-product {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-product_info {
            padding: 0 5px;
        }

        .name-product {
            font-size: 13px !important;
            line-height: 1.4 !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 10px;
            min-height: 36px;
        }

        .btn-add-to-card {
            width: 100%;
            padding: 8px 10px !important;
            font-size: 12px !important;
        }

        /* Pagination Mobile */
        .wg-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            margin-top: 30px;
            flex-wrap: wrap;
            grid-column: 1 / -1;
        }

        .pagination-item {
            min-width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            font-size: 13px;
            text-decoration: none;
            color: #333;
            transition: all 0.3s ease;
        }

        .pagination-item:hover,
        .pagination-item.active {
            background: var(--primary-color, #3F99D4);
            border-color: var(--primary-color, #3F99D4);
            color: white;
        }

        /* List View Mobile */
        .product-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .product-list .card-product_wrapper {
            width: 100%;
        }

        .product-list .card-product_info {
            width: 100%;
        }

        /* Sidebar Mobile */
        @media (max-width: 1199px) {
            .canvas-sidebar {
                position: fixed;
                top: 0;
                left: -100%;
                width: 300px;
                height: 100vh;
                background: white;
                z-index: 9999;
                transition: left 0.3s ease;
                overflow-y: auto;
            }

            .canvas-sidebar.active {
                left: 0;
            }

            .canvas-header {
                display: flex !important;
                justify-content: space-between;
                align-items: center;
                padding: 20px;
                border-bottom: 1px solid #e0e0e0;
            }

            .canvas-body {
                padding: 20px;
            }
        }

        /* Small Mobile (320px - 374px) */
        @media (max-width: 374px) {
            .name-product {
                font-size: 12px !important;
            }

            .btn-add-to-card {
                font-size: 11px !important;
                padding: 6px 8px !important;
            }

            .wrapper-shop.tf-grid-layout {
                gap: 10px;
            }
        }

        /* Mobile (375px - 575px) */
        @media (min-width: 375px) and (max-width: 575px) {
            .name-product {
                font-size: 13px !important;
            }
        }

        /* Large Mobile / Small Tablet (576px - 767px) */
        @media (min-width: 576px) and (max-width: 767px) {
            .wrapper-shop.tf-grid-layout {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .name-product {
                font-size: 14px !important;
            }

            .btn-add-to-card {
                font-size: 13px !important;
                padding: 9px 12px !important;
            }

            .product-list {
                flex-direction: row;
                gap: 20px;
            }

            .product-list .card-product_wrapper {
                width: 150px;
                flex-shrink: 0;
            }

            .product-list .card-product_info {
                flex: 1;
            }
        }

        /* Tablet (768px - 991px) - 3 columns */
        @media (min-width: 768px) and (max-width: 991px) {
            .wrapper-shop.tf-grid-layout.tf-col-md-3 {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
            }

            .name-product {
                font-size: 14px !important;
            }

            .btn-add-to-card {
                font-size: 13px !important;
            }

            .product-list {
                flex-direction: row;
                gap: 20px;
            }

            .product-list .card-product_wrapper {
                width: 150px;
                flex-shrink: 0;
            }
        }

        /* Desktop (992px - 1199px) - 3 columns */
        @media (min-width: 992px) and (max-width: 1199px) {
            .wrapper-shop.tf-grid-layout.tf-col-lg-4 {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }

            .name-product {
                font-size: 15px !important;
            }

            .btn-add-to-card {
                font-size: 13px !important;
                padding: 10px 14px !important;
            }

            .pagination-item {
                min-width: 36px;
                height: 36px;
            }
        }

        /* Large Desktop (1200px+) - 4 columns */
        @media (min-width: 1200px) {
            .wrapper-shop.tf-grid-layout.tf-col-lg-4 {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }

            .name-product {
                font-size: 15px !important;
            }

            .btn-add-to-card {
                font-size: 14px !important;
                padding: 10px 16px !important;
            }

            .pagination-item {
                min-width: 40px;
                height: 40px;
                font-size: 14px;
            }

            .tf-btn-filter {
                max-width: 250px;
            }
        }

        /* Loading State */
        [wire\:loading] {
            opacity: 0.6;
            pointer-events: none;
        }

        /* Touch Optimization for Mobile Devices */
        @media (hover: none) and (pointer: coarse) {
            .tf-view-layout-switch,
            .pagination-item,
            .btn-add-to-card {
                min-height: 44px;
            }

            .tf-check {
                min-width: 44px;
                min-height: 44px;
            }
        }

        /* Landscape Mobile */
        @media (max-height: 500px) and (orientation: landscape) {
            .canvas-sidebar {
                width: 250px;
            }
        }

        /* ===== PRODUCT MODAL STYLES (MOBILE FIRST) ===== */
        
        /* Modal Overlay */
        .product-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Modal Container - Mobile First */
        .product-modal-container {
            background: white;
            border-radius: 12px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Close Button */
        .product-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .product-modal-close:hover {
            background: #f5f5f5;
            transform: rotate(90deg);
        }

        .product-modal-close svg {
            color: #333;
        }

        /* Loading State - Skeleton UI */
        .product-modal-skeleton {
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.3s ease;
        }

        .skeleton-image-section {
            width: 100%;
            background: #f9f9f9;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .skeleton-image {
            width: 100%;
            max-width: 300px;
            aspect-ratio: 1;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-details-section {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .skeleton-header {
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 15px;
        }

        .skeleton-title {
            height: 28px;
            width: 80%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .skeleton-category {
            height: 24px;
            width: 120px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 20px;
        }

        .skeleton-body {
            flex: 1;
        }

        .skeleton-text-line {
            height: 16px;
            width: 100%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 12px;
        }

        .skeleton-text-line.short {
            width: 60%;
        }

        .skeleton-tags {
            display: flex;
            gap: 8px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .skeleton-tag {
            height: 28px;
            width: 80px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 15px;
        }

        .skeleton-footer {
            border-top: 1px solid #e0e0e0;
            padding-top: 15px;
        }

        .skeleton-button {
            height: 48px;
            width: 100%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        /* Old Loading State (Fallback) */
        .product-modal-loading {
            padding: 60px 20px;
            text-align: center;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid var(--primary-color, #3F99D4);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .product-modal-loading p {
            color: #666;
            font-size: 14px;
        }

        /* Modal Content Layout - Mobile */
        .product-modal-content {
            display: flex;
            flex-direction: column;
        }

        /* Product Image */
        .product-modal-image {
            width: 100%;
            background: #f9f9f9;
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-product-img {
            width: 100%;
            max-width: 300px;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
        }

        /* Product Details */
        .product-modal-details {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Header */
        .product-modal-header {
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 15px;
        }

        .product-modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin: 0 0 8px 0;
            line-height: 1.3;
        }

        .product-modal-category {
            display: inline-block;
            padding: 4px 12px;
            background: #f0f0f0;
            color: #666;
            font-size: 12px;
            border-radius: 20px;
            font-weight: 500;
        }

        /* Body */
        .product-modal-body {
            flex: 1;
            overflow-y: auto;
        }

        .product-modal-section {
            margin-bottom: 20px;
        }

        .product-modal-section h3 {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin: 0 0 10px 0;
        }

        .product-modal-section p {
            font-size: 14px;
            line-height: 1.6;
            color: #666;
            margin: 0;
        }

        /* Badge */
        .product-modal-badge {
            margin: 10px 0;
        }

        .badge-featured {
            display: inline-block;
            padding: 6px 14px;
            background: linear-gradient(135deg, #2E3191 0%, #1B75BB 100%);
            color: white;
            font-size: 12px;
            font-weight: 600;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Keywords/Features */
        .product-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .keyword-tag {
            display: inline-block;
            padding: 5px 12px;
            background: #f0f7ff;
            color: var(--primary-color, #3F99D4);
            font-size: 12px;
            font-weight: 500;
            border-radius: 15px;
            border: 1px solid #d0e7f9;
        }

        /* Gallery */
        .product-modal-gallery {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .gallery-item {
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 8px;
            background: #f9f9f9;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* Footer */
        .product-modal-footer {
            border-top: 1px solid #e0e0e0;
            padding-top: 15px;
        }

        .btn-order-now {
            width: 100%;
            padding: 14px 20px;
            background: linear-gradient(135deg, #2E3191 0%, #1B75BB 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(63, 153, 212, 0.3);
        }

        .btn-order-now:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(63, 153, 212, 0.4);
        }

        .btn-order-now:active {
            transform: translateY(0);
        }

        .btn-order-now svg {
            flex-shrink: 0;
        }

        /* Small Mobile (320px - 374px) */
        @media (max-width: 374px) {
            .product-modal-overlay {
                padding: 10px;
            }

            .product-modal-title {
                font-size: 18px;
            }

            .product-modal-details {
                padding: 15px;
            }

            .btn-order-now {
                padding: 12px 16px;
                font-size: 14px;
            }
        }

        /* Mobile (375px - 575px) */
        @media (min-width: 375px) and (max-width: 575px) {
            .product-modal-container {
                max-width: 100%;
            }

            .product-modal-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Large Mobile / Small Tablet (576px - 767px) */
        @media (min-width: 576px) and (max-width: 767px) {
            .product-modal-container {
                max-width: 540px;
            }

            .product-modal-gallery {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Tablet (768px - 991px) */
        @media (min-width: 768px) {
            .product-modal-container {
                max-width: 700px;
            }

            .product-modal-content,
            .product-modal-skeleton {
                flex-direction: row;
            }

            .product-modal-image,
            .skeleton-image-section {
                width: 45%;
                padding: 30px;
            }

            .modal-product-img {
                max-width: 100%;
            }

            .product-modal-details,
            .skeleton-details-section {
                width: 55%;
                padding: 30px;
            }

            .product-modal-title {
                font-size: 24px;
            }

            .product-modal-section h3 {
                font-size: 18px;
            }

            .product-modal-section p {
                font-size: 15px;
            }

            .product-modal-gallery {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }

            .product-modal-close {
                width: 40px;
                height: 40px;
                top: 20px;
                right: 20px;
            }
        }

        /* Desktop (992px+) */
        @media (min-width: 992px) {
            .product-modal-container {
                max-width: 900px;
                max-height: 85vh;
            }

            .product-modal-image {
                padding: 40px;
            }

            .product-modal-details {
                padding: 40px;
            }

            .product-modal-title {
                font-size: 26px;
            }

            .btn-order-now {
                font-size: 17px;
                padding: 16px 24px;
            }
        }

        /* Large Desktop (1200px+) */
        @media (min-width: 1200px) {
            .product-modal-container {
                max-width: 1000px;
            }

            .product-modal-gallery {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Smooth Scrolling for Modal */
        .product-modal-container {
            scrollbar-width: thin;
            scrollbar-color: #ccc #f5f5f5;
        }

        .product-modal-container::-webkit-scrollbar {
            width: 8px;
        }

        .product-modal-container::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        .product-modal-container::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 4px;
        }

        .product-modal-container::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

        /* Prevent body scroll when modal is open */
        body.modal-open {
            overflow: hidden;
        }

        /* Loading animation for Livewire */
        [wire\:loading].product-modal-overlay {
            pointer-events: none;
        }

        /* Accessibility - Focus styles */
        .product-modal-close:focus,
        .btn-order-now:focus {
            outline: 2px solid var(--primary-color, #3F99D4);
            outline-offset: 2px;
        }

        /* Print styles - hide modal when printing */
        @media print {
            .product-modal-overlay {
                display: none;
            }
        }
    </style>
</div>
<?php /**PATH C:\2026\2.February\BLEYS\resources\views/livewire/products.blade.php ENDPATH**/ ?>