/* Mobile-Optimized Shop Section for Customers */

@media (max-width: 768px) {
    /* Shop Section - Professional Header */
    .shop {
        padding: 0 0 6rem 0 !important;
        margin-top: -80px !important;
    }

    .shop .section-header {
        text-align: center !important;
        padding: 0 20px 25px !important;
        margin: 0 15px 25px !important;
    }

    .shop .section-header h2 {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
        padding-top: 25px !important;
        color: #047857 !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .shop .section-header h2::before {
        content: '🛍️';
        font-size: 2rem !important;
    }

    .shop .section-header p {
        font-size: 1rem !important;
        color: #059669 !important;
        font-weight: 500 !important;
    }

    /* Filter Buttons - Modern Pill Design */
    .shop-filters {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
        padding: 0 15px !important;
        justify-content: center !important;
    }

    .filter-btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        border-radius: 30px !important;
        white-space: nowrap !important;
        background: white !important;
        color: #6b7280 !important;
        border: 2px solid #e5e7eb !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        border-color: #10b981 !important;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
        transform: translateY(-2px) !important;
    }

    .filter-btn:active {
        transform: translateY(0) !important;
    }

    /* Shop Grid - Facebook-Style Horizontal Scroll */
    .shop-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        padding: 0 15px 20px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .shop-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Shop Items - Facebook Ad Style (2 per view, 2nd partially visible) */
    .shop-item {
        flex: 0 0 calc(66.666% - 10px) !important;
        width: calc(66.666% - 10px) !important;
        max-width: calc(66.666% - 10px) !important;
        scroll-snap-align: start !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 0 !important;
    }

    .shop-item:nth-child(2n) {
        flex: 0 0 calc(66.666% - 10px) !important;
        width: calc(66.666% - 10px) !important;
    }

    .shop-item.visible {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Larger Images for Better Visibility */
    .shop-item-image {
        height: 220px !important;
        border-radius: 15px 15px 0 0 !important;
    }

    .shop-item-image.no-image {
        font-size: 100px !important;
    }

    /* Badge Positioning */
    .shop-item-badge {
        top: 12px !important;
        right: 12px !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* Info Section - Better Spacing */
    .shop-item-info {
        padding: 20px !important;
    }

    .shop-item-title {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .shop-item-brand {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    .shop-item-price {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    /* Meta Information */
    .shop-item-meta {
        gap: 15px !important;
        margin-bottom: 15px !important;
        font-size: 0.9rem !important;
    }

    .shop-item-meta span {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Description */
    .shop-item-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }

    /* View Details Button - More Prominent */
    .btn-view-details {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    /* Service Card Button - Move Down */
    .shop-item[data-type="service"] .btn-view-details,
    .shop-item.service .btn-view-details,
    .service-card .btn-view-details {
        margin-top: 80px !important;
    }
    
    /* Alternative: Add extra spacing before service buttons */
    .shop-item .shop-item-description {
        margin-bottom: 36px !important;
    }
    
    .shop-item[data-type="service"] .shop-item-description,
    .shop-item.service .shop-item-description,
    .service-card .shop-item-description {
        margin-bottom: 98px !important;
    }

    .btn-view-details i {
        font-size: 1.1rem !important;
    }

    /* Empty State */
    .empty-shop {
        padding: 80px 20px !important;
    }

    .empty-shop i {
        font-size: 100px !important;
        margin-bottom: 25px !important;
    }

    .empty-shop p {
        font-size: 1.1rem !important;
    }

    /* Loading State */
    .loading-shop {
        text-align: center !important;
        padding: 60px 20px !important;
        font-size: 1.1rem !important;
        color: #6b7280 !important;
    }

    /* Hover Effects - Disabled on Mobile for Better Performance */
    .shop-item:hover {
        transform: none !important;
    }

    .shop-item.visible:hover {
        transform: none !important;
    }

    /* Add subtle press effect instead */
    .shop-item:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    /* Wave Bottom */
    .shop svg.wave {
        height: 100px !important;
    }

    /* Dark Mode Adjustments for Mobile */
    [data-theme="dark"] .shop .section-header p {
        color: #9ca3af !important;
    }

    [data-theme="dark"] .loading-shop {
        color: #9ca3af !important;
    }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
    .shop {
        padding: 50px 0 5rem 0 !important;
    }

    .shop .section-header h2 {
        font-size: 1.6rem !important;
    }

    .shop .section-header p {
        font-size: 0.95rem !important;
    }

    .filter-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    .shop-grid {
        padding: 0 12px 20px !important;
        gap: 18px !important;
    }

    .shop-item-image {
        height: 200px !important;
    }

    .shop-item-info {
        padding: 18px !important;
    }

    .shop-item-title {
        font-size: 1.1rem !important;
    }

    .shop-item-price {
        font-size: 1.4rem !important;
    }

    .shop-item-meta {
        font-size: 0.85rem !important;
    }

    .shop-item-description {
        font-size: 0.9rem !important;
    }

    .btn-view-details {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
}
