:root {
    --color-warning-red: #ff3333;
    --color-discount-green: #4E5B43;
    --mobile-filter-height: 70px;
}

/* Main wrapper */
.store-widget-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-column-gap: 70px;
    grid-row-gap: 30px;
}

/* ----------------------------------------------
    Product grid styles
---------------------------------------------- */
.store-products-section {
    padding: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 40px;
    justify-items: center;
}

.product-grid .no-products-message {
    grid-column: 1 / span 3;
}

/* ----------------------------------------------
    Product item styles
---------------------------------------------- */
.product-item {
    display: flex;
    padding: 15px;
    border-radius: 20px;
    background-color: var(--e-global-color-text);
    width: 280px;
    height: 100%;
    flex-direction: column;
}

.product-item.transparent {
    opacity: .5 !important;
    pointer-events: none !important;
}

.product-image-container {
    position: relative;
}

.product-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

.discount-label {
    background: var(--color-discount-green);
    color: var(--e-global-color-text);
    position: absolute;
    font-size: 1em;
    top: 20px;
    right: 0;
    padding: 10px;
    line-height: 1;
    font-weight: 700;
}

.product-data-container {
    display: flex;
    flex-direction: column;
    margin: 20px 10px;
    font-weight: 500;
    flex: 1;
    justify-content: space-between;
}

.product-data-container h4 a {
    color: var(--e-global-color-primary);
    font-size: 24px;
    overflow-wrap: anywhere;
    transition: all 300ms ease;
}

.data-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    color: var(--e-global-color-primary);
}

.full-price {
    text-decoration-line: line-through;
    text-decoration-color: var(--e-global-color-primary);
    text-decoration-thickness: 1px;
    text-decoration-style: solid;
    font-size: .9em;
    opacity: .6;
}

.discount-price {
    display: block;
}

.out-of-stock {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--e-global-color-text);
    text-transform: uppercase;
    line-height: 1;
    background: var(--color-warning-red);
    padding: 4px 5px;
}

.add-to-cart-button {
    display: flex;
    height: 30px;
    width: 80px;
    align-items: center;
    border-color: var(--e-global-color-text);
    justify-content: center;
    transition: all 300ms ease;
    position: relative;
}

.ask-quote-button {
    display: flex;
    height: 30px;
    align-items: center;
    border-color: var(--e-global-color-text);
    justify-content: center;
    transition: all 300ms ease;
    position: relative;
    border: solid 1px;
    border-radius: 15px;
    padding: 10px;
}

.ask-quote-button:hover {
    transform: scale(1.1);
}

.add-to-cart-button i {
    position: absolute;
    font-size: 20px;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
    opacity: 0;
    transition: opacity 300ms ease;
}

.add-to-cart-button.processing {
    pointer-events: none;
}

.add-to-cart-button.processing i {
    opacity: 1;
}

.add-to-cart-button.processing span {
    opacity: 0;
}

.add-to-cart-button:hover {
    transform: scale(1.1);
}

.add-to-cart-button.disabled {
    opacity: .5;
    pointer-events: none;
}

/* ----------------------------------------------
    Store filters styles
---------------------------------------------- */
/* General filterstyles */
.store-filters {
    position: relative;
}

.store-filters-container {
    position: relative;
}

.webstore-mobile-filters {
    display: none;
}

.toggle-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--mobile-filter-height);
    font-size: 12px;
    white-space: nowrap;
    line-height: 1;
    font-weight: 600;
    transition: all 300ms ease;
}

.toggle-filter span {
    display: grid;
    grid-gap: 10px;
    text-align: center;
}

.toggle-filter span i {
    font-size: 20px;
    font-weight: 100;
}

.toggle-filter.toggled {
    background: var(--e-global-color-primary);
    color: var(--e-global-color-text);
}

/* Search filter */
.search-filter-container {
    margin-bottom: 40px;
}

#webstore-search-form {
    display: flex;
    border: 1px solid;
    border-radius: 30px;
}

