/* List */
.easystore-product-list .easystore-product-image {
    margin-bottom: 24px;
}

.easystore-product-list .easystore-product-title {
    font-size: 18px;
    line-height: 1.2;
    color: var(--easystore-body-color);
    margin-bottom: 16px;
}

.easystore-product-list .easystore-product-title a {
    color: inherit;
}

.easystore-product-list .easystore-product-price {
    margin-bottom: 8px;
}

.easystore-product-image {
    position: relative;
    overflow: hidden;
}

.easystore-product-image:hover .easystore-product-image-o {
    opacity: 1;
}

.easystore-product-image-o {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: 200ms ease-in;
} 

/* Filters */
.easystore-filter-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.easystore-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.easystore-filter-title {
    margin: 0;
}

.easystore-product-filter {
    position: relative;
}

[easystore-filter-reset] {
    font-size: 80%;
    color: var(--easystore-secondary-color);
    transition: color 200ms ease-in;
    text-decoration: underline;
    cursor: pointer;
    display: none;
}

[easystore-filter-reset]:hover {
    color: var(--easystore-primary-color);
}

.easystore-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.easystore-filter-item-label {
    display: flex;
    flex-shrink: 0;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.easystore-filter-item-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.easystore-filter-item-hex-code {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--variant-color-code);
}

.easystore-filter-item-count {
    font-size: 80%;
    color: var(--easystore-secondary-light-color);
}

/* Checkbox */
.easystore-checkbox-label {
    color: var(--easystore-secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    cursor: pointer;
}

.easystore-checkbox-label input[type='checkbox'],
.easystore-checkbox-label input[type='radio'] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.easystore-checkbox-label .easystore-checkbox-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
    font-size: 14px;
    background-color: #FFFFFF;
    border: 1px solid var(--easystore-secondary-light-color);
    border-radius: 3px;
    cursor: pointer;
}

.easystore-checkbox-label > input[type='radio'] ~ .easystore-checkbox-checkmark {
    border-radius: 50%;
}

.easystore-checkbox-label .easystore-checkbox-checkmark .easystore-svg {
    opacity: 0;
}

.easystore-checkbox-label > input[type='checkbox']:checked ~ .easystore-checkbox-checkmark,
.easystore-checkbox-label > input[type='radio']:checked ~ .easystore-checkbox-checkmark {
    color: #FFFFFF;
    background-color: var(--easystore-primary-color);
    border-color: var(--easystore-primary-color);
}

.easystore-checkbox-label > input[type='checkbox']:checked ~ .easystore-checkbox-checkmark .easystore-svg,
.easystore-checkbox-label > input[type='radio']:checked ~ .easystore-checkbox-checkmark .easystore-svg {
    opacity: 1;
}

/* Range Slider */
.easystore-range-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    --easystore-track-height: 4px;
    --easystore-track-border-radius: 6px;
    --easystore-range-lower-bound: 27%;
    --easystore-range-upper-bound: 63%;
    --easystore-range-foreground: #212326;
    --easystore-range-border: #DEDEDE;
}

.easystore-slider-track {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent var(--easystore-range-lower-bound),
        var(--easystore-range-foreground) var(--easystore-range-lower-bound),
        var(--easystore-range-foreground) var(--easystore-range-upper-bound),
        transparent var(--easystore-range-upper-bound),
        transparent 100%
    );
    position: absolute;
    z-index: 1;
    width: 100%;
    height: var(--easystore-track-height);
    border-radius: var(--easystore-track-border-radius);
}

.easystore-slider-track-inactive {
    background-color: var(--easystore-range-border);
    background-size: 6px 6px;
    position: absolute;
    height: var(--easystore-track-height);
    width: 100%;
    border-radius: var(--easystore-track-border-radius);
}

.easystore-slider-thumb {
    position: absolute;
    z-index: 10;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: grab;
}

.easystore-slider-thumb:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    background-color: var(--easystore-range-foreground);
    transition: transform 300ms ease-in;
}

.easystore-slider-thumb:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    display: block;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 0 0 -0.2rem rgb(var(--easystore-range-foreground-rgb));
    transition-property: box-shadow, transform;
    transition-timing-function: ease-in;
    transition-duration: 300ms ease-in;
}

.easystore-slider-thumb.is-dragging:after {
    box-shadow: 0 0 0 0.2rem var(--easystore-range-foreground);
    outline: 2px solid transparent;
}

.easystore-slider-thumb.is-lower {
    left: var(--easystore-range-lower-bound);
}

.easystore-slider-thumb.is-upper {
    left: var(--easystore-range-upper-bound);
    transform: translateX(-100%);
}

.easystore-range-value {
    display: block;
    position: absolute;
    top: calc(-100% - 8px);
    left: 50%;
    transform: translate(-50%, 0%);
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    background-color: #ffffff;
    color: #666;
    box-shadow: 0px 1px 3px rgba(17, 18, 19, 0.15);
    border-radius: 3px;
    z-index: 2;
}

.easystore-range-control {
    align-items: center;
    margin-bottom: 8px;
}

.easystore-range-control-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.easystore-range-control-wrapper .easystore-range-symbol {
    font-size: 14px;
    font-weight: 500;
    color: var(--easystore-secondary-light-color);
}

.easystore-range-control-wrapper .easystore-form-control {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 14px;
    -moz-appearance: textfield;
}

.easystore-range-control-wrapper .easystore-form-control::-webkit-outer-spin-button,
.easystore-range-control-wrapper .easystore-form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
}