/* =================================================
   ELITEPLANT — FULL WOODMART PRODUCT CARD FIX
   SAFE VERSION
   (без стилей EliteplantMarketplace; K2 остаётся в теме)
   ================================================= */

/* =================================================
   1. РОВНЫЕ КАРТОЧКИ
   ТОЛЬКО КАТАЛОГ / КАТЕГОРИИ, НЕ ВИДЖЕТЫ
   ================================================= */

.woocommerce .products .product-grid-item,
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Контент растягивается */
.woocommerce .products .wd-product-content,
.woocommerce ul.products li.product .wd-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Цена и кнопка всегда внизу */
.woocommerce .products .wd-product-content > *:last-child,
.woocommerce ul.products li.product .wd-product-content > *:last-child {
    margin-top: auto !important;
}

/* =================================================
   2. ЗАГОЛОВОК — РОВНО 2 СТРОКИ
   ТОЛЬКО КАТАЛОГ / КАТЕГОРИИ
   ================================================= */

.woocommerce .products .wd-entities-title,
.woocommerce .products .wd-entities-title a,
.woocommerce-loop-product__title,
.woocommerce-loop-product__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    line-height: 1.3em !important;
}

.woocommerce .products .wd-entities-title,
.woocommerce-loop-product__title {
    min-height: 2.6em !important;
}

/* =================================================
   3. СКРЫВАЕМ КАТЕГОРИИ ВЕЗДЕ
   ================================================= */

.wd-product-cats,
.wd-product-cats a,
.product_meta .posted_in {
    display: none !important;
}

/* =================================================
   4. ОДИНАКОВЫЕ ИЗОБРАЖЕНИЯ
   ТОЛЬКО КАТАЛОГ / КАТЕГОРИИ
   ================================================= */

