 /* Custom styles for mobile optimization */
        .product-card-mobile {
            position: relative;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .product-image-container {
            position: relative;
            width: 100%;
            padding-top: 100%;
        }
        
        .product-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .wishlist-btn-mobile {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
            z-index: 10;
        }
        
        .product-info-mobile {
            padding: 12px;
        }
        
        .product-title-mobile {
            font-size: 12px;
            line-height: 1.3;
            overflow: visible;
            display: block;
            margin-bottom: 2px;
            text-align: center;
            word-wrap: break-word;
            min-height: auto;
        }
        
        .product-subtitle-mobile {
            font-size: 11px;
            color: #6b7280;
            line-height: 1.3;
            height: 15px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            margin-bottom: 4px;
        }
        
        .product-price-mobile {
            font-size: 14px;
            font-weight: bold;
            color: #4b0032;
        }
        
        .swatch-carousel-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 4px 0;
        }

        .swatch-nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            cursor: pointer;
            color: #6b7280;
            flex-shrink: 0;
            transition: color 0.2s;
            background: transparent;
            border: none;
            padding: 0;
        }
        
        .swatch-nav-btn:hover {
            color: #e175b1;
        }

        .swatch-scroll-container {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 4px 2px;
            flex-grow: 1;
        }

        .swatch-scroll-container::-webkit-scrollbar {
            display: none;
        }

        .swatch-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #fff;
        }

        .swatch-dot:hover {
            transform: scale(1.15);
            border-color: #e175b1;
        }

        .swatch-dot.active {
            border: 2px solid #ffffff;
            box-shadow: 0 0 0 2px #e175b1;
            transform: scale(1.1);
        }

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

        @media (max-width: 640px) {
            .swatch-dot { width: 28px; height: 28px; }
            .swatch-carousel-wrapper { gap: 6px; }
        }

        /* Search Toggle Animation */
        .search-input-wrapper.expanded {
            width: 160px !important;
            opacity: 1 !important;
        }

        @media (min-width: 640px) {
            .search-input-wrapper.expanded {
                width: 224px !important;
            }
        }

        .search-input-wrapper input {
            transition: all 0.3s ease-in-out;
        }

        /* Filter badges section adjustment */
        .filter-badges-section {
            margin-top: 0.5rem;
        }

        /* Search Header Transitions */
        #searchHeaderContainer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
        }

        #searchHeaderContainer.searching #productCountText {
            opacity: 0;
            pointer-events: none;
            width: 0;
            margin: 0;
            padding: 0;
            overflow: hidden;
            flex-shrink: 0;
        }

        #searchHeaderContainer.searching #searchContainer {
            flex: 1;
            margin-left: 0;
        }

        #searchHeaderContainer #searchContainer {
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        #searchHeaderContainer #searchForm {
            display: flex;
            align-items: center;
            width: 100%;
        }

        #searchHeaderContainer #searchInputWrapper {
            transition: all 0.3s ease;
            overflow: hidden;
        }

        #searchHeaderContainer.searching #searchInputWrapper {
            width: 100% !important;
            opacity: 1 !important;
        }

        #searchHeaderContainer #searchInput {
            width: 100%;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        #searchHeaderContainer #searchToggle {
            flex-shrink: 0;
            margin-left: 8px;
            transition: all 0.3s ease;
            z-index: 10;
        }

        #searchHeaderContainer.searching #searchToggle {
            margin-left: 8px;
        }
        
        .add-to-bag-btn {
            background: #F67599;
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            width: 100%;
            border: none;
            cursor: pointer;
        }
        
        .add-to-bag-btn:hover { background: #F67599; transform: translateY(-1px); }
        .add-to-bag-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .add-to-bag-btn.adding { opacity: 0.7; cursor: wait; }

        .overflow-x-auto::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera, Edge */
        }

        .hide-scrollbar {
            scrollbar-width: none; /* Firefox and modern browsers */
        }

        .hide-scrollbar::-webkit-scrollbar {
            display: none; /* Chrome, Safari and Edge */
        }
        
        .badge-new {
            position: absolute; top: 8px; left: 8px; background: #e175b1; color: white;
            font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
            text-transform: uppercase; letter-spacing: 0.5px; z-index: 5;
        }
        
        .badge-sale {
            position: absolute; top: 8px; left: 8px; background: #dc2626; color: white;
            font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
            text-transform: uppercase; letter-spacing: 0.5px; z-index: 5;
        }
        
        .product-card-desktop {
            background: white; border-radius: 8px; overflow: hidden;
            transition: all 0.2s ease; border: 1px solid #f3f4f6;
        }
        .product-card-desktop:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: #e5e7eb; }
        
        .product-image-desktop { position: relative; padding-top: 100%; background: #fafafa; }
        .product-image-desktop img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        
        @media (max-width: 640px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
        @media (min-width: 641px) and (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
        @media (min-width: 1025px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

        #clearSearch { width: 24px; height: 24px; border-radius: 50%; background: #e175b1; color: white; font-size: 0.75rem; }
        #clearSearch:hover { background: #d05a9a; }
        
        .toast {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
            background: #4b0032; color: white; padding: 12px 24px; border-radius: 8px;
            font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0; transition: all 0.3s ease;
            pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2); max-width: 90%; text-align: center;
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        .toast.error { background: #dc2626; }
        .toast.success { background: #16a34a; }

        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6);
            z-index: 9998; display: none; align-items: center; justify-content: center; padding: 20px;
        }
        .modal-overlay.active { display: flex; }
        .modal-container {
            background: white; border-radius: 12px; max-width: 500px; width: 100%; max-height: 90vh;
            overflow-y: auto; position: relative; animation: modalSlideIn 0.3s ease;
        }
        @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
        .modal-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
        .modal-title { font-size: 18px; font-weight: 600; color: #4b0032; }
        .modal-close { width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .modal-close:hover { background: #e5e7eb; }
        .modal-body { padding: 20px; }
        .modal-section { margin-bottom: 24px; }
        .modal-section-title { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 12px; }
        .size-options, .shade-options { display: flex; flex-wrap: wrap; gap: 10px; }
        .shade-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
        .size-option, .shade-option {
            padding: 10px 20px; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer;
            font-size: 14px; font-weight: 500; transition: all 0.2s; background: white; text-align: center;
        }
        .size-option:hover, .shade-option:hover { border-color: #F67599; }
        .size-option.selected, .shade-option.selected { border-color: #F67599; background: #fef7fb; color: #4b0032; }
        .shade-color-preview { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid #e5e7eb; }
        .shade-option.selected .shade-color-preview { border-color: #4b0032; box-shadow: 0 0 0 2px #F67599; }
        .shade-name { font-size: 12px; color: #374151; }
        .modal-footer { padding: 20px; border-top: 1px solid #e5e7eb; display: flex; gap: 10px; }
        .modal-btn { flex: 1; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
        .modal-btn-primary { background: #4b0032; color: white; }
        .modal-btn-primary:hover:not(:disabled) { background: #6b004a; }
        .modal-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
        .modal-btn-secondary { background: #f3f4f6; color: #374151; }
        .modal-btn-secondary:hover { background: #e5e7eb; }
        .select-size-btn, .select-shade-btn {
            background: #fef7fb; color: #F67599; border: 1px solid #F67599; padding: 8px 16px;
            border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%;
        }
        .select-size-btn:hover, .select-shade-btn:hover { background: #F67599; color: white; }
        .variant-name-display { font-size: 11px; color: #6b7280; font-weight: 500; min-height: 16px; transition: all 0.2s ease; text-align: center; }
        .variant-name-display.updating { opacity: 0.6; }
        @media (max-width: 640px) { .modal-container { max-height: 95vh; } .shade-options { grid-template-columns: repeat(3, 1fr); } }