/* Premium Shop Design System */
.filter-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    padding: 20px;
    border: none;
}

.filter-card .card {
    border: none;
    background: transparent;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.filter-card .card:last-child {
    border-bottom: none;
}

.filter-card .card-header {
    padding: 12px 0 !important;
}

.filter-card .card-header h5 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: #333;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #a64d79;
    transition: transform 0.3s ease;
}

.filter-card .card-body {
    padding: 0 0 20px 0 !important;
}

/* Color Swatches Enhancement */
.color-filter-grid {
    gap: 12px;
    padding: 5px 2px;
}

.color-swatch-label {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch-label:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-checkbox:checked+.color-swatch-label {
    border: 2px solid #a64d79 !important;
    box-shadow: 0 0 0 3px rgba(166, 77, 121, 0.2);
}

.color-checkbox:checked+.color-swatch-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* White color checkmark fix */
.color-swatch-label[data-color-name="White"]::after {
    color: #333 !important;
    text-shadow: none !important;
}

#color-all+label {
    background: #f8f9fa;
    color: #666;
}

/* Price Slider Enhancement */
#price-slider {
    margin: 35px 10px 20px;
    height: 4px;
}

#price-slider .noUi-connect {
    background: #a64d79;
}

#price-slider .noUi-handle {
    width: 18px;
    height: 18px;
    right: -9px;
    top: -8px;
    border-radius: 50%;
    background: #a64d79;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#price-slider .noUi-handle::before,
#price-slider .noUi-handle::after {
    display: none;
}

.noUi-tooltip {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    border: none;
}

/* Custom Inputs */
.custom-control-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
    padding-top: 2px;
}

.product-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff7e5e, #feb47b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-soldout-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Action Buttons */
.filter-actions {
    gap: 12px;
    margin-top: 25px;
}

.btn-apply {
    background: linear-gradient(135deg, #a64d79, #c06a92);
    border: none;
    border-radius: 40px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(166, 77, 121, 0.3);
}

.btn-reset {
    border-radius: 40px;
    border: 1px solid #ddd;
    padding: 10px;
    font-weight: 500;
}

.btn-reset:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

/* Pagination Modernization */
.pagination .page-item .page-link {
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border: 1px solid #eee;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #a64d79, #c06a92);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(166, 77, 121, 0.2);
}

.pagination .page-item .page-link:hover {
    background: #f8f9fa;
    color: #a64d79;
}

/* Product Grid Refinement */
.product-item {
    background: #fff;
    border-radius: 25px !important;
    overflow: hidden;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
}

.product-img {
    height: 320px !important;
    background: #f9f9f9 !important;
}

.product-details {
    padding: 20px 18px 24px !important;
}

.product-details h6 a {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a2a2a !important;
}

.product-details h6+div h6 {
    font-weight: 600;
    color: #a64d79;
    font-size: 1.1rem;
}

.product-details .product-name-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a2a2a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-details .text-muted.small {
    font-size: 0.7rem;
}

/* Rating stars – override to gold */
.product-details .text-primary.mr-2 i {
    color: #ffc107 !important;
}

.active-filter-badge {
    background: #f0f0f0;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remove-filter-icon {
    cursor: pointer;
    font-size: 0.8rem;
    color: #888;
    transition: color 0.2s;
}

.remove-filter-icon:hover {
    color: #dc3545;
}

.dropdown .btn-outline-secondary {
    border-radius: 40px;
    border-color: #e0e0e0;
    color: #555;
    background: white;
    padding: 8px 18px;
}

.dropdown .btn-outline-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}

.dropdown-item.active {
    background: rgba(166, 77, 121, 0.08);
    color: var(--primary-color);
}

#mobileFilterToggle {
    background: white;
    border: 1px solid #eee;
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

#mobileFilterToggle i {
    margin-right: 6px;
}

/* Mobile Specifics */
@media (max-width: 991.98px) {
    .shop-sidebar-container {
        display: none;
        width: 100%;
        margin-bottom: 30px;
    }

    .shop-sidebar-container.active {
        display: block;
        animation: slideDown 0.4s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
