:root {
    --purple-dark: #1a0b2e;
    --purple-medium: #3c1372;
    --purple-light: #8a3cff;
    --green-dark: #366c54;
    --green-medium: #4c9a70;
    --green-light: #6bb58b;
    --gray-cool: #6c757d;
    --light-bg: #f8f9fa;
}

.products-tech-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 30%, #e8edf2 70%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.products-tech-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 60, 255, 0.12) 0%, rgba(138, 60, 255, 0.05) 30%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.products-tech-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(76, 154, 112, 0.1) 0%, rgba(76, 154, 112, 0.04) 35%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.products-tech-section .container {
    position: relative;
    z-index: 2;
}

/* Product Card Styles */
.product-card {
    height: 100%;
}

.product-card-inner {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(60, 19, 114, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-inner:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--purple-light);
    transform: translateY(-5px);
}

.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.col-lg-3,
.col-md-6 {
    display: flex;
    flex-direction: column;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Badge Styles - Lighter Colors */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 51, 102, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.badge-deal {
    background: rgba(255, 51, 102, 0.9);
}

.badge-featured {
    background: rgba(100, 40, 204, 0.9);
}

.badge-limited {
    background: rgba(248, 150, 30, 0.9);
}

[dir="ltr"] .product-badge {
    right: auto;
    left: 15px;
}

/* Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 19, 114, 0.6), rgba(54, 108, 84, 0.6));
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card-inner:hover .product-overlay {
    opacity: 1;
}

.product-quick-view {
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    color: var(--purple-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-quick-view:hover {
    background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
    color: white;
    transform: scale(1.05);
}

/* Product Card Body */
[dir="rtl"] .product-card-body {
    text-align: right;
}

[dir="ltr"] .product-card-body {
    text-align: left;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-medium);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category i {
    font-size: 0.8rem;
    color: var(--green-dark);
}

/* Wishlist Button */
.wishlist-wrapper {
    position: relative;
    display: inline-flex;
}

.btn-wishlist {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.btn-wishlist i {
    transition: opacity 0.2s ease;
}

.btn-wishlist .wishlist-loader {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(108, 117, 125, 0.3);
    border-top-color: #ff5252;
    border-radius: 50%;
    animation: wishlist-spin 0.6s linear infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.btn-wishlist.loading i {
    opacity: 0;
    visibility: hidden;
}

.btn-wishlist.loading .wishlist-loader {
    opacity: 1;
    visibility: visible;
}

@keyframes wishlist-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-wishlist:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
}

.btn-wishlist.active i {
    font-weight: 900;
    color: #ff5252;
}

.btn-wishlist.active {
    background: #ffebee;
}

.product-title {
    color: var(--purple-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.product-desc {
    color: var(--gray-cool);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(60, 19, 114, 0.05);
    border-bottom: 1px solid rgba(60, 19, 114, 0.05);
}

.stars-container {
    display: flex;
    gap: 3px;
}

.stars-container i {
    font-size: 0.75rem;
    color: #ffc107;
}

.rating-count {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
}

/* Price Card */
.price-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(60, 19, 114, 0.08);
    transition: all 0.2s ease;
}

.price-card:hover {
    border-color: var(--purple-light);
    box-shadow: 0 3px 12px rgba(60, 19, 114, 0.08);
}

.price-main {
    margin-bottom: 8px;
    text-align: center;
}

.price-iqd,
.price-usd {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency-symbol {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple-dark);
    line-height: 1;
}

.price-discount-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(60, 19, 114, 0.1);
}

.old-price-iqd,
.old-price-usd {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
}

.old-price-label {
    color: #6c757d;
}

.old-price-value {
    text-decoration: line-through;
    color: #6c757d;
    font-weight: 600;
}

.discount-badge {
    background: linear-gradient(135deg, #e53935, #ff5252);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.price-reference {
    font-size: 0.65rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(60, 19, 114, 0.05);
}

.price-reference i {
    color: var(--green-dark);
    font-size: 0.6rem;
}

.product-d-none {
    display: none !important;
}

/* Buttons - Clean hover effects */
.btn-add-to-cart {
    background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #2d0f58, #2a5a3e);
    color: white;
    box-shadow: 0 6px 14px rgba(60, 19, 114, 0.3);
}

.btn-buy-now {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #e53935, #f57c00);
    color: white;
    box-shadow: 0 6px 14px rgba(255, 107, 107, 0.3);
}

/* Button Loading States */
.btn-add-to-cart.loading {
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart.loading span,
.btn-add-to-cart.loading i {
    opacity: 0;
}

.btn-add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: button-spin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes button-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-add-to-cart.success {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium)) !important;
}

.product-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 !important;
}

.product-hr {
    width: 80%;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 19, 114, 0.2), transparent);
    margin: 0;
}

