.top-product .product-item .product-name {
    height: 34px;
}

.top-product .product-item .product-price {
    flex-direction: row;
    align-items: center;
}

.category-item {
    transition: all 0.3s ease 0s;
}

.category-item:hover {
    box-shadow: 0 0 6px 0 #cecece;
}

.category-item .category-title {
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: all 0.3s ease 0s;
    height: 60px;
    margin: 0;
}

.category-item:hover .category-title {
    background-color: #a2ceeb;
}

.category-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.category-list h2 {
    font-size: 14px;
    margin: 0;
}

.category-list li a {
    border: 2px solid #cccccca6;
    padding: 12px 10px;
    font-weight: 500;
    font-size: 14px;
    padding-left: 20px;
    background-color: #ffffff;
    margin-bottom: 10px;
    box-shadow: 0px 8px 32px rgb(88 100 235 / 0%);
    transition: all 0.15s ease 0s;
    border-radius: 4px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Inter, -apple-system, BlinkMacSystemFont, Arial, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

.category-list li a:hover {
    background-color: #f36f24;
    border-color: #f36f24;
    color: #fff;
}

.category-list .active {
    background-color: #f36f24;
    border-color: #f36f24;
    color: #fff;
}

.category-list img {
    width: 107px;
    object-fit: cover;
    height: 45px;
}

.category-list span {
    line-height: 25px;
    padding-left: 15px;
}

.no-stock {
    border-radius: 5px;
    margin-top: 3px;
    color: #ffc107;
    transition: background-color 0.1s;
    background: transparent;
    border: 1px solid #ffc107;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-weight: 500;
}

.fast-bar {
    position: absolute;
    display: flex;
    justify-content: space-between;
    top: -10px;
    right: -10px;
    width: max-content;
    background-color: #fff;
    border: 1px solid #f1f1f1;
    border-top: 1px solid #fff;
    border-right: 1px solid #ffff;
    border-bottom-left-radius: 10px;
    padding: 6px 10px 6px 10px;
}

.fs-13 .half-text {
    overflow-y: hidden;
    max-height: 200px;
}

.fs-13 .full-text {
    max-height: unset !important;
}

.show_more {
    color: #727272 !important;
    cursor: pointer;
}

.show_more:hover {
    color: var(--var-body-color) !important;
}

.bg-text-input {
    background-color: rgb(238, 238, 238);
    border: 2px solid rgb(238, 238, 238) !important;
    border-radius: 8px;
    box-sizing: border-box;
    color: rgb(155, 155, 155);
    font-family: Inter, -apple-system, BlinkMacSystemFont, Arial, Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    letter-spacing: -0.32px;
    line-height: 1.5;
    outline: 0px;
    width: 100%;
    padding: 14px;
    box-shadow: unset !important;
    margin-right: 10px;
    transition: border-color 0.2s ease 0s;
}

.product-horizontal {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: #00000033 0px 3px 8px;
    padding: 10px;
    border: 1px solid #cacaca;
    justify-content: space-between;
    background: #fff;
}

.product-horizontal .product-name-detailed {
    display: block;
}

.product-horizontal .product-name-detailed h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
}

.product-horizontal .product-info {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
}

.product-horizontal .product-info .text-warning {
    color: #d06d34 !important
}

.product-horizontal .btn-price-chart {
    padding: 3px 15px;
    background: #fff;
    border: 2px solid #f36f24;
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #484848;
}

.product-horizontal .btn-price-chart:hover {
    background: linear-gradient(90deg, #f36f24 -12%, transparent 13%)
}

.product-horizontal .pimg-base {
    width: 100px;
    height: 100%;
}

.product-horizontal .bottom-block {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-direction: column;
    min-width: 280px;
}

.product-horizontal .buy-types {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    text-wrap: nowrap;
}

.product-horizontal .buy-types button {
    padding: 5px !important;
}

.product-horizontal .bottom-block .market-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
    flex: 1 1;
    width: 100%;
    justify-content: end;
}

.product-horizontal .bottom-block .market-actions .market-action {
    width: 50%;
}

.product-horizontal .bottom-block .market-actions .market-action span {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: block;
    text-wrap: nowrap;
}

.product-horizontal .bottom-block .market-actions .market-action .buy-price-span {
    color: #2c3c85;
}

