@import 'utils/variable';

.bg-warning {
    color: #fff;
}

.text-end {
    text-align: right !important;
}

.button-loading {
    border: 1px solid #c4cdd5;
    cursor: default;
    text-shadow: none;
    color: transparent !important;
    position: relative;
    -webkit-transition: border-color .2s ease-out;
    transition: border-color .2s ease-out;
}

.button-loading, .button-loading:hover, .button-loading:focus, .button-loading:active {
    color: transparent
}

.button-loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    margin-top: -9px;
    margin-left: -9px;
    width: 18px;
    height: 18px;
    -webkit-animation: button-loading-spinner .7s linear infinite;
    animation: button-loading-spinner 1s linear infinite;
    border-color: #ffffff;
    border-bottom-color: transparent
}

.button-loading {
    &.btn-fill-out {
        color: transparent !important;
        border: 1px solid var(--color-1st);

        &:before {
            width: 18px;
            background-color: transparent;
            border-color: var(--color-1st);
            border-bottom-color: transparent;
        }

        &:after {
            display: none;
        }
    }
}

.required:after {
    content: ' *';
    color: red;
}

.newsletter-form {
    .newsletter-message {
        display: block;
        width: 100%;
        margin-bottom: 10px;

        &.newsletter-success-message {
            color: #58d0da;
        }

        &.newsletter-error-message {
            color: #fcb800;
        }
    }

}

@-webkit-keyframes button-loading-spinner {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes button-loading-spinner {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

#alert-container {
    top: 100px;
    right: 5px;
    position: fixed;
    z-index: 9999999;

    .alert {
        max-width: 450px !important;
        min-height: 45px !important;
        font-weight: 400;
        position: relative;
        padding: 15px 40px 15px 60px;
        margin-bottom: 10px;
        box-shadow: 0 4px 10px 0 rgba(3, 3, 3, 0.1);

        &.alert-success {
            color: #299c77;
            background-color: #bff9d0;
        }

        .message-icon {
            position: absolute;
            left: 5%;
            top: 30%;
            font-size: 20px;
            fill: #299c77;
            stroke: #299c77;
        }

        &.alert-dismissible {
            .close {
                position: absolute;
                top: 20px;
                right: 15px;
                font-size: 10px;
                padding: 0;
            }
        }

    }
}

body.show-admin-bar {
    #alert-container {
        top: 140px;
    }

    .ps-panel--sidebar {
        top: 40px;
    }

    .header {
        &.header--sticky {
            .header__top, .navigation--mobile {
                top: 40px;
            }
        }

        &.header--product {
            &.header--sticky {
                .navigation {
                    top: 40px;
                }
            }
        }
    }

    .ps-filter--sidebar {
        top: 40px;
    }

    #avatar-modal {
        top: 80px;
    }
}

.menu {
    > .current-menu-item {
        > a {
            color: #fff;
        }
    }
}

.rating_wrap {
    .rating {
        font-family: FontAwesome !important;
        vertical-align: top;
        overflow: hidden;
        position: relative;
        height: 20px;
        width: 70px;
        display: inline-block;

        &::before {
            font-size: 13px;
            content: "\f005\f005\f005\f005\f005";
            top: 0;
            position: absolute;
            left: 0;
            float: left;
            color: #d2d2d2;
            letter-spacing: 2px;
        }
    }

    .rating_num {
        font-size: 13px;
        display: inline-block;
        color: #696969;
    }

    .product_rate {
        overflow: hidden;
        font-family: FontAwesome !important;
        top: 0;
        left: 0;
        position: absolute;
        padding-top: 1.5em;
        color: #EDB867;

        &::before {
            font-size: 13px;
            content: "\f005\f005\f005\f005\f005";
            top: 0;
            position: absolute;
            left: 0;
            letter-spacing: 2px;
        }
    }
}

.product__attribute {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;

    > * {
        flex-basis: 100%;
    }

    > label {
        margin-bottom: 0;
        flex: 1;
        margin-right: 10px;
        white-space: nowrap;
    }

    .form-control {
        border: none;
    }

    .attribute-swatch-item {
        &.pe-none {
            cursor: not-allowed !important;

            > div {
                pointer-events: none !important;
            }
        }
    }

    .text-swatch, .color-swatch {
        .attribute-swatch-item {
            &.pe-none {
                span {
                    color: gray;
                    cursor: unset;
                    opacity: 0.7;

                    &:before, &:after {
                        content: "";
                        position: absolute;
                        top: 50%;
                        left: 0;
                        width: 100%;
                        height: 0;
                        border: none;
                        border-top: 1px dashed #999;
                    }

                    &:before {
                        -webkit-transform: rotate(45deg);
                        transform: rotate(45deg);
                    }

                    &:after {
                        -webkit-transform: rotate(-45deg);
                        transform: rotate(-45deg);
                    }
                }
            }
        }
    }
}

.product__color {
    padding-bottom: 10px;

    ul, ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .color-swatch {
        li {
            display: inline-block;
            vertical-align: top;
            margin-right: 5px;

            &:last-child {
                margin-right: 0;
            }

            span {
                margin-bottom: 0;
            }
        }
    }
}


.text-swatch {
    li {
        display: inline-block;
        margin-right: 5px;

        input[type=radio], input[type=checkbox] {
            display: none;

            &:checked ~ span {
                border: 1px solid $color-1st;

                &:after {
                    width: 16px;
                    height: 16px;
                    content: "\e934";
                    font-family: 'Linearicons' !important;
                    position: absolute;
                    overflow: hidden;
                    right: -8px;
                    bottom: -5px;
                    color: #fff;
                    font-size: 8px;
                }

                &:before {
                    border: 16px solid transparent;
                    border-bottom: 16px solid $color-1st;
                    content: "";
                    position: absolute;
                    right: -16px;
                    bottom: -1px;
                }
            }
        }

        span {
            padding: 5px 15px;
            border: 1px solid #ccc;
            background-color: #ffffff;
            cursor: pointer;
            transition: .2s;
            position: relative;
            overflow: hidden;
            display: inline-block;
        }
    }
}

.widget__title {
    margin-bottom: 20px;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 1.25rem;
}

.attribute-values {
    ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
}

.widget--colors .color-swatch li {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
    margin-bottom: 5px;
}

.custom-checkbox, .custom-radio {
    input[type="checkbox"], input[type="radio"] {
        display: none;
    }

    label {
        display: block;
    }

    span {
        display: block;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }

    input[type="checkbox"]:checked ~ span, input[type="radio"]:checked ~ span {
        &:before {
            content: "";
            display: block;
            border: 2px solid $color-1st;
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 50%;
        }
    }

    &.disabled {
        label {
            position: relative;

            &:before,
            &:after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 1px;
                height: 90%;
                background-color: $color-2nd;
                transform-origin: 50% 50%;
                transition: all 0.4s ease;
                z-index: 20;
            }

            &:before {
                transform: translate(-50%, -50%) rotate(45deg);
            }

            &:after {
                transform: translate(-50%, -50%) rotate(-45deg);
            }
        }

        span {
            opacity: .9;
        }

        input[type="checkbox"]:checked ~ span, input[type="radio"]:checked ~ span {
            &:before {
                display: none;
            }
        }
    }
}

.ps-list--categories {
    li.current-menu-item {
        > a {
            color: $color-1st;
        }
    }

    .sub-toggle {
        i {
            &:before {
                display: none;
            }
        }

        &:after {
            background-color: #292b2c;
            content: "";
            height: 1px;
            left: 50%;
            position: absolute;
            top: 50%;
            width: 12px;
            transform: translateX(-50%) rotate(90deg);
        }

        &:before {
            background-color: #292b2c;
            content: "";
            height: 1px;
            left: 50%;
            position: absolute;
            top: 50%;
            width: 12px;
            transform: translateX(-50%);
        }

        &.active {
            &:after {
                display: none;
            }
        }
    }
}

