@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 #02837b;

            &: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 {
    background-color: #fff;

    .ps-logo {
        img {
            height: 60px;
            width: auto;
        }
    }
}

#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 {
    position: relative;
    display: block;
    width: calc(100% - 32px);
    margin: 10px auto 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #02837b;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(2, 131, 123, 0.12);

    &:focus-within {
        border-color: #016b65;
        box-shadow: 0 10px 26px rgba(2, 131, 123, 0.18);
    }

    input {
        display: block;
        width: 100% !important;
        height: 44px;
        padding: 0 64px 0 14px;
        border: 0 !important;
        border-radius: 0;
        color: #1f2937;
        font-size: 14px;
        line-height: 44px;
        background: transparent;

        &::placeholder {
            color: #7b8794;
            opacity: 1;
        }

        &:focus {
            outline: none;
            box-shadow: none;
        }
    }

    button {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0 !important;
        border-radius: 0 9px 9px 0;
        background-color: #02837b;

        i {
            display: block;
            color: #fff;
            font-size: 18px;
            line-height: 1;
            transform: none;
        }
    }

    .spinner-icon {
        right: 58px;
        top: 50%;
        transform: translateY(-50%);
    }
}

#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%;
        }
    }
}

@media (max-width: 1199px) {
    .header--mobile,
    .header--mobile .header__top,
    .header--mobile .navigation--mobile,
    .header--mobile.header--sticky .navigation--mobile {
        background-color: #fff !important;
    }
}

.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 {
    @media (min-width: 1200px) {
        .header__top {
            padding: 16px 0;
            border-bottom: 0;

            .ps-container {
                display: grid;
                grid-template-columns: 180px minmax(360px, 620px) auto;
                align-items: center;
                justify-content: space-between;
                gap: 36px;

                > * {
                    width: auto;
                }
            }
        }

        .header__left {
            max-width: none;

            .ps-logo {
                display: inline-flex;
                align-items: center;
            }
        }

        .header__center {
            width: 100%;
        }

        .header__right {
            max-width: none;
            justify-self: end;
        }

        .header__actions {
            align-items: center;
            gap: 12px;

            .header__extra {
                margin: 0;
                width: 42px;
                flex: 0 0 42px;
                text-align: center;

                span {
                    right: 0;
                }
            }

            > .ps-cart--mini {
                width: 42px;
                flex: 0 0 42px;
            }

            .ps-block--user-header {
                margin-left: 4px;
                padding-left: 20px;
                border-left: 1px solid #dce9e7;

                .ps-block__left i {
                    font-size: 30px;
                }

                .ps-block__right {
                    padding-left: 10px;

                    a {
                        font-size: 13px;
                        line-height: 19px;
                    }
                }
            }
        }

        .header__top .ps-form--quick-search {
            width: 100%;
            max-width: 620px;
            min-height: 42px;
            border-color: #b8d8d4;
            box-shadow: 0 3px 10px rgba(15, 79, 75, 0.06);

            input.form-control {
                height: 40px;
                padding: 0 20px;
                font-size: 14px;
            }

            button {
                min-width: 100px;
                min-height: 40px;
                padding: 0 24px;
            }
        }
    }

    .navigation {
        background-color: rgb(2 131 123);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 4px 14px rgba(2, 75, 70, 0.14);

        .navigation__left {
            border-right: 1px solid rgba(255, 255, 255, 0.22);
        }

        .menu--product-categories .menu__toggle {
            padding: 0 20px;

            i,
            span {
                color: #fff;
            }

            span {
                color: #000;
                font-size: 15px;
                font-weight: 600;
            }

            &:before {
                background-color: rgba(255, 255, 255, 0.85);
            }
        }

        .menu > li > a,
        .menu > li:first-child > a {
            padding: 15px 18px;
            color: rgba(255, 255, 255, 0.88);
            border-radius: 6px;
        }

        .menu > li > a:hover,
        .menu > .current-menu-item > a,
        .menu > .current-menu-item > a:hover {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.13);
        }

        .navigation__extra > li a {
            color: rgba(255, 255, 255, 0.78);

            &:hover {
                color: #fff;
            }
        }

        .navigation__extra > li:after {
            background-color: rgba(255, 255, 255, 0.4);
        }
    }

    .ps-form--quick-search {
        border: 1px solid #02837b;
        border-radius: 8px;
        min-height: 46px;
        background-color: #fff;
        box-shadow: 0 3px 12px rgba(2, 131, 123, 0.08);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;

        &:focus-within {
            border-color: #016b65;
            box-shadow: 0 0 0 3px rgba(2, 131, 123, 0.14);
        }

        .form-group--icon {
            display: none;
        }

        input.form-control {
            height: 44px;
            padding: 0 24px;
            border: 0;
            border-radius: 7px 0 0 7px;
            font-size: 15px;
        }

        button {
            min-width: 112px;
            min-height: 44px;
            padding: 0 28px;
            border-radius: 0 7px 7px 0;
            transition: background-color 0.2s ease;

            &:hover,
            &:focus {
                background-color: #016b65;
            }
        }
    }

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

        > .icon-bag2 {
            color: var(--header-text-color);
        }
    }

    .header__actions {
        .header__extra,
        .header__extra > i,
        .header__extra:hover > i,
        .ps-block--user-header .ps-block__left i {
            color: #016b65;
        }

        .header__extra span {
            background-color: #02837b;
            color: #fff;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(2, 131, 123, 0.22);
        }

        .ps-block--user-header .ps-block__right a,
        .ps-block--user-header .ps-block__right a:hover,
        .ps-block--user-header .ps-block__right a:focus {
            color: #1f2937;
        }
    }
}