/* Product Details Link */
.product-details-link {
    margin-top: 8px;
}

.product-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    background: transparent;
    color: var(--purple-medium);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 100%;
}

.product-details-btn:hover {
    background: rgba(60, 19, 114, 0.08);
    color: var(--purple-dark);
}

.product-details-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.product-card-inner:hover .product-image {
    transform: scale(1.05);
}

/* Filter Styles - Clean & Minimal (No Icons) */
.filter-wrapper-new {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(60, 19, 114, 0.08);
}

.filter-header-mobile {
    display: none;
}

.filter-nav-wrapper {
    width: 100%;
}

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.filter-nav-btn {
    background: transparent;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.filter-nav-btn:hover {
    background: rgba(60, 19, 114, 0.08);
    color: var(--purple-dark);
}

.filter-nav-btn.active {
    background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(60, 19, 114, 0.2);
}

.filter-nav-count {
    display: inline-block;
    background: rgba(60, 19, 114, 0.1);
    border-radius: 30px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    color: var(--purple-medium);
}

.filter-nav-btn.active .filter-nav-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Loader and Results */
.products-loader-overlay {
    position: relative;
    min-height: 400px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.products-loader-overlay.active {
    display: flex;
}

.products-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(60, 19, 114, 0.1);
    border-top-color: var(--purple-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.products-grid-inner {
    transition: opacity 0.2s ease;
    opacity: 1;
    display: block;
}

.no-results-message {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: none;
}

.no-results-message.show {
    display: block !important;
}

.no-results-icon {
    font-size: 4.5rem;
    color: var(--gray-cool);
    margin-bottom: 1.5rem;
}

.no-results-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--purple-dark);
}

.no-results-text {
    font-size: 1.1rem;
    color: var(--gray-cool);
    max-width: 500px;
    margin: 0 auto;
}

.btn-show-all-filters {
    margin-top: 1.5rem;
    padding: 10px 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-all-filters:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
    box-shadow: 0 4px 12px rgba(60, 19, 114, 0.2);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link,
.pagination-link {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--purple-dark);
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
    color: white;
}

.page-link:hover,
.pagination-link:hover {
    background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
    color: white;
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.btn-view-all {
    background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(60, 19, 114, 0.15);
    gap: 10px;
    cursor: pointer;
}


.btn-view-all:hover {
    background: linear-gradient(135deg, #2d0f58, #2a5a3e);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(60, 19, 114, 0.25);
    transform: translateY(-2px);
}

/* Header Styles */
.products-header {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem !important;
}

.products-badge {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
    color: white;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(60, 19, 114, 0.2);
}

.products-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--purple-dark);
}

.products-highlight {
    background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.products-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--gray-cool);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .products-main-title {
        font-size: 2.2rem;
    }

    .products-subtitle {
        font-size: 1.1rem;
    }
    
    .products-tech-section::before {
        width: 350px;
        height: 350px;
        top: -80px;
        right: -60px;
    }

    .products-tech-section::after {
        width: 400px;
        height: 400px;
        bottom: -70px;
        left: -70px;
    }
}