#homepage-1 .ps-top-categories, #homepage-1 .ps-product-list {
    padding: 0;
}

.select2-container--default {
    .select2-results__option--highlighted[aria-selected] {
        background-color: $color-1st;
    }
}

.select2-container {
    .select2-dropdown {
        border: none;
        box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
    }
}

.ps-form--quick-search {
    .form-group--icon {
        width: auto;
        float: left;
        position: relative;
        height: 42px;
        line-height: 42px;
        cursor: pointer;

        .product-cat-label {
            padding-right: 30px;
            padding-left: 18px;
            border: none;
            color: #000;
            border-radius: 5px 0 0 5px;
            position: relative;
            height: 100%;
            white-space: nowrap;
            background-color: #fff;
            border-right: 1px solid #ccc;

            &:after {
                content: '\e93a';
                display: inline-block;
                font: normal normal normal 14px/1 linearicons;
                font-size: 10px;
                color: #000;
                position: absolute;
                top: 17px;
                right: 12px;
            }
        }

        .form-control {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            height: 100%;
            cursor: pointer;
            min-height: 42px;
            width: 100%;
            z-index: 10;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            padding-left: 10px;
        }
    }
}

.ps-product-list {
    .ps-section__links {
        li {
            a {
                &.active {
                    color: $color-1st;
                }
            }
        }
    }
}

.ps-product--quickview, .ps-product__shopping {
    .ps-product__actions {
        a {
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 46px;
            border-radius: 50%;
            border: none;

            &:hover {
                background-color: $color-1st;

                i {
                    color: #ffffff;
                }
            }

            &.button-loading {
                i {
                    color: transparent;
                }
            }
        }
    }
}

.attribute-swatches-wrapper {
    &.form-group {
        margin-bottom: 10px;
    }
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#product-page {
    .navigation--list {
        display: none !important;
    }
}

form {
    .navigation--mobile-product {
        > * {
            font-size: 16px;
            border-radius: 0;
        }
    }
}

.ps-list--dot {
    ul {
        margin: 0;
        padding: 0;
    }
}

.ps-product--cart-mobile, .ps-table--shopping-cart {
    &.content-loading {
        position: relative;

        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: calc(50% - 92px);
            border-radius: 50%;
            border-width: 4px;
            border-style: solid;
            margin-top: -24px;
            width: 48px;
            height: 48px;
            -webkit-animation: button-loading-spinner 0.7s linear infinite;
            animation: button-loading-spinner 0.7s linear infinite;
            border-color: $color-1st;
            border-right-color: #e9a23b;
            border-bottom-color: rgba($color-1st, 0.15);
            z-index: 22;
        }

        &:after {
            content: "Updating cart\aPlease wait while totals refresh";
            position: absolute;
            top: -10px;
            right: -10px;
            left: -10px;
            bottom: -10px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            padding: 26px 28px 26px 96px;
            background: rgba(248, 250, 249, 0.9);
            border-radius: 8px;
            box-shadow: inset 0 0 0 9999px rgba(248, 250, 249, 0.78);
            color: #1f5136;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.45;
            text-align: left;
            white-space: pre-line;
            z-index: 21;
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }
    }
}

.modal-close {
    cursor: pointer;
}

.block--review {
    .block__header {
        display: flex;
        justify-content: flex-start;
        align-items: center;

        img {
            border: 1px solid #ddd;
            border-radius: 50%;
        }

        h5 {
            margin-bottom: 5px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.6em;
            color: $color-heading;
        }

        .block__info {
            padding-left: 15px;
            width: 100%;
        }
    }

    .block__content {
        padding-top: 10px;
    }

    .block__images {
        .item {
            height: 7em;
            margin-bottom: 5px;
        }
    }
}

.block--product-reviews {
    > .block__header {
        margin: 0 0 40px;
        background-color: #f5f5f5;
        padding: 20px;

        h2 {
            font-size: 16px;
            color: #000;
            font-weight: 500;
            margin-bottom: 0;
        }

        p {
            color: $color-heading;
            font-weight: 600;

            i {
                margin-right: 0;
                font-size: 16px;
            }

            span {
                color: $color-heading;
                font-weight: inherit;
                margin-left: .5em;
            }
        }

        .ps-review__filter-select {
            min-width: 130px;
        }
    }

    .block--review {
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #e5e5e5;

        .block__header {
            .block__info {
                > p {
                    margin-bottom: 10px;
                    color: #999;
                }

                strong {
                    color: #666;
                }
            }
        }

        &:last-child {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: none;
        }

        .block__content {
            padding-top: 0;
        }
    }
}

.block--review {
    .block__header {
        align-items: start;
    }
}

.ps-block--average-rating {
    .ps-block__header {
        span {
            display: inline-block;
        }
    }
}

.ps-my-account {
    background: #ffffff;
    min-height: 0;

    .ps-form--account {

        max-width: 500px;
        padding-top: 60px;

        .ps-form__content {
            padding: 30px;
            background-color: #f1f1f1;

            h4 {
                text-align: center;
                margin-bottom: 30px;
            }

            a {
                color: #06c;
            }

            .form-control {
                background: #fff;
            }
        }
    }
}

.ps-product-list .ps-section__content {
    padding-top: 25px;
}

.ps-page--404 {
    min-height: 0;
}

.ps-dropdown-menu {
    transition: all 0.4s ease;
}

.navigation__extra {
    > li {
        a {
            padding: 15px 0;
        }

        .ps-dropdown {
            a {
                padding-right: 20px;
            }
        }
    }
}

.header {
    &:not(.header--sticky) {
        .menu--product-categories {
            .menu__content {
                padding-top: 0;
            }
        }
    }

    &.header--sticky {
        .menu--product-categories {
            .menu__content {
                margin-top: 8px;
            }
        }
    }
}

.ps-cart--mini {
    .ps-cart__items {
        &.ps-cart_no_items {
            border-bottom: 1px solid #e1e1e1;
        }
    }
}

.widget_shop {
    .ps-slider__meta {
        font-size: 14px;
        text-align: left;
        margin-top: 5px;

        span {
            margin: 0;
        }
    }

    figure {
        border: none;
        border-top: 1px solid #ccc;
        margin-top: 40px;
        padding-top: 40px;
        padding-bottom: 0;
    }
}

.menu--product-categories {
    .menu--dropdown {
        > li.menu-item-has-children {
            > a {
                &:after {
                    content: '\e93c';
                    display: inline-block;
                    font: normal normal normal 14px/1 linearicons;
                    position: absolute;
                    top: 50%;
                    right: -10px;
                    transform: translateY(-50%);
                    color: #999;
                    font-size: 11px;
                    font-weight: 600;
                }
            }

            &:hover {
                > a {
                    &:after {
                        color: #000;
                    }
                }
            }
        }
    }
}

.pagination {
    .page-item {
        .page-link {
            padding: 0 14px;
            position: relative;
            display: inline-block;
            z-index: 30;
            line-height: 32px;
            border: none;
            background-color: #f5f5f5;
            color: #000;
            vertical-align: middle;
            font-size: 14px;
        }

        &.disabled {
            .page-link {
                color: #6c757d;
                pointer-events: none;
                cursor: auto;
            }
        }

        a.page-link {
            &:hover {
                color: #000;
                background-color: var(--color-1st);
            }
        }

        &.active {
            .page-link {
                color: #000;
                background-color: var(--color-1st);
            }
        }
    }
}

.ps-table--wishlist {
    tbody {
        tr {
            td {
                padding: 10px;
            }
        }
    }
}