.product-horizontal .bottom-block .market-actions .market-action .sell-price-span {
    color: var(--var-button-success-background-hover);
}

.product-horizontal .bottom-block .market-actions .market-action button {
    width: 100%;
}

.product-horizontal .bottom-block .add-basket-button {
    padding: 6px 15px;
    font-weight: 600;
    width: 100%;
}

.product-horizontal .bottom-block .add-purchase-button {
    color: #fff;
    font-weight: 600;
    border: 1px solid #4455a7;
    background-color: #4455a7;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

}

.product-horizontal .bottom-block .add-purchase-button:hover {
    color: #fff;
    background-color: #4e60bc;
    border-color: #4e60bc;
}

.product-horizontal .product-price {
    display: flex;
    align-items: center;
}

.product-horizontal .product-price .line-trought {
    margin-bottom: 2px;
}

.product-horizontal .product-name {
    font-weight: 600;
}

.category-head-title {
    line-height: unset !important;
    background: rgb(243 111 36);
    box-shadow: 1px 0 rgb(0 0 0 / 4%), 0 1px 2px rgb(0 0 0 / 4%), 0 3px 7px rgb(0 0 0 / 8%);
    padding: 8px 15px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    font-family: Inter, -apple-system, SFProText, system-ui, Helvetica Neue, sans-serif;
    margin-right: 4px;
    margin-left: 4px;
}

.category-box {
    align-self: stretch;
    margin: 10px;
    overflow: hidden;
    border-radius: 7px;
    object-fit: contain;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: 0.2s transform ease-in-out, 0.5s background-position ease-in-out;
}

.category-box img {
    width: 100%;
    display: inherit;
}

.category-box:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(-135deg, #c8e6fa 0%, transparent 50%);
    background-size: 200%;
    transition: 0.2s transform ease-in-out, 0.5s background-position ease-in-out;
}

.category-box:hover {
    transform: perspective(50em) rotateX(10deg) scale(1.1);
    z-index: 10;
}

.category-box:hover:before {
    background-position: 50%;
}

.product-name-detailed {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-slider {
    height: 200px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
}

.category-slider img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    object-position: center;
}

.category-slider .slick-prev:not(.slider-nav .slick-prev) {
    left: 5px !important;
    top: calc(50% - 10px);
}

.category-slider .slick-next:not(.slider-nav .slick-next) {
    right: 5px !important;
    top: calc(50% - 10px);
}

.chart-selections {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 10px;
}

.chart-selections button {
    flex-basis: 100%;
    opacity: 0.8;
}

.chart-selections button.selected {
    opacity: 1;
}

.product-horizontal .product-detail {
    width: unset;
    padding: 0;
}

.product-horizontal.disc {
    position: relative;
    box-shadow: 0 0 5px #3D5AFE;
    border: 1px solid #3D5AFE;
}