.webstore-search-field {
    background: var(--e-global-color-primary);
    color: var(--e-global-color-text);
    padding: 0 20px !important;
    line-height: 40px;
    width: 100% !important;
}

.webstore-search-field:focus {
    outline: none;
    caret-color: var(--e-global-color-text);
    border-color: var(--e-global-color-accent);
}

.webstore-search-button {
    width: 40px;
    line-height: 40px !important;
    padding: 0px !important;
    margin-right: 10px;
    border: 0;
    text-align: center;
    font-size: 16px !important;
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-text) !important;
}

.webstore-search-button:hover {
    color: var(--e-global-color-accent) !important;
}

.section-title {
    font-size: 20px !important;
    margin-bottom: 30px;
}

/* Checkbox filters */
.webstore-checkbox-filters {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webstore-checkbox-filters input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.webstore-checkbox-filters input[type="checkbox"]:checked + label {
    /* color: var(--e-global-color-primary); */
    font-weight: 600;
}

.webstore-checkbox-filters input[type="checkbox"]:checked + label::before {
    background-color: var(--e-global-color-accent);
}

.webstore-checkbox-filters label {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 10px;
    align-items: center;
    white-space: nowrap;
    transition: all 100ms ease;
    cursor: pointer;
}

.webstore-checkbox-filters label::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 4px;
    color: var(--e-global-color-text);
    background-color: var(--e-global-color-text);
    border: 1px solid var(--e-global-color-primary);
    transition: all 300ms ease;
}

.webstore-checkbox-filters li {
    margin-bottom: 20px;
}

/* Caliber styles */

.caliber-filter-container {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--e-global-color-secondary);
}

/* Price range Slider styles */
.pricerange-filter-container {
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid var(--e-global-color-secondary);
    border-bottom: 1px solid var(--e-global-color-secondary);
}

.slider-container {
    width: 100%;
}

.slider {
    width: 100%;
}

.slider-values {
    margin-top: 25px;
}

.ui-slider-handle {
    border-radius: 10px;
    background: var(--e-global-color-accent) !important;
    border: 1px solid var(--e-global-color-accent) !important;
    top: -8px !important;
    cursor: pointer !important;}

.ui-slider-range {
    background: var(--e-global-color-accent) !important;
}

.ui-slider-horizontal {
    height: 3px;
    cursor: pointer;
}

.ui-widget-content {
    border: 0 !important;
}

.clear-filters-btn {
    display: inline-block;
    color: var(--e-global-color-text) !important;
    font-weight: 700;
    line-height: 24px;
    transition: all 300ms ease;
}

.clear-filters-btn i {
    margin-right: 10px;
}

.clear-filters-btn:hover {
    color: var(--e-global-color-accent) !important;
    border-bottom: solid 1px var(--e-global-color-accent);
}

/* Sort styles */
.product-sort-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: solid 1px var(--e-global-color-secondary);
    margin-bottom: 40px;
}

.sort-section {
    display: flex;
    align-items: center;
}

.sort-section label {
    color: var(--e-global-color-secondary);
}

.sort-select {
    width: auto;
    background: transparent;
    border: none;
    color: var(--e-global-color-text);
    font-weight: 500;
    padding: 2px 4px;
    margin-left: 2px;
    cursor: pointer;
    text-align: center;
}

.sort-select option {
    color: var(--e-global-color-primary);
}

.amount-displayed-section {
    color: var(--e-global-color-secondary);
}