.spinner-icon {
    display: none;
    position: absolute;
    top: 12px;
    right: 110px;
}

.ps-product--search-result {
    &.ps-product--wide {
        margin-bottom: 20px;
    }

    .ps-product__title {
        margin-bottom: 10px;
    }
}

.ps-shopping {
    .ps-product {
        .ps-product__actions {
            li {
                margin-right: 5px;
            }
        }
    }
}

.ps-product--wide {
    .ps-product__shopping {
        .ps-product__actions {
            li {
                a {
                    &:hover {
                        i {
                            color: var(--color-1st);
                        }
                    }
                }
            }
        }
    }
}

#homepage-1 {
    .ps-site-features {
        padding-bottom: 40px;
    }
}

.ps-customer-bought, #recommended-products {
    .ps-product {
        .ps-product__actions {
            li {
                margin-right: 3px;
            }
        }
    }
}

.navigation__extra {
    .ps-dropdown-menu {
        > li {

            a {
                &:hover {
                    color: $color-1st;
                }
            }
        }
    }
}

.ps-footer__copyright {
    p:last-child {
        span {
            display: inline-block;
            margin-left: 20px;
            vertical-align: middle;
        }
    }
}

.ps-btn--small {
    padding: 0.5rem 0.75rem;
}

.ps-section--shopping {
    .ps-section__header {
        padding-bottom: 40px;
    }
}

.ps-pagination {
    a {
        cursor: pointer;
    }
}

.ps-product--detail {
    .ps-product__countdown {
        .ps-countdown {
            li {
                &:after {
                    top: 14px;
                }
            }
        }
    }
}

