:root {
    --webfox-search-svg: url("/wp-content/uploads/2026/06/search.svg");
    --webfox-heart-svg: url("/wp-content/uploads/2026/06/heart.svg");
    --webfox-heart-full-svg: url("/wp-content/uploads/2026/06/heart_full.svg");
    --webfox-close-svg: url("/wp-content/uploads/2026/06/close.svg");

    --webfox-black: #222222;
    --webfox-red: #ca0d18;
    --webfox-border: #a8a8a8;
    --webfox-muted: #7d7d7d;
}

/* ===== Иконки ===== */

.webfox-icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;

    -webkit-mask: var(--webfox-icon-mask) center / contain no-repeat;
    mask: var(--webfox-icon-mask) center / contain no-repeat;
}

.webfox-icon.webfox-icon--heart:not(.wih) {
    background-color: var(--webfox-red);
}

.webfox-icon--search {
    --webfox-icon-mask: var(--webfox-search-svg);
}

.webfox-icon--heart {
    --webfox-icon-mask: var(--webfox-heart-svg);
}
.webfox-favorite-button.is-active .webfox-icon--heart {
    --webfox-icon-mask: var(--webfox-heart-full-svg);
}

.webfox-icon--close {
    --webfox-icon-mask: var(--webfox-close-svg);
}

/* ===== Поиск и избранное в шапке ===== */

.webfox-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: 0;
}

.webfox-search {
    position: relative;
    display: flex;
    align-items: center;
}

.webfox-search.is-open {
    flex: 1 1 auto;
}

.webfox-search-trigger,
.webfox-search-close,
.webfox-favorite-button,
.webfox-favorites-link {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.webfox-search-trigger,
.webfox-search-close,
.webfox-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.webfox-search-trigger {
    width: 34px;
    height: 34px;
    color: var(--webfox-black);
}

.webfox-search-form {
    position: relative;
    display: none;
    align-items: center;
    width: min(530px, calc(100vw - 190px));
    height: 46px;
    padding: 0 14px 0 18px;
    border: 1px solid var(--webfox-border);
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
}

.webfox-search.is-open .webfox-search-trigger {
    display: none;
}

.webfox-search.is-open .webfox-search-form {
    display: flex;
}

.webfox-search-form-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: var(--webfox-black);
}

.webfox-search-input {
    width: 100%;
    height: 100%;
    margin: 0 14px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--webfox-black);
    font-size: 18px;
    line-height: 1;
}

.webfox-search-input::placeholder {
    color: #8d8d8d;
    opacity: 1;
}

.webfox-search-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #777777;
    transition: color 0.18s ease;
}

.webfox-search-close:hover {
    color: var(--webfox-black);
}

.webfox-favorites-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--webfox-black);
    overflow: visible;
}

.webfox-favorite-count {
    position: absolute;
    top: -10px;
    right: -14px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;

    background: #b70909;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.webfox-favorite-count::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-top: 20px solid #b70909;
    border-right: 13px solid transparent;
    border-left: 3px solid transparent;
    transform: rotate(28deg);
    transform-origin: top center;
    z-index: -1;
}

.webfox-favorite-count[hidden] {
    display: none;
}

/* ===== Выпадающая выдача поиска ===== */

.webfox-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.webfox-search-results[hidden] {
    display: none;
}