.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;
        }
    }
}

.ps-product .add-to-cart-button,
.ps-product--wide .add-to-cart-button,
.product-detail-container .add-to-cart-button {
    background-color: var(--color-1st) !important;
    border-color: var(--color-1st) !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;

    &:hover,
    &:focus,
    &:active {
        background-color: #016b65 !important;
        border-color: #016b65 !important;
        color: #ffffff !important;
        box-shadow: 0 10px 20px rgba(1, 107, 101, 0.22);
    }
}

.header .ps-form--quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

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

    span {
        line-height: 1;
    }
}

#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: 250px;
        }

        .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% - 120px) / 6);
        max-width: calc((100% - 120px) / 6);
        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;
}

// Category listing header — avoid stacked separator lines above product grid
.ps-page--shop .ps-layout__right {
    .ps-block--shop-features {
        padding-bottom: 0 !important;
        margin-bottom: 14px !important;
        border-bottom: 0 !important;

        .ps-block__header {
            margin-bottom: 0 !important;
            padding-bottom: 10px !important;
            border-bottom: 1px solid #eef2f0 !important;

            h1,
            .h1 {
                margin-bottom: 0 !important;
            }
        }
    }

    .ps-shopping {
        padding-top: 0 !important;

        > .bg-light {
            margin-top: 0 !important;
            margin-bottom: 16px !important;
            border-top: 0 !important;
            border-bottom: 0 !important;
            border-radius: 10px;
        }
    }
}

.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;
}