.woocommerce .products .product-element-top,
.woocommerce ul.products li.product .product-element-top {
    aspect-ratio: 1 / 1 !important; /* хотите премиум-вид — поставьте 4/5 */
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем внутренние отступы только внутри каталожных карточек */

.woocommerce .products .wd-product-image,
.woocommerce .products .product-image-link,
.woocommerce .products .hover-img,
.woocommerce .products .product-wrapper,
.woocommerce .products .product-grid-item-inner,
.woocommerce .products .product-inner,
.woocommerce ul.products li.product .wd-product-image,
.woocommerce ul.products li.product .product-image-link,
.woocommerce ul.products li.product .hover-img,
.woocommerce ul.products li.product .product-wrapper,
.woocommerce ul.products li.product .product-grid-item-inner,
.woocommerce ul.products li.product .product-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Картинка всегда заполняет контейнер */

.woocommerce .products .product-grid-item img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* =================================================
   5. ОСОБЫЙ FIX ДЛЯ CAROUSEL
   ТОЛЬКО ЯВНЫЕ КАРУСЕЛИ
   ================================================= */

/* Убираем padding карточки */
.carousel .product-grid-item,
.wd-carousel .product-grid-item {
    padding: 0 !important;
}

/* Фото строго до краёв */
.carousel .product-element-top,
.wd-carousel .product-element-top {
    margin: 0 !important;
    padding: 0 !important;
}

/* Возвращаем отступы только тексту */
.carousel .wd-product-content,
.wd-carousel .wd-product-content {
    padding: 14px !important;
}

/* =================================================
   6. FIX ДЛЯ SWIPER / КАРУСЕЛЕЙ WOODMART
   ================================================= */

.wd-carousel .swiper-slide,
.wd-carousel .wd-carousel-item {
    height: auto !important;
}

.wd-carousel .product-grid-item {
    height: 100% !important;
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   УНИВЕРСАЛЬНОЕ ЗАТЕМНЕНИЕ БАННЕРА ЗАГОЛОВКА
   Для всех страниц с page title / wd-page-title / main-page-title
   ========================================================= */

/* контейнер баннера */
.page-title,
.wd-page-title,
.main-page-title {
    position: relative !important;
    overflow: hidden !important;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

/* картинка баннера */
.page-title img,
.wd-page-title img,
.main-page-title img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

/* затемнение поверх картинки */
.page-title::before,
.wd-page-title::before,
.main-page-title::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.48) 45%,
        rgba(0, 0, 0, 0.30) 100%
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* контент поверх затемнения */
.page-title .container,
.wd-page-title .container,
.main-page-title .container,
.page-title .title,
.wd-page-title .title,
.main-page-title .title,
.page-title .entry-title,
.wd-page-title .entry-title,
.main-page-title .entry-title,
.page-title h1,
.wd-page-title h1,
.main-page-title h1,
.page-title .breadcrumbs,
.wd-page-title .breadcrumbs,
.main-page-title .breadcrumbs,
.page-title nav,
.wd-page-title nav,
.main-page-title nav {
    position: relative !important;
    z-index: 3 !important;
}

/* заголовок */
.page-title h1,
.wd-page-title h1,
.main-page-title h1 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* хлебные крошки */
.page-title .breadcrumbs,
.wd-page-title .breadcrumbs,
.main-page-title .breadcrumbs,
.page-title .breadcrumbs a,
.wd-page-title .breadcrumbs a,
.main-page-title .breadcrumbs a,
.page-title nav,
.wd-page-title nav,
.main-page-title nav,
.page-title nav a,
.wd-page-title nav a,
.main-page-title nav a {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* если тема добавляет внутренний фон */
.page-title::after,
.wd-page-title::after,
.main-page-title::after {
    z-index: 2 !important;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */
@media (max-width: 767px) {
    .page-title,
    .wd-page-title,
    .main-page-title {
        min-height: 200px;
    }

    .page-title h1,
    .wd-page-title h1,
    .main-page-title h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
}

/* =========================================================
   WOODMART LOGIN POPUP FIX — FINAL
   ========================================================= */

/* 1. Родитель аккаунта */
.whb-account,
.wd-header-my-account,
.wd-header-my-account-with-text,
.wd-tools-element.wd-header-my-account,
.wd-tools-element.wd-header-my-account-with-text {
    position: relative !important;
}

/* 2. Popup аккаунта */
.whb-account .sub-menu-dropdown,
.whb-account .wd-dropdown,
.whb-account .login-form-side,
.wd-header-my-account .sub-menu-dropdown,
.wd-header-my-account .wd-dropdown,
.wd-header-my-account .login-form-side,
.wd-header-my-account-with-text .sub-menu-dropdown,
.wd-header-my-account-with-text .wd-dropdown,
.wd-header-my-account-with-text .login-form-side,
.wd-tools-element.wd-header-my-account .sub-menu-dropdown,
.wd-tools-element.wd-header-my-account .wd-dropdown,
.wd-tools-element.wd-header-my-account .login-form-side,
.wd-tools-element.wd-header-my-account-with-text .sub-menu-dropdown,
.wd-tools-element.wd-header-my-account-with-text .wd-dropdown,
.wd-tools-element.wd-header-my-account-with-text .login-form-side {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 370px !important;
    max-width: min(370px, calc(100vw - 24px)) !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* 3. Внутренние обертки */
.whb-account .wd-dropdown-inner,
.whb-account .login-form-inner,
.wd-header-my-account .wd-dropdown-inner,
.wd-header-my-account .login-form-inner,
.wd-header-my-account-with-text .wd-dropdown-inner,
.wd-header-my-account-with-text .login-form-inner,
.wd-tools-element.wd-header-my-account .wd-dropdown-inner,
.wd-tools-element.wd-header-my-account .login-form-inner,
.wd-tools-element.wd-header-my-account-with-text .wd-dropdown-inner,
.wd-tools-element.wd-header-my-account-with-text .login-form-inner,
.whb-account .woocommerce-form-login,
.whb-account form.login,
.wd-header-my-account .woocommerce-form-login,
.wd-header-my-account form.login,
.wd-header-my-account-with-text .woocommerce-form-login,
.wd-header-my-account-with-text form.login,
.wd-tools-element.wd-header-my-account .woocommerce-form-login,
.wd-tools-element.wd-header-my-account form.login,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login,
.wd-tools-element.wd-header-my-account-with-text form.login {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Поля */
.whb-account .woocommerce-form-login input[type="text"],
.whb-account .woocommerce-form-login input[type="email"],
.whb-account .woocommerce-form-login input[type="password"],
.whb-account .woocommerce-form-login input[type="tel"],
.whb-account form.login input[type="text"],
.whb-account form.login input[type="email"],
.whb-account form.login input[type="password"],
.wd-header-my-account .woocommerce-form-login input[type="text"],
.wd-header-my-account .woocommerce-form-login input[type="email"],
.wd-header-my-account .woocommerce-form-login input[type="password"],
.wd-header-my-account .woocommerce-form-login input[type="tel"],
.wd-header-my-account form.login input[type="text"],
.wd-header-my-account form.login input[type="email"],
.wd-header-my-account form.login input[type="password"],
.wd-header-my-account-with-text .woocommerce-form-login input[type="text"],
.wd-header-my-account-with-text .woocommerce-form-login input[type="email"],
.wd-header-my-account-with-text .woocommerce-form-login input[type="password"],
.wd-header-my-account-with-text form.login input[type="text"],
.wd-header-my-account-with-text form.login input[type="email"],
.wd-header-my-account-with-text form.login input[type="password"],
.wd-tools-element.wd-header-my-account .woocommerce-form-login input[type="text"],
.wd-tools-element.wd-header-my-account .woocommerce-form-login input[type="email"],
.wd-tools-element.wd-header-my-account .woocommerce-form-login input[type="password"],
.wd-tools-element.wd-header-my-account form.login input[type="text"],
.wd-tools-element.wd-header-my-account form.login input[type="email"],
.wd-tools-element.wd-header-my-account form.login input[type="password"],
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login input[type="text"],
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login input[type="email"],
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login input[type="password"],
.wd-tools-element.wd-header-my-account-with-text form.login input[type="text"],
.wd-tools-element.wd-header-my-account-with-text form.login input[type="email"],
.wd-tools-element.wd-header-my-account-with-text form.login input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 0 46px 0 16px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 23px !important;
    background: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
    outline: none !important;
}

.whb-account .woocommerce-form-login input:focus,
.whb-account form.login input:focus,
.wd-header-my-account .woocommerce-form-login input:focus,
.wd-header-my-account form.login input:focus,
.wd-header-my-account-with-text .woocommerce-form-login input:focus,
.wd-header-my-account-with-text form.login input:focus,
.wd-tools-element.wd-header-my-account .woocommerce-form-login input:focus,
.wd-tools-element.wd-header-my-account form.login input:focus,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login input:focus,
.wd-tools-element.wd-header-my-account-with-text form.login input:focus {
    border-color: #c8c8c8 !important;
    box-shadow: none !important;
}

/* 5. Контейнер пароля */
.whb-account .password-input,
.wd-header-my-account .password-input,
.wd-header-my-account-with-text .password-input,
.wd-tools-element.wd-header-my-account .password-input,
.wd-tools-element.wd-header-my-account-with-text .password-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* важно: убираем лишние внутренние отступы/ширины */
.whb-account .password-input input,
.wd-header-my-account .password-input input,
.wd-header-my-account-with-text .password-input input,
.wd-tools-element.wd-header-my-account .password-input input,
.wd-tools-element.wd-header-my-account-with-text .password-input input {
    width: 100% !important;
    padding-right: 46px !important;
}

/* 6. Глазок справа */
.whb-account .password-input .show-password-input,
.wd-header-my-account .password-input .show-password-input,
.wd-header-my-account-with-text .password-input .show-password-input,
.wd-tools-element.wd-header-my-account .password-input .show-password-input,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 5 !important;
    cursor: pointer !important;
}

/* сброс возможных стилей темы */
.whb-account .password-input .show-password-input::before,
.whb-account .password-input .show-password-input::after,
.wd-header-my-account .password-input .show-password-input::before,
.wd-header-my-account .password-input .show-password-input::after,
.wd-header-my-account-with-text .password-input .show-password-input::before,
.wd-header-my-account-with-text .password-input .show-password-input::after,
.wd-tools-element.wd-header-my-account .password-input .show-password-input::before,
.wd-tools-element.wd-header-my-account .password-input .show-password-input::after,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input::before,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input::after {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* если тема двигает иконку через span/svg/i */
.whb-account .password-input .show-password-input i,
.whb-account .password-input .show-password-input svg,
.whb-account .password-input .show-password-input span,
.wd-header-my-account .password-input .show-password-input i,
.wd-header-my-account .password-input .show-password-input svg,
.wd-header-my-account .password-input .show-password-input span,
.wd-header-my-account-with-text .password-input .show-password-input i,
.wd-header-my-account-with-text .password-input .show-password-input svg,
.wd-header-my-account-with-text .password-input .show-password-input span,
.wd-tools-element.wd-header-my-account .password-input .show-password-input i,
.wd-tools-element.wd-header-my-account .password-input .show-password-input svg,
.wd-tools-element.wd-header-my-account .password-input .show-password-input span,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input i,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input svg,
.wd-tools-element.wd-header-my-account-with-text .password-input .show-password-input span {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
}

/* 7. Кнопка */
.whb-account .woocommerce-form-login button,
.whb-account .woocommerce-form-login .button,
.whb-account form.login button,
.whb-account form.login .button,
.wd-header-my-account .woocommerce-form-login button,
.wd-header-my-account .woocommerce-form-login .button,
.wd-header-my-account form.login button,
.wd-header-my-account form.login .button,
.wd-header-my-account-with-text .woocommerce-form-login button,
.wd-header-my-account-with-text .woocommerce-form-login .button,
.wd-header-my-account-with-text form.login button,
.wd-header-my-account-with-text form.login .button,
.wd-tools-element.wd-header-my-account .woocommerce-form-login button,
.wd-tools-element.wd-header-my-account .woocommerce-form-login .button,
.wd-tools-element.wd-header-my-account form.login button,
.wd-tools-element.wd-header-my-account form.login .button,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login button,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login .button,
.wd-tools-element.wd-header-my-account-with-text form.login button,
.wd-tools-element.wd-header-my-account-with-text form.login .button {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 23px !important;
    box-sizing: border-box !important;
}

/* 8. Нижняя строка */
.whb-account .login-form-footer,
.wd-header-my-account .login-form-footer,
.wd-header-my-account-with-text .login-form-footer,
.wd-tools-element.wd-header-my-account .login-form-footer,
.wd-tools-element.wd-header-my-account-with-text .login-form-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.whb-account .woocommerce-form-login__rememberme,
.wd-header-my-account .woocommerce-form-login__rememberme,
.wd-header-my-account-with-text .woocommerce-form-login__rememberme,
.wd-tools-element.wd-header-my-account .woocommerce-form-login__rememberme,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.whb-account .woocommerce-form-login__rememberme input[type="checkbox"],
.wd-header-my-account .woocommerce-form-login__rememberme input[type="checkbox"],
.wd-header-my-account-with-text .woocommerce-form-login__rememberme input[type="checkbox"],
.wd-tools-element.wd-header-my-account .woocommerce-form-login__rememberme input[type="checkbox"],
.wd-tools-element.wd-header-my-account-with-text .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}

.whb-account .lost_password,
.whb-account .woocommerce-LostPassword,
.wd-header-my-account .lost_password,
.wd-header-my-account .woocommerce-LostPassword,
.wd-header-my-account-with-text .lost_password,
.wd-header-my-account-with-text .woocommerce-LostPassword,
.wd-tools-element.wd-header-my-account .lost_password,
.wd-tools-element.wd-header-my-account .woocommerce-LostPassword,
.wd-tools-element.wd-header-my-account-with-text .lost_password,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-LostPassword {
    margin: 0 !important;
    text-align: right !important;
}

.whb-account .lost_password a,
.whb-account .woocommerce-LostPassword a,
.wd-header-my-account .lost_password a,
.wd-header-my-account .woocommerce-LostPassword a,
.wd-header-my-account-with-text .lost_password a,
.wd-header-my-account-with-text .woocommerce-LostPassword a,
.wd-tools-element.wd-header-my-account .lost_password a,
.wd-tools-element.wd-header-my-account .woocommerce-LostPassword a,
.wd-tools-element.wd-header-my-account-with-text .lost_password a,
.wd-tools-element.wd-header-my-account-with-text .woocommerce-LostPassword a {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* 9. Адаптив */
@media (max-width: 1024px) {
    .whb-account .sub-menu-dropdown,
    .whb-account .wd-dropdown,
    .whb-account .login-form-side,
    .wd-header-my-account .sub-menu-dropdown,
    .wd-header-my-account .wd-dropdown,
    .wd-header-my-account .login-form-side,
    .wd-header-my-account-with-text .sub-menu-dropdown,
    .wd-header-my-account-with-text .wd-dropdown,
    .wd-header-my-account-with-text .login-form-side,
    .wd-tools-element.wd-header-my-account .sub-menu-dropdown,
    .wd-tools-element.wd-header-my-account .wd-dropdown,
    .wd-tools-element.wd-header-my-account .login-form-side,
    .wd-tools-element.wd-header-my-account-with-text .sub-menu-dropdown,
    .wd-tools-element.wd-header-my-account-with-text .wd-dropdown,
    .wd-tools-element.wd-header-my-account-with-text .login-form-side {
        width: 340px !important;
        max-width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 767px) {
    .whb-account .sub-menu-dropdown,
    .whb-account .wd-dropdown,
    .whb-account .login-form-side,
    .wd-header-my-account .sub-menu-dropdown,
    .wd-header-my-account .wd-dropdown,
    .wd-header-my-account .login-form-side,
    .wd-header-my-account-with-text .sub-menu-dropdown,
    .wd-header-my-account-with-text .wd-dropdown,
    .wd-header-my-account-with-text .login-form-side,
    .wd-tools-element.wd-header-my-account .sub-menu-dropdown,
    .wd-tools-element.wd-header-my-account .wd-dropdown,
    .wd-tools-element.wd-header-my-account .login-form-side,
    .wd-tools-element.wd-header-my-account-with-text .sub-menu-dropdown,
    .wd-tools-element.wd-header-my-account-with-text .wd-dropdown,
    .wd-tools-element.wd-header-my-account-with-text .login-form-side {
        width: min(340px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

.custom-register-consent {
    margin: 16px 0 !important;
}

.custom-register-consent label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer;
    line-height: 1.5 !important;
}

.custom-register-consent input[type="checkbox"] {
    margin-top: 3px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex: 0 0 16px !important;
}

.custom-register-consent span {
    display: inline-block;
}

.custom-register-consent a {
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* =========================================================
   СТИЛЬ ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ========================================================= */

/* 0) база + скругление */
.K2 .wd-slide {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* 1) фон (самый нижний слой) */
.K2 .wd-slide-bg {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    border-radius: 20px;
}

/* 2) градиент поверх фона */
.K2 .wd-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.70) 0%,
        rgba(0,0,0,0.45) 45%,
        rgba(0,0,0,0.20) 100%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 20px;
}

/* 3) контент выше градиента */
.K2 .wd-slide-container {
    position: relative;
    z-index: 3;
}

/* 4) убираем фон/тени под текстом */
.K2 .wd-slide-container,
.K2 .wd-slide-container .wd-slide-content,
.K2 .wd-slide-container .wd-slide-content-wrap,
.K2 .wd-slide-container .wd-slide-inner-content,
.K2 .wd-slide-container .wd-slide-layers {
    background: transparent !important;
    box-shadow: none !important;
}

.K2 .K2-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.K2 .K2-form-row {
    display: flex;
    gap: 14px;
}

.K2 .K2-form-group {
    width: 100%;
}

.K2 .K2-contact-form input[type="text"],
.K2 .K2-contact-form input[type="tel"],
.K2 .K2-contact-form input[type="email"],
.K2 .K2-contact-form textarea {
    width: 100%;
    border: none;
    outline: none;
    box-sizing: border-box;
    background: rgba(255,255,255,0.28);
    color: #ffffff;
    font-size: 20px;
    font-family: inherit;
}

.K2 .K2-contact-form input[type="text"],
.K2 .K2-contact-form input[type="tel"],
.K2 .K2-contact-form input[type="email"] {
    height: 56px;
    padding: 0 18px;
    border-radius: 999px;
}

.K2 .K2-contact-form textarea {
    min-height: 92px;
    padding: 16px 18px;
    border-radius: 20px;
    resize: vertical;
    line-height: 1.4;
}

.K2 .K2-contact-form input::placeholder,
.K2 .K2-contact-form textarea::placeholder {
    color: rgba(255,255,255,0.85);
}

.K2 .K2-contact-form input:focus,
.K2 .K2-contact-form textarea:focus {
    background: rgba(255,255,255,0.4);
}

.K2 .K2-form-consent {
    margin-top: 4px;
}

.K2 .K2-form-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #35502c;
}

.K2 .K2-form-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex: 0 0 16px;
    accent-color: #4F6540;
}

.K2 .K2-form-consent a {
    color: #35502c;
    text-decoration: none;
    border-bottom: 1px solid rgba(53,80,44,0.4);
}

.K2 .K2-form-consent a:hover {
    border-bottom-color: rgba(53,80,44,0.8);
}

.K2 .K2-form-submit {
    margin-top: 6px;
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444444;
    font-size: 18px;
    cursor: pointer;
    transition: 0.25s ease;
}

.K2 .K2-form-submit:hover {
    background: #ffffff;
}

.K2 .K2-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ВАЖНО: правильные классы уведомлений */
.K2 .k2-form-message-wrap {
    width: 100%;
    margin: 0 0 16px;
}

.K2 .k2-form-message {
    display: block;
    width: 100%;
    min-height: auto;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff !important;
    box-sizing: border-box;
}

.K2 .k2-form-message--success {
    background: #4F6540;
}

.K2 .k2-form-message--error {
    background: #c0392b;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width:767px) {
    .K2 .K2-contact-form {
        gap: 10px;
    }

    .K2 .K2-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .K2 .K2-contact-form input[type="text"],
    .K2 .K2-contact-form input[type="tel"],
    .K2 .K2-contact-form input[type="email"] {
        height: 44px;
        padding: 0 14px;
        font-size: 16px;
    }

    .K2 .K2-contact-form textarea {
        min-height: 74px;
        padding: 12px 14px;
        font-size: 16px;
        line-height: 1.35;
    }

    .K2 .K2-form-consent {
        margin-top: 2px;
    }

    .K2 .K2-form-consent label {
        gap: 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .K2 .K2-form-consent input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-top: 3px;
        flex: 0 0 14px;
    }

    .K2 .K2-form-submit {
        margin-top: 4px;
        height: 46px;
        font-size: 15px;
    }

    .K2 .k2-form-message {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Скругление попапа */
/* Основной контейнер попапа */
.login-form-side,
.whb-account-popup,
.wd-header-my-account .login-form-side {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* Внутренний контейнер */
.login-form-side .wd-login-form,
.whb-account-popup .wd-login-form {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* Если есть отдельный wrapper */
.login-form-side .woocommerce,
.login-form-side form {
    border-radius: 20px !important;
}

/* Иногда тема добавляет внутреннюю обертку */
.wd-dropdown-menu,
.wd-dropdown {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* Общий стиль чекбоксов */
.woocommerce-form__label.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

/* Сам чекбокс */
.woocommerce-form__input-checkbox {
    width: 16px;
    height: 16px;
    margin: 3px 0 0 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

/* Текст рядом */
.woocommerce-form__label.checkbox span {
    display: inline-block;
}

/* Убираем любые отступы у строк */
.form-row.checkbox,
.form-row .checkbox {
    margin-bottom: 10px !important;
}

/* ТВОЙ второй чекбокс (рассылка) */
.sr-newsletter-checkbox {
    margin-top: 8px !important;
}

/* Ссылки — жирные */
.woocommerce-form__label.checkbox a {
    font-weight: 700 !important;
    text-decoration: underline;
}

/* Убираем странные стили темы */
.woocommerce form .form-row label {
    display: flex;
}

/* Выравнивание всей группы */
.woocommerce form .form-row {
    display: block;
}

/* Если тема ломает — фикс */
input[type="checkbox"] {
    appearance: auto !important;
}

/* Дополнительный фикс для WoodMart */
.wd-login-form .woocommerce-form__label.checkbox {
    align-items: flex-start;
}

/* Чтобы текст не прыгал */
.woocommerce-form__label.checkbox span {
    margin-top: -1px;
}

.pulse-link {
    display: inline-block;
    font-size: 15px !important;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 999px;
    position: relative;
    animation: marketplacePulse 1.8s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pulse-link:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 18px rgba(255, 214, 102, 0.55);
}

@keyframes marketplacePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 214, 102, 0.00);
        filter: brightness(1);
    }
    35% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 214, 102, 0.10);
        filter: brightness(1.08);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 14px rgba(255, 214, 102, 0.00);
        filter: brightness(1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 214, 102, 0.00);
        filter: brightness(1);
    }
}

/* =================================================
   SR-RECENT — ФИНАЛЬНЫЙ ПОЛНЫЙ FIX
   Только для блока "Недавно просмотренные"
   Класс блока: sr-recent
   ================================================= */

/* сам блок */
.sr-recent {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* карусель и внутренние контейнеры */
.sr-recent .wd-carousel,
.sr-recent .wd-carousel-wrap,
.sr-recent .swiper,
.sr-recent .swiper-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* слайды */
.sr-recent .wd-carousel-item,
.sr-recent .swiper-slide {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* внешняя оболочка карточки */
.sr-recent .wd-product.product-grid-item {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
}

/* внутренняя белая карточка */
.sr-recent .wd-product.product-grid-item .product-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 14px !important;

  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;

  padding: 20px !important;
  margin: 0 !important;

  background: #ffffff !important;
  border: 1px solid rgba(79, 101, 64, 0.10) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05) !important;
  overflow: hidden !important;

  transition: transform .2s ease, box-shadow .2s ease !important;
}

.sr-recent .wd-product.product-grid-item .product-wrapper:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08) !important;
}

/* картинка */
.sr-recent .wd-product.product-grid-item .product-element-top {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  height: 90px !important;
  flex: 0 0 90px !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #f3f4ee !important;
  aspect-ratio: auto !important;
}

.sr-recent .wd-product.product-grid-item .product-image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sr-recent .wd-product.product-grid-item .product-element-top img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* текстовый блок */
.sr-recent .wd-product.product-grid-item .product-element-bottom {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 6px !important;

  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* название */
.sr-recent .wd-product.product-grid-item .wd-entities-title {
  margin: 0 !important;
  min-height: auto !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: #4F6540 !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.sr-recent .wd-product.product-grid-item .wd-entities-title a {
  display: block !important;
  color: #4F6540 !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
}

.sr-recent .wd-product.product-grid-item .wd-entities-title a:hover {
  color: #3f5233 !important;
}

/* цена */
.sr-recent .wd-product.product-grid-item .price,
.sr-recent .wd-product.product-grid-item .price .amount,
.sr-recent .wd-product.product-grid-item .price bdi,
.sr-recent .wd-product.product-grid-item .price .woocommerce-Price-currencySymbol {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #4F6540 !important;
}

/* продавец */
.sr-recent .wd-product.product-grid-item .sr-loop-vendor-name {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  color: #6e7564 !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

/* убираем мусорные псевдоэлементы */
.sr-recent .wd-product.product-grid-item::before,
.sr-recent .wd-product.product-grid-item::after,
.sr-recent .product-wrapper::before,
.sr-recent .product-wrapper::after {
  display: none !important;
  content: none !important;
}

/* =========================
   ДЕСКТОП
   ========================= */
@media (min-width: 1025px) {
  .sr-recent .wd-product.product-grid-item,
  .sr-recent .wd-product.product-grid-item .product-wrapper {
    max-width: 420px !important;
  }

  .sr-recent .wd-carousel-item,
  .sr-recent .swiper-slide {
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
  }
}

/* =========================
   ПЛАНШЕТ
   ========================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .sr-recent .wd-product.product-grid-item,
  .sr-recent .wd-product.product-grid-item .product-wrapper {
    max-width: 360px !important;
  }

  .sr-recent .wd-carousel-item,
  .sr-recent .swiper-slide {
    width: 360px !important;
    max-width: 360px !important;
    min-width: 360px !important;
  }

  .sr-recent .wd-product.product-grid-item .product-wrapper {
    padding: 16px !important;
    gap: 12px !important;
  }

  .sr-recent .wd-product.product-grid-item .product-element-top {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 76px !important;
    flex: 0 0 76px !important;
  }

  .sr-recent .wd-product.product-grid-item .wd-entities-title {
    font-size: 15px !important;
  }

  .sr-recent .wd-product.product-grid-item .price,
  .sr-recent .wd-product.product-grid-item .price .amount,
  .sr-recent .wd-product.product-grid-item .price bdi,
  .sr-recent .wd-product.product-grid-item .price .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
  }

  .sr-recent .wd-product.product-grid-item .sr-loop-vendor-name {
    font-size: 13px !important;
  }
}

/* =========================
   МОБИЛЬНЫЕ
   ========================= */
@media (max-width: 767px) {
  .sr-recent .wd-product.product-grid-item,
  .sr-recent .wd-product.product-grid-item .product-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sr-recent .wd-carousel-item,
  .sr-recent .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }

  .sr-recent .wd-product.product-grid-item .product-wrapper {
    padding: 14px !important;
    gap: 12px !important;
  }

  .sr-recent .wd-product.product-grid-item .product-element-top {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 76px !important;
    flex: 0 0 76px !important;
  }

  .sr-recent .wd-product.product-grid-item .wd-entities-title {
    font-size: 15px !important;
  }

  .sr-recent .wd-product.product-grid-item .price,
  .sr-recent .wd-product.product-grid-item .price .amount,
  .sr-recent .wd-product.product-grid-item .price bdi,
  .sr-recent .wd-product.product-grid-item .price .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
  }

  .sr-recent .wd-product.product-grid-item .sr-loop-vendor-name {
    font-size: 13px !important;
  }
}

/*Фикс лишней кнопки на форуме*/
/* Убираем ПЕРВЫЙ блок с кнопкой (тот что без заголовка) */
.wpf-head-bar:first-of-type {
    display: none !important;
}

/* Убираем отступ между блоками */
.wpf-subforum-sep {
    display: none !important;
}

h2.custom-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    h2.custom-title {
        font-size: 15px !important;
    }
}