.webfox-search-result {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eeeeee;
    color: var(--webfox-black);
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.webfox-search-result:last-child {
    border-bottom: 0;
}

.webfox-search-result:hover {
    background: #f8f8f8;
}

.webfox-search-result-image {
    width: 58px;
    height: 58px;
    object-fit: cover;
}

.webfox-search-result-title {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.webfox-search-result-price {
    display: block;
    color: #666666;
    font-size: 13px;
    line-height: 1.35;
}

.webfox-search-empty {
    display: block;
    padding: 15px;
    color: var(--webfox-muted);
    font-size: 14px;
}

/* ===== Сердце в карточке товара ===== */

.webfox-product-favorite {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    z-index: 999;
    position: relative;
}

.webfox-favorite-button {
    width: 24px;
    height: 24px;
    color: var(--webfox-black);
    transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.webfox-favorite-button:hover {
    /*transform: scale(1.08);*/
    opacity: 0.8;
}

.webfox-favorite-button.is-active {
    color: var(--webfox-red);
}

.webfox-favorite-button.is-loading {
    pointer-events: none;
    opacity: 0.5;
}

/* ===== Адаптив ===== */

@media (max-width: 767px) {
    .webfox-header-tools {
        gap: 15px;
    }

    .webfox-search-form {
        /*width: calc(100vw - 105px);*/
        /*height: 54px;*/
        /*padding: 0 12px;*/
        width: calc(100vw - 105px);
        height: 54px;
        padding: 0 12px;
        position: absolute;
        bottom: -87px;
        z-index: 9;
        right: -6vw;
    }

    .webfox-search-input {
        margin: 0 10px;
        font-size: 16px;
    }

    .webfox-search-form-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .webfox-search-result {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .webfox-search-result-image {
        width: 50px;
        height: 50px;
    }
}

/* =========================================================
   Страница избранного / запрос стоимости
========================================================= */

.webfox-favorites-page {
    padding: 20px 0 90px;
}

.webfox-favorites-page__inner {

}

.webfox-favorites-page__title {
    margin: 0 0 40px;
    color: #1f1f1f;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.08;
}

.webfox-favorites-page-count {
    white-space: nowrap;
}

.webfox-config-warning {
    margin-bottom: 26px;
    padding: 15px 18px;
    border: 1px solid #e3e3e3;
    background: #f8f8f8;
    color: #737373;
    font-size: 14px;
    line-height: 1.45;
}

.webfox-favorites-list {
    display: grid;
    gap: 12px;
}

.webfox-favorite-row {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
}

.webfox-favorite-row__image-link {
    display: block;
    width: 98px;
    height: 98px;
    overflow: hidden;
}

.webfox-favorite-row__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.webfox-favorite-row__content {
    min-width: 0;
}

.webfox-favorite-row__title {
    display: block;
    margin-bottom: 16px;
    color: #242424;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.webfox-favorite-row__title:hover {
    color: #b70909;
}

.webfox-quantity {
    display: inline-grid;
    grid-template-columns: 32px 42px 32px;
    align-items: center;
    border: 1px solid #dcdcdc;
}

.webfox-quantity__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    padding: 0;
    border: 0;
    background: #f8f8f8;
    color: #272727;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.webfox-quantity__button:hover {
    background: #eeeeee;
}

.webfox-quantity__input {
    width: 42px;
    height: 30px;
    padding: 0;
    border: 0;
    border-right: 1px solid #dcdcdc;
    border-left: 1px solid #dcdcdc;
    outline: 0;
    appearance: textfield;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    text-align: center;
}

.webfox-quantity__input::-webkit-outer-spin-button,
.webfox-quantity__input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.webfox-favorite-row__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #303030;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease;
}

.webfox-favorite-row__remove span {
    font-size: 21px;
    font-weight: 300;
    line-height: 0.7;
}

.webfox-favorite-row__remove:hover {
    color: #b70909;
}

.webfox-favorite-row.is-loading {
    pointer-events: none;
    opacity: 0.55;
}

.webfox-favorites-request {
    position: sticky;
    bottom: 18px;
    z-index: 5;
    margin-top: 24px;
}

.webfox-favorites-request__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.webfox-favorites-request__button:hover {
    opacity: 0.8;
}

.webfox-favorites-request__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.webfox-favorites-empty {
    padding: 38px 20px;
    border: 1px solid #e3e3e3;
    text-align: center;
}

.webfox-favorites-empty__title {
    margin: 0 0 8px;
    color: #242424;
    font-size: 19px;
    font-weight: 600;
}

.webfox-favorites-empty__text {
    max-width: 470px;
    margin: 0 auto 20px;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
}

.webfox-favorites-empty__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #1f1f1f;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.webfox-favorites-empty__link:hover {
    background: #1f1f1f;
    color: #ffffff;
}

/* ===== Попап формы ===== */

.webfox-request-modal[hidden] {
    display: none;
}

.webfox-request-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.webfox-request-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.webfox-request-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.webfox-request-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #252525;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.webfox-request-modal__title {
    margin: 0 0 30px 0;
    color: #1f1f1f;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.webfox-request-modal__text {
    margin: 0 0 22px;
    color: #707070;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

/* ===== Contact Form 7 внутри попапа ===== */

.webfox-request-form .wpcf7-form-control-wrap {
    display: block;
}

.webfox-request-form .webfox-cf7-field {
    margin: 0;
}

.webfox-request-form .webfox-cf7-field label {
    display: block;
    color: #242424;
    font-size: 14px;
    font-weight: 600;
}

.webfox-request-form input[type="text"] {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    outline: 0;
    box-sizing: border-box;
    color: #1f1f1f;
    font-size: 15px;
}

.webfox-request-form input[type="text"]:focus {
    border-color: #1f1f1f;
}

.webfox-request-form .webfox-cf7-submit {
    margin: 18px 0 0;
}

.webfox-request-form input[type="submit"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #111111;
    border-radius: 0;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.webfox-request-form input[type="submit"]:hover {
    opacity: 0.8;
    color: #ffffff;
}

.webfox-request-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b70909;
    font-size: 12px;
}

.webfox-request-form .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-width: 1px;
    font-size: 13px;
    line-height: 1.4;
}

