:where([class^="ri-"])::before { content: "\f3c2"; }
body {
    background-color: #0f172a;
    color: #e2e8f0;
}
.product-card:hover .product-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
}
.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
}
.custom-checkbox {
    display: none;
}
.custom-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.custom-checkbox-label:before {
    content: '';
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #6366f1;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.custom-checkbox:checked + .custom-checkbox-label:before {
    background-color: #6366f1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .4s;
    border-radius: 34px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .switch-slider {
    background-color: #6366f1;
}
input:checked + .switch-slider:before {
    transform: translateX(26px);
}
.cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    margin-top: 10px;
    overflow: hidden;
}
.cart-dropdown.show {
    display: block;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.filter-tag i {
    margin-left: 0.5rem;
    cursor: pointer;
}
.loading-spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}