// Final desktop navigation treatment: visible links, no boxed borders, compact active state.
@media (min-width: 1200px) {
    .header .navigation {
        border: 0;

        .navigation__left {
            border: 0;
        }

        .menu--product-categories .menu__toggle:before {
            display: none;
        }

        .navigation__right > .menu > li.menu-item-has-children > a:before {
            display: none !important;
            content: none !important;
        }

        .menu--product-categories .menu__toggle i,
        .menu--product-categories .menu__toggle span {
            color: #fff;
        }

        .menu > li > a,
        .menu > li:first-child > a,
        .navigation__extra > li a {
            color: rgba(255, 255, 255, 0.9);
        }

        .menu > li > a,
        .menu > li:first-child > a {
            margin: 0;
            padding: 15px 0;
            border-radius: 0;
            line-height: 20px;
        }

        .navigation__right > .menu {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .navigation__right > .menu > li.menu-item-has-children > a {
            padding-right: 18px;

            &:after {
                right: 0;
            }
        }

        .menu > li > a:hover {
            color: #fff;
            background: transparent;
        }

        .menu > .current-menu-item > a,
        .menu > .current-menu-item > a:hover {
            color: #fff;
            background-color: transparent;
            background-image: linear-gradient(#fff, #fff);
            background-repeat: no-repeat;
            background-position: center calc(100% - 5px);
            background-size: 100% 2px;
            border-radius: 0;
            box-shadow: none;
        }

        .navigation__extra > li {
            margin-right: 16px;
            padding-right: 24px;

            &:after {
                content: "";
                position: absolute;
                top: 50%;
                right: 0;
                width: 1px;
                height: 15px;
                margin-right: 4px;
                background-color: rgba(255, 255, 255, 0.55);
                transform: translateY(-50%);
            }

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

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

    .header .header__top .header__actions {
        display: grid;
        grid-template-columns: repeat(3, 42px) auto;
        align-items: center;
        justify-content: end;
        column-gap: 14px;
        row-gap: 0;

        > * {
            margin: 0;
        }

        > .header__extra,
        > .ps-cart--mini {
            width: 42px;
            flex: 0 0 42px;
        }

        > .ps-block--user-header {
            margin-left: 8px;
        }
    }
}

small {
    font-weight: 300 !important;
}

strong {
    font-weight: 500 !important;
}

.ps-newsletter--modern {
    padding: 34px 0 48px;
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 137, 123, 0.12), transparent 28%),
        radial-gradient(circle at 86% 78%, rgba(18, 183, 156, 0.16), transparent 30%),
        linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);

    .ps-container {
        position: relative;
    }

    .ps-form--newsletter {
        margin: 0;
    }

    .ps-newsletter__card {
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        padding: 44px 48px;
        background:
            linear-gradient(135deg, rgba(0, 129, 116, 0.96) 0%, rgba(0, 96, 92, 0.98) 52%, rgba(8, 31, 43, 0.98) 100%);
        box-shadow: 0 28px 70px rgba(0, 78, 73, 0.22);
        isolation: isolate;
    }

    .ps-newsletter__card:before {
        content: "";
        position: absolute;
        inset: 1px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 29px;
        pointer-events: none;
        z-index: 1;
    }

    .ps-newsletter__glow {
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        filter: blur(6px);
        opacity: 0.65;
        z-index: 0;
    }

    .ps-newsletter__glow--left {
        left: -80px;
        bottom: -110px;
        background: rgba(48, 227, 202, 0.22);
    }

    .ps-newsletter__glow--right {
        right: 18%;
        top: -150px;
        background: rgba(255, 255, 255, 0.16);
    }

    .ps-newsletter__hbl-mark {
        position: absolute;
        top: 18px;
        right: -42px;
        width: 290px;
        opacity: 0.18;
        transform: rotate(-10deg);
        z-index: 0;
        pointer-events: none;
    }

    .ps-newsletter__hbl-mark img {
        display: block;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.18));
    }

    .ps-newsletter__content {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
        align-items: center;
        gap: 42px;
    }

    .ps-form__left h3 {
        margin: 10px 0 12px;
        color: #ffffff;
        font-size: 34px;
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .ps-form__left p {
        max-width: 500px;
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 16px;
        line-height: 1.65;
    }

    .ps-newsletter__perks {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .ps-newsletter__perks span {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.11);
        color: rgba(255, 255, 255, 0.88);
        font-size: 13px;
        font-weight: 500;
    }

    .ps-form__right {
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(14px);
    }

    .form-group--nest {
        display: flex;
        align-items: center;
        min-height: 66px;
        padding: 6px;
        border-radius: 19px;
        background: #ffffff;
        box-shadow: 0 18px 42px rgba(2, 23, 36, 0.2);
    }

    .form-group--nest .form-control {
        min-height: 54px;
        padding: 0 20px;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: #111827;
        font-size: 15px;
        box-shadow: none;
    }

    .form-group--nest .form-control::placeholder {
        color: #7c8798;
    }

    .form-group--nest .ps-btn {
        min-width: 154px;
        height: 54px;
        border: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, #00a58f 0%, #007f73 100%);
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: -0.01em;
        box-shadow: 0 12px 24px rgba(0, 128, 115, 0.28);
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    .form-group--nest .ps-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
        box-shadow: 0 16px 30px rgba(0, 128, 115, 0.34);
    }

    .newsletter-message {
        margin: 12px 0 0;
        color: #ffffff;
    }
}

@media (max-width: 991px) {
    .ps-newsletter--modern {
        padding: 24px 0 36px;

        .ps-newsletter__card {
            padding: 34px 28px;
            border-radius: 24px;
        }

        .ps-newsletter__content {
            grid-template-columns: 1fr;
            gap: 28px;
        }
    }
}

