/* =========================================================
   SHOP PAGE - AJAX LOADER
   ========================================================= */
#shop-products {
    position: relative;
    min-height: 300px
}

#shop-products.loading {
    pointer-events: none;
    user-select: none
}

body.loading {
    overflow: hidden
}

#shop-products::before,
#shop-products::after {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease
}

#shop-products::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998
}

#shop-products::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(160px, 32vw, 500px);
    height: clamp(160px, 32vw, 500px);
    transform: translate(-50%, -50%);
    background: url("/assets/img/loading.gif") center/contain no-repeat;
    z-index: 9999
}

#shop-products.loading::before,
#shop-products.loading::after {
    opacity: 1;
    visibility: visible
}

/* =========================================================
   PRODUCT DETAIL - VARIANT SELECTION
   ========================================================= */
.variant__input--fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 0;
    padding: 0;
    margin: 0
}

.variant__input--fieldset input[type="radio"] {
    display: none
}

.variant__text--value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 38px;
    padding: 0 14px;
    border: 2px solid #1f2d5c;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease
}

.variant__text--value:hover {
    border-color: #ee2761;
    color: #ee2761
}

.variant__input--fieldset input:checked+.variant__text--value {
    border-color: #ee2761;
    color: #ee2761;
    background: #fff
}

.variant__color--value {
    width: 32px;
    height: 32px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: .2s
}

.variant__input--fieldset input:checked+.variant__color--value {
    border-color: #ee2761
}

.quickview__cart--btn.disabled,
.variant__buy--now__btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none
}

/* =========================================================
   TOAST
   ========================================================= */
#app-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
    z-index: 99999;
    opacity: 0;
    transform: translateX(120%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
    pointer-events: none
}

#app-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto
}

#app-toast[data-type="success"] {
    background: #10b981
}

#app-toast[data-type="error"] {
    background: #ef4444
}

#app-toast[data-type="info"] {
    background: #3b82f6
}

#app-toast[data-type="warning"] {
    background: #f59e0b;
    color: #1f2937
}

/* =========================================================
   QUICK VIEW MODAL
   ========================================================= */
#product-quickview-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: rgba(0, 0, 0, .8)
}

#product-quickview-modal.is-visible,
#product-quickview-modal.active,
#product-quickview-modal[style*="display: block"] {
    display: flex !important
}

#product-quickview-modal .modal-dialog {
    width: 95%;
    max-width: 1000px;
    margin: 0;
    transform: none
}

#product-quickview-modal .quickview__main--wrapper {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px
}

#product-quickview-modal[data-animation="slideInUp"] .modal-dialog {
    animation: zoomIn .25s ease
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

/* =========================================================
   QUICK VIEW - IMAGE NAVIGATION
   ========================================================= */
.product__media--preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden
}

.product__media--preview .swiper-button-next,
.product__media--preview .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #ff3366;
    border-radius: 50%;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease
}

.product__media--preview .swiper-button-prev {
    left: 10px;
    transform: translateX(-10px)
}

.product__media--preview .swiper-button-next {
    right: 10px;
    transform: translateX(10px)
}

.product__media--preview:hover .swiper-button-next,
.product__media--preview:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
    transform: translateX(0)
}

.product__media--preview .swiper-button-next:hover,
.product__media--preview .swiper-button-prev:hover {
    background: #e02855;
    transform: scale(1.1)
}

.product__media--preview .swiper-button-next::after,
.product__media--preview .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700
}

.product__media--preview .swiper-pagination {
    bottom: 15px
}

.product__media--preview .swiper-pagination-bullet {
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: #ff3366;
    opacity: .4;
    transition: all .3s ease
}

.product__media--preview .swiper-pagination-bullet-active {
    width: 28px;
    background: #111827;
    opacity: 1
}

/* =========================================================
   FORM VALIDATION
   ========================================================= */
.invalid-feedback {
    display: none;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px
}

