/*Вывод на главной категорий в соотношении 1к1*/
.category-default1 figure {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.category img {
    background: white;
}
/*********************************************/

/*Вывод на главной в товара в соотношении 1к1*/
.product-media img:first-child {
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.product-media img {
    padding: 10px;
}
/*********************************************/

/* Align service slider icons vertically center with their text */
/* .service-slider .icon-box-icon{
	margin: 1rem 1rem .2rem .2rem;
} */

.service-slider .owl-item:not(:last-child)::after {
    content: none !important;
}

.service-slider .icon-box-icon {
    color: #4f4f4f !important;
}

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

.hb_index .icon-box i::before {
    margin-left: 10px;
}

.hb_index .icon-box-content {
    padding-right: 10px;
}

/* Featured brands carousel */
.brands-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
}

.brands-wrapper .owl-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.brands-wrapper figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin: 0;
    padding: 12px 10px;
}

.brands-wrapper figure img {
    max-height: 60px;
    max-width: 100%;
    width: auto !important;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 0.8;
    transition:
        filter 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.brands-wrapper figure img:hover {
    /* filter: grayscale(0); */
    opacity: 1;
    transform: translateY(-2px);
}

/* Recently viewed carousel */
.recent-view-slider .owl-stage {
    display: flex;
    align-items: center;
}
.recent-view-slider .product {
    background: #fff;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.recent-view-slider .product:hover {
    border-color: var(--shop-primary);
}
.recent-view-slider .product .product-name {
    font-size: 1.2rem;
}
.recent-view-slider .product .product-name,
.recent-view-slider .product .product-name a {
    line-height: 1.2;
    min-height: 2.4em;
}
.recent-view-slider .product .product-price .price,
.recent-view-slider .product .product-price .new-price,
.recent-view-slider .product .product-price .old-price {
    font-size: 1.3rem;
}
.recent-view-slider .product .product-availability {
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .viewed-products-title {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.product-with-qty .btn-cart i {
    display: inline-block !important;
}

/* Compact icon-only cart button (used in viewed products) */
.product-with-qty .btn-cart.btn-cart-icon-only,
.btn-cart.btn-cart-icon-only {
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    padding: 0.55rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc !important;
    height: 3.6rem !important;
}
.btn-cart.btn-cart-icon-only i {
    margin: 0 !important;
}

/* Brand page: breathing room between menu and brand logo */
.brand-hero {
    margin-top: 20px;
}

/* Header: keep bottom border visible across pages */
.header-bottom {
    border-bottom: 1px solid #f5f5f5;
    background: var(--shop-header-menu-bg, var(--shop-primary));
    color: var(--shop-header-menu-text, #fff);
}

/* Dropdowns (filters/sort) font size tweak */
.toolbox select.form-control,
.toolbox .select-box select {
    font-size: 1.3rem;
}

/* Rating stars for product review form */
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
    align-items: center;
}
.rating-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.rating-input input[type="radio"] + label {
    padding-left: 0.1rem !important;
    margin-left: 0;
    display: block;
}
.rating-input label {
    font-size: 1.6rem;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    display: block;
}
.rating-input input[type="radio"] + label::before,
.rating-input input[type="radio"] + label::after {
    display: none !important;
    content: none !important;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: var(--shop-primary, #f4b400);
}

/* Review votes */
.review-votes {
    color: #bcbcbc !important;
}
.review-votes i,
.review-votes span,
.review-votes .btn-link {
    color: inherit !important;
}

/* Mobile: use full width without side gutters */
@media (max-width: 767px) {
    body {
        background: #fff;
    }

    .page-wrapper {
        max-width: none;
        margin: 0;
        box-shadow: none;
    }

    .page-wrapper > * {
        padding-left: 0;
        padding-right: 0;
    }

    .container,
    .header .container,
    .main .container,
    .footer .container {
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .toolbox .toolbox-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .toolbox .mobile-sort {
        margin-left: 12px;
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
    }

    .toolbox .mobile-sort select.form-control {
        min-width: 220px;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .home .grey-section .intro-wrapper {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding-top: 0 !important;
    }

    .home .grey-section .intro-wrapper > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }

    .home .grey-section .intro-wrapper .intro-slide.banner-radius {
        border-radius: 0;
    }
}

/* Review card styling */
.review-card {
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 8px 16px 8px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.review-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.review-meta {
    font-size: 1rem;
    margin-top: -8px !important;
}
.review-meta-block {
    display: block;
}
.review-rating {
    margin-top: 0;
}
.review-rating-left {
    margin-top: 4px;
}
.review-rating-inline {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    float: none !important;
}
.review-card .comment-rating,
.review-card .ratings-container {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 8px;
}
.review-card .review-header > .ratings-container {
    display: none !important;
}
.review-rating-inline .ratings-full {
    margin-top: 0;
    float: none !important;
}
.review-card > .ratings-container,
.review-card > .rating-reviews {
    display: none !important;
}
.review-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.review-meta-block {
    display: block;
}
.review-date {
    font-size: 1.3rem;
}
.review-image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.review-photo-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    background: #f8fafc;
}
.review-photo-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    background: #fff;
    color: #9aa4b5;
    font-size: 22px;
}
.review-photo-text {
    flex: 1 1 220px;
    min-width: 220px;
}
.review-photo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.review-photo-hint {
    font-size: 1.35rem;
    color: #6f757d;
    line-height: 1.4;
}
.review-photo-cta {
    border-radius: 14px;
    padding: 12px 18px;
    background: #f1f3f6;
    color: #2f6db0;
    border: 1px solid #e1e4e8;
    font-weight: 700;
    white-space: nowrap;
}
.review-photo-cta:hover {
    background: #e6eaef;
    color: #2f6db0;
}
@media (max-width: 575px) {
    .review-photo-upload {
        align-items: flex-start;
    }
    .review-photo-cta {
        width: 100%;
        text-align: center;
    }
}
.header-bottom .header-left,
.header-bottom .header-right,
.header-bottom .category-dropdown,
.header-bottom .main-nav {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}
.header-bottom .category-dropdown,
.header-bottom .category-dropdown > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom .category-dropdown {
    background: transparent;
}
.header-bottom .category-dropdown > a {
    border-radius: 2.5rem;
}
.header-bottom a,
.header-bottom i {
    color: var(--shop-header-menu-text, #fff);
}
.header-bottom .category-dropdown > a,
.header-bottom .category-dropdown > a i {
    color: var(
        --shop-header-category-dropdown-text,
        var(--shop-header-menu-text, #fff)
    );
}
.header-bottom a:hover {
    opacity: 0.85;
}
.header-bottom .main-nav > .menu {
    justify-content: flex-start;
}
.header-bottom .main-nav > .menu > li {
    text-align: left;
}
.header-bottom .main-nav > .menu > li > a {
    color: var(--shop-header-menu-text, #fff) !important;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.3rem 0;
    line-height: 1;
    letter-spacing: inherit;
    display: inline-block;
    text-transform: none;
}
.header-bottom .main-nav > .menu > li.active > a,
.header-bottom .main-nav > .menu > li > a:hover {
    color: var(--shop-header-menu-text, #fff) !important;
}
.header-bottom .menu-active-underline > li > a::before {
    background: var(--shop-header-menu-text, #fff);
    left: 0;
    right: auto;
    width: 100%;
    transform-origin: left center;
}

/* Price filter slider: use brand color */
.noUi-handle {
    background: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
}

/* Contact form styling */
.contact-section .form-control {
    border-radius: 2.4rem !important;
}
.contact-section textarea.form-control {
    min-height: 16rem;
}
.contact-section .form-control:focus {
    border-radius: 2.4rem !important;
}
.contact-section .contact-info-box {
    border-radius: 2.4rem;
}
.header-bottom .menu-active-underline > li.active > a::before {
    transform: scale(1, 1);
}
.header-bottom .dropdown-box,
.header-bottom .dropdown-box a,
.header-bottom .dropdown-box i {
    color: #222;
    opacity: 1;
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show {
    border-bottom-color: transparent;
    border: none;
}
.header-bottom.sticky-content.fixed {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}
.header-bottom.sticky-content.fixed .header-left,
.header-bottom.sticky-content.fixed .header-right,
.header-bottom.sticky-content.fixed .category-dropdown,
.header-bottom.sticky-content.fixed .main-nav {
    background: var(--shop-header-menu-bg, var(--shop-primary));
}
.header-bottom.sticky-content.fixed .category-dropdown,
.header-bottom.sticky-content.fixed .category-dropdown > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom.sticky-content.fixed .category-dropdown {
    background: transparent;
}
.header-bottom.sticky-content.fixed .category-dropdown > a {
    border-radius: 2.5rem;
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a
    i {
    color: var(
        --shop-header-category-dropdown-text,
        var(--shop-header-menu-text, #fff)
    );
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    > a {
    background: var(
        --shop-header-category-dropdown-bg,
        var(--shop-header-menu-bg, var(--shop-primary))
    );
}
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box
    a,
.header-bottom.sticky-header.fix-top.sticky-content.d-lg-show
    .category-dropdown
    .dropdown-box
    i {
    color: #222;
}

/* Header search: pill radius */
.header-search .input-wrapper,
.header-search .form-control,
.header-search .btn-search {
    border-radius: 2.5rem;
}
.header-search.hs-expanded .input-wrapper {
    width: 100%;
    border: 2px solid var(--shop-primary);
    border-radius: 2.5rem;
    height: 4.5rem;
}
.header-search .btn-search i {
    margin: 0 0.1rem 0.4rem 0;
    vertical-align: middle;
    font-size: 1.7rem;
}

/* Header accessibility: stronger text contrast on white header area */
.header-middle {
    color: #1f2937;
}
.header-middle a,
.header-middle .cart-name,
.header-middle .cart-price,
.header-middle .icon-box-content p,
.header-middle .icon-box-content p a {
    color: #1f2937;
}
.header-middle .icon-box-title .text-primary {
    color: #0b4ea2 !important;
}
.header-search .form-control {
    color: #111827;
    background-color: #fff;
}
.header-search .form-control::placeholder,
.header-search .form-control::-webkit-input-placeholder,
.header-search .form-control:-ms-input-placeholder,
.header-search .form-control::-ms-input-placeholder {
    color: #6b7280;
    opacity: 1;
}
.header-search .btn-search,
.header-search .btn-search i {
    color: #1f2937;
}
.step-by .title.title-step.active {
    color: var(--shop-primary);
}

/* Password visibility toggle (eye icon) */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 3.6rem;
}
.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

/* Blog pages: narrower content width */
.blog .page-content .container,
.blog-post .page-content .container,
.news .page-content .container,
.news-post .page-content .container {
    max-width: 1220px;
}

/* Home blog carousel: normalize card media height */
.home-blog-section .post-media {
    height: 220px;
    overflow: hidden;
}

.home-blog-section .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home news carousel: normalize card media height */
.home-news-section .post-media {
    height: 220px;
    overflow: hidden;
}

.home-news-section .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Related posts: normalize media height */
.blog-post .related-posts .post-media {
    height: 220px;
    overflow: hidden;
}

.blog-post .related-posts .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-post .related-posts .post-media {
    height: 220px;
    overflow: hidden;
}

.news-post .related-posts .post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog titles: match requested size/weight */
.home-blog-section .post-title,
.home-news-section .post-title,
.blog .post-title,
.blog-post .post-title,
.news .post-title,
.news-post .post-title {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Static pages: narrower content width */
.page-static .page-content .container {
    max-width: 1220px;
}
.password-field .password-toggle:focus {
    outline: none;
}

/* Auth social icons: ensure Font Awesome brand font is used */
.social-links .social-link.fab {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}
.login-popup .social-link.social-google::before,
.login-popup .social-link.social-apple::before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
}
.login-popup .social-link.social-google::before {
    content: "\f1a0";
}
.login-popup .social-link.social-apple::before {
    content: "\f179";
}

/* Account: underline active left menu item */
.main.account .nav-tabs .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Select: add right padding so arrow isn't flush */
select.form-control:not([multiple]):not([size]) {
    padding-right: 5rem;
    background-position: right 2.1rem center;
}

.wishlist-toggle-form {
    display: inline-block;
    margin: 0;
}

.wishlist-toggle-form .btn-product-icon {
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wishlist-toggle-form .btn-product-icon::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Variations: show unavailable options as disabled */
.product-variations .disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.product-action-vertical .wishlist-toggle-form .btn-product-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    color: #999;
    border-radius: 50% !important;
}

.product-action-vertical .btn-product-icon.btn-wishlist i {
    font-size: 1.8rem;
}

.product-action-vertical .wishlist-toggle-form {
    display: block;
}

.header .wishlist {
    position: relative;
}

.header .wishlist .wishlist-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* Wishlist table: add visual spacing between price and stock columns */
.wishlist-table th.product-stock-status,
.wishlist-table td.product-stock-status {
    padding-left: 24px;
}

/* Contacts: map should stretch full width, even for fixed-size embeds */
.contact-map-full {
    padding: 0;
}

.contact-map-full iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Contacts: keep padding inside the info block */
.contact-info-box {
    padding: 2.4rem;
}

.recent-view-slider .product-border {
    background: #fff;
    border-radius: 10px;
    /*border: 1px solid #efefef;*/
    /*box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);*/
    padding: 14px;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-view-slider .product-border img {
    width: 100%;
    height: 155px;
    object-fit: contain;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recent-view-slider a:hover .product-border img {
    transform: translateY(-2px);
}

/* Fix banner owl images to consistent height */
.intro-wrapper .owl-carousel .owl-item img {
    height: 239px !important;
    object-fit: cover;
}

/* Deals page: 3-grid banners fixed height (180px) */
.deals-grid-banners .banner,
.deals-grid-banners .banner > figure,
.deals-grid-banners .banner > figure > img {
    height: 180px !important;
}

.deals-grid-banners .banner > figure {
    overflow: hidden;
}

.deals-grid-banners .banner > figure > img {
    width: 100% !important;
    object-fit: cover;
}

/* Site width: almost full width with a small gutter on both sides */
.container {
    max-width: none;
    width: min(1600px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Product page: constrain gallery images */
.product-gallery .product-image {
    height: 452px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .product-main-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.product-thumbs .product-thumb-img {
    height: 122px;
    width: 109px;
    max-width: 100%;
    max-height: 122px;
    object-fit: contain;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.product-thumbs .product-thumb {
    width: 109px;
    height: 122px;
    display: inline-flex;
    /* align-items: center; */
    justify-content: center;
}

@media (max-width: 991px) {
    /* .product-gallery .product-image {
		height: auto;
	} */
    .product-thumbs .product-thumb {
        width: 100%;
        height: 100px;
    }
    .product-thumbs .product-thumb-img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

/* Product cards: allow two-line titles before truncation */
.product .product-name,
.product .product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.4;
    min-height: 2.8em;
    padding-right: 0;
}

.product-card-mobile-title {
    display: none;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0.6rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

@media (max-width: 991px) {
    .product-card-mobile-title {
        display: -webkit-box;
    }
}
.shop-category .product.cart-full:hover {
    border-color: var(--shop-primary);
}

/* Product availability: force status colors in card and product page */
.product-availability .text-success {
    color: #28a745 !important;
}
.product-availability .text-danger {
    color: #dc3545 !important;
}
.product-availability .text-warning {
    color: #f0ad4e !important;
}
.product-availability .text-info {
    color: #17a2b8 !important;
}
.product-availability .text-secondary {
    color: #6c757d !important;
}
.product-availability {
    margin-bottom: 1rem;
}

/* Category grid: fit 4 cards without shrinking the sidebar */
@media (min-width: 1200px) {
    .shop-category .product-wrapper {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
    .shop-category .product-wrapper > * {
        max-width: 100%;
        flex: 0 0 auto;
        padding: 0;
    }
}

@media (max-width: 991px) {
    .shop-category .product-wrapper > * {
        padding-left: 0px;
        padding-right: 0px;
    }
    .product.cart-full .product-details {
        padding: 0.3rem 1rem 0rem 1rem;
    }

    .product .product-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.46;
    }

    .product .product-price .old-price {
        order: -1;
    }
    .product.cart-full .product-price,
    .product.product-with-qty .product-details .product-price {
        margin-bottom: 0.2rem;
    }
    .product.cart-full .ratings-container {
        margin-bottom: 0rem;
    }
    .product.cart-full {
        border-radius: 1.3rem;
    }
    .product-gallery .product-image {
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Product with qty (from style.min.css23323): keep qty + cart inline */
.product.product-with-qty .product-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.product.product-with-qty .product-action .product-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.product.product-with-qty .product-form-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-right: 2rem;
}
.product.product-with-qty .btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-right: 0;
    background-color: #f4f4f4;
    border-color: #e1e1e1;
    color: #222;
}
.product .btn-cart,
.product-single .btn-cart {
    border-radius: 2.5rem;
}
.product.product-with-qty .btn-cart i {
    display: none;
}
.product.product-with-qty:hover .btn-cart:not(:hover) {
    background-color: #f4f4f4;
    border-color: #e1e1e1;
    color: #222;
}

/* Category grid: allow wrapping so the button doesn't overflow */
.main-content .product.product-with-qty .product-action {
    flex-wrap: wrap;
    gap: 0.8rem;
}
.main-content .product.product-with-qty .product-form-group {
    margin-right: 0;
}
.main-content .product.product-with-qty .btn-cart {
    max-width: 100%;
}
.product.product-with-qty .product-quantity,
.product.product-with-qty .product-form-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}
.product.product-with-qty .product-form-group .input-group {
    display: flex;
    align-items: center;
}
.product.product-with-qty button,
.product.product-with-qty .quantity-minus,
.product.product-with-qty .quantity-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 0.3rem;
    border: none;
    background: #f4f4f4;
    cursor: pointer;
    transition:
        background-color 0.3s,
        color 0.3s;
}
.product.product-with-qty button:hover,
.product.product-with-qty .quantity-minus:hover,
.product.product-with-qty .quantity-plus:hover {
    background-color: var(--shop-primary);
    color: #fff;
}
.product.product-with-qty .quantity {
    min-height: auto;
    width: 3.2rem;
    padding: 0;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    text-align: center;
    color: #222;
}
.product-single .input-group.mr-2,
.product-single .input-group.mr-2 .quantity,
.product-single .input-group.mr-2 .quantity-minus,
.product-single .input-group.mr-2 .quantity-plus {
    border: none;
    box-shadow: none;
}
/* .product-single .product-form .input-group .quantity-minus,
.product-single .product-form .input-group .quantity-plus {
	background-color: var(--shop-primary);
	border-color: var(--shop-primary);
	color: #fff;
} */
.product-single .product-form .input-group .quantity-minus:disabled,
.product-single .product-form .input-group .quantity-plus:disabled {
    background-color: #e4eaec;
    border-color: #e4eaec;
    color: #999;
}
.cart-full .product-details .btn-cart span {
    display: inline;
}
.cart-full .btn-cart i {
    display: none;
}

/* Advantages list scroll when more than 3 */
.advantages-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway/Raleway-VariableFont_wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Курсив */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Use Raleway for the shop (targeted override to avoid breaking icon fonts) */
@supports (font-variation-settings: normal) {
    html.market,
    body.market,
    .home.market,
    body.home.market,
    .home.market.loaded,
    body.home.market.loaded,
    .market .page-wrapper,
    .market h1,
    .market h2,
    .market h3,
    .market h4,
    .market h5,
    .market h6,
    .market p,
    .market a,
    .market span,
    .market button,
    .market input,
    .market select,
    .market textarea,
    .market label {
        font-family: "Raleway", sans-serif !important;
        font-variant-numeric: lining-nums;
        font-feature-settings: "lnum" 1;
    }
}

/* Restore icon fonts overridden by global font-family rules */
.market .fab {
    font-family: "Font Awesome 5 Brands" !important;
}
.market .fas,
.market .far {
    font-family: "Font Awesome 5 Free" !important;
}
.market [class^="d-icon-"],
.market [class*=" d-icon-"] {
    font-family: "riode" !important;
}

/* Product price styling: keep new/old prices on the same font as .price and make the old price smaller */
.product-price .old-price.price,
.product-price .new-price.price {
    font-family: "Raleway", sans-serif !important;
    /* display: block;
	line-height: 1.2; */
}
.product-price .new-price.price {
    color: var(--shop-primary);
}
.product-price .old-price.price {
    font-size: 0.7em !important;
    /* margin-bottom: 0.2rem; */
}

/* Keep product cards the same height even when optional price lines appear */
/* .product .product-price {
	min-height: 3.6rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
    align-items: flex-start;
} */

/* Ensure cart icon shows on product cards (theme hides it for product-with-qty) */

/* Order: colored status badge */
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.order-status--new {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.order-status--processing {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.order-status--paid,
.order-status--completed {
    color: #065f46;
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.order-status--shipped {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #93c5fd;
}

.order-status--canceled {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}
.main.checkout .col-lg-7.mb-6.mb-lg-0.pr-lg-4 .form-control {
    color: #222 !important;
    border-radius: 1rem;
}
.main.checkout .col-lg-7.mb-6.mb-lg-0.pr-lg-4 .form-control::placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control::-webkit-input-placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control:-ms-input-placeholder,
.main.checkout
    .col-lg-7.mb-6.mb-lg-0.pr-lg-4
    .form-control::-ms-input-placeholder {
    color: #222 !important;
    border-radius: 1rem;
}
.main.checkout .select-with-icon {
    display: flex;
    gap: 12px;
}
.main.checkout .select-with-icon .select-box {
    flex: 1 1 auto;
    width: 100%;
}
.main.checkout .select-with-icon .select-box {
    height: 4.1rem;
}

/* extra right padding for selects in account forms */
.main.account select.form-control {
    padding-right: 2.75rem;
}

/* Mini-cart empty state: vertically centered while keeping left alignment */
.mini-cart-empty {
    display: flex;
    align-items: center;
    min-height: 8rem;
}
.mini-cart-empty p {
    margin-bottom: 0;
}
.main.checkout .select-with-icon .select-icon-wrap {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}
.main.checkout .select-with-icon .select-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

/* Product description: keep rich-editor tables readable */
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.product-description th,
.product-description td {
    border: 1px solid #d9d9d9;
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
}
.product-description thead th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Category filters: add breathing room below price slider */
.shop-sidebar .filter-price-slider {
    margin-bottom: 1.2rem;
}

/* Category filters: make sidebar scrollable (desktop & mobile drawer) */
/* .shop-category .shop-sidebar .sidebar-content {
	max-height: calc(100vh - 240px);
	overflow-y: auto;
	padding-right: 8px;

}
.shop-category .shop-sidebar .sidebar-content::-webkit-scrollbar {
	width: 5px;
}
.shop-category .shop-sidebar .sidebar-content::-webkit-scrollbar-thumb {
	background: rgba(67, 67, 67, 0.2);
	border-radius: 5px;
} */

/* Rich text headings: keep h2/h3 readable in category/product descriptions */
.product-description h2,
.category-description h2 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 2rem 0 1rem;
}
.product-description h3,
.category-description h3 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.6rem 0 0.8rem;
}

/* Header: hide dropdown arrow when only one currency or language */
.header-top .dropdown.is-single > a::after {
    display: none !important;
}
.header-top .dropdown.is-single > a {
    padding-right: 0;
}

.sidebar-toggle {
    color: #999999 !important;
    background-color: rgb(246 246 246) !important;
}

/* Mobile: make main content full width */
@media (max-width: 767px) {
    .page-content > .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .main .container,
    .main .container-fluid {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .product .product-sku {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product.product-with-qty .product-form-group .input-group {
        display: none;
    }

    .product .product-action .btn-cart span {
        display: inline;
    }

    .product .product-details .product-meta.d-lg-none {
        display: flex;
        gap: 0.4rem;
        align-items: baseline;
    }
    .product .product-details .product-meta.d-lg-none .product-sku {
        white-space: nowrap;
    }

    .header-middle {
        padding-top: 1.9rem;
        padding-bottom: 1.9rem;
    }
    .header-middle.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
}

/* Account orders: keep first column readable on desktop */
@media (min-width: 768px) {
    .main.account #orders .order-table th:first-child,
    .main.account #orders .order-table td:first-child {
        min-width: 160px;
        white-space: nowrap;
    }
    .main.account #orders .order-table thead th,
    .main.account #orders .order-table tbody td {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .main.account #orders .order-table th.pl-2 {
        padding-left: 2rem !important;
    }
    .main.account #orders .order-table th.pr-2 {
        padding-right: 2rem !important;
    }
}

/* Category dropdown: subtle shadow for menu panel */
.category-dropdown .dropdown-box {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

/* Mega menu: keep category titles in original case */
.megamenu .menu-title,
.megamenu .menu-title > a,
.megamenu a.menu-title {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Mega menu: shrink panel width for small column counts */
.category-dropdown .dropdown-box {
    background: transparent !important;
}
.category-dropdown .category-menu {
    background: #fff;
}
.category-menu .megamenu {
    background: #fff;
}
.category-menu .megamenu .divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    background-color: #eee;
}
.category-menu .megamenu .menu-title,
.category-menu .megamenu .menu-title > a {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    padding: 2.7rem 0 0.2rem;
    text-transform: none;
    letter-spacing: normal;
}
.category-menu .megamenu.type2 .menu-title,
.category-menu .megamenu.type2 .menu-title > a {
    padding-top: 1.5rem;
}
.category-menu .megamenu.type2 {
    min-width: calc(var(--mega-cols, 4) * 260px) !important;
    width: calc(var(--mega-cols, 4) * 260px) !important;
    max-width: 100%;
}
.category-menu .megamenu ul {
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0;
}
.category-menu .megamenu ul li {
    padding: 0;
}
.category-menu .megamenu ul li a {
    padding: 0.7rem 0;
}

/* account select padding tweak */
.main.account select.form-control {
    padding-right: 3.5rem !important;
}

/* Keep first-screen content visible for Lighthouse/LCP measurement. */
.page-wrapper {
    opacity: 1 !important;
}

/* Accessibility: improve text contrast for reported low-contrast elements */
.cart-dropdown .dropdown-box .btn-close {
    color: #111827 !important;
}

.cart-dropdown .dropdown-box .btn-close:hover,
.cart-dropdown .dropdown-box .btn-close:focus {
    color: #000000 !important;
}

.home-blog-section .post-comment,
.home-news-section .post-comment,
.post .post-comment {
    color: #374151 !important;
}

.checkout [data-error] {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    color: #dc3545;
}

.checkout .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}
