/* ============================================
   ADVANCE LIST PAGE STYLES
   ============================================ */

a:hover {
    text-decoration: none;
}

/* ============================================
   NO RESULTS STYLES
   ============================================ */

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin: 20px 0;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3e8 0%, #fff5f0 100%);
    border-radius: 50%;
    margin-bottom: 24px;
}

.no-results-icon i {
    font-size: 40px;
    color: #ff6b35;
    opacity: 0.8;
}

.no-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.no-results-text {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
    max-width: 400px;
    line-height: 1.7;
}

.no-results-text strong {
    color: #ff6b35;
    font-weight: 600;
}

.no-results-suggestions {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: right;
    direction: rtl;
}

.no-results-suggestions span {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    display: block;
    margin-bottom: 10px;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-suggestions li {
    font-size: 13px;
    color: #6b7280;
    padding: 6px 0;
    padding-right: 20px;
    position: relative;
}

.no-results-suggestions li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #ff6b35;
    font-weight: bold;
}

.no-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ff6b35;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.no-results-btn:hover {
    background: #e55a2b;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.no-results-btn i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 576px) {
    .no-results-container {
        padding: 40px 16px;
    }

    .no-results-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .no-results-icon i {
        font-size: 32px;
    }

    .no-results-title {
        font-size: 18px;
    }

    .no-results-text {
        font-size: 14px;
    }

    .no-results-suggestions {
        padding: 14px 18px;
    }

    .no-results-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================
   INLINE SEARCH STYLES
   ============================================ */

.search-inline-form {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.search-inline-wrapper {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-inline-wrapper:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-inline-input {
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    padding: 8px 12px;
    width: 300px;
    direction: rtl;
}

.search-inline-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-inline-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-inline-clear:hover {
    background: #fecaca;
    color: #b91c1c;
    text-decoration: none;
}

.search-inline-clear i {
    font-size: 10px;
}

.search-inline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ff6b35;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-inline-btn:hover {
    background: #e55a2b;
}

.search-inline-btn i {
    font-size: 13px;
}

/* ============================================
   HORIZONTAL SORT BAR STYLES
   ============================================ */

.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    direction: rtl;
    flex-wrap: wrap;
}

.sort-bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.sort-bar-label i {
    font-size: 14px;
    color: #ff6b35;
}

.sort-bar-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.sort-btn:hover {
    background: #fff;
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
}

.sort-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #ffffff;
}

.sort-btn.active:hover {
    background: #e55a2b;
    color: #ffffff;
    text-decoration: none;
}

.sort-btn i {
    font-size: 11px;
}

/* Divider */
.sort-bar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 4px;
}

/* Stock Filter Button */
.stock-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    margin-right: auto;
}

.stock-filter-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
    text-decoration: none;
    color: #166534;
}

.stock-filter-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.stock-filter-btn.active:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    text-decoration: none;
}