@media (max-width: 767px) {
    .ps-product__shopping {
        .product__qty {
            margin-bottom: 20px;
        }

        .ps-btn {
            margin-bottom: 15px;
        }

        .ps-product__actions {
            text-align: center;
        }
    }

    #back2top {
        &.active {
            bottom: 60px;
        }
    }

    .ps-shopping {
        margin-top: 0;
    }

    .ps-shopping {
        .ps-shopping__header {
            margin-bottom: 0;
        }

        .ps-shop__filter-mb {
            margin-bottom: 0;
            text-transform: none;
        }

        .header--mobile-categories {
            margin-bottom: 40px;

            .header__filter {
                border-top: 1px solid #eee;
                padding: 0 15px;

                button {
                    i {
                        font-size: 14px;
                    }

                    &:after {
                        display: none;
                    }
                }

                .header__sort {
                    i {
                        font-size: 14px;
                    }

                    .select2 {
                        .select2-selection {
                            .select2-selection__arrow {
                                &:before {
                                    font-size: 10px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .ps-page--product {
        .ps-page__container {
            .ps-page__right {
                width: 100%;
                max-width: 100%;
            }
        }
    }

    .ps-panel--sidebar {
        .ps-cart--mobile {
            .cart-empty-message {
                display: inline-block;
                width: 100%;
                text-align: center;
            }
        }
    }

    .header--mobile {
        .ps-block--user-header {
            display: inline-block;
            margin-top: 5px;

            a {
                &:hover, &:focus {
                    color: #fff;
                }
            }
        }
    }

    .ps-product--detail {
        .ps-product__countdown {
            .ps-countdown {
                li {
                    &:after {
                        top: 5px;
                    }
                }
            }
        }
    }

    .footer-payments {
        padding-bottom: 60px;
        padding-top: 5px;

        > span {
            display: inline-block;
            padding-bottom: 5px;
        }
    }
}

@media (max-width: 1440px) {
    .ps-block--site-features {
        .ps-block__item {
            text-align: center;

            .ps-block__left {
                width: 100%;
            }
        }
    }
}

@media (max-width: 991px) {
    .ps-block--site-features {
        .ps-block__item {
            text-align: left;

            &:last-child {
                margin-bottom: 0;
            }

            .ps-block__left {
                width: auto;
            }
        }
    }
}

.ps-home-banner {
    .ps-carousel--nav-inside {
        .owl-nav {
            > * {
                > i {
                    color: #fff;
                    font-size: 20px;
                }
            }

            button.owl-next, button.owl-prev {
                color: #fff;
                background-color: rgba(0, 0, 0, .3);

                &:hover {
                    background-color: #000;
                }
            }
        }
    }
}

.ps-cart__items {
    .ps-cart__items__body {
        max-height: 490px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-height: 820px) {
    .ps-cart__items {
        .ps-cart__items__body {
            max-height: 350px;
        }
    }
}

.ps-panel--sidebar {
    .ps-product--cart-mobile {
        margin-bottom: 30px;
    }
}

.ps-product:hover.ps-product--inner {
    .ps-product__content {
        height: auto;
    }
}

@media (max-width: 479px) {
    #homepage-1 {
        .ps-home-banner {
            .ps-section__right {
                margin: 0;

                .ps-collection {
                    padding: 0;

                    &:first-child {
                        margin-right: 5px;
                    }

                    &:last-child {
                        margin-left: 5px;
                    }
                }
            }
        }
    }
}

.ps-form--quick-search button, .ps-download-app .ps-btn, .ps-newsletter .ps-btn {
    white-space: nowrap;
}

.ps-cart--mobile {
    .ps-cart__footer {
        h5 {
            display: block;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: normal;

            strong {
                float: right;
                color: #333;
            }
        }
    }
}

@media (min-width: 768px) {
    #homepage-1 {
        .ps-home-banner {
            .ps-banner {
                min-height: 400px;
            }
        }
    }
}

.header {
    .navigation .menu > li > a,
    .header__extra,
    .ps-block--user-header .ps-block__right a,
    .menu--product-categories .menu__toggle span,
    .navigation__extra > li a,
    .menu--product-categories .menu__toggle i,
    .ps-block__left i {
        color: var(--header-text-color);
    }

    .navigation__extra > li:after {
        background-color: var(--header-text-color);
    }

    .header__top {
        border-bottom-color: var(--header-diliver-border-color);
    }

    .ps-form--quick-search button,
    .header__extra span {
        color: var(--header-button-text-color);
        background-color: var(--header-button-background-color);
    }

    .navigation .menu > .current-menu-item > a,
    .navigation .menu > .current-menu-item > a:hover,
    .ps-block--user-header .ps-block__right a:hover,
    .header .header__extra:hover i,
    .menu--product-categories .menu--dropdown > li:hover > a,
    .menu--product-categories .menu--dropdown > li:hover > a i,
    .menu--product-categories .menu--dropdown > li:hover > a:after {
        color: var(--header-text-hover-color);
    }
}

.ps-btn, button.ps-btn {
    color: var(--button-text-color);
}

.mt-card-avatar .mt-overlay > span {
    top: 32%;
    left: 0;
    right: 0;
    font-size: 15px;
}

.ps-btn.ps-btn--gray, button.ps-btn.ps-btn--gray {
    &.ps-btn--sm {
        font-size: 1.2rem;
    }
}

#product-quickview {
    z-index: 9999;

    .ps-product--quickview {
        display: block;
    }
}

@media (max-width: 768px) {
    #product-quickview {
        .modal-dialog {
            .modal-content {
                padding: 40px 20px 20px;
            }
        }
    }

    .ps-document table {
        width: 100% !important;
    }

    .bg--cover {
        background-repeat: no-repeat !important;
        background-size: 100% auto !important;
    }
}

.ps-block--countdown-deal {
    .ps-countdown {
        li {
            &:after {
                margin: 0 5px;
            }
        }
    }
}

.ps-product {
    padding: 20px;
    border-bottom: 1px solid transparent;
}

.ps-product__content {
    min-height: 70px;
}

.ps-product:hover .ps-product__content {
    visibility: visible;
    opacity: 1;
    height: auto;
}

.ps-product--detail .ps-product__shopping > * {
    margin-bottom: 20px;
}

@media (max-width: 479px) {
    .ps-carousel--nav {
        .owl-dots {
            .owl-dot {
                margin: 0 3px !important;
            }
        }
    }

}

.ps-store-list {
    padding-bottom: 30px;
    padding-top: 0;
}

@media (min-width: 768px) {
    .ps-block--store-banner .ps-block__user .ps-block__user-content {
        padding-bottom: 0;
    }

    .ps-block--store-banner .ps-block__user .ps-block__user-avatar {
        top: 0;
        margin-bottom: 0;
    }
}

.shop-url-wrapper {
    &.content-loading {
        position: relative;

        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            border-radius: 50%;
            border-width: 1px;
            border-style: solid;
            margin-top: -9px;
            margin-left: -9px;
            width: 18px;
            height: 18px;
            -webkit-animation: button-loading-spinner 0.7s linear infinite;
            animation: button-loading-spinner 1s linear infinite;
            border-color: $color-1st;
            border-bottom-color: transparent;
        }

        &:after {
            content: "";
            position: absolute;
            top: -10px;
            right: -10px;
            left: -10px;
            bottom: -10px;
            background: rgba(0, 0, 0, 0.02);
        }
    }
}

.ps-product--cart-mobile {
    .ps-product__content {
        small {
            font-size: 13px;
        }
    }
}

.ps-container .ps-section__content,
.ps-cart__items .ps-cart__items__body {
    .sold-by {
        a {
            font-size: 13px;
            color: var(--color-1st);
        }

        small {
            font-size: 13px;
        }
    }
}

.navigation--mobile {
    .ps-logo {
        img {
            height: 40px;
        }
    }
}

#tab-vendor {
    a.more-products {
        color: #09c;
        display: inline-block;
        margin-top: 20px;
    }
}

.ps-block--user-header {
    .ps-block__right {
        .customer-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 80px;
        }
    }
}

.ps-shopping-cart {
    .table-responsive {
        padding: 0 10px;

        .ps-table--shopping-cart {
            &.content-loading {
                &:after {
                    right: -10px;
                    left: -10px;
                }
            }
        }
    }
}

.ps-shopping-cart .ps-table--shopping-cart {
    &.content-loading {
        position: relative;

        &:before {
            content: "";
            position: absolute;
            top: 50%;
            left: calc(50% - 92px);
            border-radius: 50%;
            border-width: 4px;
            border-style: solid;
            margin-top: -24px;
            width: 48px;
            height: 48px;
            -webkit-animation: button-loading-spinner 0.7s linear infinite;
            animation: button-loading-spinner 0.7s linear infinite;
            border-color: $color-1st;
            border-right-color: #e9a23b;
            border-bottom-color: rgba($color-1st, 0.15);
            z-index: 22;
        }

        &:after {
            content: "Updating cart\aPlease wait while totals refresh";
            position: absolute;
            top: -10px;
            right: 0;
            left: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 180px;
            padding: 26px 28px 26px 96px;
            background: rgba(248, 250, 249, 0.9);
            border-radius: 8px;
            box-shadow: inset 0 0 0 9999px rgba(248, 250, 249, 0.78);
            color: #1f5136;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.45;
            text-align: left;
            white-space: pre-line;
            z-index: 21;
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }
    }
}

.ps-block--category {
    padding: 10px;
}

.ps-block--category p {
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.menu--mobile {
    .sub-menu {
        padding-left: 15px;

        li {
            color: #333;
        }

        > li.menu-item-has-children {
            > .sub-menu {
                opacity: 1;
                position: static;
                visibility: visible;
            }
        }
    }
}

.ps-shopping-cart {
    .btn-cart-button-action {
        display: inline-block;
        margin-bottom: 20px;

        &:first-child {
            float: left;
        }

        &:last-child {
            float: right;
        }
    }
}

.menu--dropdown {
    > li {
        > a {
            > img {
                vertical-align: top;
                margin-top: 1px;
            }
        }
    }
}

.ps-btn {
    &.ps-btn--danger {
        border: 1px solid #dc3545;
        color: #dc3545;
        background-color: #fff;

        &:hover {
            background-color: #dc3545;;
            color: #fff;
        }
    }
}

.navigation__extra {
    > li {
        margin-right: 5px;
        padding-right: 15px;
    }
}

.ps-dropdown {
    &.language {
        > span {
            position: relative;
            display: block;
            padding-right: 20px;

            &:after {
                content: "\e93a";
                font: normal normal normal 12px/1 linearicons;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                right: 0;
            }
        }

        ul {
            min-width: 130px;
        }
    }
}

.widget--blog {
    &.widget--tags {
        a:last-child {
            &:after {
                display: none;
            }
        }
    }
}

@media (max-width: 1550px) {
    .menu > li > a {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .ps-shopping-cart {
        .table-responsive {
            padding: 0;
        }

        .btn-cart-button-action {
            float: none !important;
        }
    }
}

@media (max-width: 420px) {
    .ps-shopping-cart {
        .btn-cart-button-action {
            width: 100%;
            text-align: center;
        }
    }
}

.ps-block--store-banner .ps-block__user .ps-block__user-avatar img {
    background-color: #fff;
}

.ps-block--store-banner .ps-block__user {
    .rating_wrap .rating_num {
        color: #fff;
    }
}

.menu--mobile {
    &.menu--mobile-extra {
        .ps-dropdown {
            display: block;
            font-size: 15px;
            line-height: 20px;
            padding: 15px 20px;
            position: relative;
        }
    }
}

.ps-shop-brand {
    min-height: 56px;

    img {
        height: 40px;
        max-height: 40px;
        width: auto;
        object-fit: contain;
    }

    a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

#tab-faq {
    .card-header {
        background: #fff;

        h2 {
            button {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                background: #fff;
                text-decoration: none !important;
                position: relative;
                display: block;
                width: 100%;

                &::after {
                    color: #ced4da;
                    position: absolute;
                    right: 0;
                    top: -4px;
                    border: 1px solid #ced4da;
                    width: 40px;
                    height: 40px;
                    line-height: 30px;
                    border-radius: 50%;
                    content: "";
                    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23333' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
                    background-repeat: no-repeat;
                    background-size: 1.25rem;
                    background-position: center;
                    transform: scale(.7) !important;
                    transition: transform .2s ease-in-out;
                }

                &:not(.collapsed)::after {
                    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23333' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
                }
            }
        }
    }
}

.fb_dialog {
    .fb_dialog_content {
        iframe {
            bottom: 100px !important;
        }
    }
}

.ps-product--detail {
    .ps-product__shopping {
        .ps-btn {
            white-space: nowrap;
        }
    }
}

.ps-panel--sidebar {
    .ps-panel__content {
        padding-bottom: 150px;

        .ps-dropdown {
            ul {
                min-width: 100%;
            }
        }
    }
}

.ps-form--search-mobile {
    .spinner-icon {
        right: 50px;
    }
}

#admin_bar {
    z-index: 9999;
}

.navigation__extra {
    .ps-dropdown {
        &.language {
            > span {
                color: var(--header-text-color);
            }

            ul {
                li {
                    a {
                        color: #000;
                    }
                }
            }
        }
    }
}

@media (min-width: 1200px) {
    .ps-top-categories {
        .col-xl-2 {
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;
        }
    }
}

.form-group--nest {
    .input-search-product {
        font-size: 16px;
    }
}

.menu--dropdown > li.has-mega-menu {
    .mega-menu {
        flex-wrap: wrap;

        .mega-menu__column {
            flex-shrink: 0;
            width: calc(50% - 80px);
            margin-bottom: 30px;
        }
    }
}

.ps-custom-scrollbar {
    max-height: 250px;
    overflow-y: auto;

    .mCS-dark.mCSB_scrollTools {
        .mCSB_dragger .mCSB_dragger_bar {
            background-color: rgb(102, 102, 102);
        }

        .mCSB_draggerRail {
            background: rgb(204, 204, 204, .9);
        }

        .mCSB_dragger .mCSB_dragger_bar, .mCSB_draggerRail {
            width: 6px;
            border-radius: 0 !important;
            opacity: 1 !important;
        }
    }
}

.widget_shop select.form-control {
    height: 36px;
}

#homepage-1 {
    .ps-shop-brand {
        margin: 0 auto;
        max-width: 1650px;
        padding: 0 15px;
    }
}

.navigation__right {
    .sub-menu > li.menu-item-has-children > .sub-toggle {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 20;
        display: inline-block;

        &:after {
            color: #999;
            content: "\e93c";
            display: inline-block;
            font: normal normal normal 14px/1 linearicons;
            font-size: 8px;
            font-weight: 600;
            position: absolute;
            right: -10px;
            top: calc(50% - 3px);
            transform: translateY(-50%);
            background: none;
            width: 10px;
            height: auto;
        }

        &:before {
            display: none;
        }
    }
}

.footer-payments img {
    max-height: 30px;
}

input.qty-input::-webkit-outer-spin-button,
input.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.qty-input[type=number] {
    -moz-appearance: textfield;
}

.header {
    .header__extra:hover {
        i {
            color: var(--header-text-hover-color);
        }
    }
}

.ps-product--header-sticky {
    .ps-product__content {
        max-width: 500px;
    }

    .ps-product__title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.ps-product__gallery {
    img {
        opacity: 0;
    }

    .slick-slide {
        img {
            opacity: 1;
            margin: 0 auto;
        }
    }
}

.bb-social-sharing {
    gap: 0.75rem;
}

#homepage-1 {
    .ps-home-banner {
        .owl-slider {
            .ps-banner {
                img {
                    max-height: 416px;
                }
            }
        }
    }
}

nav.navigation--mobile-product > .ps-btn {
    font-size: 16px;
    border-radius: 0;

    .ps-btn--black {
        background-color: #222 !important;
    }
}

.ps-popup__content {
    &.bg--cover {
        background-color: #fff;
    }
}

@media (max-width: 991px) {
    .ps-block--site-features {
        justify-content: center;

        .ps-block__item {
            text-align: center;

            .ps-block__left {
                width: 100%;
            }
        }
    }
}

@media (max-width: 767px) {
    .ps-block--site-features {
        .ps-block__item {
            text-align: left;

            .ps-block__left {
                width: auto;
            }
        }
    }

    .ps-layout__left:not(.active) {
        .ps-list--categories {
            .sub-menu {
                display: none !important;
            }
        }
    }

}

.ps-product__badges {
    position: absolute;
    right: 0;
    top: 0;

    .ps-product__badge {
        position: static;
        align-items: center;
        display: flex;
        justify-content: center;
        float: left;
        margin-right: 5px;
        margin-bottom: 10px;

        &:last-child {
            margin-right: 0;
        }
    }
}

.product-detail-container {
    .product-button {
        .add-to-cart-button {
            white-space: nowrap;
        }
    }
}

#homepage-1 {
    overflow-x: hidden;
}

