@import url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css');

/* Font Awesome для breadcrumbs */
.g-breadcrumbs-separator i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.fa-angle-right::before {
    content: "\f105" !important;
}

/* WooCommerce кнопки */
body.us-woo-catalog .add_to_cart_button,
body.us-woo-catalog .type_product a.button,
body.us-woo-catalog .cart,
body.us-woo-catalog .stock,
.us-woo-catalog .add_to_cart_button,
.us-woo-catalog .single_add_to_cart_button,
.woocommerce .add_to_cart_button,
.woocommerce button.button.alt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.us-woo-catalog .add_to_cart_button {
    display: inline-flex !important;
}

body.us-woo-catalog .type_product a.button {
    display: inline-flex !important;
}

/* Базовые стили */
body {
    font-family: "Mulish";
    line-height: 1.4;
}

#page-content {
    padding-top: 90px;
}

body:not(.home) {
    background-color: #dcdcde;
}

body:not(.home) .menu-wrapper .item-menu a {
    color: #1F2332;
    font-weight: normal;
}

body:not(.home) .menu-wrapper .item-menu.item-menu--children .sub-menu-wrapper a {
    color: #ffffff;
}

/* Галерея товаров */
.woocommerce-product-gallery ol>li {
    padding: 3px;
    background: white;
}

.w-image:not([class*="style_phone"]) .w-image-h {
    background: inherit;
    border-radius: 30px;
}

.woocommerce-shop .l-subheader,
.woocommerce-shop .l-section,
.single-product .l-section,
.tax-product_cat .l-section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.product-template-default .l-section.height_small {
    padding-top: 1rem;
    padding-bottom: 0;
}

#content-mbec, #content-cd3c {
    max-width: 800px;
}

.us_portfolio_category-galereya .w-grid-item-h {
    border-radius: 30px;
}

.product-template-default .w-separator.size_large:empty {
    height: 1.5rem;
}

.owl-carousel .w-grid-item-h img {
    border-radius: 20px;
}

#page-content h1,
h1 .w-nav-title {
    font-size: 30px;
}

.category-novini .cols_2>div[class*="list"]>* {
    width: 25%;
}

.category-novini .cols_2>div[class*="list"]>* img {
    border-radius: 20px;
}

/* Мобильные стили */
@media screen and (max-width: 600px) {
    .l-subheader, .l-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    body:not(.home) .menu-wrapper .item-menu a {
        color: #ABB5CE;
    }
    
    .footer {
        overflow: hidden !important;
    }
    
    .banner {
        position: relative;
        min-height: 980px;
        padding: 306px 0 100px;
    }
}

.inner-catalog-grid-prod .cols_2>div[class*="list"]>* {
    width: 50% !important;
}

#wpadminbar {
    z-index: 9999999999;
}

.card img {
    max-height: unset;
}

.card-inner--2,
.card-inner--1 {
    animation-duration: 250s;
}

body:not(.home) .menu-wrapper .item-menu.item-menu--children .sub-menu-wrapper .accordion-header a,
body:not(.home) .menu-wrapper .item-menu.item-menu--children .sub-menu-wrapper .accordion-header .lang-item--small {
    color: #1f2332;
}

#page-content .columns-top-up--shop {
    margin-top: 0 !important;
}

/* Контакты */
.contact-wrapper {
    background: transparent;
    transition: none;
}

.contact-wrapper:hover {
    background: rgba(31, 35, 50, 1);
}

/* Footer */
.footer-list:not(.footer-list--contacts) .footer-item:first-child a,
.footer-item-title a,
.footer-item-title span {
    font-size: 18px;
}

.footer-item a,
.footer-item span {
    font-size: 16px;
}

.footer-item,
.footer-item-social {
    list-style: none !important;
}

.footer-item-social {
    margin-bottom: 0;
}

.lang-item--small a:hover {
    color: #fff !important;
}

.footer-item .footer-social {
    margin-left: 0;
}

.row {
    --bs-gutter-x: 10px !important;
}

/* Большие экраны */
@media (min-width: 2000px) {
    .feature-container {
        min-height: 1000px;
    }
    
    .feature-img {
        max-height: 1000px;
    }
    
    .feature-img img {
        max-height: 1000px;
    }
}

@media (min-width: 1200px) {
    .widget:not(.widget_wpmegamenu_widget) {
        margin-left: 25px;
    }
}

/* Поиск */
#search-input {
    background: transparent;
    border: none;
    color: white;
    outline: 0;
}

#search-input:focus {
    box-shadow: none;
}

/* Каталог */
.catalog .swiper-slide-img .solution-desc-text a {
    display: block;
    max-width: calc(100% - 60px);
}

.solution-list {
    max-width: calc(100% - 70px);
}