@media (max-width: 575px) {
    .ps-newsletter--modern {
        .ps-newsletter__card {
            padding: 28px 18px;
        }

        .ps-form__left h3 {
            font-size: 27px;
        }

        .form-group--nest {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .form-group--nest .form-control,
        .form-group--nest .ps-btn {
            width: 100%;
        }
    }
}

// Products list view — keep wide products as horizontal rows.
.ps-shopping-product > .ps-product--wide {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: auto !important;
    margin-bottom: 18px !important;
    overflow: hidden;

    .ps-product__thumbnail {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        aspect-ratio: auto !important;
        min-height: 220px;
        border-radius: 10px 0 0 10px !important;
        background: #f8fbfa;

        > a {
            width: 100% !important;
            height: 100% !important;
            aspect-ratio: auto !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
        }

        img {
            width: 100% !important;
            height: 100% !important;
            max-height: 260px;
            object-fit: contain !important;
            aspect-ratio: auto !important;
        }
    }

    .ps-product__container {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        justify-content: space-between;
        min-width: 0;
        padding: 22px 24px !important;
        gap: 24px;
    }

    .ps-product__content {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column;
        height: auto !important;
        min-width: 0;
        padding: 0 !important;
    }

    .ps-product__title {
        display: block !important;
        min-height: 0 !important;
        margin-bottom: 10px;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }

    .ps-product__desc {
        display: block;
        margin-top: 8px;
        color: #475569;
        line-height: 1.55;
    }

    .ps-product__shopping {
        flex: 0 0 180px !important;
        width: 180px !important;
        align-self: flex-start;
    }

    .ps-product__price {
        min-height: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 767px) {
    .ps-shopping-product > .ps-product--wide {
        flex-direction: column !important;

        .ps-product__thumbnail {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            flex-basis: auto !important;
            border-radius: 10px 10px 0 0 !important;
        }

        .ps-product__container {
            flex-direction: column !important;
        }

        .ps-product__shopping {
            width: 100% !important;
            flex-basis: auto !important;
        }
    }
}

// Modern 404 page
.ps-page--404 {
    min-height: 0 !important;
    padding: 64px 0 78px;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 137, 123, 0.12), transparent 28%),
        radial-gradient(circle at 86% 72%, rgba(228, 237, 0, 0.16), transparent 24%),
        linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%) !important;
    text-align: left !important;

    .ps-page--404__container {
        min-height: auto !important;
        display: block !important;
    }

    .ps-page--404__card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: center;
        gap: 48px;
        overflow: hidden;
        min-height: 520px;
        padding: 64px;
        border: 1px solid rgba(0, 137, 123, 0.14);
        border-radius: 34px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 251, 248, 0.9)),
            #ffffff;
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.09);

        &:before {
            content: "";
            position: absolute;
            top: -120px;
            right: -110px;
            width: 330px;
            height: 330px;
            border-radius: 50%;
            background: rgba(0, 137, 123, 0.1);
        }

        &:after {
            content: "";
            position: absolute;
            bottom: -150px;
            left: 38%;
            width: 380px;
            height: 380px;
            border-radius: 50%;
            background: rgba(228, 237, 0, 0.12);
        }
    }

    .ps-page--404__content,
    .ps-page--404__visual {
        position: relative;
        z-index: 1;
    }

    h1 {
        max-width: 620px;
        margin: 0 0 18px;
        color: #0f172a;
        font-size: clamp(38px, 5vw, 66px);
        line-height: 0.98;
        font-weight: 800;
        letter-spacing: -0.055em;
    }

    p {
        max-width: 560px;
        margin: 0 0 28px;
        color: #64748b;
        font-size: 14px;
        font-weight: 100;
        line-height: 1.75;
    }

    .ps-page--404__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .ps-page--404__primary,
    .ps-page--404__secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 22px;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
    }

    .ps-page--404__primary {
        border: 1px solid var(--color-1st);
        background: var(--color-1st);
        color: #ffffff !important;
        font-weight: 300 !important;
        box-shadow: 0 12px 24px rgba(0, 137, 123, 0.22);

        &:hover {
            background: #016b65;
            border-color: #016b65;
        }
    }

    .ps-page--404__secondary {
        border: 1px solid #d7eee7;
        background: #ffffff;
        color: #0b7a5d;
        font-weight: 400 !important;

        &:hover {
            background: #eefaf5;
            color: #016b65;
        }
    }

    .ps-page--404__search {
        display: flex;
        max-width: 560px;
        margin: 0 !important;
        padding: 6px;
        border: 1px solid #d7eee7;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);

        input {
            height: 50px !important;
            flex: 1 1 auto;
            border: 0 !important;
            padding: 0 16px;
            box-shadow: none;
        }

        button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-width: 126px;
            height: 50px;
            border: 0;
            border-radius: 12px;
            background: var(--color-1st);
            color: #ffffff;
            font-weight: 700;
            transition: background-color 0.2s ease;

            &:hover {
                background: #016b65;
            }
        }
    }

    .ps-page--404__visual {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 360px;
    }

    .ps-page--404__badge {
        position: absolute;
        top: 12px;
        right: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 148px;
        height: 148px;
        border-radius: 40px;
        background: linear-gradient(135deg, #00897b, #016b65);
        color: #ffffff;
        font-size: 44px;
        font-weight: 900;
        letter-spacing: -0.04em;
        box-shadow: 0 24px 50px rgba(0, 137, 123, 0.25);
        transform: rotate(8deg);
    }

    .ps-page--404__bag {
        position: relative;
        width: 300px;
        height: 250px;
        border-radius: 34px 34px 44px 44px;
        background: linear-gradient(145deg, #ffffff, #eefaf5);
        border: 2px solid rgba(0, 137, 123, 0.18);
        box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12);

        &:before {
            content: "";
            position: absolute;
            top: -52px;
            left: 82px;
            width: 136px;
            height: 96px;
            border: 18px solid #00897b;
            border-bottom: 0;
            border-radius: 80px 80px 0 0;
        }

        span {
            position: absolute;
            display: block;
            width: 92px;
            height: 28px;
            border-radius: 999px;
            background: #e4ed00;
            transform: rotate(-42deg);

            &:first-child {
                top: 64px;
                left: 48px;
            }

            &:last-child {
                right: 42px;
                bottom: 62px;
                background: #00897b;
            }
        }

        img {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 118px;
            max-width: 42%;
            height: auto;
            transform: translate(-50%, -44%);
            filter: drop-shadow(0 10px 18px rgba(0, 80, 72, 0.16));
        }
    }

    .ps-page--404__shadow {
        position: absolute;
        bottom: 50px;
        width: 330px;
        height: 44px;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.11);
        filter: blur(12px);
    }
}

