/**
* Theme Name:        avanam-upwear
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-upwear
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/

body .site-main-header-inner-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a {
    margin: 10px 0px;
}

.header-html a {
    font-size: 19px;
   text-decoration: none!important;
}

.logo-footer img {
    width: 185px!important;
}
body .main-navigation .primary-menu-container > ul li.menu-item > a {
    text-transform: none;
}
html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper #tab-global-tab-1076,
html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper #tab-global-tab-2053{
    max-height: 100%;
    background-color: #fff;
    border: 0px solid #c3c4c7;
    border-radius: 0px;
    padding: 20px 20px 20px 20px !important;
    text-align: left;
    text-transform: none;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    font-size: 16px !important;
    color: #444 !important;
}

.elementor-1860 .elementor-element.elementor-element-3fbc6c6 {
    width: auto;
    max-width: auto;
    height: 100%;
}

.elementor-1860 .elementor-element. .elementor-icon-box-wrapper {
    align-items: center;
    text-align: start;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    height: 100%!important;
}

/* ===== Стили для блока преимуществ ===== */
.product-after-images-element {
    width: 100%;
}

/* Контейнер-сетка */
.advantages-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

/* Общие стили карточек */
.advantage-card {
    background-color: #f7f7f7;
    border-style: solid;
    border-color: #DEE3F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    flex: 1 1 0%; /* равномерное распределение */
    min-width: 0; /* предотвращает переполнение */
}

/* Границы для трёх колонок */
.advantage-card:first-child {
    border-width: 1px;
    border-radius: 5px 0 0 5px;
}

.advantage-card:nth-child(2) {
    border-width: 1px 1px 1px 0; /* верх, право, низ, лево — убираем левую границу */
    border-radius: 0;
}

.advantage-card:last-child {
    border-width: 1px 1px 1px 0;
    border-radius: 0 5px 5px 0;
}

/* Внутренний контейнер для иконки и текста */
.icon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: start;
    width: auto;
}

/* Иконка */
.icon-part {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #5c5c5c;
    fill: #5c5c5c;
}

.icon-part svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* Текст */
.text-part {
    display: flex;
    flex-direction: column;
}

.advantage-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    color: #5c5c5c;
    margin: 0;
    white-space: nowrap; /* сохраняем компактность, как в исходнике */
}

/* -------------------------------------------- */
/* Адаптивность: планшеты (ширина <= 1024px) */
/* -------------------------------------------- */
@media (max-width: 1024px) {
    .advantages-grid {
        /* На планшетах элементы могут переноситься, ширина задаётся ниже */
    }

    .advantage-card {
        flex: 0 0 46%; /* примерно как в исходных медиа-запросах */
        justify-content: flex-start;
    }

    /* Переопределяем границы и скругления для планшетов */
    .advantage-card:first-child {
        border-width: 1px;
        border-radius: 5px 0 0 0; /* верхний левый угол */
    }

    .advantage-card:nth-child(2) {
        border-width: 1px 1px 1px 0;
        border-radius: 0 5px 0 0; /* верхний правый угол */
    }

    .advantage-card:last-child {
        border-width: 1px 1px 1px 0;
        border-radius: 0 0 5px 0; /* нижний правый угол (может быть иначе, подстроим) */
        /* Так как на планшете три элемента в строку не влезают,
           третий перенесётся на новую строку. Сделаем ему нормальные границы */
        flex: 0 0 46%;
        margin-top: -1px; /* компенсация нахлеста границ, если нужно */
    }

    /* Уточним: чтобы не было двойных границ */
    .advantage-card:first-child,
    .advantage-card:nth-child(2),
    .advantage-card:last-child {
        margin-top: 0;
    }

    /* Настройка отступов для перенесённого элемента */
    .advantage-card:last-child {
        border-width: 0 1px 1px 0;
        border-radius: 0 0 5px 0;
    }

    /* Лучше унифицировать */
    .advantage-card {
        border-width: 1px 1px 1px 1px;
        border-radius: 0;
    }

    /* Возвращаем логику как в elementor — колонки 46% */
    .advantage-card {
        flex: 0 0 46%;
        border: 1px solid #DEE3F2;
    }

    .advantage-card:nth-child(1) {
        border-radius: 5px 0 0 0;
        border-right: none;
    }

    .advantage-card:nth-child(2) {
        border-radius: 0 5px 0 0;
        border-left: none;
    }

    .advantage-card:nth-child(3) {
        border-radius: 0 0 5px 0;
        border-left: none;
        border-top: none;
        margin-top: -1px;
        flex: 0 0 46%;
    }

    .icon-box {
        align-items: flex-start;
        gap: 10px;
    }
}