.checkout__input--field.is-invalid,
.checkout__input--select__field.is-invalid {
    border: 1px solid #dc3545 !important
}

/* =========================================================
   SHOP FILTER SIDEBAR
   ========================================================= */
.offcanvas__filter--sidebar {
    background: #f7f7f8;
    color: #171717;
    overflow-x: hidden
}

.offcanvas__filter--sidebar__inner {
    background: #f7f7f8
}

.offcanvas__filter--close {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease
}

.offcanvas__filter--close:hover {
    color: #ee2761
}

.offcanvas__filter--close .minicart__close--icon {
    width: 15px;
    height: 15px
}

/* =========================================================
   FILTER SECTIONS
   ========================================================= */
.offcanvas__filter--sidebar .single__widget {
    margin: 0 0 8px;
    padding: 22px 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none
}

.offcanvas__filter--sidebar .single__widget:last-child {
    margin-bottom: 0
}

.offcanvas__filter--sidebar .widget__title {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 13px;
    color: #111;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.25px
}

.offcanvas__filter--sidebar .widget__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #e8e8e8
}

.offcanvas__filter--sidebar .widget__title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 70px;
    height: 3px;
    border-radius: 5px;
    background: #ee2761;
    z-index: 2
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.offcanvas__filter--sidebar .widget__categories--menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.offcanvas__filter--sidebar .widget__categories--menu__list {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease
}

.offcanvas__filter--sidebar .widget__categories--menu__list:hover {
    border-color: #d8d8d8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .035)
}

.offcanvas__filter--sidebar .widget__categories--menu__label {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    margin: 0;
    padding: 0 14px;
    color: #202020;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer
}

.offcanvas__filter--sidebar .widget__categories--menu__text {
    flex: 1;
    line-height: 1.4
}

.offcanvas__filter--sidebar .widget__categories--menu__arrowdown--icon {
    width: 11px;
    height: 8px;
    color: #777;
    transition: transform .25s ease, color .2s ease
}

.offcanvas__filter--sidebar .widget__categories--menu__list.is-open .widget__categories--menu__arrowdown--icon {
    color: #ee2761;
    transform: rotate(180deg)
}

.filter-category-checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border: 1.5px solid #d1d1d1;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease
}

.filter-category-checkbox:hover {
    border-color: #ee2761
}

.filter-category-checkbox:checked {
    border-color: #ee2761;
    background: #ee2761
}

.filter-category-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

.filter-category-checkbox:active {
    transform: scale(.9)
}

/* =========================================================
   SUB CATEGORIES
   ========================================================= */
.offcanvas__filter--sidebar .widget__categories--sub__menu {
    display: none;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 10px 10px
}

.offcanvas__filter--sidebar .widget__categories--menu__list.is-open .widget__categories--sub__menu {
    display: flex
}

.offcanvas__filter--sidebar .widget__categories--sub__menu--list {
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background: #fafafa;
    transition: background .2s ease
}

.offcanvas__filter--sidebar .widget__categories--sub__menu--list:hover {
    background: #f6f6f6
}

.offcanvas__filter--sidebar .widget__categories--sub__menu--link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin: 0;
    padding: 0 10px;
    color: #555;
    font-size: 13px;
    font-weight: 450;
    cursor: pointer
}

.offcanvas__filter--sidebar .widget__categories--sub__menu--link span {
    line-height: 1.4
}

/* =========================================================
   COLOR / SIZE / ATTRIBUTE FILTERS
   ========================================================= */
.offcanvas__filter--sidebar .widget__form--check {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important
}

.offcanvas__filter--sidebar .widget__form--check__list {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transform: none !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important
}

.offcanvas__filter--sidebar .widget__form--check__list:hover {
    border-color: #d5d5d5 !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .035) !important
}

.offcanvas__filter--sidebar .widget__form--check__label {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #292929 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: color .2s ease, font-weight .2s ease !important
}

