/* YITH WCAN Filter Styles */
.yith-wcan-filters {
    margin: 0 !important;
}

.yith-wcan-filters .yith-wcan-filter {
    margin-bottom: 1.5rem;
}

.yith-wcan-filters .yith-wcan-filter h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    padding: 0.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 0.5rem;
}

.yith-wcan-filters .yith-wcan-filter h4:hover {
    background-color: #f9fafb;
}

.yith-wcan-filters .yith-wcan-filter h4::after {
    content: '';
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}

.yith-wcan-filters .yith-wcan-filter.closed h4::after {
    transform: rotate(-180deg);
}

.yith-wcan-filters .yith-wcan-filter .filter-content {
    padding-top: 0.75rem;
}

/* Checkboxes */
.yith-wcan-filters .yith-wcan-filter .filter-items-container {
    margin-top: 0.75rem;
}

.yith-wcan-filters .yith-wcan-filter .filter-item {
    margin-bottom: 0.75rem;
    padding: 0;
}

.yith-wcan-filters .yith-wcan-filter .filter-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.yith-wcan-filters .yith-wcan-filter .filter-item label > input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    appearance: none;
    cursor: pointer;
}

.yith-wcan-filters .yith-wcan-filter .filter-item label > input[type="checkbox"]:checked {
    background-color: #dc2626;
    border-color: #dc2626;
    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='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

/* Price Range Slider */
.yith-wcan-filters .price-slider {
    padding-top: 0.5rem;
}

.yith-wcan-filters .price-slider .irs {
    height: 2rem;
}

.yith-wcan-filters .price-slider .irs-line {
    height: 0.5rem;
    background: #e5e7eb;
    border: none;
    border-radius: 0.25rem;
}

.yith-wcan-filters .price-slider .irs-bar {
    height: 0.5rem;
    background: #dc2626;
    border: none;
}

.yith-wcan-filters .price-slider .irs-handle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dc2626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.yith-wcan-filters .price-slider .price-slider-wrapper {
    margin-top: 1rem;
}

.yith-wcan-filters .price-slider .price-slider-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Clear All Button */
.yith-wcan-filters .yith-wcan-reset-filters {
    margin: 0;
    padding: 0.5rem 1rem;
    background: none;
    color: #6b7280;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.yith-wcan-filters .yith-wcan-reset-filters:hover {
    color: #374151;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

/* Active Filter Labels */
.yith-wcan-active-filters {
    margin: 1rem 0;
}

.yith-wcan-active-filters .active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.yith-wcan-active-filters .active-filter .remove-filter {
    width: 1rem;
    height: 1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
}

/* Color Swatches */
.yith-wcan-filters .filter-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.yith-wcan-filters .filter-colors-list .filter-color {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.yith-wcan-filters .filter-colors-list .filter-color:hover {
    transform: scale(1.1);
}

.yith-wcan-filters .filter-colors-list .filter-color.active {
    border-color: #dc2626;
}

.yith-wcan-filters .filter-colors-list .filter-color.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    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='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.yith-wcan-filters .filter-colors-list .filter-color[data-color="white"].active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
}

.yith-wcan-filters .filter-colors-list .filter-color-label {
    display: none;
}

/* Color swatch tooltips */
.yith-wcan-filters .filter-colors-list .filter-color {
    position: relative;
}

.yith-wcan-filters .filter-colors-list .filter-color::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.25rem 0.5rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
}

.yith-wcan-filters .filter-colors-list .filter-color:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* YITH Wishlist Custom Styles */
.yith-wcwl-custom-button {
    display: block;
}

.yith-wcwl-custom-button .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.yith-wcwl-custom-button .yith-wcwl-add-button,
.yith-wcwl-custom-button .yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-custom-button .yith-wcwl-wishlistexistsbrowse {
    display: block;
}

/* Hide default text */
.yith-wcwl-custom-button .feedback,
.yith-wcwl-custom-button .yith-wcwl-icon {
    display: none;
}

/* Custom heart icon */
.yith-wcwl-custom-button .yith-wcwl-add-button a::before,
.yith-wcwl-custom-button .yith-wcwl-wishlistaddedbrowse a::before,
.yith-wcwl-custom-button .yith-wcwl-wishlistexistsbrowse a::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(156, 163, 175)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s;
}

/* Hover state */
.yith-wcwl-custom-button .yith-wcwl-add-button a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(220, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

/* Added to wishlist state */
.yith-wcwl-custom-button .yith-wcwl-wishlistaddedbrowse a::before,
.yith-wcwl-custom-button .yith-wcwl-wishlistexistsbrowse a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgb(220, 38, 38)' stroke='rgb(220, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
}

/* Style the links */
.yith-wcwl-custom-button a {
    display: block;
    padding: 0;
    width: 20px;
    height: 20px;
}

/* Loading state */
.yith-wcwl-custom-button .yith-wcwl-add-button.loading {
    position: relative;
}

.yith-wcwl-custom-button .yith-wcwl-add-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-top-color: rgb(220, 38, 38);
    border-radius: 50%;
    animation: wishlist-loading 0.6s linear infinite;
}

@keyframes wishlist-loading {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hide focus outline but keep it accessible */
.yith-wcwl-custom-button a:focus-visible {
    outline: 2px solid rgb(220, 38, 38);
    outline-offset: 2px;
    border-radius: 9999px;
}

.yith-wcwl-custom-button a:focus:not(:focus-visible) {
    outline: none;
} 