@media (max-width: 991px) {
    .ps-page--404 {
        padding: 36px 0 50px;

        .ps-page--404__card {
            grid-template-columns: 1fr;
            min-height: 0;
            padding: 42px 28px;
            gap: 30px;
        }

        .ps-page--404__visual {
            order: -1;
            min-height: 250px;
        }

        .ps-page--404__bag {
            width: 230px;
            height: 190px;
        }

        .ps-page--404__badge {
            width: 110px;
            height: 110px;
            font-size: 34px;
            right: 16px;
        }
    }
}

@media (max-width: 575px) {
    .ps-page--404 {
        .ps-page--404__card {
            padding: 30px 18px;
            border-radius: 24px;
        }

        .ps-page--404__actions,
        .ps-page--404__search {
            flex-direction: column;
            align-items: stretch;
        }

        .ps-page--404__search button {
            width: 100%;
        }
    }
}

// Modern desktop navigation dropdowns
@media (min-width: 1200px) {
    .header .navigation .navigation__right > .menu {
        > li {
            > .sub-menu {
                top: calc(100% + 10px) !important;
                left: 50%;
                min-width: 250px;
                padding: 10px;
                border: 1px solid rgba(0, 137, 123, 0.12) !important;
                border-radius: 18px;
                background: rgba(255, 255, 255, 0.98);
                box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                transform: translate(-50%, 12px) scale(0.98);
                transform-origin: top center;
                transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;

                &:before {
                    display: none !important;
                    content: none !important;
                }

                > li {
                    margin: 2px 0;

                    &:last-child a {
                        border-bottom: 0;
                    }

                    > a {
                        display: flex;
                        align-items: center;
                        min-height: 42px;
                        padding: 10px 14px;
                        border: 0 !important;
                        border-radius: 12px;
                        color: #27364a;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 1.35;
                        text-decoration: none;
                        transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;

                        &:hover {
                            background: #eefaf5;
                            color: #016b65;
                            transform: translateX(3px);
                        }
                    }

                    &.current-menu-item > a {
                        background: #e8f8f1;
                        color: #016b65;
                        font-weight: 700;
                    }

                    &.menu-item-has-children > .sub-menu {
                        top: -10px;
                        left: calc(100% + 12px);
                        transform: translate(10px, 0) scale(0.98);
                    }

                    &.menu-item-has-children:hover > .sub-menu {
                        transform: translate(0, 0) scale(1);
                    }
                }
            }

            &:hover > .sub-menu {
                opacity: 1;
                visibility: visible;
                transform: translate(-50%, 0) scale(1);
            }
        }
    }

    .header .navigation .navigation__right > .menu > li.menu-item-has-children > a:before {
        display: none !important;
        content: none !important;
    }
}

