/* Thikis Search Button */
        .thikis-search-button {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #333;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            z-index: 100;
        }

        .thikis-search-button:hover {
            background: #555;
        }

        /* Thikis Modal Overlay */
        .thikis-search-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            animation: thikis-fadeIn 0.3s ease;
        }

        .thikis-search-modal.thikis-active {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 30px;
        }

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

        /* Thikis Modal Content - WIDER */
        .thikis-search-modal-content {
            background: white;
            width: 95%;
            max-width: 1000px;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            max-height: 90vh;
            overflow-y: auto;
            animation: thikis-slideDown 0.3s ease;
        }

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

        /* Thikis Header */
        .thikis-search-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px;
            border-bottom: 1px solid #eee;
        }

        .thikis-search-modal-header h2 {
            font-size: 28px;
            font-weight: 600;
        }

        .thikis-search-close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #333;
        }

        /* Thikis Search Input */
        .thikis-search-input-wrapper {
            padding: 30px;
            border-bottom: 1px solid #eee;
            display: flex;
            gap: 10px;
            align-items: center;
            position: relative;
        }

        .thikis-search-input-wrapper input {
            flex: 1;
            padding: 15px 50px 15px 20px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-family: 'Garamond', serif;
        }

        .thikis-search-input-wrapper input:focus {
            outline: none;
            border-color: #333;
            box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
        }

        .thikis-search-icon {
            position: absolute;
            right: 40px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #333;
        }

        /* Thikis Results Container */
        .thikis-search-results {
            padding: 30px;
        }

        .thikis-search-message {
            text-align: center;
            color: #666;
            padding: 20px;
            font-size: 16px;
        }

        /* Category Section - HORIZONTAL BUTTONS */
        .thikis-category-section {
            margin-bottom: 40px;
        }

        .thikis-category-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 10px;
            /*border-bottom: 1px solid #eee;*/
        }

        .thikis-category-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .thikis-category-btn {
            background: white;
            border: 1px solid #ddd;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 14px;
            font-family: 'Garamond', serif;
            transition: all 0.3s ease;
        }

        .thikis-category-btn:hover {
            background: #333;
            color: white;
            border-color: #333;
        }

        /* Recently Viewed Section */
        .thikis-recently-viewed-section {
            margin-bottom: 40px;
        }

        .thikis-recently-viewed-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 10px;
            /*border-bottom: 1px solid #eee;*/
        }

        .thikis-recently-viewed-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .thikis-recently-viewed-card {
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .thikis-recently-viewed-card:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }

        .thikis-recently-viewed-image {
            width: 100%;
            height: 150px;
            background: #f5f5f5;
            overflow: hidden;
        }

        .thikis-recently-viewed-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thikis-recently-viewed-info {
            padding: 10px;
            text-align: center;
        }

        .thikis-recently-viewed-name {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .thikis-recently-viewed-price {
            font-size: 14px;
            font-weight: 700;
            color: #333;
        }

        /* Search Results - 2 COLUMN GRID */
        .thikis-search-results-list {
            display: none;
        }

        .thikis-search-results-list.thikis-show {
            display: block;
        }

        .thikis-search-products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .thikis-search-product-card {
            border: none;
            border-bottom: 1px solid #eee;
            border-radius: 0;
            overflow: visible;
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: row;
            gap: 15px;
            padding: 15px 0;
            align-items: flex-start;
        }

        .thikis-search-product-card:hover {
            box-shadow: none;
            transform: none;
            background: #fafafa;
            padding-left: 10px;
            padding-right: 10px;
        }

        .thikis-search-product-image {
            width: 100px;
            height: 100px;
            min-width: 100px;
            background: #f5f5f5;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
        }

        .thikis-search-product-image img {
            width: 90%;
            height: 90%;
            object-fit: contain;
        }

        .thikis-search-product-info {
            padding: 0;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .thikis-search-product-brand {
            font-size: 10px;
            color: #999;
            text-transform: uppercase;
            margin-bottom: 5px;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        .thikis-search-product-name {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .thikis-search-product-price {
            font-size: 14px;
            font-weight: 700;
            color: #333;
        }

        /* Loading State */
        .thikis-loading {
            text-align: center;
            padding: 30px;
            color: #666;
        }

        .thikis-spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #333;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: thikis-spin 1s linear infinite;
            margin: 0 auto 15px;
        }

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

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .thikis-search-modal-content {
                width: 95%;
                max-width: none;
            }

            .thikis-search-modal-header {
                padding: 20px;
            }

            .thikis-search-modal-header h2 {
                font-size: 22px;
            }

            .thikis-search-input-wrapper {
                padding: 20px;
            }

            .thikis-search-results {
                padding: 20px;
            }

            /* Mobile - 1 COLUMN GRID */
            .thikis-search-products-grid {
                grid-template-columns: 1fr;
            }

            .thikis-search-product-image {
                width: 80px;
                height: 80px;
            }

            .thikis-recently-viewed-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .thikis-category-buttons {
                gap: 8px;
            }

            .thikis-category-btn {
                padding: 8px 16px;
                font-size: 13px;
            }
        }
        
        
        
        
        
        
        
         /* Recently Viewed Section - NO SCROLL ON DESKTOP */
.thikis-recently-viewed-section {
    margin-bottom: 40px;
}

.thikis-recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    /* NO max-height or overflow on desktop - shows all items */
}

/* Scrollbar styling (will only apply on mobile when scrollable) */
.thikis-recently-viewed-grid::-webkit-scrollbar {
    width: 8px;
}

.thikis-recently-viewed-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thikis-recently-viewed-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.thikis-recently-viewed-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* MOBILE ONLY - Enable scrolling */
@media (max-width: 768px) {
    .thikis-recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px; /* Set height limit on mobile */
        overflow-y: auto; /* Enable scrolling on mobile */
        padding-right: 10px; /* Padding for scrollbar */
    }
}