 /* Modern Product Card Styles */
        .product-card-modern {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .product-card-modern:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            transform: translateY(-4px);
        }
        
        .product-card-image-wrapper {
            position: relative;
            width: 100%;
            padding-top: 100%;
            background: #f8f9fa;
            overflow: hidden;
        }
        
        .product-card-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .product-card-modern:hover .product-card-image {
            transform: scale(1.05);
        }
        
        .product-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            z-index: 2;
        }
        
        .product-wishlist-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fff;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .product-wishlist-btn:hover {
            background: #d10024;
            color: #fff;
            transform: scale(1.1);
        }
        
        .product-card-body {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .product-rating-display {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
        }
        
        .rating-value {
            font-weight: 600;
            color: #333;
        }
        
        .review-count {
            font-size: 13px;
        }
        
        .stock-badge {
            font-size: 10px;
            padding: 4px 8px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        
        .product-card-title {
            font-size: 18px;
            font-weight: 600;
            line-height: 1.4;
            margin: 12px 0 8px;
            min-height: 50px;
            max-height: 75px;
            overflow: hidden;
        }
        
        .product-card-title a {
            color: #1a1a1a;
            text-decoration: none;
            transition: color 0.2s ease;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .product-card-title a .small {
            display: block;
            font-size: 14px;
            font-weight: 400;
            margin-top: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .product-card-title a:hover {
            color: var(--bs-primary);
        }
        
        .product-card-category {
            font-size: 14px;
            color: #6c757d;
            margin-bottom: 16px;
            text-transform: capitalize;
        }
        
        .product-card-price-section {
            margin-top: auto;
            margin-bottom: 16px;
        }
        
        .price-label {
            font-size: 12px;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-bottom: 4px;
        }
        
        .product-card-price {
            font-size: 24px;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0;
        }
        
        .product-card-actions {
            display: flex;
            gap: 8px;
        }
        
        .btn-buy-now {
            flex: 1;
            background: #ffc107;
            color: #1a1a1a;
            border: none;
            padding: 0;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            text-align: center;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-buy-now:hover {
            background: #ffb300;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
            color: #1a1a1a;
        }
        
        .btn-add-cart {
            background: #0d6efd;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.2s ease;
            flex: 1;
            padding: 0;
        }
        
        .btn-add-cart:hover {
            background: #0b5ed7;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
            color: #fff;
        }
        
        /* Mobile/Tablet: Icon-only buttons - Extended to 1024px */
        @media (max-width: 1023.98px) {
            .btn-buy-now,
            .btn-add-cart {
                width: 40px;
                height: 40px;
                padding: 0;
                flex: 0 0 40px;
                border-radius: 50%;
            }
            
            .btn-buy-now i,
            .btn-add-cart i {
                margin: 0 !important;
            }
            
            .product-card-actions {
                gap: 8px !important;
                margin-top: 0.5rem;
            }

             #catalog-grid .btn-buy-now,
            #catalog-grid .btn-add-cart {
                width: 65px !important;
                    min-width: 65px !important;
                    height: 30px !important;
                    padding: 0;
                    flex: 0 0 30px;
                    border-radius: 8px !important;
                
            }
        }
        
        /* List View Adaptations - Mirrored from index.blade.php */
        #catalog-grid.list-view {
            display: flex !important;
            flex-direction: column !important;
        }
        
        #catalog-grid.list-view > [data-product-card] {
            width: 100% !important;
            max-width: 100% !important;
        }
        
        #catalog-grid.list-view .product-card-modern {
            flex-direction: row;
            height: auto;
            padding: 0.75rem;
            border-radius: 0.75rem;
        }
        
        #catalog-grid.list-view .product-card-image-wrapper {
            width: 130px;
            min-width: 130px;
            max-width: 130px;
            padding-top: 0;
            height: 130px;
            flex-shrink: 0;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        
        #catalog-grid.list-view .product-card-image {
            position: static;
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #fff;
        }
        
        #catalog-grid.list-view .product-badge {
            font-size: 9px;
            padding: 2px 6px;
            top: 4px;
            left: 4px;
        }
        
        #catalog-grid.list-view .product-wishlist-btn {
            width: 26px;
            height: 26px;
            top: -10px;
            right: auto;
            left: 80px;
        }
        
        #catalog-grid.list-view .product-wishlist-btn i {
            font-size: 0.7rem;
        }
        
        #catalog-grid.list-view .product-card-body {
            padding: 0 0 0 0.75rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 1;
        }
        
        #catalog-grid.list-view .product-rating-display {
            font-size: 0.7rem;
            margin-bottom: 0.25rem;
        }
        
        #catalog-grid.list-view .rating-value,
        #catalog-grid.list-view .review-count {
            font-size: 0.65rem;
        }
        
        #catalog-grid.list-view .stock-badge {
            font-size: 9px;
            padding: 2px 6px;
        }
        
        #catalog-grid.list-view .product-card-title {
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.2;
            min-height: auto;
            max-height: none;
            margin-bottom: 0.25rem;
        }
        
        #catalog-grid.list-view .product-card-title a {
            -webkit-line-clamp: 2;
        }
        
        /* Horizontal wrapper for price and actions in list view */
        #catalog-grid.list-view .product-card-price-actions-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: space-between;
        }
        
        #catalog-grid.list-view .product-card-price-section {
            margin-bottom: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        #catalog-grid.list-view .price-label {
            display: none;
        }
        
        #catalog-grid.list-view .product-card-price {
            font-size: 1rem;
            margin: 0;
        }
        
        #catalog-grid.list-view .product-card-actions {
            margin-top: 0;
            display: flex;
            gap: 8px;
        }
        
        #catalog-grid.list-view .btn-buy-now,
        #catalog-grid.list-view .btn-add-cart {
            width: 30px !important;
            height: 30px !important;
            min-width: 44px !important;
            padding: 0;
            flex: 0 0 30px;
            border-radius: 50% !important   ;
        }
       

        #catalog-grid.list-view .btn-buy-now i,
        #catalog-grid.list-view .btn-add-cart i {
            margin: 0 !important;
            font-size: 0.7rem;
        }
        
        #catalog-grid.list-view .btn-buy-now span,
        #catalog-grid.list-view .btn-add-cart span {
            display: none !important;
        }
        
        /* Reorder elements in list view: price section comes after actions */
        #catalog-grid.list-view .product-card-price-actions-wrapper {
            order: 1;
        }
        
        #catalog-grid.list-view .product-card-body > small.text-muted {
            order: 3;
            font-size: 10px;
            margin-top: 0.25rem;
        }
        
        @media (min-width: 768px) {
            #catalog-grid.list-view .product-card-image-wrapper {
                width: 120px;
                min-width: 120px;
                max-width: 120px;
                height: 120px;
            }
            
            #catalog-grid.list-view .product-wishlist-btn {
                width: 28px;
                height: 28px;
                left: 88px;
            }
            
            #catalog-grid.list-view .product-card-title {
                font-size: 1rem;
            }
            
            #catalog-grid.list-view .btn-buy-now,
            #catalog-grid.list-view .btn-add-cart {
                width: 32px !important;
                height: 32px !important;
                flex: 0 0 32px;
            }

            
        }
        
        @media (max-width: 480px) {
            #catalog-grid.list-view .product-card-image-wrapper {
                width: 120px;
                min-width: 120px;
                max-width: 120px;
                height: 160px;
            }
            
            #catalog-grid.list-view .product-wishlist-btn {
               
                width: 24px;
                height: 24px;
                left: 90px !important;
            }
            
            #catalog-grid.list-view .product-card-title {
                font-size: 0.8rem;
            }
            
            #catalog-grid.list-view .product-card-price {
                font-size: 0.9rem;
            }
            
            #catalog-grid.list-view .product-rating-display {
                font-size: 0.6rem;
            }
            
            #catalog-grid.list-view .stock-badge {
                font-size: 8px;
                padding: 2px 4px;
            }
            
        }
        
        /* Old styles removal - keep only for backward compatibility */
        .variant-specs {
            min-height: 24px;
        }
        
        .variant-specs .badge {
            font-size: 0.7rem;
            font-weight: normal;
            padding: 0.25rem 0.5rem;
            border: 1px solid #dee2e6;
        }
        
        /* Ensure uniform card heights */
        .catalog-product {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .catalog-product .product-body {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .catalog-product .product-name {
            flex-grow: 1;
        }
        
        /* Grid transition smoothing */
        #catalog-grid {
            transition: all 0.3s ease;
        }
        
        #catalog-grid > [data-product-card] {
            transition: all 0.3s ease;
        }
        
        /* Fade-in animation for dynamically loaded products - from mobile.html */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        #catalog-grid > [data-product-card] {
            animation: fadeIn 0.4s ease-out;
        }
        
        /* Loading state styles */
        #catalog-infinite-status {
            font-size: 14px;
            color: #6c757d;
        }
        
        #catalog-infinite-sentinel {
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #catalog-infinite-sentinel:hover {
            background-color: #f8f9fa;
            border-radius: 8px;
        }
        
        /* Back to Top Button */
        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #0d6efd;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        #back-to-top:hover {
            background-color: #ffc107;
            color: #1a1a1a;
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }
        
        #back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        @media (max-width: 768px) {
            #back-to-top {
                bottom: 80px; /* Position above bottom navigation */
                right: 16px;
                width: 48px;
                height: 48px;
                font-size: 16px;
                z-index: 999; /* Below bottom nav but above content */
            }
        }