// Modern homepage site features strip
.ps-site-features {
    padding: 18px 0 28px;

    .ps-block--site-features {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
        padding: 18px !important;
        border: 1px solid rgba(0, 137, 123, 0.12) !important;
        border-radius: 24px;
        background:
            radial-gradient(circle at 8% 0%, rgba(0, 137, 123, 0.08), transparent 28%),
            linear-gradient(135deg, #ffffff 0%, #f7fcfa 100%);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    .ps-block--site-features .ps-block__item {
        position: relative;
        display: flex !important;
        align-items: center;
        gap: 14px;
        width: 100% !important;
        max-width: none !important;
        min-height: 104px;
        padding: 18px !important;
        border: 1px solid rgba(0, 137, 123, 0.1) !important;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;

        &:before {
            content: "";
            position: absolute;
            inset: auto -30px -48px auto;
            width: 96px;
            height: 96px;
            border-radius: 50%;
            background: rgba(228, 237, 0, 0.16);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        &:hover {
            transform: translateY(-3px);
            border-color: rgba(0, 137, 123, 0.22) !important;
            background: #ffffff;
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);

            &:before {
                opacity: 0.9;
                transform: scale(1.08);
            }
        }
    }

    .ps-block--site-features .ps-block__left {
        position: relative;
        z-index: 1;
        flex: 0 0 54px;
        width: 54px !important;
        height: 54px;
        margin: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: linear-gradient(135deg, #e9f8f2 0%, #ffffff 100%);
        box-shadow: inset 0 0 0 1px rgba(0, 137, 123, 0.12);
    }

    .ps-block--site-features .ps-block__left i {
        font-size: 30px;
        line-height: 1;
        color: #00897b;
    }

    .ps-block--site-features .ps-block__right {
        position: relative;
        z-index: 1;
        width: auto !important;
        min-width: 0;
        padding-left: 0 !important;
    }

    .ps-block--site-features .ps-block__right h4 {
        margin: 0 0 4px;
        color: #0f172a;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .ps-block--site-features .ps-block__right p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 300;
    }
}

@media (max-width: 1199px) {
    .ps-site-features .ps-block--site-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ps-site-features .ps-block--site-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px !important;
        gap: 10px;
    }

    .ps-site-features .ps-block--site-features .ps-block__item {
        min-height: 96px;
        margin-bottom: 0 !important;
        padding: 14px !important;
    }
}

@media (max-width: 480px) {
    .ps-site-features .ps-block--site-features {
        grid-template-columns: 1fr;
    }
}

// Keep desktop department menu from covering homepage sections
@media (min-width: 1200px) {
    .header .navigation__left .menu--product-categories {
        .menu__content {
            padding-top: 10px !important;
            transform: translateY(12px);
        }

        &:hover .menu__content {
            transform: translateY(0);
        }

        .menu--dropdown {
            max-height: 430px;
            min-width: 270px;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 10px;
            border: 1px solid rgba(0, 137, 123, 0.14) !important;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 137, 123, 0.35) transparent;

            &::-webkit-scrollbar {
                width: 6px;
            }

            &::-webkit-scrollbar-track {
                background: transparent;
            }

            &::-webkit-scrollbar-thumb {
                border-radius: 999px;
                background: rgba(0, 137, 123, 0.35);
            }

            > li {
                margin: 2px 0;

                > a {
                    min-height: 38px;
                    padding: 9px 36px 9px 12px;
                    border-radius: 11px;
                    color: #27364a;
                    font-weight: 500;
                    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;

                    &:after {
                        right: 12px !important;
                    }
                }

                &:hover > a {
                    background: #00897b;
                    color: #ffffff !important;
                    transform: translateX(2px);

                    i,
                    &:after {
                        color: #ffffff !important;
                    }
                }
            }
        }
    }

    #homepage-1 .ps-site-features {
        position: relative;
        z-index: 2;
    }
}

// Top categories carousel refresh
.ps-top-categories {
    overflow: hidden;

    h3 {
        margin-bottom: 22px;
    }

    .ps-top-categories__carousel {
        position: relative;
        padding: 8px 66px 14px !important;
    }

    .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .owl-item {
        display: flex;
    }

    .ps-top-categories__item {
        width: 100%;
    }

    .ps-block--category {
        width: 100%;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center;
        transition: transform 0.2s ease;

        &:hover {
            transform: translateY(-3px);
        }

        img {
            display: block;
            width: 100%;
            height: 170px;
            margin: 0 auto 12px;
            border-radius: 20px;
            object-fit: cover;
            box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
            transition: transform 0.22s ease, box-shadow 0.22s ease;
        }

        &:hover img {
            transform: scale(1.02);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
        }

        p {
            margin: 0;
            color: #334155;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.35;
        }
    }

    .ps-carousel--nav .owl-nav {
        pointer-events: none;

        > * {
            pointer-events: auto;
            width: 46px;
            height: 46px;
            border: 1px solid rgba(0, 137, 123, 0.14) !important;
            border-radius: 999px !important;
            background: #ffffff !important;
            color: #00897b !important;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);

            &:hover {
                background: #00897b !important;
                color: #ffffff !important;
            }
        }

        .owl-prev {
            left: 12px !important;
        }

        .owl-next {
            right: 12px !important;
        }
    }
}

#homepage-1 .ps-top-categories,
.ps-top-categories {
    .ps-top-categories__carousel {
        .owl-stage {
            display: flex;
            align-items: stretch;
        }

        .owl-item {
            display: flex;
        }
    }

    .ps-block--category {
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;

        a,
        .ps-block__overlay {
            border: 0 !important;
            box-shadow: none !important;
        }

        img {
            width: 100% !important;
            height: 210px !important;
            max-width: none !important;
            margin: 0 auto 12px !important;
            border: 0 !important;
            border-radius: 22px !important;
            object-fit: cover !important;
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10) !important;
        }

        p {
            font-size: 16px !important;
            font-weight: 600 !important;
            letter-spacing: -0.01em;
        }
    }
}

@media (max-width: 1199px) {
    #homepage-1 .ps-top-categories .ps-block--category img,
    .ps-top-categories .ps-block--category img {
        height: 170px !important;
    }
}