.product-horizontal.disc .ph-discount {
    position: absolute;
    background: #3D5AFE;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    top: 0;
    margin: auto;
    display: block;
    left: 0;
    right: 0;
    width: 84px;
    text-align: center;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.search-f {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.form-switch .form-check-input {
    padding: 0.75em;
    width: 2.75em;

}
.product-base {
    padding-right: 6px;
    padding-left: 6px;
}
.layout {
    padding-left: 10px;
    padding-right: 10px;
}
.quantity-wrapper {
    flex-shrink: 0;
}

@media only screen and (max-width: 992px) {
    .search-f {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .top-product .product-item {
        padding: 0;
        margin-bottom: 0;
    }

    .top-product .product-item .product-name {
        font-size: 10px;
        height: 24px;
    }
    .product-base {
        padding: 3px;
        margin-bottom: 0;
    }

    .product-price .sales-price {
        font-size: 14px;
    }

    .layout {
        padding: 0;
    }
     .add-cart {
        font-size: 12px;
    }

    .product-horizontal {
        flex-direction: column;
    }

    .product-horizontal .bottom-block {
        align-items: center;
        padding: 0;
        flex-wrap: wrap;
    }

    .product-horizontal .product-detail {
        width: 100%;
    }

    .product-horizontal .bottom-block .statistic-actions {
        width: 100%;
    }

    .product-horizontal .bottom-block .market-actions {
        flex-direction: column;
    }

    .product-horizontal .bottom-block .market-actions .market-action {
        width: 100%;
    }

    .product-horizontal .pimg-base {
        width: 100%;
        height: 100%;
    }

    .product-horizontal .product-image {
        background-size: contain;
    }

    .product-horizontal .product-info {
        flex: 1 1;
    }

    .product-horizontal .bottom-block button:not(.button-effective) {
        width: 100%;
    }

    .product-horizontal .product-detail {
        height: 260px;
        background: #21232d;
        padding: 0;
    }

    .m-container .row>* {
        padding: 0;
    }

    .product-horizontal {
        padding: 10px !important;
    }

    .category-products .product-base {
        flex-basis: auto !important;
    }

    .product-name-detailed {
        flex-wrap: wrap;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .product-name-detailed img {
        margin-top: 5px;
    }

    .basket-complete.guest-basket-complete {
        justify-content: end !important;
    }

    .basket-complete {
        justify-content: space-between !important;
    }
}

.all-payment-methods h6 {
    display: flex;
    justify-content: space-between;
}

.all-payment-methods h6 .total-payment {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 18px;
}

.all-payment-methods h6 .total-payment .total_payment_value {
    font-weight: 600;
}

.basket-complete {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;
    font-size: 14px;
}

.one-products {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.one-products .one-product {
    display: flex;
    width: calc((100% - 4rem) / 5);
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.15s;
    cursor: pointer;
    padding: 0;
}

.one-products .one-product .product-item .product-name {
    height: 34px;
}

.one-products .one-product .product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 105px;
}

.one-products .one-product .product-item .product-price {
    min-height: auto;
}

.one-products .one-product.out-of-stock {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.one-products .one-product:hover .product-item,
.one-products .one-product.selected .product-item {
    background: #e6e6e6;
    border-radius: 6px;
}

.one-products .one-product:hover .product-item .pimg-base,
.one-products .one-product.selected .product-item .pimg-base {
    background: transparent;
}

.card-wrap:first-of-type {
    margin-top: 0;
}

.card-wrap {
    box-shadow: #00000017 0 3px 8px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
}

.discount-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    margin-top: 1rem;
    box-shadow: 0 2px 5px #00000033;
}

.buy-require label {
    margin: 0.5rem 0;
    font-size: 14px;
}

.payment-box {
    border: 0 !important;
    margin: 0;
}

.payment-box .payment-body {
    padding-left: 32px;
}

.payment-box .payment-body .payment-wallet {
    width: auto;
    margin: 0;
}

.category-list-one {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.category-list-one li h2 {
    font-weight: 500;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box !important;
    white-space: initial;
    overflow: hidden;
    margin: 3px auto;
}

.category-list-one li {
    display: flex;
    width: calc((100% - 4rem) / 5);
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ededed;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.15s;
    cursor: pointer;
}

.category-list-one li:hover,
.category-list-one li.selected {
    background-color: #ededed;
}

.category-list-one li img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .category-list-one li {
        width: calc((100% - 2rem) / 3);
    }

    .one-products .one-product {
        width: calc((100% - 1rem) / 2);
    }

    .one-products .one-product .product-item {
        width: 100% !important;
    }

    .payment-box .payment-body {
        padding-left: 0;
    }

    h6 {
        margin: 1rem 0;
    }

    .check-agreement-side {
        display: none !important;
    }
}
@media (min-width: 300px) and (max-width: 519px) {
    .top-product .product-item {
        width: 100% !important;
    }
}


/** DARK THEME **/
body.dark-theme .category-list li a,
body.dark-theme .form-control,
body.dark-theme .product-horizontal {
    border-color: #323948;
}

body.dark-theme .category-list li a:hover {
    border-color: #f36f24;
}

body.dark-theme .product-horizontal .btn-price-chart {
    background: #171a21;
}

body.dark-theme .product-horizontal .btn-price-chart,
body.dark-theme .product-horizontal .bottom-block .market-actions .market-action .buy-price-span {
    color: #fff;
}

body.dark-theme .category-list-one li {
    border: 1px solid #2f3541;
}

body.dark-theme .category-list-one li:hover,
body.dark-theme .category-list-one li.selected {
    background-color: #2f3541;
}

body.dark-theme .card-wrap {
    border: 1px solid #212630;
    background: #13151b;
}