/* ----------------------------------------------
    Popup notifications
---------------------------------------------- */
/* Loading icon */
.ajax-loader {
    position: fixed;
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
    font-size: 50px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 500ms ease;
    background: var(--e-global-color-primary);
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.ajax-loader.processing {
    opacity: 1;
    bottom: 0;
}

/* Added to cart popup notification */
.product-added-notification {
    position: fixed;
    opacity: 0;
    bottom: -100px;
    transition: all 500ms ease;
    left: 50%;
    transform: translateX(-50%);
    max-width: 380px;
    background: var(--e-global-color-text);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-added-notification.processing {
    opacity: 1;
    bottom: 30px;
}

.cart-confirmation {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 20px;
}

.cart-confirmation i {
    color: var(--e-global-color-primary);
    font-weight: 100;
    font-size: 25px;
    margin-right: 20px;
}

.product-name {
    font-size: 15px;
    line-height: 1.3;
    color: var(--e-global-color-primary);
}

/* ----------------------------------------------
    RESPONSIVE ADJUSTMENTS
---------------------------------------------- */
@media screen and (max-width: 1300px) {
    .product-item {
        width: 250px;
    }
}

@media screen and (max-width: 1200px) {    
    .product-grid {
        grid-row-gap: 30px;
        grid-column-gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item {
        width: 280px;
    }
}

@media screen and (max-width: 1024px) {
    .store-widget-wrapper {
        grid-template-columns: 200px 1fr;
        grid-column-gap: 50px;
    }

    .product-grid .no-products-message {
        grid-column: 1 / span 2;
    }
}

@media screen and (max-width: 950px) {
    .product-item {
        width: 250px;
        padding: 10px;
    }
}

@media screen and (max-width: 860px) {
    .store-widget-wrapper {
        grid-column-gap: 30px;
    }
}

@media screen and (max-width: 820px) {
    .product-item {
        width: 230px;
    }

    .product-data-container h4 a {
        font-size: 22px;
    }

    .product-price {
        font-size: 22px;
    }
}

@media screen and (max-width: 767px) {
    .store-widget-wrapper {
        grid-template-columns: 1fr;
        grid-column-gap: 20px;
    }

    .store-filters {
        top: 0;
        transition: top 300ms ease-out;
        width: 100%;
        z-index: 99;
    }

    .store-filters.scroll-active {
        position: fixed;
        top: 55px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .webstore-mobile-filters {
        display: grid;
        grid-template-columns: repeat(4, minmax(25%, 1fr));
        background: var(--e-global-color-primary);
        z-index: 99;
        position: relative;
    }

    .search-filter-container {
        display: none;
    }

    .section-title {
        display: none;
    }

    .webstore-filter-box {
        display: block;
        position: absolute;
        width: 100%;
        background: var(--e-global-color-primary);
        padding: 25px;
        margin-bottom: 0;
        left: 0;
        top: 40px;
        opacity: 0;
        pointer-events: none;
        z-index: 9;
        transition: opacity 300ms ease-in, top 300ms ease;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    .webstore-filter-box.category-filter-box,
    .webstore-filter-box.brand-filter-box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }

    .webstore-filter-box li {
        margin-bottom: 0;
    }

    .webstore-filter-box li.mobile-sub-view {
        grid-column: 1 / span 2;
    }

    .webstore-filter-box li.mobile-sub-view ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .webstore-filter-box.toggled {
        opacity: 1;
        pointer-events: all;
        top: var(--mobile-filter-height);
    }

    .pricerange-filter-container {
        padding: 0;
        margin: 0;
        border: 0;
    }

    .clear-filters-btn {
        display: none;
    }

    .store-filters.scroll-active + .store-products-section {
        padding-top: var(--mobile-filter-height) !important;
    }

    .store-products-section {
        padding: 0 20px;
    }

    .product-sort-wrapper {
        font-size: 13px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .sort-section .sort-select {
        font-size: 13px;
        padding: 5px;
    }

    .discount-label {
        font-size: .85em;
        padding: 7px;
    }

    .product-added-notification {
        width: calc(100% - 20px);
    }

    .product-item {
        width: 280px;
    }

    .store-title {
        display: none;
    }
}

@media screen and (max-width: 630px) {
    .product-item {
        width: 250px;
    }
}

@media screen and (max-width: 570px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-item {
        width: 280px;
    }

    .product-data-container h4 a {
        font-size: 24px;
    }

    .product-price {
        font-size: 24px;
    }
}