@media (max-width: 575px) {
    #homepage-1 .ps-top-categories .ps-top-categories__carousel,
    .ps-top-categories .ps-top-categories__carousel {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    #homepage-1 .ps-top-categories .ps-block--category img,
    .ps-top-categories .ps-block--category img {
        height: 140px !important;
        border-radius: 16px !important;
    }
}

// Final override: modern site features cards
#homepage-1 .ps-site-features,
.ps-site-features {
    padding: 18px 0 30px !important;

    .ps-container {
        overflow: visible !important;
    }

    .ps-block--site-features {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .ps-block--site-features .ps-block__item {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 112px !important;
        margin: 0 !important;
        padding: 18px !important;
        border: 1px solid rgba(0, 137, 123, 0.12) !important;
        border-left: 1px solid rgba(0, 137, 123, 0.12) !important;
        border-right: 1px solid rgba(0, 137, 123, 0.12) !important;
        border-radius: 22px !important;
        background:
            radial-gradient(circle at 100% 100%, rgba(228, 237, 0, 0.16), transparent 42%),
            linear-gradient(135deg, #ffffff 0%, #f5fbf8 100%) !important;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07) !important;
        overflow: hidden !important;
    }

    .ps-block--site-features .ps-block__left {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 18px !important;
        background: #e9f8f2 !important;
        box-shadow: inset 0 0 0 1px rgba(0, 137, 123, 0.13) !important;
    }

    .ps-block--site-features .ps-block__left i {
        color: #00897b !important;
        font-size: 31px !important;
    }

    .ps-block--site-features .ps-block__right {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .ps-block--site-features .ps-block__right h4 {
        margin: 0 0 5px !important;
        color: #0f172a !important;
        font-size: 16px !important;
        line-height: 1.18 !important;
        font-weight: 650 !important;
        letter-spacing: -0.02em !important;
    }

    .ps-block--site-features .ps-block__right p {
        margin: 0 !important;
        color: #64748b !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 300 !important;
    }
}

@media (max-width: 1199px) {
    #homepage-1 .ps-site-features .ps-block--site-features,
    .ps-site-features .ps-block--site-features {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    #homepage-1 .ps-site-features .ps-block--site-features,
    .ps-site-features .ps-block--site-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

// Final override: align top-category carousel arrows to image row
#homepage-1 .ps-top-categories,
.ps-top-categories {
    .ps-top-categories__carousel.ps-carousel--nav {
        padding-left: 58px !important;
        padding-right: 58px !important;
    }

    .ps-top-categories__carousel.ps-carousel--nav .owl-nav {
        top: 113px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 0 !important;
        transform: none !important;
        pointer-events: none !important;
    }

    .ps-top-categories__carousel.ps-carousel--nav .owl-nav > * {
        position: absolute !important;
        top: 0 !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        float: none !important;
        pointer-events: auto !important;
    }

    .ps-top-categories__carousel.ps-carousel--nav .owl-nav .owl-prev {
        left: 6px !important;
        right: auto !important;
    }

    .ps-top-categories__carousel.ps-carousel--nav .owl-nav .owl-next {
        left: auto !important;
        right: 6px !important;
    }
}

@media (max-width: 1199px) {
    #homepage-1 .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav .owl-nav,
    .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav .owl-nav {
        top: 93px !important;
    }
}

@media (max-width: 575px) {
    #homepage-1 .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav,
    .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav {
        padding-left: 44px !important;
        padding-right: 44px !important;
    }

    #homepage-1 .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav .owl-nav,
    .ps-top-categories .ps-top-categories__carousel.ps-carousel--nav .owl-nav {
        top: 78px !important;
    }
}

// Final override: desktop department dropdown must stay modern and usable
@media (min-width: 1200px) {
    .header .navigation .menu--product-categories,
    .header .navigation__left .menu--product-categories {
        position: relative !important;
        z-index: 1200 !important;

        > .menu__content {
            top: 100% !important;
            left: 0 !important;
            z-index: 9999 !important;
            padding-top: 12px !important;
            transform: translateY(12px) !important;
            pointer-events: none !important;
        }

        &:hover > .menu__content,
        > .menu__content:hover {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: translateY(0) !important;
            pointer-events: auto !important;
        }

        .menu--dropdown {
            position: relative !important;
            min-width: 280px !important;
            max-height: 430px !important;
            overflow-y: auto !important;
            overflow-x: visible !important;
            padding: 10px !important;
            border: 1px solid rgba(0, 137, 123, 0.14) !important;
            border-radius: 18px !important;
            background: rgba(255, 255, 255, 0.98) !important;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 137, 123, 0.35) transparent;
        }

        .menu--dropdown > li {
            position: static !important;
            margin: 2px 0 !important;
            padding: 0 !important;
            border-radius: 12px !important;
            background: transparent !important;
        }

        .menu--dropdown > li > a {
            display: flex !important;
            align-items: center !important;
            min-height: 40px !important;
            padding: 9px 38px 9px 12px !important;
            border-radius: 12px !important;
            color: #27364a !important;
            font-size: 14px !important;
            font-weight: 500 !important;
            line-height: 1.25 !important;
        }

        .menu--dropdown > li > a i {
            color: #64748b !important;
            font-size: 18px !important;
            margin-right: 10px !important;
        }

        .menu--dropdown > li.menu-item-has-children > a:after {
            right: 12px !important;
            color: #94a3b8 !important;
        }

        .menu--dropdown > li:hover > a {
            background: #00897b !important;
            color: #ffffff !important;
            transform: translateX(2px);
        }

        .menu--dropdown > li:hover > a i,
        .menu--dropdown > li:hover > a:after {
            color: #ffffff !important;
        }

        .menu--dropdown > li.has-mega-menu .mega-menu {
            top: 0 !important;
            left: calc(100% + 12px) !important;
            z-index: 10000 !important;
            min-width: 520px !important;
            max-height: 430px !important;
            overflow-y: auto !important;
            padding: 18px !important;
            border: 1px solid rgba(0, 137, 123, 0.12) !important;
            border-radius: 18px !important;
            background: rgba(255, 255, 255, 0.98) !important;
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
        }

        .menu--dropdown > li.has-mega-menu:hover .mega-menu {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
}

.ps-product-list {
    .ps-section__header {
        position: relative;
        overflow: hidden;
        gap: 18px;
        min-height: 74px;
        padding: 18px 24px;
        border: 1px solid #dceee8;
        border-radius: 12px;
        background: linear-gradient(135deg, #ffffff 0%, #f5fbf8 58%, #e9f7f2 100%);
        box-shadow: 0 14px 34px rgba(11, 122, 93, 0.08);
    }

    .ps-section__header:before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: #008c73;
    }

    .ps-section__header:after {
        content: "";
        position: absolute;
        top: -42px;
        right: 130px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(0, 140, 115, 0.08);
        pointer-events: none;
    }

    .ps-section__header h3 {
        position: relative;
        z-index: 1;
        color: #111827;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .ps-section__links {
        position: relative;
        z-index: 1;
    }

    .ps-section__links li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0 18px;
        border-radius: 999px;
        background: #008c73;
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 10px 22px rgba(0, 140, 115, 0.22);
    }

    .ps-section__links li a:hover {
        background: #00715e;
        color: #ffffff;
        transform: translateY(-1px);
    }
}

@media (max-width: 767px) {
    .ps-product-list {
        .ps-section__header {
            min-height: 0;
            padding: 16px 18px;
        }

        .ps-section__header h3 {
            font-size: 20px;
        }

        .ps-section__links li a {
            min-height: 34px;
            padding: 0 14px;
        }
    }
}

// Final override: department dropdown direct trigger states
@media (min-width: 1200px) {
    .header .navigation .menu--product-categories > .menu__toggle:hover + .menu__content,
    .header .navigation .menu--product-categories > .menu__toggle.active + .menu__content,
    .header .navigation__left .menu--product-categories > .menu__toggle:hover + .menu__content,
    .header .navigation__left .menu--product-categories > .menu__toggle.active + .menu__content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

// Final override: keep mini-cart remove loader inside the product row
.header .ps-cart--mini .ps-product--cart-mobile.content-loading {
    &:before {
        top: 50% !important;
        left: 50% !important;
        width: 34px !important;
        height: 34px !important;
        margin-top: -17px !important;
        margin-left: -17px !important;
        border-width: 3px !important;
    }

    &:after {
        content: "" !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.82) !important;
        box-shadow: none !important;
    }
}

// Final override: requested mini-cart and spacing adjustments
div#recommended-products {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 10px;
}

.header .ps-cart--mini .ps-cart__items.ps-cart_no_items .cart-empty-message {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 54px 18px 6px !important;
    color: #263447 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

// Final override: make sidebar text attribute filters look like checkboxes
.ps-layout--shop .bb-product-filter-attributes .attribute-values .text-swatch {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;

    li {
        display: block !important;
        margin: 0 !important;

        label {
            display: block !important;
            margin: 0 !important;
            cursor: pointer;
        }

        span {
            display: flex !important;
            position: relative !important;
            align-items: center !important;
            gap: 10px !important;
            min-height: 38px !important;
            padding: 8px 10px !important;
            border: 1px solid #d7e7e1 !important;
            border-radius: 8px !important;
            background: #ffffff !important;
            color: #334155 !important;
            font-size: 14px !important;
            line-height: 1.25 !important;
            overflow: visible !important;
        }

        span:before {
            content: "" !important;
            position: static !important;
            flex: 0 0 16px !important;
            width: 16px !important;
            height: 16px !important;
            border: 1px solid #b6c8c1 !important;
            border-radius: 4px !important;
            background: #ffffff !important;
            box-sizing: border-box !important;
        }

        input[type=checkbox]:checked ~ span {
            border-color: #00897b !important;
            background: #effbf7 !important;
            color: #0f766e !important;
        }

        input[type=checkbox]:checked ~ span:before {
            border-color: #00897b !important;
            background: #00897b !important;
            box-shadow: inset 0 0 0 3px #ffffff !important;
        }

        input[type=checkbox]:checked ~ span:after {
            display: none !important;
        }
    }
}