/* -------------------------------------------- */
/* Адаптивность: мобильные (ширина <= 767px) */
/* -------------------------------------------- */
@media (max-width: 767px) {
    .advantages-grid {
        flex-direction: column;
        align-items: center;
    }

    .advantage-card {
        flex: 0 0 auto;
        width: 70%;
        border: 1px solid #DEE3F2;
        border-radius: 0;
        justify-content: center;
        margin-top: -1px; /* убираем двойные границы */
    }

    .advantage-card:first-child {
        margin-top: 0;
        border-radius: 5px 5px 0 0;
        border-width: 1px;
    }

    .advantage-card:nth-child(2) {
        border-width: 0 1px 1px 1px;
        margin-top: 0;
        border-radius: 0;
    }

    .advantage-card:last-child {
        border-width: 0 1px 1px 1px;
        border-radius: 0 0 5px 5px;
        margin-top: 0;
    }

    .icon-box {
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .advantage-title {
        white-space: normal;
    }
}

/* Для очень маленьких экранов можно чуть расширить */
@media (max-width: 480px) {
    .advantage-card {
        width: 85%;
    }
}

html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs ul.tabs.wc-tabs {
    display: flex;
}
.reviews_tab {
    order: 1;
}


.addresses-section {
    width: 100%;
    margin: 0 auto;
}

.addresses-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

/* Карточка адреса */
.address-card {
    flex: 1 1 50%;
    min-width: 0;
    background-color: #2c574d;
    padding: 25px 25px 25px 20px;
    transition: background 0.3s ease, border 0.3s ease;
    color: #ffffff;
}
.address-card *  {
    color: #ececec;
}
/* Внутренний flex для иконки и текста */
.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Иконка в круглой обводке */
.icon-circle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    fill: #ffffff;
    font-size: 18px;
    margin-top: 2px;
}

.icon-circle svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* Текстовая часть */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.6;
    color: #333333;
    font-size: 15px;
}

.text-content .address-line {
    margin: 0;
}

.text-content .contact-line {
    margin: 0;
    font-weight: 500;
    color: #222222;
}

/* Лёгкий разделитель между колонками (опционально) */
.address-card:first-child {
    border-right: 1px solid #eaeaea;
}

/* Адаптивность: планшеты */
@media (max-width: 768px) {
    .addresses-grid {
        flex-direction: column;
    }

    .address-card {
        flex: 1 1 100%;
        border-right: none !important;
        border-bottom: 1px solid #eaeaea;
        padding: 20px 15px;
    }

    .address-card:last-child {
        border-bottom: none;
    }

    .icon-box {
        align-items: flex-start;
    }
}

/* Адаптивность: телефоны */
@media (max-width: 480px) {
    .icon-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .icon-circle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .text-content {
        font-size: 14px;
    }
}

.branding-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    background: #ececec;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 60px;
}

.branding-banner__content {
    max-width: 1000px;
    flex: 1;
    padding-left: 60px;
    padding-right: 20px;
}

.branding-banner__title {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;

    color: #29574d;
}

.branding-banner__line {
    width: 40px;
    height: 3px;
    background: #1d1d1d;

    margin: 17px 0;
}

.branding-banner__text {
    margin: 0;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 400;

    color: #111;
}

.branding-banner__image {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;

}

.branding-banner__image img {
    display: block;
    max-width: 480px;
    width: 100%;
    max-height: 284px;
}