.webfox-request-form__error {
    margin: 0;
    color: #b70909;
    font-size: 14px;
}

/* ===== Мобильная версия ===== */

@media (max-width: 767px) {
    .webfox-favorites-page {
        padding: 30px 0 70px;
    }

    .webfox-favorites-page__title {
        margin-bottom: 14px;
        font-size: 31px;
    }

    .webfox-config-warning {
        margin-bottom: 16px;
        padding: 12px;
        font-size: 12px;
    }

    .webfox-favorite-row {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .webfox-favorite-row__image-link {
        width: 74px;
        height: 74px;
    }

    .webfox-favorite-row__title {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .webfox-favorite-row__remove {
        grid-column: 2;
        justify-self: start;
        margin-top: -2px;
    }

    .webfox-favorites-request__button {
        min-height: 50px;
        font-size: 13px;
    }

    .webfox-request-modal {
        align-items: flex-end;
        padding: 0;
    }

    .webfox-request-modal__dialog {
        width: 100%;
        max-height: 88vh;
        padding: 28px 20px 22px;
    }

    .webfox-request-modal__title {
        font-size: 23px;
    }
}

html.webfox-modal-open,
html.webfox-modal-open body {
    overflow: hidden;
}

/**************************************/

/* =========================================================
   Карточка товара: галерея + характеристики
========================================================= */

.webfox-single-product {
    margin: 0 auto;
    padding: 0 0 70px;
}

.webfox-single-product__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
}

.webfox-product-gallery {
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: solid 1px #f3f3f3;
}

.webfox-product-gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.webfox-product-gallery__main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.webfox-product-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.webfox-product-gallery__thumbs-wrap {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 18px;
}

.webfox-product-gallery__thumbs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Важно: не ставим width: auto — ширину считает Swiper. */
.webfox-product-gallery__thumbs .swiper-wrapper {
    align-items: center;
}

.webfox-product-gallery__thumbs .swiper-slide {
    height: auto;
    min-width: 0;
    box-sizing: border-box;
}

.webfox-product-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 3px;
    border: 1px solid transparent;
    background: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.webfox-product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.webfox-product-gallery__thumbs .swiper-slide-thumb-active .webfox-product-gallery__thumb {
    border-color: #1d1d1d;
}

.webfox-product-gallery__arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 36px;
    min-width: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.webfox-product-gallery__arrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 1px solid #1d1d1d;
    border-right: 1px solid #1d1d1d;
}

.webfox-product-gallery__arrow--prev::before {
    transform: rotate(-135deg);
}

.webfox-product-gallery__arrow--next::before {
    transform: rotate(45deg);
}

.webfox-product-gallery__arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
}

.webfox-product-gallery,
.webfox-product-gallery__main,
.webfox-product-gallery__thumbs-wrap,
.webfox-product-gallery__thumbs,
.webfox-product-gallery__thumbs .swiper-wrapper {
    min-width: 0;
    max-width: 100%;
}

