/* Brand Colors */
.bg-brand-primary { background-color: #283870; }
.bg-brand-secondary { background-color: #fecd00; }
.text-brand-primary { color: #283870; }
.text-brand-secondary { color: #fecd00; }
.border-brand-primary { border-color: #283870; }
.border-brand-secondary { border-color: #fecd00; }

.bg-blue-600 { background-color: #283870 !important; }
.bg-blue-600:hover { background-color: #1e2a5a !important; }
.bg-blue-700 { background-color: #1e2a5a !important; }

.category-card.active {
    border-color: #fecd00 !important;
    box-shadow: 0 0 0 3px rgba(254, 205, 0, 0.1) !important;
}

/* Search Input Focus */
input:focus,
select:focus {
    border-color: #fecd00 !important;
    ring-color: #fecd00 !important;
    --tw-ring-color: #fecd00 !important;
}

/* Active States */
.pagination-link.active {
    background: #283870 !important;
    border-color: #283870 !important;
}

.search-suggestion-item.active {
    background-color: rgba(254, 205, 0, 0.1) !important;
}

/* Badges and Status */
.bg-green-100 { background-color: rgba(254, 205, 0, 0.1) !important; }
.text-green-800 { color: #283870 !important; }

.bg-blue-100 { background-color: rgba(254, 205, 0, 0.1) !important; }
.text-blue-800 { color: #283870 !important; }

/* Product Card Enhancements */
.product-card:hover {
    border-color: #fecd00 !important;
}

/* Checkbox Focus */
input[type="checkbox"]:focus {
    ring-color: #fecd00 !important;
    border-color: #fecd00 !important;
}

/* Loading Spinner */
.loading-spinner {
    border-top-color: #fecd00 !important;
}
.swiper {
    width: 100%;
    height: 420px;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.category-card.active {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.product-card {
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: #f9fafb;
}

.search-suggestion-item.active {
    background-color: #eff6ff;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-highlight {
    background-color: #fef3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pagination styles */
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-link.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination-link.disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Collapsible Filter Styles */
.filter-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.filter-header {
    padding: 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.filter-header:hover {
    background: #f9fafb;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.filter-chevron {
    transition: transform 0.3s ease;
}

.filter-chevron.rotated {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.filter-content.open {
    max-height: none; /* Remove the fixed height */
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    overflow: visible; /* Change from hidden to visible */
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .sidebar-toggle {
        display: block;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 1rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .filters-sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.open {
        display: block;
    }
}