﻿/* П1: убрать пустое пространство над баннером */
.site-header,
.site-header.has-banner,
.site-header-wrap,
body.has-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.header-banner-wrap {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}
.header-banner-wrap + *,
.header-banner-wrap ~ * {
    margin-top: 0 !important;
}

/* П2: цена без хвостика у "р" - используем sans-serif */
.price, .amount, .woocommerce-Price-amount,
.product-price .amount, .product-card-details .price,
.product-info .price,
h1, h2, h3, h4, h5, h6,
.product-single-title, .product-title,
.product-single-price, .product-single-weight,
.product-price__value, .product-price__currency,
.product-weight, .product-weight-value,
.section-title, .filter-title,
.add-to-cart-btn {
    font-family: 'Comfortaa', cursive !important;
    font-feature-settings: "ss01" on, "kern" on !important;
}

/* П3: цвета - вес зелёным, цена чёрным */
.products-grid .product-weight,
.products-grid .product-summary .product-weight,
.product-summary .product-weight {
    color: #2f9938 !important;
}
.price, .amount, .product-price,
.product-price .amount,
.products-grid .product-price,
.products-grid .price {
    color: #111111 !important;
}
.price ins, .amount ins,
.product-price ins,
.products-grid .price ins,
.products-grid ins .amount,
.product-card .price ins,
.product-card.is-on-sale .price .amount,
.product-card.is-on-sale .price {
    color: #e11d48 !important;
    text-decoration: none !important;
}
.price del, .amount del,
.product-price del,
.products-grid .price del,
.products-grid del .amount,
.product-card .price del {
    color: #94a3b8 !important;
}

/* П4: перенос по словам в фильтре */
.filter-cat-name-small {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    white-space: normal !important;
    font-size: 11px;
}
.filter-cat-name-small {
    font-size: clamp(9px, 2.5vw, 11px) !important;
}

/* П7: кнопка корзины - замкнутый контур */
.add-to-cart-btn,
.products-grid .add-to-cart-btn,
.product-card .add-to-cart-btn {
    border: 1.5px solid var(--theme-primary, #2f9938) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--theme-primary, #2f9938) !important;
}

/* П8: плашка распродажа на мобильном - меньше */
@media (max-width: 768px) {
    .product-badge-wrap {
        transform: scale(0.7) !important;
        transform-origin: top left !important;
    }
    .product-badge-wrap.product-badge-pos--top-right {
        transform-origin: top right !important;
    }
    .product-badge-wrap.product-badge-pos--bottom-left,
    .product-badge-wrap.product-badge-pos--bottom-right {
        transform-origin: bottom right !important;
    }
    .product-badge-pos--top-left,
    .product-badge-pos--top-right,
    .product-badge-pos--bottom-left,
    .product-badge-pos--bottom-right {
        top: 4px !important;
    }
    .product-badge-pos--top-left,
    .product-badge-pos--bottom-left { left: 4px !important; }
    .product-badge-pos--top-right,
    .product-badge-pos--bottom-right { right: 4px !important; }
}

/* П9: картинка по центру */
.products-grid .product-image img,
.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    margin: 0 auto;
}

/* П10: фильтр компактный на мобильном */
@media (max-width: 768px) {
    .product-summary,
    .products-grid .product-summary {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .product-summary .product-weight,
    .product-summary .product-price {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

/* П11: "Нам доверяют" - надписи под картинками (для всех устройств) */
.trust-card,
.trust-grid .trust-card {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
}
.trust-card .trust-card__icon {
    order: -1 !important;
    margin: 0 auto 12px !important;
}
.trust-card .trust-card__title,
.trust-card .trust-card__text {
    width: 100% !important;
    text-align: center !important;
    order: 0 !important;
}

/* Мобильная версия - надписи под иконками */
@media (max-width: 768px) {
    .trust-card,
    .trust-grid .trust-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .trust-card__icon {
        margin: 0 auto 10px !important;
    }
    .trust-card__title,
    .trust-card__text {
        text-align: center !important;
        width: 100% !important;
    }
}
@media (max-width: 480px) {
    .trust-card,
    .trust-grid .trust-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 14px 8px !important;
    }
    .trust-card__icon {
        margin: 0 auto 8px !important;
    }
    .trust-card__title,
    .trust-card__text {
        text-align: center !important;
        width: 100% !important;
    }
}

/* П12: категории на мобильном - 2-3 в ряд */
@media (max-width: 768px) {
    .cat-hide-mobile {
        display: none !important;
    }
}