.webfox-product-gallery__main,
.webfox-product-gallery__thumbs {
    overflow: hidden;
}

.webfox-product-gallery__thumbs .swiper-slide {
    max-width: 100%;
}

/* Правая колонка */

.webfox-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 40px 34px;
    background: #f3f3f3;
}

.webfox-product-info__field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #bababa;
    border-radius: 3px;
    box-sizing: border-box;
    color: #232323;
    font-size: 15px;
    line-height: 1.35;
}

.webfox-product-info__field--factory {
    margin-bottom: 14px;
    border-color: transparent;
    background: #ffffff;
}

.webfox-product-info__label {
    font-weight: 400;
    font-size: 18px;
}

.webfox-product-info__field--factory .webfox-product-info__label {
    font-weight: 700;
    font-size: 18px;
}

.webfox-product-info__value {
    font-weight: 700;
    font-size: 18px;
}

.webfox-product-info__brand-link {
    color: #1f1f1f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 18px;
}

.webfox-product-info__brand-link:hover {
    color: #b70909;
}

.webfox-product-info__dimensions {
    width: 100%;
    margin: 2px 0 30px;
    padding: 12px 14px;
    border: 1px solid #bababa;
    border-radius: 3px;
    box-sizing: border-box;
    color: #252525;
    font-size: 15px;
    line-height: 1.55;
}

.webfox-product-info__dimensions div {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 18px;
}

.webfox-product-info__dimensions strong {
    font-weight: 700;
    font-size: 18px;
}

.webfox-product-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 56px;
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.webfox-product-pdf-button img {
    display: block;
    width: 42px;
    height: auto;
}

.webfox-product-pdf-button:hover {
    opacity: 0.72;
}

.webfox-product-info__favorite {
    margin-top: auto;
}

.webfox-favorite-button--single {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: auto;
    height: auto;
    color: #202020;
    font-size: 15px;
    line-height: 1.3;
}

.webfox-favorite-button--single .webfox-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.webfox-favorite-button--single.is-active {
    color: #b70909;
}

.webfox-favorite-button--single.is-active .webfox-favorite-button__text {
    color: #202020;
}

.webfox-single-product__below {
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .webfox-single-product {
        padding: 20px 0 45px;
    }

    .webfox-single-product__grid {
        grid-template-columns: 1fr;
    }

    .webfox-product-gallery {
        padding: 12px;
    }

    .webfox-product-gallery__thumbs-wrap {
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        gap: 6px;
        margin-top: 10px;
    }

    .webfox-product-info {
        min-height: 0;
        padding: 30px 30px 34px;
    }

    .webfox-product-info__field,
    .webfox-product-info__dimensions {
        font-size: 16px;
    }

    .webfox-product-pdf-button {
        margin-bottom: 30px;
    }
}

/* =========================================================
   Лупа Spotlight на главном фото товара
========================================================= */

.webfox-product-gallery__main-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.webfox-product-gallery__zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1f1f1f;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.webfox-product-gallery__zoom:hover {
    background: #1f1f1f;
    color: #ffffff;
    transform: scale(1.06);
}

.webfox-product-gallery__zoom .webfox-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .webfox-product-gallery__zoom {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .webfox-product-gallery__zoom .webfox-icon {
        width: 18px;
        height: 18px;
    }
}
/* =========================================================
   Spotlight: стрелки навигации галереи товара
========================================================= */
/* =========================================================
   Spotlight: стрелки навигации галереи товара
========================================================= */

#spotlight.webfox-spotlight .spl-prev,
#spotlight.webfox-spotlight .spl-next {
    position: fixed !important;
    top: 50% !important;
    z-index: 999999 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 54px !important;
    height: 54px !important;
    margin-top: -27px !important;
    padding: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 50% !important;

    background-color: rgba(0, 0, 0, 0.42) !important;
    background-image: none !important;

    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;

    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;

    transition:
            background-color 0.2s ease,
            transform 0.2s ease,
            border-color 0.2s ease;
}

#spotlight.webfox-spotlight .spl-prev {
    left: 24px !important;
}

