/* Lato локально, с font-display: swap */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/LatoLatin-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/LatoLatin-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Применяем Lato ко всему сайту */
body {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}



/* Контейнер геро-секции уже есть, добавим только нужное */
.page-id-57 .home-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Картинка с лёгким запасом по высоте — чтобы при сдвиге не было пустых краёв */
.page-id-57 .home-hero__bg-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Оверлей оставляем как есть, только убедимся, что он поверх картинки */
.page-id-57 .home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.6)
    );
    pointer-events: none;
}

/* Чуть уменьшим эффект на мобилках или отключим параллакс совсем */
@media (max-width: 767.98px) {
    .page-id-57 .home-hero__bg-img {
        height: 110%;
    }
}

/* Single product: add to cart + quote button in one row */
.single-product form.cart .variations_button,
.single-product form.cart:not(.variations_form) {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.single-product form.cart .cb-quote-button {
    margin: 0;
    white-space: nowrap;
    background-color: #ca2925;
    border-color: #ca2925;
    color: #fff;
    text-transform: none;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .cb-quote-button {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Variable product: qty + add to cart + quote in one row */
.single-product .single_variation_wrap .woocommerce-variation-add-to-cart,
.single-product .single_variation_wrap .variations_button {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.single-product .single_variation_wrap .quantity {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.single-product .single_variation_wrap .single_add_to_cart_button {
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

.single-product .single_variation_wrap .cb-quote-button,  .cb-quote-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 180px;
    height: 46px;
    padding: 0 18px !important;
    background-color: #ca2925 !important;
    border-color: #ca2925 !important;
    color: #fff !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.single-product .single_variation_wrap .cb-quote-button::before,
.single-product .single_variation_wrap .cb-quote-button::after {
    display: none !important;
}

.single-product .cb-b2b-price-row {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.single-product .cb-b2b-price-row .cb-b2b-price-request {
    margin: 0;
}

.single-product .cb-b2b-price-row .cb-quote-button--price {
    min-width: 170px;
    height: 40px;
    margin: 0 !important;
    font-size: 14px;
}

.single-product form.cart .quantity,
.single-product form.cart .single_add_to_cart_button {
    display: none !important;
}

.single-product .cb-quote-button--primary  {
    margin: 0 0 18px  !important;
}

.cb-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cb-contact-modal.is-open {
    display: flex;
}

.cb-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cb-contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 42px 28px 28px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.cb-contact-modal__close {
    position: absolute !important;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 3px solid #111827 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1;
    cursor: pointer;
    width: 26px !important;
    height: 32px !important;
    min-height: 32px !important;
    min-width: 26px !important;
    padding: var(--btn-padding, 5px 14px) !important;
}

.captcha-image {
    width: 100%;
}

.cb-contact-modal__loading {
    padding: 28px 0;
    text-align: center;
}

.cb-contact-modal-open {
    overflow: hidden;
}

.cb-b2b-checkout-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f5f9e8;
    border-left: 4px solid #8cc63f;
    color: #2f2f2f;
    font-size: 14px;
    line-height: 1.6;
}


form.variations_form {
    gap: 0;
    --wd-var-table-mb: 0px !important;
}

.variations_form {
    gap: 0 !important;
}

.woocommerce-order {
    max-width: 900px;
}

.cb-b2b-thankyou-box {
    margin: 0 0 24px;
    padding: 24px 28px;
    background: #f5f9e8;
    border: 1px solid #cfe3a3;
    border-left: 5px solid #8cc63f;
    color: #2f2f2f;
}

.cb-b2b-thankyou-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #2f2f2f;
}

.cb-b2b-thankyou-text {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
}

.cb-b2b-account-box {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d9e7b7;
    font-size: 15px;
    line-height: 1.6;
}

.woocommerce-order-overview,
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    display: none !important;
}

.woocommerce-form-login-toggle,
.woocommerce-form-login,
.woocommerce-info {
    display: none !important;
}


.cb-b2b-request-summary {
    margin: 24px 0;
    padding: 24px 28px;
    background: #f5f9e8;
    border: 1px solid #d8e8b0;
    border-left: 5px solid #8cc63f;
    color: #2f2f2f;
}

.cb-b2b-request-summary__title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #2f2f2f;
}

.cb-b2b-request-summary__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
}

.cb-b2b-request-summary__meta {
    margin: 0 0 18px;
}

.cb-b2b-request-summary__meta p {
    margin: 0 0 8px;
}

.cb-b2b-request-summary__products h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.cb-b2b-request-summary__products ul {
    margin: 0;
    padding-left: 20px;
}

.cb-b2b-request-summary__products li {
    margin: 0 0 8px;
}

.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-table--order-details,
.woocommerce-order-details__title {
    display: none !important;
}

.cb-b2b-account-access {
    margin: 24px auto 0;
    padding: 24px 28px;
    max-width: 840px;
    background: #ffffff;
    border: 1px solid #d9e7b7;
    border-left: 5px solid #8cc63f;
}

.cb-b2b-account-access__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    color: #2f2f2f;
}

.cb-b2b-account-access__text {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.7;
    color: #2f2f2f;
}

.cb-b2b-account-access__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 46px;
    margin-top: 10px;
    padding: 0 22px;
    background: #8cc63f;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

.cb-b2b-account-access__button:hover {
    opacity: 0.92;
}

.cb-b2b-order-link {
    color: #6fa52e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s ease, opacity .2s ease;
}

.cb-b2b-order-link:hover,
.cb-b2b-order-link:focus {
    color: #5b8b25;
    opacity: .9;
    text-decoration: underline;
}

.cb-b2b-order-link:focus {
    outline: 2px solid rgba(111, 165, 46, .25);
    outline-offset: 2px;
}

.cb-b2b-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 999px;
    background: #8cc63f;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 8px rgba(140, 198, 63, .22);
}

