/* Products Catalog Specific Styles */

.catalog-header {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.catalog-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.catalog-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Catalog Filter Bar */
.filter-section {
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .filter-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Search Bar */
.search-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.search-input-group {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 18px;
    padding-right: 48px;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px 12px;
    transition: color 0.2s;
}

.search-button:hover {
    color: var(--color-accent);
}

/* Category Filter Dropdown */
.category-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.category-select {
    width: 100%;
    padding: 12px 40px 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.category-select:hover {
    color: var(--color-primary);
    border-color: rgba(245, 158, 11, 0.4);
    background-color: white;
}

.category-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Custom dropdown arrow using inline SVG */
.category-select-wrapper::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.category-select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Empty State */
.empty-catalog-state {
    padding: 80px 24px;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-clear-filters:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