.stock-filter-btn i {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 991px) {
    .sort-bar {
        padding: 12px 16px;
        gap: 10px;
    }

    .sort-bar-label {
        font-size: 13px;
        padding-left: 10px;
    }

    .sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .stock-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-inline-input {
        width: 140px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .search-inline-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .sort-bar {
        padding: 12px 14px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .sort-bar-label {
        border-left: none;
        padding-left: 0;
    }

    .sort-bar-buttons {
        gap: 6px;
    }

    .sort-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .sort-bar-divider {
        display: none;
    }

    .stock-filter-btn {
        padding: 6px 10px;
        font-size: 11px;
        margin-right: 0;
        order: 10;
    }

    .search-inline-form {
        width: 100%;
        margin-right: 0;
        margin-top: 8px;
        order: 5;
    }

    .search-inline-wrapper {
        width: 100%;
    }

    .search-inline-input {
        flex: 1;
        width: auto;
        font-size: 13px;
        padding: 10px 12px;
    }

    .search-inline-btn {
        width: 44px;
        height: 44px;
    }

    .search-inline-btn i {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .sort-bar {
        padding: 10px;
        gap: 6px;
    }

    .sort-bar-label {
        font-size: 11px;
        width: 100%;
        margin-bottom: 4px;
    }

    .sort-bar-buttons {
        gap: 4px;
        flex-wrap: nowrap;
        flex: 1;
    }

    .sort-btn {
        padding: 8px 0;
        font-size: 11px;
        flex: 1;
        justify-content: center;
    }

    .sort-btn i {
        font-size: 10px;
    }

    .stock-filter-btn {
        padding: 8px 10px;
        font-size: 11px;
        margin-right: 0;
        order: 0;
        white-space: nowrap;
    }

    .search-inline-form {
        margin-top: 8px;
        order: 5;
    }

    .search-inline-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-inline-btn {
        width: 42px;
        height: 42px;
    }
}

/* ============================================
   SIMPLE DEVICE CARD DESIGN
   ============================================ */

/* Card Link Wrapper */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Custom 5-column grid for cards */
.col-card {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 1399px) {
    .col-card {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 1199px) {
    .col-card {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .col-card {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .col-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .col-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.simple-device-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.card-link:hover .simple-device-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #ff6b35;
}

/* Out of Stock Styles */
.card-link.out-of-stock .simple-device-card {
    opacity: 0.6;
    background: #f9f9f9;
    border-color: #d0d0d0;
}

.card-link.out-of-stock:hover .simple-device-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
    cursor: not-allowed;
}

.card-link.out-of-stock .simple-device-image {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* Out of Stock Label (in place of price) */
.out-of-stock-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
    padding: 25px 0;
}

.out-of-stock-label i {
    font-size: 16px;
}


/* Image Container with Colors */
.simple-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Image Wrapper */
.simple-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    padding: 16px;
}

.simple-device-image {
    width: 240px;
    height: 240px;
    line-height: 0;
    object-fit: contain;
}

/* Color Circles - Fixed on Top Left */
.color-circles-wrapper {
    position: absolute;
    top: -5px;
    left: -14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 6px;
    background: transparent;
    border-radius: 8px;
    border: none;
    min-width: 40px;
    z-index: 10;
}

.color-circle-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-circle-item:hover {
    transform: scale(1.15);
    z-index: 10;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #e0e0e0, 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-circle-item:hover .color-circle {
    box-shadow: 0 0 0 2px #ff6b35, 0 3px 8px rgba(255, 107, 53, 0.4);
    border-color: #fff;
}

/* Adjust size for many colors (8+) */
.color-circles-wrapper:has(.color-circle-item:nth-child(n+8)) {
    gap: 6px;
    padding: 6px 5px;
}

.color-circles-wrapper:has(.color-circle-item:nth-child(n+8)) .color-circle {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

/* Title */
.simple-device-title {
    font-size: 15px;
    font-weight: 700;
    color: #23254e;
    margin: 0 0 12px 0;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
    text-align: center;
}

/* Divider */
.simple-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 12px 0;
}

/* Card Footer */
.simple-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-top: 12px;
}

/* Price */
.simple-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
}

.simple-price-amount {
    font-size: 28px;
    font-weight: 900;
    color: #23254e;
    direction: ltr;
    letter-spacing: -0.5px;
}

.simple-price-currency {
    font-size: 16px;
    font-weight: 700;
    color: #81858b;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .simple-device-card {
        padding: 14px;
    }

    .simple-device-image {
        width: 200px;
        height: 200px;
    }

    .simple-device-title {
        font-size: 14px;
    }

    .simple-price-amount {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .simple-device-card {
        padding: 12px;
    }

    .simple-image-wrapper {
        padding: 12px;
    }

    .simple-device-image {
        width: 180px;
        height: 180px;
    }

    .simple-device-title {
        font-size: 13px;
        min-height: 42px;
    }

    .simple-price-amount {
        font-size: 22px;
    }

    .simple-price-currency {
        font-size: 14px;
    }

    .color-circles-wrapper {
        top: 12px;
        left: 0;
    }
}

@media (max-width: 576px) {
    .simple-device-card {
        padding: 16px;
    }

    .simple-image-wrapper {
        padding: 20px;
    }

    .simple-device-image {
        width: 200px;
        height: 200px;
    }

    .simple-device-title {
        font-size: 14px;
    }

    .simple-price-amount {
        font-size: 24px;
    }

    .color-circles-wrapper {
        top: 20px;
        left: 20px;
        padding: 6px 5px;
        min-width: 36px;
        gap: 5px;
    }

    .color-circle {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .color-circles-wrapper:has(.color-circle-item:nth-child(n+8)) .color-circle {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
}

/* ============================================
   CUSTOM PAGINATION STYLES
   ============================================ */

.custom-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.pagination-item {
    margin: 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
}

/* Active State */
.pagination-item.active .pagination-btn {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.pagination-item.active .pagination-btn:hover {
    background: #ff6b35;
    color: #ffffff;
}

/* Disabled State */
.pagination-item.disabled .pagination-btn {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-item.disabled .pagination-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #d1d5db;
}

/* Previous/Next Buttons */
.pagination-prev,
.pagination-next {
    min-width: 44px;
    font-size: 14px;
}

.pagination-prev i,
.pagination-next i {
    font-size: 13px;
}

/* Dots */
.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #9ca3af;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
}

/* Page Info */
.pagination-info {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .pagination-prev,
    .pagination-next {
        min-width: 40px;
    }

    .pagination-dots {
        min-width: 40px;
        height: 40px;
    }

    .pagination-info {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .pagination-list {
        gap: 6px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        border-width: 1.5px;
    }

    .pagination-prev,
    .pagination-next {
        min-width: 36px;
    }

    .pagination-dots {
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Filter Drawer Toggle Button at Bottom */
.filter-drawer-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
    border-radius: 0;
    border-top: 3px solid #ff6b35;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backdrop-filter: blur(10px);
}

.filter-drawer-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-drawer-toggle:hover::before {
    opacity: 0.15;
}

.filter-drawer-toggle:hover {
    border-top-color: #f7931e;
    box-shadow: 0 -6px 30px rgba(255, 107, 53, 0.4);
}

.filter-drawer-toggle:active {
    transform: scale(0.98);
}

.filter-drawer-toggle i:first-child {
    font-size: 24px;
}

.filter-drawer-toggle i:last-child {
    font-size: 18px;
    animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.filter-drawer-toggle span {
    font-size: 20px;
    letter-spacing: 0.5px;
}

.filter-drawer-close-mobile {
    display: none;
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #ff6b35;
    z-index: 2;
}

.filter-drawer-close-mobile i {
    font-size: 18px;
}

@media (min-width: 768px) {
    .filter-drawer-close-mobile {
        display: none !important;
    }
}

/* Filter Drawer Overlay */
.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Desktop: Normal sidebar (xl and up) */
@media (min-width: 1200px) {
    .filter-drawer-toggle {
        display: none !important;
    }
    
    .filter-sidebar-wrapper {
        position: relative;
        transform: none !important;
    }
}

/* Mobile & Tablets: Drawer sidebar */
@media (max-width: 1199px) {

    .filter-sidebar-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        z-index: 1050;
        background: white;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        /* padding: 20px !important; */
        -webkit-overflow-scrolling: touch;
    }

    .filter-sidebar-wrapper.active {
        right: 0;
    }

    .filter-sidebar-wrapper aside {
        margin-top: 0;
        box-shadow: none !important;
    }

    /* Expand content area to full width when drawer is hidden */
    .col-xl-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Tablets: Drawer width */
@media (min-width: 768px) and (max-width: 1199px) {
    .filter-sidebar-wrapper {
        width: 500px;
    }
}

/* Mobile: Full width drawer */
@media (max-width: 767px) {
    .filter-sidebar-wrapper {
        width: 100%;
        max-width: 400px;
        padding: 56px 20px 20px 20px !important;
    }

    .filter-sidebar-wrapper aside {
        padding-top: 0 !important;
    }

    .filter-drawer-close-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Scrollbar for drawer (Mobile & Tablets) */
@media (max-width: 1199px) {
    .filter-sidebar-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .filter-sidebar-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .filter-sidebar-wrapper::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 10px;
    }

    .filter-sidebar-wrapper::-webkit-scrollbar-thumb:hover {
        background: #f7931e;
    }
}

/* Mobile: Adjust filter button for smaller screens */
@media (max-width: 576px) {
    .filter-drawer-toggle {
        padding: 14px 16px;
    }

    .filter-drawer-toggle span {
        font-size: 16px;
    }

    .filter-drawer-toggle i:first-child {
        font-size: 20px;
    }

    .filter-drawer-toggle i:last-child {
        font-size: 16px;
    }
}

/* ============================================
   LAZY LOADING STYLES - FIXED FOR NO FOUC
   ============================================ */

/* Cards are visible by default - no opacity: 0 to prevent FOUC */
.lazy-card-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply animation when JS adds the class */
.lazy-card-wrapper.js-loaded {
    animation: fadeInUp 0.5s ease forwards;
}

.lazy-card {
    will-change: opacity, transform;
}

/* Image shimmer effect - only before loaded */
.lazy-image:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-image.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

/* Stagger animation for cards - only when JS is active */
.lazy-card-wrapper.js-loaded:nth-child(1) { animation-delay: 0.02s; }
.lazy-card-wrapper.js-loaded:nth-child(2) { animation-delay: 0.04s; }
.lazy-card-wrapper.js-loaded:nth-child(3) { animation-delay: 0.06s; }
.lazy-card-wrapper.js-loaded:nth-child(4) { animation-delay: 0.08s; }
.lazy-card-wrapper.js-loaded:nth-child(5) { animation-delay: 0.1s; }
.lazy-card-wrapper.js-loaded:nth-child(6) { animation-delay: 0.12s; }
.lazy-card-wrapper.js-loaded:nth-child(7) { animation-delay: 0.14s; }
.lazy-card-wrapper.js-loaded:nth-child(8) { animation-delay: 0.16s; }
.lazy-card-wrapper.js-loaded:nth-child(9) { animation-delay: 0.18s; }
.lazy-card-wrapper.js-loaded:nth-child(10) { animation-delay: 0.2s; }
.lazy-card-wrapper.js-loaded:nth-child(11) { animation-delay: 0.22s; }
.lazy-card-wrapper.js-loaded:nth-child(12) { animation-delay: 0.24s; }
.lazy-card-wrapper.js-loaded:nth-child(13) { animation-delay: 0.26s; }
.lazy-card-wrapper.js-loaded:nth-child(14) { animation-delay: 0.28s; }
.lazy-card-wrapper.js-loaded:nth-child(15) { animation-delay: 0.3s; }
.lazy-card-wrapper.js-loaded:nth-child(16) { animation-delay: 0.32s; }
.lazy-card-wrapper.js-loaded:nth-child(17) { animation-delay: 0.34s; }
.lazy-card-wrapper.js-loaded:nth-child(18) { animation-delay: 0.36s; }
.lazy-card-wrapper.js-loaded:nth-child(19) { animation-delay: 0.38s; }
.lazy-card-wrapper.js-loaded:nth-child(20) { animation-delay: 0.4s; }

