/* Reset and base styles */
#luige-catalog-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

/* Quick filter buttons - consistent styling */
.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: flex-start; /* Default left alignment */
}

.quick-filters.align-left {
    justify-content: flex-start;
}

.quick-filters.align-center {
    justify-content: center;
}

.quick-filter-btn {
    background: #fff;
    border: 2px solid #2dd4bf;
    color: #0f766e;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background: #2dd4bf;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

/* Special filter buttons styling */
.quick-filter-btn.special-filter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #667eea;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.quick-filter-btn.special-filter:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quick-filter-btn.special-filter.active {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    border-color: #5a67d8;
    box-shadow: 0 6px 20px rgba(90, 103, 216, 0.5);
}

.special-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Subtle animation for special buttons */
.quick-filter-btn.special-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.quick-filter-btn.special-filter:hover::before {
    left: 100%;
}

/* Filter controls */
.catalog-filter {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.catalog-filter select,
.catalog-filter input,
.catalog-filter button {
    padding: 0.6rem 0.8rem;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease;
    height: auto;
    min-height: 44px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    line-height: 1.4;
}

.catalog-filter select:focus,
.catalog-filter input:focus {
    outline: none;
    border-color: #74ddd0;
}

/* Ensure all inputs have consistent styling */
#filter-search {
    padding: 0.6rem 0.8rem !important;
    font-size: 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: white !important;
    height: auto !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}



/* Sort dropdown integrated with other filters */

/* Product grid - consistent card styling */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.catalog-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #74ddd0;
}

.catalog-item.hide {
    display: none;
}

/* Product content - consistent layout */
.catalog-name {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.3;
    flex-grow: 1;
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.catalog-category {
    background: #2dd4bf;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.catalog-country {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    flex-grow: 1;
    text-align: right;
}

.catalog-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
    text-align: center;
    padding: 0.5rem 0;
    border-top: 2px solid #f3f4f6;
    margin-top: auto;
}

/* Results info */
.results-info {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Results info */
.results-info {
    display: none;
    text-align: center;
    background: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn,
.page-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled),
.page-btn:hover {
    border-color: #74ddd0;
    color: #74ddd0;
}

.pagination-btn.active,
.page-btn.active {
    background: #74ddd0;
    border-color: #74ddd0;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    padding: 0 10px;
}

.page-ellipsis {
    color: #666;
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .catalog-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-filters {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .catalog-meta {
        gap: 0.5rem;
    }
    
    .catalog-country {
        text-align: left;
    }
    
    .pagination-container {
        padding: 1rem 0.75rem;
    }
    
    .pagination {
        flex-direction: row;
        gap: 0.2rem;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        white-space: nowrap;
        text-align: center;
    }
}



@media (max-width: 480px) {
    .quick-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 1.1rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .page-numbers {
        gap: 0.1rem;
        padding: 0 5px;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for smooth transitions */
.catalog-item {
    animation: fadeIn 0.3s ease-in-out;
}

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