.auth-card {
    form {
        padding-top: 0 !important;

        svg {
            width: 24px;
            height: 24px;
        }

        .auth-input-icon {
            top: 9px;
        }

        .ps-5 {
            padding-left: 40px !important;
        }

        .mb-3 {
            margin-bottom: 15px !important;
        }

        .form-check {
            .form-check-input {
                vertical-align: top;
                margin-top: 3px;
            }
        }
    }
}

.gap-5 {
    gap: 3rem !important;
}

.pe-5 {
    padding-right: 3rem !important;
}

.toastify.toastify-right {
    width: 35rem;
    gap: 20px;
    z-index: 10001;

    .toastify-icon {
        width: 1.5rem;
        height: auto;
    }
}

.ps-product {
    padding: 15px;
}

.ps-product__variants {
    position: relative;
    text-align: center;

    .slick-arrow {
        position: absolute;
        inset-inline-start: calc(100% / 2 - 17px);
        inset-inline-end: 0;
        background: #fff;
        border: none;
        border-radius: 50%;
        text-align: center;
        vertical-align: middle;
        width: 34px;
        height: 34px;
        line-height: 34px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
        z-index: 99;
        font-size: 14px;

        &.slick-disabled {
            opacity: 0;
            visibility: hidden;
        }

        &.slick-prev {
            top: -12px;
        }

        &.slick-next {
            bottom: 0;
        }
    }
}

@media (max-width: 450px) {
    .ps-block--site-features .ps-block__item {
        flex-flow: row nowrap;
        max-width: 100%;
    }

    .ps-block--site-features .ps-block__item .ps-block__right {
        padding-left: 20px
    }

    .ps-block--site-features.ps-block--site-features-2 .ps-block__item {
        max-width: 100%
    }
}

.ps-shop-brand {
    &.owl-carousel {
        .owl-item {
            text-align: center;

            img {
                height: 40px;
                display: inline-block;
            }
        }
    }
}

.dropdown-swatches-wrapper.attribute-swatches-wrapper {
    margin-bottom: 10px;
}

.auth-card {
    .ms-1 {
        margin-inline-start: 5px;
    }
}

.navigation__extra {
    .ps-dropdown.language {
        .ps-dropdown-menu {
            img {
                margin-right: 5px;
            }
        }
    }
}

.show-admin-bar {
    #admin_bar {
        z-index: 99999;
    }
}

@media (max-width: 767px) {
    .ps-block--site-features {
        .ps-block__item {
            max-width: 50%;
        }
    }
}

@media (max-width: 450px) {
    .ps-block--site-features {
        .ps-block__item {
            max-width: 100%;
        }
    }
}

.become-vendor-form {
    .form-check {
        display: block;
        margin-bottom: .125rem;
        min-height: 1.5rem;
        padding-inline-start: 1.5em;

        .form-check-input {
            margin-top: 3px;
            vertical-align: top;
            margin-inline-start: -1.5em;
        }
    }
}

@media (max-width: 1366px) {
    .navigation {
        .navigation__left {
            max-width: 220px;
        }

        .navigation__right {
            padding-left: 15px;
        }
    }
}

.tp-product-details-additional-info {
    table {
        border: 1px solid #e0e2e3;
        width: 100%;

        tr:not(:last-child) {
            border-bottom: 1px solid #eceded
        }

        td {
            padding: 12px 34px;

            &:first-child {
                background-color: #f9f9f9;
                color: #000;
                font-size: 16px;
                width: 306px
            }

            &:last-child {
                font-size: 16px
            }
        }
    }
}

.form-control[type=file] {
    height: 40px;
    padding: 5px;
}

.form-check {
    span.form-check-label {
        margin-inline-start: 5px;
    }
}

.menu--mobile > li > a i {
    margin-inline-end: 5px;
}

.menu li a svg {
    width: 18px;
    height: 18px;
    vertical-align: top;
    margin-inline-end: 3px;
}

.ps-form--contact-us .form-control {
    &:disabled, &[readonly] {
        background-color: #e9ecef;
    }
}