#spotlight.webfox-spotlight .spl-next {
    right: 24px !important;
}

#spotlight.webfox-spotlight .spl-prev:hover,
#spotlight.webfox-spotlight .spl-next:hover {
    border-color: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(0, 0, 0, 0.92) !important;
}

/* Прячем нативные иконки/элементы Spotlight. */
#spotlight.webfox-spotlight .spl-prev svg,
#spotlight.webfox-spotlight .spl-next svg,
#spotlight.webfox-spotlight .spl-prev span,
#spotlight.webfox-spotlight .spl-next span,
#spotlight.webfox-spotlight .spl-prev i,
#spotlight.webfox-spotlight .spl-next i {
    display: none !important;
}

/* Общая геометрия новой стрелки. */
#spotlight.webfox-spotlight .spl-prev::before,
#spotlight.webfox-spotlight .spl-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 13px;
    height: 13px;

    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;

    box-sizing: border-box;
}

/* Левая стрелка. */
#spotlight.webfox-spotlight .spl-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

/* Правая стрелка. */
#spotlight.webfox-spotlight .spl-next::before {
    transform: translate(-65%, -50%) rotate(230deg);
    left: 30px;
}

#spotlight.webfox-spotlight .spl-prev::after,
#spotlight.webfox-spotlight .spl-next::after {
    content: none !important;
}

#spotlight.webfox-spotlight .spl-prev.spl-disabled,
#spotlight.webfox-spotlight .spl-next.spl-disabled {
    opacity: 0.28 !important;
    cursor: default !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    #spotlight.webfox-spotlight .spl-prev,
    #spotlight.webfox-spotlight .spl-next {
        width: 42px !important;
        height: 42px !important;
        margin-top: -21px !important;
    }

    #spotlight.webfox-spotlight .spl-prev {
        left: 10px !important;
    }

    #spotlight.webfox-spotlight .spl-next {
        right: 10px !important;
    }

    #spotlight.webfox-spotlight .spl-prev::before,
    #spotlight.webfox-spotlight .spl-next::before {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}

/********************************************/

/* =========================================================
   Единый вид карточек WooCommerce:
   категории, похожие, related, upsells, cross-sells
========================================================= */

ul.products,
.woocommerce-page ul.products {
    border-top: 1px solid #e7e7e7;
    border-left: 1px solid #e7e7e7;
}

/* Внешний контур каталога без соединений в углах */
ul.products,
.woocommerce-page ul.products {
    position: relative;
    box-sizing: border-box;
    border-top: 3px solid #e7e7e7 !important;
    border-right: 1px solid #e7e7e7 !important;
    border-left: 2px solid #e7e7e7 !important;

    /*
     * Вырезаем углы внешней рамки:
     * верхняя/нижняя линии начинаются с отступом,
     * боковые линии также не доходят до углов.
     */
    clip-path: polygon(
            15px 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            15px 100%,
            0 calc(100% - 15px),
            0 15px
    );
}

.woo-related-products-container ul.products {
    border-top: 3px solid #e7e7e7 !important;
    border-right: 1px solid #e7e7e7 !important;
    border-left: 2px solid #e7e7e7 !important;
}

/* Карточка товара */
ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
    min-width: 0;
    min-height: 365px;
    margin: 0 !important;
    padding: 20px 22px !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 0 !important;
    background: #ffffff;
}

/* Горизонтальные разделители */
ul.products li.product::before,
.woocommerce-page ul.products li.product::before {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    z-index: 1;
    height: 1px;
    background: #e7e7e7;
    pointer-events: none;
}

/* Вертикальные разделители */
ul.products li.product::after,
.woocommerce-page ul.products li.product::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 0;
    bottom: 15px;
    z-index: 1;
    width: 1px;
    background: #e7e7e7;
    pointer-events: none;
}

/* Для сетки в 3 колонки: без линии после третьей карточки */
ul.products li.product:nth-child(3n)::after,
.woocommerce-page ul.products li.product:nth-child(3n)::after {
    display: none;
}

/*************************************************************************************************/

/* Основная ссылка карточки */
ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    color: #252525;
    text-decoration: none;
}