.offcanvas__filter--sidebar .widget__form--check__label::before,
.offcanvas__filter--sidebar .widget__form--check__label::after {
    display: none !important;
    content: none !important
}

.offcanvas__filter--sidebar .widget__form--check__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important
}

.offcanvas__filter--sidebar .widget__form--checkmark {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #ddb0bd !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease !important
}

.offcanvas__filter--sidebar .widget__form--checkmark::before,
.offcanvas__filter--sidebar .widget__form--checkmark::after {
    display: none !important;
    content: none !important
}

.offcanvas__filter--sidebar .widget__form--check__list:hover .widget__form--checkmark {
    border-color: #ee2761 !important
}

.offcanvas__filter--sidebar .widget__form--check__list:has(.widget__form--check__input:checked) {
    border-color: #ff7195 !important;
    background: #fff8fa !important;
    box-shadow: 0 4px 14px rgba(233, 47, 99, .06) !important
}

.offcanvas__filter--sidebar .widget__form--check__list:has(.widget__form--check__input:checked) .widget__form--check__label {
    color: #ee2761 !important;
    font-weight: 700 !important
}

.offcanvas__filter--sidebar .widget__form--check__input:checked~.widget__form--checkmark {
    border-color: #ee2761 !important;
    background: #ee2761 !important;
    box-shadow: inset 0 0 0 4px #fff !important;
    transform: translateY(-50%) !important
}

/* =========================================================
   PREMIUM PRICE FILTER
   ========================================================= */
.offcanvas__filter--sidebar .price__filter {
    position: relative;
    width: 100%;
    padding: 22px 16px 20px !important;
    margin: 0 0 8px !important;
    background: #fff;
    box-sizing: border-box
}

.offcanvas__filter--sidebar .price__filter .widget__title {
    margin: 0 0 16px !important;
    padding: 0 0 13px !important
}

.offcanvas__filter--sidebar .price__filter--caption {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4
}

.offcanvas__filter--sidebar .price__filter--range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    margin: 0 0 27px;
    padding: 0 10px;
    border: 1px solid #f0d5de;
    border-radius: 8px;
    background: #fff8fa;
    color: #ee2761;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box
}

.offcanvas__filter--sidebar .price__filter--range span {
    margin: 0;
    padding: 0;
    color: #ee2761;
    font-size: 14px;
    font-weight: 700;
    line-height: 1
}

.offcanvas__filter--sidebar .price__filter--range .price__filter--dash {
    color: #aaa;
    font-size: 12px
}

.offcanvas__filter--sidebar #price-slider {
    position: relative;
    width: calc(100% - 16px);
    height: 5px;
    margin: 0 8px 17px;
    padding: 0;
    box-sizing: border-box
}

.offcanvas__filter--sidebar #price-slider.noUi-target,
.offcanvas__filter--sidebar .noUi-target {
    height: 5px;
    border: 0;
    border-radius: 10px;
    background: #ededed;
    box-shadow: none
}

.offcanvas__filter--sidebar #price-slider .noUi-connect,
.offcanvas__filter--sidebar .noUi-connect {
    height: 5px;
    border: 0;
    border-radius: 10px;
    background: #ee2761;
    box-shadow: none
}

.offcanvas__filter--sidebar #price-slider .noUi-handle,
.offcanvas__filter--sidebar .noUi-handle {
    position: absolute;
    width: 20px !important;
    height: 20px !important;
    top: -7.5px !important;
    right: -10px !important;
    margin: 0;
    padding: 0;
    border: 3px solid #ee2761 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(238, 39, 97, .22) !important;
    cursor: grab;
    box-sizing: border-box;
    transform: none !important;
    transition: transform .15s ease, box-shadow .15s ease
}

.offcanvas__filter--sidebar #price-slider .noUi-handle:hover,
.offcanvas__filter--sidebar .noUi-handle:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(238, 39, 97, .25) !important
}