/* Адаптив */
@media (max-width: 1200px) {
    .branding-banner__title {
        font-size: 56px;
    }

    .branding-banner__text {
        font-size: 22px;
    }

    .branding-banner__image img {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .branding-banner {
        flex-direction: column;
        text-align: left;

        padding: 40px 24px;
    }

    .branding-banner__title {
        font-size: 42px;
    }

    .branding-banner__text {
        font-size: 18px;
    }

    .branding-banner__image {
        width: 100%;
        justify-content: center;
    }

    .branding-banner__image img {
        max-width: 260px;
    }
}

.adress-footer {
    color: #bfbfbf;
}

body .site-footer-section {
    align-items: center;
}

body .site-bottom-footer-inner-wrap {

    padding-bottom: 30px;

}

body .site-top-footer-inner-wrap {
    padding-top: 30px;
}

.adress-footer .address-line {
    margin-bottom: 0;
    margin-top: 0;
}

.contacts-form .elementor-widget-wrap   {
    max-height: fit-content!important;
}

.contacts-form .elementor-widget-wrap .wpcf7-tel {
    width: 100%;
}

.contacts-form .wpcf7-form > p {
    margin-bottom: 15px;
}

body .primary-sidebar.widget-area .widget-title,
body .widget_block h2, .widget_block .widgettitle,
body .widget_block .widgettitle,
body .primary-sidebar h2 {
    text-transform: none;
}

#cart-drawer.popup-drawer .drawer-content .buttons .button{
    line-height: 18px;
}

body .site-top-header-wrap .site-header-row-container-inner {
    border-bottom: 1px solid #a4a4a43d;
}

.contacts-form .wpcf7-form input[type=submit] {
    margin-bottom: 20px;
}

.elementor-image-carousel .swiper-slide-image {
    filter: grayscale(100%);
}

/* Убираем фильтр при наведении */
.elementor-image-carousel .swiper-slide-image:hover {
    filter: grayscale(0%);
}

.call-btn {
    text-align: left;
}

.call-btn a{
    text-decoration: none;
}
@media (max-width: 768px) {
    body .lementor-top-section .elementor-widget-wrap.elementor-element-populated {
        flex-wrap: wrap;
    }
    html body:not(.rtl) .cms-two-banner .col2 .elementor-element.head-2,
    html body:not(.rtl) .cms-two-banner .col2 .elementor-element.cms-btn,
    html body:not(.rtl) .cms-two-banner .col2 .elementor-element.head-1 {
        left: 60%;
    }

    html body:not(.rtl) .cms-two-banner .col2 .elementor-element.head-2   {
        top: 33%;
    }

    html .elementor-1867 .elementor-element.elementor-element-a53a10a {
        top: 33%;
    }

    html  .cms-two-banner .elementor-element.head-2 .elementor-heading-title {
        top: 33%;
    }
    .icon-box {
        align-items: center;
    }
    .woocommerce.product-tab-style-center div.product .woocommerce-tabs ul.tabs li a {
        height: 40px;
        margin:0;
    }
    html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs ul.tabs.wc-tabs {
        padding-bottom: 19px;
    }
    .branding-banner__title {
        font-size: 25px;
    }
    .branding-banner__text {
        margin-bottom: 10px;
        text-align: center;
    }
    .branding-banner__content {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
.branding-banner__line {
    display: none;
}
    .branding-banner__content .call-btn {
        text-align: center;
    }

    #SR7_1_1-1-5 {
        display: none!important;
    }

    .advantage-card {
        width: 33%;
    }
    .advantage-card:last-child {
        flex: auto;
    }
    .advantages-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .advantage-card:nth-child(2) {
       border-width: 1px;
        margin-top: 0;
        border-radius: 0;
    }
    .advantage-card:first-child {
        margin-top: 0;
        border-radius: 5px 0px 0px 5px;
        border-width: 1px;
        border-right: 1px solid #DEE3F2;
    }
    .advantage-card:last-child {
        border-width: 1px 1px 1px 1px;
        border-radius: 0 5px 5px 0;
        border-top: 1px solid #DEE3F2;
    }
    .sr7-bullets {
        display: none!important;
    }

    .advantage-title {
        line-height: 20px;
    }
}