/* Область изображения */
ul.products li.product .product-thumbnail,
.woocommerce-page ul.products li.product .product-thumbnail,
ul.products li.product .product-image,
.woocommerce-page ul.products li.product .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: clamp(190px, 18vw, 275px);
    margin: 0 0 18px;
    overflow: hidden;
}

/* Подходит и для стандартного Woo, и для обёрток Martfury */
ul.products li.product .woocommerce-LoopProduct-link > img,
.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link > img,
ul.products li.product .woocommerce-loop-product__link > img,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link > img,
ul.products li.product .product-thumbnail img,
.woocommerce-page ul.products li.product .product-thumbnail img,
ul.products li.product .product-image img,
.woocommerce-page ul.products li.product .product-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(190px, 18vw, 275px);
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Лёгкое увеличение товара при наведении */
ul.products li.product:hover .woocommerce-LoopProduct-link > img,
.woocommerce-page ul.products li.product:hover .woocommerce-LoopProduct-link > img,
ul.products li.product:hover .woocommerce-loop-product__link > img,
.woocommerce-page ul.products li.product:hover .woocommerce-loop-product__link > img,
ul.products li.product:hover .product-thumbnail img,
.woocommerce-page ul.products li.product:hover .product-thumbnail img,
ul.products li.product:hover .product-image img,
.woocommerce-page ul.products li.product:hover .product-image img {
    transform: scale(1.025);
}

/* Название: стабильно максимум две строки, без пляски высоты */
ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .product-title,
.woocommerce-page ul.products li.product .product-title {
    display: -webkit-box;
    width: 100%;
    min-height: 42px;
    margin: auto 0 0 !important;
    padding: 0 36px 0 0 !important;
    overflow: hidden;
    color: #252525;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Сердце в правом нижнем углу каждой карточки */
ul.products li.product .webfox-product-favorite,
.woocommerce-page ul.products li.product .webfox-product-favorite {
    position: absolute;
    right: 20px;
    bottom: 19px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

ul.products li.product .webfox-favorite-button,
.woocommerce-page ul.products li.product .webfox-favorite-button {
    width: 22px;
    height: 22px;
    color: #222222;
}

ul.products li.product .webfox-favorite-button:hover,
.woocommerce-page ul.products li.product .webfox-favorite-button:hover {
    color: #b70909;
    transform: scale(1.1);
}

ul.products li.product .webfox-favorite-button.is-active,
.woocommerce-page ul.products li.product .webfox-favorite-button.is-active {
    color: #b70909;
}

/* В дизайне карточки не нужны цена, рейтинг и стандартная кнопка Woo */
ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating,
ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
    display: none !important;
}

/* Убираем лишние псевдоэлементы/оверлеи темы на изображениях */
ul.products li.product .product-thumbnail::before,
ul.products li.product .product-thumbnail::after,
.woocommerce-page ul.products li.product .product-thumbnail::before,
.woocommerce-page ul.products li.product .product-thumbnail::after {
    display: none !important;
}

/* ===== Планшеты ===== */

@media (max-width: 991px) {
    ul.products li.product,
    .woocommerce-page ul.products li.product {
        min-height: 320px;
        padding: 16px 16px 18px !important;
    }

    ul.products li.product .product-thumbnail,
    .woocommerce-page ul.products li.product .product-thumbnail,
    ul.products li.product .product-image,
    .woocommerce-page ul.products li.product .product-image,
    ul.products li.product .woocommerce-LoopProduct-link > img,
    .woocommerce-page ul.products li.product .woocommerce-LoopProduct-link > img,
    ul.products li.product .woocommerce-loop-product__link > img,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__link > img,
    ul.products li.product .product-thumbnail img,
    .woocommerce-page ul.products li.product .product-thumbnail img,
    ul.products li.product .product-image img,
    .woocommerce-page ul.products li.product .product-image img {
        height: clamp(160px, 23vw, 235px);
    }

    ul.products li.product .webfox-product-favorite,
    .woocommerce-page ul.products li.product .webfox-product-favorite {
        right: 16px;
        bottom: 17px;
    }
}

/* ===== Телефоны ===== */

@media (max-width: 575px) {
    ul.products li.product,
    .woocommerce-page ul.products li.product {
        min-height: 260px;
        padding: 12px 12px 15px !important;
    }

    ul.products li.product .product-thumbnail,
    .woocommerce-page ul.products li.product .product-thumbnail,
    ul.products li.product .product-image,
    .woocommerce-page ul.products li.product .product-image,
    ul.products li.product .woocommerce-LoopProduct-link > img,
    .woocommerce-page ul.products li.product .woocommerce-LoopProduct-link > img,
    ul.products li.product .woocommerce-loop-product__link > img,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__link > img,
    ul.products li.product .product-thumbnail img,
    .woocommerce-page ul.products li.product .product-thumbnail img,
    ul.products li.product .product-image img,
    .woocommerce-page ul.products li.product .product-image img {
        height: clamp(135px, 40vw, 190px);
        margin-bottom: 12px !important;
    }

    ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product .product-title,
    .woocommerce-page ul.products li.product .product-title {
        min-height: 38px;
        padding-right: 28px !important;
        font-size: 12px;
        line-height: 1.35;
    }

    ul.products li.product .webfox-product-favorite,
    .woocommerce-page ul.products li.product .webfox-product-favorite {
        right: 11px;
        bottom: 14px;
    }

    ul.products li.product .webfox-favorite-button,
    .woocommerce-page ul.products li.product .webfox-favorite-button {
        width: 19px;
        height: 19px;
    }
}

/********************************/

/* Сердце внутри блока названия товара */
ul.products li.product .mf-product-content,
.woocommerce-page ul.products li.product .mf-product-content {
    position: relative;
    min-width: 0;
    /*padding-right: 32px;*/
}

ul.products li.product .mf-product-content .webfox-product-favorite--loop,
.woocommerce-page ul.products li.product .mf-product-content .webfox-product-favorite--loop {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%);
}