.text-link {
    color: var(--color-1st);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

@media (max-width: 1190px) {
    .mega-menu {
        padding: 0 30px 10px;

        .mega-menu-wrapper {
            padding: 0 0 0 15px;
        }
    }
}

ul.visual-swatch.color-swatch {
    margin-top: 10px;
}

@media (min-width: 1200px) {
    .ps-top-categories .row .col-xl-2 {
        max-width: calc(100% / 8);

        .ps-block--category {
            p {
                font-size: 12px;
            }
        }
    }
}

@media (min-width: 1440px) {
    .ps-top-categories .row .col-xl-2 {
        .ps-block--category {
            p {
                font-size: 14px;
            }
        }
    }
}

@media (max-width: 1199px) {
    .ps-top-categories .row .col-xl-2 {
        .ps-block--category {
            p {
                font-size: 12px;
            }
        }
    }
}

.header .ps-block--user-header .ps-block__right a {
    font-size: 12px;
    line-height: 24px;
}

.mega-menu-wrapper {
    max-height: 100vh;
    overflow-y: auto;
}

ul.bb-social-sharing {
    padding: 0;
    gap: 0.5rem;
}

.bb-product-gallery-horizontal {
    .bb-product-gallery-thumbnails {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .bb-product-form-filter {
        .bb-product-filter {
            background: #fff;
            margin-bottom: 0;
            padding: 10px 0;
        }
    }
}

// ===== Products Page: Full Width + Modern Design =====

// Full width — break out of the fixed ps-container
.ps-container:has(.ps-page--shop) {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 767px) {
    .ps-container:has(.ps-page--shop) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

// Toolbar — understated strip, not a card
.ps-shopping > .bg-light {
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 16px !important;
    margin-bottom: 24px;

    .d-flex.justify-content-center {
        align-items: center;
        gap: 10px;
    }
}

.ps-shopping {
    .ps-select-shop-sort {
        min-width: 170px;
        height: 42px;
        padding: 0 42px 0 16px;
        border: 1px solid #d7eee7;
        border-radius: 10px;
        background-color: #ffffff;
        color: #1f2937;
        font-size: 14px;
        line-height: 42px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;

        &:hover,
        &:focus {
            border-color: #0b9f79;
            box-shadow: 0 0 0 3px rgba(11, 159, 121, 0.1);
        }
    }

    .ps-shopping__view {
        margin-left: 0 !important;
    }

    .products-layout {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        list-style: none;
        border: 1px solid #d7eee7;
        border-radius: 12px;
        background: #ffffff;
        padding: 4px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);

        li {
            margin: 0 !important;

            a {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 34px;
                height: 34px;
                border-radius: 9px;
                color: #94a3b8;
                background: transparent;
                transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;

                i {
                    font-size: 19px;
                    line-height: 1;
                }

                &:hover {
                    background: #e9f8f2;
                    color: #0b7a5d;
                    box-shadow: inset 0 0 0 1px rgba(11, 122, 93, 0.08);
                }
            }

            &.active a {
                background: #e9f8f2;
                color: #0b7a5d;
                box-shadow: inset 0 0 0 1px rgba(11, 122, 93, 0.08);
            }
        }
    }

    &-product .ps-product--wide {
        align-items: stretch;
        gap: 0;
        margin-bottom: 18px;

        .ps-product__thumbnail {
            min-width: 210px;
            flex: 0 0 210px;

            &,
            img {
                aspect-ratio: auto;
            }
        }

        .ps-product__container {
            flex: 1 1 auto;
            min-width: 0;
            padding: 18px;
            gap: 18px;
        }

        .ps-product__content {
            flex: 1 1 auto;
            min-width: 0;
            padding: 0;
        }

        .ps-product__vendor {
            display: inline-flex;
            margin: 8px 0 0;

            span {
                display: none !important;
            }
        }

        .ps-product__shopping {
            flex: 0 0 170px;
            width: 170px;
            align-self: flex-start;

            .ps-product__price {
                text-align: left;
                font-size: 15px;
                line-height: 1.35;
            }

            .ps-btn {
                padding: 10px 14px;
                border-radius: 7px;
            }

            .ps-product__actions {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                justify-content: flex-start;
                margin-top: 12px;
                padding: 0;

                li {
                    width: auto;

                    a {
                        display: inline-flex;
                        align-items: center;
                        gap: 5px;
                        padding: 0;
                        font-size: 13px;
                        color: #334155;
                    }
                }
            }
        }
    }
}

// ----- Product cards -----
.ps-shopping-product,
#recommended-products,
.ps-related-products-carousel,
.ps-related-products-section,
.ps-product-list {
    .ps-product {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
        border: 1px solid #e6ece9;
        border-bottom: 1px solid #e6ece9;
        background: #fff;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
        transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
        margin-bottom: 20px;

        &:hover {
            border-color: #bfe9dc;
            box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
            transform: translateY(-3px);
        }

        // Image area with zoom
        .ps-product__thumbnail {
            background: #f8fbfa;
            overflow: hidden;
            border-radius: 10px 10px 0 0;
            aspect-ratio: 1 / 1;
            min-height: 0;
            contain: layout paint;

            > a {
                display: block;
                width: 100%;
                height: 100%;
                aspect-ratio: 1 / 1;
            }

            .ps-product__badges {
                top: 10px;
                right: auto;
                left: 10px;
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                max-width: calc(100% - 20px);
                z-index: 4;

                .ps-product__badge {
                    min-height: 24px;
                    margin: 0 !important;
                    padding: 4px 9px !important;
                    border-radius: 999px !important;
                    border: 1px solid rgba(255, 255, 255, 0.72) !important;
                    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
                    font-size: 11px !important;
                    font-weight: 700 !important;
                    line-height: 1 !important;
                    letter-spacing: 0.01em;
                    color: #ffffff !important;
                    background: linear-gradient(135deg, #ef4444, #f97316) !important;
                }

                .ps-product__badge:nth-child(2) {
                    background: linear-gradient(135deg, #10b981, #14b8a6) !important;
                }

                .ps-product__badge:nth-child(3) {
                    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
                }

                .ps-product__badge:nth-child(4) {
                    background: linear-gradient(135deg, #334155, #64748b) !important;
                }

                .ps-product__badge.out-stock {
                    background: linear-gradient(135deg, #475569, #111827) !important;
                }
            }

            img {
                display: block;
                transition: transform 0.45s ease;
                width: 100% !important;
                height: 100% !important;
                max-width: 100%;
                aspect-ratio: 1 / 1;
                object-fit: contain;
            }

            // Compact floating action bar
            .ps-product__actions {
                left: 50%;
                bottom: 14px;
                width: auto;
                max-width: calc(100% - 28px);
                transform: translate(-50%, 12px) scale(0.96);
                opacity: 0;
                pointer-events: none;
                justify-content: center;
                gap: 7px;
                background: rgba(255, 255, 255, 0.92);
                -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
                padding: 7px;
                border: 1px solid rgba(15, 23, 42, 0.08);
                border-radius: 999px;
                box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
                transition: transform 0.22s ease, opacity 0.22s ease;

                li {
                    margin-right: 0;

                    a {
                        width: 34px;
                        height: 34px;
                        border: 1px solid #e6ece9;
                        border-radius: 50%;
                        background: #fff;
                        color: #334155;
                        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;

                        i { color: #334155; }

                        &:hover {
                            background: var(--color-1st);
                            border-color: var(--color-1st);
                            transform: translateY(-1px);
                            i { color: #fff; }
                        }
                    }
                }
            }
        }

        &:hover .ps-product__thumbnail img {
            transform: scale(1.04);
        }

        &:hover .ps-product__thumbnail .ps-product__actions {
            transform: translate(-50%, 0) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        // Always-visible content (fix the vanish-on-hover behaviour)
        .ps-product__content {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            visibility: visible !important;
            opacity: 1 !important;
            height: 100% !important;
            padding: 12px 14px 14px;
            min-height: 0;
        }

        &:hover .ps-product__content {
            visibility: visible !important;
            opacity: 1 !important;
            height: auto !important;
        }

        // Kill the outdated floating hover panel
        .ps-product__content.hover {
            display: none !important;
        }

        .ps-product__container {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            padding: 0;
        }

        .ps-product__title {
            display: -webkit-box;
            min-height: 38px;
            font-size: 14px;
            line-height: 1.35;
            color: #111827;
            font-weight: 500;
            padding-right: 0;
            overflow: hidden;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;

            &:hover { color: var(--color-1st); }
        }

        .rating_wrap {
            min-height: 19px;
            margin-top: 7px;
            margin-bottom: 0;
        }

        .ps-product__price {
            min-height: 42px;
            font-size: 15px;
            margin-top: 6px;
            margin-bottom: 0;
            font-weight: 600;

            del {
                display: block;
                margin-top: 4px;
                line-height: 1.2;
            }
        }

        .ps-product__vendor {
            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            width: auto;
            max-width: 100%;
            margin: auto 0 0;
            padding: 5px 9px;
            border: 1px solid #d7eee7;
            border-radius: 999px;
            background: #f0fbf6;
            color: #0b7a5d;
            font-size: 11px;
            line-height: 1.1;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

            &:hover {
                background: #0b8f6d;
                border-color: #0b8f6d;
                color: #ffffff;
            }
        }
    }
}

.ps-shopping-product,
.ps-product-list {
    margin-bottom: 32px !important;

    .ps-section__content {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 24px;
        padding-bottom: 0 !important;
    }

    .owl-carousel {
        min-height: 0 !important;
        width: 100%;

        .owl-stage-outer {
            min-height: 0 !important;
            height: auto !important;
            padding-bottom: 8px;
        }

        .owl-stage {
            align-items: stretch;
            display: flex;
            min-height: 0 !important;
        }

        .owl-item {
            display: flex;
            min-height: 0 !important;
            height: auto !important;
        }

        .ps-product {
            width: 100%;
            height: 100%;
        }
    }

    .ps-row,
    .row {
        align-items: stretch;
        row-gap: 24px;

        > [class*="col-"],
        > [class^="col-"],
        > .ps-column {
            display: flex;
        }

        .ps-product {
            width: 100%;
            margin-bottom: 0;
        }
    }

    .owl-slider:not(.owl-loaded) {
        display: flex;
        gap: 24px;
        height: 410px;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;

        > .ps-product {
            flex: 0 0 calc((100% - 144px) / 7);
            max-width: calc((100% - 144px) / 7);
            margin-bottom: 20px;
        }
    }

    .owl-slider.owl-loaded {
        opacity: 1;
    }

    @media (max-width: 1199px) {
        .owl-slider:not(.owl-loaded) > .ps-product {
            flex-basis: calc((100% - 72px) / 4);
            max-width: calc((100% - 72px) / 4);
        }
    }

    @media (max-width: 991px) {
        .owl-slider:not(.owl-loaded) > .ps-product {
            flex-basis: calc((100% - 48px) / 3);
            max-width: calc((100% - 48px) / 3);
        }
    }

    @media (max-width: 767px) {
        .owl-slider:not(.owl-loaded) > .ps-product {
            flex-basis: calc((100% - 24px) / 2);
            max-width: calc((100% - 24px) / 2);
        }

        .owl-slider:not(.owl-loaded) {
            height: 330px;
        }
    }
}

#recommended-products:not(.owl-loaded) {
    display: flex;
    gap: 24px;
    height: 410px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;

    > .ps-product {
        flex: 0 0 calc((100% - 144px) / 7);
        max-width: calc((100% - 144px) / 7);
        margin-bottom: 20px;
    }
}

#recommended-products.owl-loaded {
    opacity: 1;
}

@media (max-width: 1199px) {
    #recommended-products:not(.owl-loaded) > .ps-product {
        flex-basis: calc((100% - 72px) / 4);
        max-width: calc((100% - 72px) / 4);
    }
}

@media (max-width: 991px) {
    #recommended-products:not(.owl-loaded) > .ps-product {
        flex-basis: calc((100% - 48px) / 3);
        max-width: calc((100% - 48px) / 3);
    }
}

@media (max-width: 767px) {
    #recommended-products:not(.owl-loaded) {
        height: 330px;
    }

    #recommended-products:not(.owl-loaded) > .ps-product {
        flex-basis: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

// ----- Left filter sidebar: clean grouped cards -----
.ps-layout__left-content {

    // "Reset all filters" button — sits above the cards
    .bb-product-filter:has(.bb-product-filter-clear-all) {
        background: transparent;
        border: none;
        padding: 0 0 10px;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bb-product-filter-clear-all {
        font-size: 12px;
        border-color: #ddd;
        color: #777;
        padding: 4px 12px;
        border-radius: 4px;

        &:hover {
            border-color: #999;
            color: #333;
            background: transparent;
        }
    }

    .widget-product-categories {
        position: relative;
    }

    // Each filter group -> its own white card
    .widget_shop,
    .bb-product-filter {
        background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
        border: 1px solid #dfeee8;
        border-top: 1px solid #dfeee8;
        border-radius: 8px;
        padding: 20px 18px 18px !important;
        margin-bottom: 14px;
        box-shadow: 0 10px 26px rgba(8, 62, 43, 0.07);
        overflow: visible;

        // Remove old widget divider line inside figure
        figure {
            border-top: 1px solid #edf4f1;
            border-bottom: none;
            margin-top: 16px;
            padding-top: 16px;
            padding-bottom: 0;
        }

        // Old widget title style -> clean label
        .widget-title {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            line-height: 1.35;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: #13795b;
            margin-bottom: 16px;
            border-bottom: none;
            padding-bottom: 0;
            font-weight: 700;

            &:before { display: none; }

            &:after {
                content: "";
                display: block;
                flex: 1;
                height: 1px;
                background: linear-gradient(90deg, rgba(19, 121, 91, .28), rgba(19, 121, 91, 0));
            }
        }

        // New filter title
        .bb-product-filter-title {
            font-size: 11px;
            line-height: 1.35;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: #13795b;
            margin-bottom: 16px;
        }
    }

    // Checkbox list items
    .bb-product-filter-items.filter-checkbox {
        list-style: none;
        padding: 0;
        margin: 0;

        .bb-product-filter-item {
            display: flex;
            align-items: center;
            padding: 5px 0;
            border-bottom: 1px solid #f5f5f5;

            &:last-child { border-bottom: none; }

            input[type="checkbox"] {
                width: 15px;
                height: 15px;
                margin: 0 10px 0 0;
                flex-shrink: 0;
                accent-color: var(--color-1st);
                cursor: pointer;
            }

            label {
                font-size: 13px;
                color: #444;
                cursor: pointer;
                margin: 0;
                transition: color 0.18s ease;

                &:hover { color: #111; }
            }
        }
    }

    // Modern product category tree
    .bb-product-filter-content {
        > .bb-product-filter-items {
            margin: 0 -6px;
        }

        .bb-product-filter-items:not(.filter-checkbox) {
            list-style: none;
            padding: 0;

            &.active {
                margin-top: 4px;
            }

            .bb-product-filter-items {
                margin: 4px 0 8px 14px;
                padding-left: 12px;
                border-left: 2px solid #dcefe8;
            }
        }

        .bb-product-filter-item {
            position: relative;
            margin-bottom: 3px;

            button[data-bb-toggle="toggle-product-categories-tree"] {
                position: absolute;
                top: 3px;
                right: 2px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 30px;
                height: 30px;
                padding: 0;
                border: none;
                border-radius: 8px;
                color: #14916d;
                background: transparent;
                cursor: pointer;
                transition: background-color .2s ease, color .2s ease;

                &:hover {
                    color: #0f7a5f;
                    background: #e2f5ee;
                }

                svg {
                    width: 15px;
                    height: 15px;
                }
            }
        }

        .bb-product-filter-link {
            min-height: 36px;
            padding: 8px 40px 8px 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 13.5px;
            line-height: 1.45;
            color: #334155;
            transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;

            svg,
            i,
            img {
                flex: 0 0 auto;
            }

            svg,
            i {
                width: 16px;
                height: 16px;
                color: #7a8c86;
                transition: color .2s ease;
            }

            img {
                width: 18px;
                height: 18px;
                object-fit: contain;
            }

            &:hover,
            &.active {
                background: #eefaf5;
                border-radius: 9px;
                color: #0f7a5f;
                box-shadow: none;
                transform: translateX(2px);

                svg,
                i {
                    color: #0f7a5f;
                }
            }

            &.active {
                background: #e8f8f1;
                box-shadow: none;
                font-weight: 600;
            }
        }
    }

    // Color & size swatches — give them room so selection ring isn't clipped
    .color-swatch,
    .ps-checkbox--color,
    .widget--colors {
        padding-left: 4px;
    }

    // Category tree links
    .ps-list--categories {
        margin: 0 -6px;

        li {
            position: relative;
            border-bottom: none;
            margin-bottom: 3px;

            &:last-child { border-bottom: none; }

            a {
                min-height: 34px;
                font-size: 13.5px;
                line-height: 1.45;
                color: #334155;
                padding: 8px 38px 8px 12px;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
                transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

                &:hover {
                    background: #eefaf5;
                    border-radius: 9px;
                    color: #0f7a5f;
                    box-shadow: none;
                    transform: translateX(2px);
                }
            }

            &.current-menu-item > a {
                background: #e8f8f1;
                color: #0f7a5f;
                box-shadow: none;
                font-weight: 600;
            }
        }

        .sub-toggle {
            top: 4px;
            right: 2px;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            transition: background-color .2s ease;

            &:hover {
                background: #e2f5ee;
            }

            &:before,
            &:after {
                width: 10px;
                background-color: #14916d;
            }
        }

        .sub-menu {
            padding-left: 12px;
            border-left: 2px solid #dcefe8;
            margin: 4px 0 8px 12px;

            li {
                border-bottom: none;

                a {
                    min-height: 30px;
                    font-size: 13px;
                    padding-top: 6px;
                    padding-bottom: 6px;
                    color: #475569;
                }
            }
        }
    }
}

// Brand strip
.ps-page--shop .ps-shop-brand {
    padding-bottom: 20px;
    margin-bottom: 4px;
}

// Recommended items separator
.ps-block--shop-features {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.ps-related-products-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;

    .ps-related-products-track {
        flex-wrap: nowrap;
        margin-bottom: 0;
    }

    .ps-related-products-item {
        flex: 0 0 auto;
    }
}

.ps-related-products-section {
    margin-bottom: 24px;

    .ps-section__header {
        margin-bottom: 24px;
        padding-bottom: 14px;
    }
}

// Keep page endings tight across listing/detail pages.
.ps-shopping-product {
    min-height: 0 !important;
}

.ps-section--default {
    margin-bottom: 32px;
}

.ps-page--product,
.ps-page--product > .ps-container,
#app {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

// Pagination: smooth hover transitions
.ps-pagination .pagination {
    gap: 4px;

    .page-item .page-link {
        transition: background-color 0.2s ease, color 0.2s ease;
    }
}

// Strong product sidebar refresh for the rendered legacy category tree.
.ps-layout--shop {
    .ps-layout__left {
        max-width: 330px;
        padding-right: 28px;
    }

    .ps-layout__left-content {
        .widget_shop,
        .bb-product-filter {
            background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%) !important;
            border: 1px solid #cfeee3 !important;
            border-radius: 12px !important;
            padding: 20px 18px !important;
            box-shadow: 0 16px 34px rgba(15, 122, 95, .12) !important;
        }

        .widget-title,
        .bb-product-filter-title {
            display: flex !important;
            align-items: center;
            gap: 9px;
            margin: 0 0 16px !important;
            padding: 0 0 12px !important;
            border-bottom: 1px solid #dff4ec !important;
            font-size: 12px !important;
            line-height: 1.4 !important;
            letter-spacing: 1.35px !important;
            color: #0f7a5f !important;
        }

        .widget-title:before,
        .bb-product-filter-title:before {
            content: "";
            display: block !important;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #12b886;
            box-shadow: 0 0 0 5px rgba(18, 184, 134, .12);
        }

        .ps-list--categories {
            margin: 0 !important;

            li {
                position: relative;
                margin: 4px 0 !important;
                padding: 0 !important;
                border: 0 !important;
            }

            li a {
                width: 100%;
                min-height: 40px;
                padding: 9px 46px 9px 14px !important;
                border-radius: 9px;
                color: #334155 !important;
                font-size: 13.5px !important;
                line-height: 1.45 !important;
                font-weight: 500;
                display: flex;
                align-items: center;
                gap: 9px;
                transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease !important;
            }

            li a:hover,
            li.current-menu-item > a {
                background: #f0fbf6 !important;
                border-radius: 9px !important;
                color: #0b7a5d !important;
                box-shadow: none;
                transform: translateX(2px);
            }

            li a:hover:before,
            li.current-menu-item > a:before {
                display: none !important;
            }

            li a i,
            li a svg {
                color: #6b7f78;
                transition: color .2s ease;
            }

            li a:hover i,
            li a:hover svg,
            li.current-menu-item > a i,
            li.current-menu-item > a svg {
                color: #0b7a5d;
            }

            .sub-toggle {
                top: 3px !important;
                right: 6px !important;
                width: 34px !important;
                height: 34px !important;
                border-radius: 8px;
                background: transparent;
                transition: background-color .2s ease, transform .2s ease;
                z-index: 2;
            }

            .sub-toggle:hover {
                background: #dff7ee;
                transform: none;
            }

            .sub-toggle:before,
            .sub-toggle:after {
                width: 10px !important;
                background: #0f7a5f !important;
            }

            .sub-menu {
                margin: 6px 0 10px 18px !important;
                padding-left: 12px !important;
                border-left: 2px solid #d8f2e8 !important;
            }

            .sub-menu li a {
                min-height: 34px;
                padding: 7px 42px 7px 12px !important;
                font-size: 13px !important;
                color: #52635e !important;
            }
        }
    }
}

// Final compact override: keep legacy category hover and toggles aligned.
.ps-layout--shop .ps-layout__left-content .ps-list--categories > li > a,
.ps-layout--shop .ps-layout__left-content .ps-list--categories .sub-menu > li > a {
    overflow: hidden;
}

.ps-layout--shop .ps-layout__left-content .ps-list--categories > li.menu-item-has-children > a,
.ps-layout--shop .ps-layout__left-content .ps-list--categories .sub-menu > li.menu-item-has-children > a {
    padding-right: 46px !important;
}

.ps-layout--shop .ps-layout__left-content .ps-list--categories > li.menu-item-has-children > .sub-toggle,
.ps-layout--shop .ps-layout__left-content .ps-list--categories .sub-menu > li.menu-item-has-children > .sub-toggle {
    right: 6px !important;
}

.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a:hover,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li.current-menu-item > a {
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-clip: padding-box !important;
}

.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a:before,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a:after,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a:hover:before,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li > a:hover:after,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li.current-menu-item > a:before,
.ps-layout--shop .ps-layout__left-content .ps-list--categories li.current-menu-item > a:after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
}