.offcanvas__filter--sidebar #price-slider .noUi-handle:active,
.offcanvas__filter--sidebar .noUi-handle:active {
    cursor: grabbing;
    transform: scale(1.12) !important
}

.offcanvas__filter--sidebar #price-slider .noUi-handle::before,
.offcanvas__filter--sidebar #price-slider .noUi-handle::after,
.offcanvas__filter--sidebar .noUi-handle::before,
.offcanvas__filter--sidebar .noUi-handle::after {
    display: none !important;
    content: none !important
}

.offcanvas__filter--sidebar .price__filter--limits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 17px;
    padding: 0;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1
}

.offcanvas__filter--sidebar .price__filter--limits span {
    display: block;
    margin: 0;
    padding: 0;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1
}

.offcanvas__filter--sidebar .price__filter input[type="hidden"] {
    display: none
}

.offcanvas__filter--sidebar .price__filter .price__filter--btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #ee2761;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 5px 14px rgba(238, 39, 97, .18);
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease
}

.offcanvas__filter--sidebar .price__filter .price__filter--btn:hover {
    background: #d91f55;
    box-shadow: 0 7px 18px rgba(238, 39, 97, .24);
    transform: translateY(-1px)
}

.offcanvas__filter--sidebar .price__filter .price__filter--btn:active {
    transform: scale(.98)
}

/* =========================================================
   CLEAR FILTERS
   ========================================================= */
.offcanvas__filter--sidebar .widget__filter--reset {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important
}

.offcanvas__filter--sidebar .widget__filter--reset::before {
    content: "×" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    color: #888 !important;
    font-size: 16px !important;
    line-height: 1 !important
}

.offcanvas__filter--sidebar .widget__filter--reset:hover {
    color: #ee2761 !important;
    text-decoration: none !important
}

.offcanvas__filter--sidebar .widget__filter--reset:hover::before {
    border-color: #ee2761 !important;
    color: #ee2761 !important
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:991.98px) {
    #shop-products::after {
        width: 320px;
        height: 320px
    }

    .offcanvas__filter--sidebar .single__widget {
        padding: 21px 16px
    }

    .offcanvas__filter--sidebar .widget__title {
        font-size: 17px
    }

    .offcanvas__filter--sidebar .widget__categories--menu__label {
        min-height: 48px;
        padding: 0 13px
    }

    .offcanvas__filter--sidebar .widget__form--check__list {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important
    }
}

@media(max-width:575.98px) {
    .offcanvas__filter--sidebar .single__widget {
        margin-bottom: 7px;
        padding: 20px 16px
    }

    .offcanvas__filter--sidebar .widget__title {
        margin-bottom: 17px;
        font-size: 17px
    }

    .offcanvas__filter--sidebar .widget__form--check {
        gap: 8px !important
    }

    .offcanvas__filter--sidebar .widget__form--check__list {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        border-radius: 10px !important
    }

    .offcanvas__filter--sidebar .widget__form--check__label {
        font-size: 14px !important
    }

    .offcanvas__filter--sidebar .widget__form--checkmark {
        right: 13px !important;
        width: 21px !important;
        height: 21px !important
    }

    .offcanvas__filter--sidebar .price__filter {
        padding: 20px 16px 18px !important
    }

    .offcanvas__filter--sidebar .price__filter .widget__title {
        margin-bottom: 15px !important;
        font-size: 17px !important
    }

    .offcanvas__filter--sidebar .price__filter--caption {
        margin-bottom: 10px;
        font-size: 11px
    }

    .offcanvas__filter--sidebar .price__filter--range {
        height: 36px;
        margin-bottom: 25px;
        font-size: 13px
    }

    .offcanvas__filter--sidebar .price__filter--range span {
        font-size: 13px
    }

    .offcanvas__filter--sidebar #price-slider {
        margin-bottom: 16px
    }

    .offcanvas__filter--sidebar .price__filter .price__filter--btn {
        height: 43px
    }
}