ul.products li.product .mf-product-content .webfox-favorite-button,
.woocommerce-page ul.products li.product .mf-product-content .webfox-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;

    color: #222222;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

ul.products li.product .mf-product-content .webfox-favorite-button:hover,
.woocommerce-page ul.products li.product .mf-product-content .webfox-favorite-button:hover {
    color: #b70909;
    transform: scale(1.08);
}

ul.products li.product .mf-product-content .webfox-favorite-button.is-active,
.woocommerce-page ul.products li.product .mf-product-content .webfox-favorite-button.is-active {
    color: #b70909;
}

ul.products li.product .mf-product-content .webfox-icon--heart,
.woocommerce-page ul.products li.product .mf-product-content .webfox-icon--heart {
    display: block;
    width: 100%;
    height: 100%;
}

/* Название товара и сердце в одной строке */
ul.products li.product .mf-product-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Название занимает всю доступную ширину */
ul.products li.product .mf-product-content > a {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px;
    line-height: normal;
}

/* Контейнер сердца */
ul.products li.product .mf-product-content .product-card-favorite {
  display: flex;
}

/* Убираем старое абсолютное позиционирование кнопки */
ul.products li.product .product-card-favorite .webfox-favorite-button {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 34px;*/
    height: 21px;
    margin: 0;
}
/************************/
.popular-products {
    padding: 0;
}
.popular-products .popular-inner {
    border-top: solid 2px #d7d7d7;
    border-bottom: solid 2px #d7d7d7;
    padding: 80px 0 40px 0;
}
ul.products li.product .mf-product-content {
    display: flex;
    /*align-items: center;*/
    width: 100%;
    gap: 16px;
}

.popular .mf-product-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 265px;
    max-height: 265px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
}
.popular .mf-product-thumbnail img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 265px;
    object-fit: contain;
    object-position: center;
}
.popular .mf-product-details {
    margin-top: 40px;
}
@media (max-width: 768px) {
    ul.products li.product .mf-product-content > a {
        font-size: 16px;
    }
    .popular .mf-product-thumbnail {
        height: 170px;
        max-height: 170px;
    }
    .popular .mf-product-details {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    ul.products li.product .mf-product-content > a {
        font-size: 14px;
    }
}