.solution-list li a {
    display: inline-block;
    padding-left: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

.solution-list li {
    margin-bottom: 10px;
}

/* Мобильные стили 768px */
@media(max-width: 768px) {
    .footer-row .col-lg-auto {
        padding-bottom: 30px;
    }
    
    .footer-list:not(.footer-list--contacts) .footer-item:first-child,
    .footer-item-title {
        margin-bottom: 30px;
    }
    
    .section {
        padding: 40px 0;
        position: relative;
    }
    
    .menu-wrapper.scrolled .item-menu .lang-item--small span {
        color: rgb(31 35 50);
    }
    
    body:not(.home) .menu-wrapper .item-menu.item-menu--children .sub-menu-wrapper .lang-item--small a {
        color: rgb(31 35 50);
    }
    
    .menu-wrapper {
        bottom: 10px;
        left: 10px;
        width: max-content;
    }
    
    .sub-menu-contact-item {
        list-style: none;
    }
}

.tax-product_cat .w-grid.valign_center .w-grid-list,
.w-grid.valign_center .owl-stage {
    align-items: start;
}

/* Цены */
.price2 .w-post-elm-value {
    font-family: 'Mulish';
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #5d6f9a;
}

.productPagePrice .modern_expo span {
    font-family: "Mulish";
    line-height: 1.4;
    font-size: 16.4px;
}

.productPagePrice .modern_expo .w-post-elm-before {
    color: #162d13;
}

.productPagePrice .modern_expo a span {
    opacity: 0;
    width: 100px;
    position: absolute;
}

.productPagePrice .modern_expo .w-post-elm-after {
    color: #f88709;
}

.modern_expo {
    margin-left: -20px;
}

.CatecoryGridWrapItem .w-grid-item {
    padding: 10px !important;
}

/* Popup */
.popup-2 img {
    border-radius: 20px;
    max-width: 300px;
}

@media(max-width: 768px) {
    .popup-2 {
        bottom: 90px;
    }
}

/* WooCommerce */
.us-woo-catalog .cart {
    display: block !important;
}

.woocommerce-billing-fields input {
    border-radius: 20px !important;
    height: 45px !important;
}

.select2-selection {
    border-radius: 20px !important;
    height: 40px !important;
}

.woocommerce-checkout-review-order .cart-subtotal {
    display: none;
}

.woocommerce-additional-fields textarea {
    border-radius: 20px !important;
}

.w-post-elm-value {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Кнопки добавления в корзину */
.add_to_cart_button {
    text-align: center;
    background: #5D6F9A !important;
    color: #fff !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    width: 169px !important;
    height: 40px !important;
    max-height: 40px !important;
    min-height: 40px !important;
    border-radius: 50px !important;
    padding: 12px 28px 12px 28px !important;
    justify-content: center !important;
}

.us_custom_c2831330 {
    height: 60px !important;
}

.productPageOffer button {
    height: 60px !important;
}

.single_add_to_cart_button {
    margin: 5px 0px;
    background: #f88709 url(/wp-content/uploads/2024/09/up-right-arrow-1.svg) no-repeat calc(100% - 7px) 5px / 50px 50px !important;
    color: #1f2332 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    width: 230px !important;
    height: 60px !important;
    max-height: 60px !important;
    min-width: 192px !important;
    min-height: 50px !important;
    border-radius: 50px !important;
    padding: 15px 50px 15px 10px !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    font-family: var(--h1-font-family) !important;
}

.woocommerce-checkout #order_review_heading {
    float: left;
    width: 100%;
    padding: 0;
}

.checkout-button {
    background: #5D6F9A !important;
    color: #fff !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    height: 50px !important;
    max-height: 50px !important;
    min-width: 192px !important;
    min-height: 50px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.us-woo-catalog .add_to_cart_button {
    display: flex !important;
}

.type-product .quantity {
    display: none;
}

.us_custom_df8254fa {
    max-width: 340px !important;
}

/* Корзина */
.btn_cart {
    border-radius: 50%;
    background: #f88709;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    padding: 15px;
    position: relative;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Сетка товаров */
.w-grid-list {
    align-items: stretch;
}

.CardWprap {
    height: 100%;
    min-height: 400px;
}

.CardWrapContent {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.CardInnerTitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3.2em;
    max-height: 3.2em;
    margin-bottom: 0.5rem;
}

.CardInnerContent {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.shopPageWrap .products.columns-2>.product,
.shopPageWrap .products.columns-2>.product-category {
    overflow: visible !important;
    height: 300px !important;
    position: relative !important;
}

/* Картинки на всю высоту */
.shopPageWrap .products.columns-2>.product img,
.shopPageWrap .products.columns-2>.product-category img {
    border-radius: 38px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Заголовок поверх картинки */
.shopPageWrap .woocommerce-loop-category__title {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 10 !important;
    margin: 0 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* Затемнение под текстом (опционально) */
.shopPageWrap .products.columns-2>.product-category a::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent) !important;
    border-radius: 0 0 38px 38px !important;
    z-index: 5 !important;
}