@media (max-width: 768px) {
    .products-tech-section {
        padding: 3rem 0;
    }

    .products-main-title {
        font-size: 1.8rem;
    }

    .product-card-body {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
        min-height: 42px;
    }
    
    .product-desc {
        font-size: 0.8rem;
    }

    .price-value {
        font-size: 1.3rem;
    }
    
    .currency-symbol {
        font-size: 0.9rem;
    }
    
    .price-card {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .products-tech-section::before {
        width: 280px;
        height: 280px;
        top: -50px;
        right: -40px;
    }

    .products-tech-section::after {
        width: 320px;
        height: 320px;
        bottom: -50px;
        left: -50px;
    }
    
    /* Mobile Filter Styles */
    .filter-header-mobile {
        display: block;
        width: 100%;
    }

    .filter-toggle-mobile {
        width: 100%;
        background: linear-gradient(135deg, var(--purple-medium), var(--green-medium));
        border: none;
        border-radius: 12px;
        padding: 12px 16px;
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .filter-toggle-text {
        font-size: 0.85rem;
    }

    .filter-toggle-mobile i:first-child {
        font-size: 0.9rem;
    }

    [dir="rtl"] .filter-toggle-mobile i:first-child {
        margin-left: 8px;
    }

    [dir="ltr"] .filter-toggle-mobile i:first-child {
        margin-right: 8px;
    }

    .toggle-icon {
        transition: transform 0.2s ease;
        font-size: 0.85rem;
    }

    .filter-toggle-mobile.active .toggle-icon {
        transform: rotate(180deg);
    }

    .filter-nav-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .filter-nav-wrapper.show {
        max-height: 800px;
    }

    .filter-container {
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    .filter-nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 0 0 0;
        background: transparent;
    }

    .filter-nav-btn {
        background: white;
        border: 1px solid rgba(60, 19, 114, 0.1);
        border-radius: 40px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .filter-nav-btn.active {
        background: linear-gradient(135deg, var(--purple-dark), var(--green-dark));
        border-color: transparent;
        color: white;
    }

    .filter-nav-count {
        margin-left: 0.4rem;
        font-size: 0.65rem;
    }

    .no-results-title {
        font-size: 1.5rem;
    }

    .no-results-text {
        font-size: 1rem;
    }
    
    .pagination {
        gap: 0.4rem;
    }
    
    .page-link,
    .pagination-link {
        padding: 0.45rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .product-details-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .products-header {
        margin-bottom: 2rem !important;
    }

    .products-main-title {
        font-size: 1.6rem;
    }

    .products-subtitle {
        font-size: 1rem;
    }
    
    .product-card-body {
        padding: 12px;
    }

    .product-title {
        font-size: 0.9rem;
        min-height: 38px;
    }
    
    .product-category {
        font-size: 0.7rem;
    }
    
    .product-category i {
        font-size: 0.7rem;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
    
    .currency-symbol {
        font-size: 0.85rem;
    }
    
    .price-card {
        padding: 8px;
    }
    
    .btn-add-to-cart,
    .btn-buy-now {
        padding: 7px;
        font-size: 0.75rem;
    }
    
    .btn-add-to-cart i,
    .btn-buy-now i {
        font-size: 0.7rem;
    }
    
    .product-rating .stars-container i {
        font-size: 0.65rem;
    }
    
    .rating-count {
        font-size: 0.6rem;
    }
    
    .discount-badge {
        padding: 2px 8px;
        font-size: 0.6rem;
    }
    
    .old-price-value {
        font-size: 0.65rem;
    }
    
    .product-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
        top: 10px;
        right: 10px;
    }
    
    [dir="ltr"] .product-badge {
        right: auto;
        left: 10px;
    }
    
    .products-tech-section::before {
        width: 200px;
        height: 200px;
        top: -30px;
        right: -30px;
    }

    .products-tech-section::after {
        width: 220px;
        height: 220px;
        bottom: -40px;
        left: -40px;
    }
    
    .filter-toggle-text {
        font-size: 0.8rem;
    }

    .filter-nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .filter-nav-count {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .no-results-title {
        font-size: 1.3rem;
    }

    .no-results-text {
        font-size: 0.9rem;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .page-link,
    .pagination-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        min-width: 32px;
    }
    
    .pagination li:nth-child(n+4):nth-last-child(n+4) {
        display: none;
    }
    
    .pagination li:first-child,
    .pagination li:last-child,
    .pagination li.active,
    .pagination li:nth-child(2),
    .pagination li:nth-last-child(2) {
        display: block;
    }
    
    .g-4 {
        --bs-gutter-y: 0.8rem;
        --bs-gutter-x: 0.8rem;
    }
    
    .no-results-message {
        padding: 40px 15px;
    }
    
    .no-results-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .no-results-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .no-results-text {
        font-size: 0.85rem;
    }
    
    .btn-show-all-filters {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    
    .btn-view-all {
        padding: 8px 25px;
        font-size: 0.85rem;
    }
    
    .btn-view-all i {
        font-size: 0.75rem;
    }
    
    .product-quick-view {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Ensure proper visibility states */
.products-grid-inner {
    display: block;
}

.products-loader-overlay {
    display: none !important;
}

.products-loader-overlay.active {
    display: flex !important;
}

.no-results-message {
    display: none !important;
}

.no-results-message.show {
    display: block !important;
}

/* Better Touch Targets for Mobile */
@media (max-width: 768px) {
    .btn-add-to-cart,
    .btn-buy-now,
    .filter-nav-btn,
    .pagination-link {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .product-card-inner,
    .product-image,
    .btn-add-to-cart,
    .btn-buy-now,
    .filter-nav-btn,
    .pagination-link {
        transition: none;
    }
    
    .product-card-inner:hover {
        transform: none;
    }
    
    .product-card-inner:hover .product-image {
        transform: none;
    }
    
    .btn-wishlist .wishlist-loader {
        animation: none;
    }
}