.cb-b2b-order-link:hover,
.cb-b2b-order-link:focus {
    background: #79b02f;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(121, 176, 47, .28);
}

.cb-b2b-order-link:focus {
    outline: 2px solid rgba(140, 198, 63, .28);
    outline-offset: 2px;
}

.cb-b2b-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 999px;
    background: #8cc63f !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 8px rgba(140, 198, 63, .22);
}

.cb-b2b-order-link:hover,
.cb-b2b-order-link:focus {
    background: #79b02f;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(121, 176, 47, .28);
}

.cb-b2b-order-link:focus {
    outline: 2px solid rgba(140, 198, 63, .28);
    outline-offset: 2px;
}

.fade-in-block.wd-scroll,
.quick-view .single_add_to_cart_button,
.quick-view form.cart,
.wd-quick-view .single_add_to_cart_button,
.wd-quick-view form.cart {
    display: none !important;
}

.summary-inner > .price .price {
    font-weight: bold;
}

@media (max-width: 767.98px) {

    .single-product .single_variation_wrap .woocommerce-variation-add-to-cart, .single-product .single_variation_wrap .variations_button {
        display: flex !important;
        flex-wrap: inherit !important;
    }
    .cb-quote-button {
        margin-top: 2rem !important;
        width: 100% !important;
        font-size:  110% !important;
    }
    .single-product .cb-b2b-price-row {
        display: block;
        text-align: center;
    }
    .single-product .cb-b2b-price-row .cb-quote-button--price {
        display: inline-flex !important;
        margin-top: 0 !important;
        width: auto !important;
        min-width: 100%;
    }

    .summary-inner > .price .price {
        font-size: inherit;
        margin-bottom: 1rem;
        display: block;
    }

    .single-product .single_variation_wrap .single_add_to_cart_button {
        margin: 0 !important;
    }
}

.cb-go-whatsapp {
    padding: 48px 20px;
}

.cb-go-whatsapp__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cb-go-whatsapp__title {
    margin: 0 0 16px;
}

.cb-go-whatsapp__text {
    margin: 0 0 20px;
}

.cb-go-whatsapp__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    text-decoration: none;
}

.cb-go-whatsapp__button {
    background-color: #25d366;
    border: 1px solid #1C1E21;
    border-radius: 50px;
    color: #000;
    line-height: 16px;
    overflow: hidden;

    position: relative;
    text-align: center;
    transition: color .33s linear .5s,border-color ease-out .5s,background-color .33s linear 0s;
    white-space: pre;
    z-index: 1;
    font-weight: bold;
}



.tax-product_cat .products.wd-products {
    align-items: stretch;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item {
    display: flex;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat {
    width: 100%;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 24px;
    background: #fff;
    overflow: hidden;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 18px 18px;
}

.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-entities-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

/* Disable only image zoom */
.tax-product_cat .products.wd-products .wd-col.category-grid-item:hover img,
.tax-product_cat .products.wd-products .wd-col.category-grid-item .wd-cat:hover img {
    transform: none !important;
    scale: 1 !important;
}

.ef-about-block {
    width: 100%;
    background: #f3f3f3;
    padding: 24px;
    box-sizing: border-box;
}

.ef-about-block__wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.ef-about-block__media {
    flex: 0 0 46%;
}

.ef-about-block__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ef-about-block__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.75;
}

.ef-about-block__content p {
    margin: 0 0 24px;
}

.ef-about-block__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .ef-about-block {
        padding: 20px;
    }

    .ef-about-block__wrap {
        gap: 20px;
    }

    .ef-about-block__content {
        font-size: 16px;
        line-height: 1.65;
    }

    .ef-about-block__content p {
        margin: 0 0 18px;
    }
}

@media (max-width: 767px) {
    .ef-about-block {
        padding: 16px;
    }

    .ef-about-block__wrap {
        flex-direction: column;
        gap: 16px;
    }

    .ef-about-block__media {
        flex: none;
    }

    .ef-about-block__media img {
        height: auto;
    }

    .ef-about-block__content {
        font-size: 15px;
        line-height: 1.6;
    }

    .ef-about-block__content p {
        margin: 0 0 14px;
    }
}


.ef-spec-block {
    margin: 28px 0;
    padding: 24px;
    background: #f7f7f7;
    box-sizing: border-box;
}

.ef-spec-block h2 {
    margin: 0 0 20px;
}

.ef-spec-block__grid {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    gap: 24px;
    align-items: start;
}

.ef-spec-block__media {
    margin: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    margin-top: 20px;
}

.ef-spec-block__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ef-spec-block__media figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    text-align: center;
}

.ef-spec-block__table {
    overflow-x: auto;
}

.ef-spec-block__table .product-table {
    width: 100%;
    min-width: 620px;
}

@media (max-width: 991px) {
    .ef-spec-block {
        padding: 18px;
    }

    .ef-spec-block__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ef-spec-block__table .product-table {
        min-width: 560px;
    }
}
