/* 🔥 Скрываем строку «Подытог» везде (чекаут, корзина) */
tr.cart-subtotal { display: none !important; }


.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(var(--ns-products-columns, 4), 1fr);
    gap: var(--ns-products-gap, 30px);
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce ul.products .product-card {
    min-width: 0; /* карточки не распирают grid */
}
/* ==========================================
🔥 КАРТОЧКА ТОВАРА (Выравнивание по высоте)
========================================== */
.product-card {
position: relative;
background: #ffffff;
border-radius: 12px;
overflow: visible;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
height: 100%;
border: 1px solid var(--ns-card-border, #e2e8f0); /* 🔥 Окантовка карточки */
}

/* Эффекты при наведении */
.product-card--hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* 🔥 При наведении окантовка исчезает — остаётся только тень */
.product-card:hover {
border-color: transparent;
}

.product-card--hover-zoom .product-card__image-wrapper {
    overflow: hidden;
}

.product-card--hover-zoom .product-card__image-main {
    transition: transform 0.4s ease;
}

.product-card--hover-zoom .product-card__image-main:hover {
    transform: scale(1.08);
}

.product-card--hover-overlay .product-card__actions {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card--hover-overlay:hover .product-card__actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
🔥 ИЗОБРАЖЕНИЕ ТОВАРА (Фиксированное соотношение)
========================================== */
.product-card__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1; /* 🔥 Квадратное соотношение */
    background: #f8fafc;
    flex-shrink: 0;
}

.product-card__link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image-main,
.product-card__image-hover {
width: 100%;
height: 100%;
object-fit: contain !important; /* 🔥 Фото НИКОГДА не обрезается */
object-position: center center;
transition: transform 0.4s ease, opacity 0.3s ease;
}

.product-card__image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-card__image-hover {
    opacity: 1;
}

/* ==========================================
🔥 КОНТЕНТ КАРТОЧКИ (Растягивается)
========================================== */
.product-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1; /* 🔥 Занимает оставшееся пространство */
}

.product-card__category {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1; /* 🔥 Заголовок растягивается */
}

.product-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a:hover {
    color: var(--ns-primary, #c96a2e);
}



.product-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__attribute {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================
🔥 ЦЕНА И КНОПКА "В КОРЗИНУ" (Прижаты к низу)
========================================== */
.product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
    line-height: 1.2;
    margin-top: auto; /* 🔥 Прижимаем к низу */
}

.product-card__price del {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
}

.product-card__price ins {
    text-decoration: none;
}

.product-card__add-to-cart {
    margin-top: 8px;
}

.product-card__add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__add-to-cart-btn:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
    box-shadow: 0px 0px 12px -7px blue;
}

.product-card__add-to-cart-btn.added {
    background: #10b981;
}

/* ==========================================
🔥 OUT OF STOCK
========================================== */
.product-card--out-of-stock {
    opacity: 0.7;
}

.product-card--out-of-stock .product-card__add-to-cart-btn {
    background: #94a3b8;
    cursor: not-allowed;
}

.product-card--out-of-stock .product-card__add-to-cart-btn:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================
🔥 БЕЙДЖИ (Скидка, Новинка)
========================================== */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 3;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.product-card__badge--sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-card__badge--new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    
    right: auto;
}

/* ==========================================
🔥 КНОПКИ ДЕЙСТВИЙ (ИЗБРАННОЕ, СРАВНЕНИЕ, БЫСТРЫЙ ПРОСМОТР)
🔥 ВАЖНО: Исправлен баг с "проваливанием" клика
========================================== */
.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 7 !important; /* Гарантированно выше ссылки на товар */
    pointer-events: auto !important;
}

.product-card__action-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 20%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgb(0 0 0 / 3%);
    color: #64748b;
    pointer-events: auto !important; /* Разрешаем клики */
    position: relative;
    z-index: 1 ;
}

.product-card__action-btn:hover {

    transform: scale(1.1);
       box-shadow: 0 4px 12px #15a69924;
}

/* 🔥 КРИТИЧЕСКИ ВАЖНО: Запрещаем SVG и IMG перехватывать клик */
.product-card__action-btn svg,
.product-card__action-btn img {
    pointer-events: none !important;
    width: 18px;
    height: 18px;
}

/* ==========================================
🔥 КОНТЕНТ КАРТОЧКИ
========================================== */
.product-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__category {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.product-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a:hover {
    color: var(--ns-primary, #c96a2e);
}

.product-card__sku {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: -8px;
}

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card__attribute {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================
🔥 ЦЕНА И КНОПКА "В КОРЗИНУ"
========================================== */
.product-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
    line-height: 1.2;
}

.product-card__price del {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
}

.product-card__price ins {
    text-decoration: none;
}

.product-card__add-to-cart {
    margin-top: 8px;
}

.product-card__add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__add-to-cart-btn:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
    box-shadow: 0px 0px 12px -7px blue;
}

.product-card__add-to-cart-btn.added {
    background: #10b981;
}

/* ==========================================
🔥 OUT OF STOCK
========================================== */
.product-card--out-of-stock {
    opacity: 0.7;
}

.product-card--out-of-stock .product-card__add-to-cart-btn {
    background: #94a3b8;
    cursor: not-allowed;
}

.product-card--out-of-stock .product-card__add-to-cart-btn:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================
🔥 УВЕДОМЛЕНИЯ (TOAST)
========================================== */
.nova-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.nova-notification--visible {
    transform: translateX(0);
    opacity: 1;
}

.nova-notification--success { border-left: 4px solid #10b981; }
.nova-notification--error { border-left: 4px solid #ef4444; }
.nova-notification--info { border-left: 4px solid #3b82f6; }

/* ==========================================
🔥 АКТИВНЫЕ КНОПКИ И АНИМАЦИИ
========================================== */
/* ==========================================
🔥 АКТИВНЫЕ КНОПКИ (Избранное, Сравнение)
========================================== */
.product-card__action-btn--wishlist {
    transition: all 0.3s ease;
}

.product-card__action-btn--wishlist.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgb(0 0 0 / 2%);

}

.product-card__action-btn--wishlist.active svg,
.product-card__action-btn--wishlist.active img {
    filter: brightness(0) invert(1);
}

.product-card__action-btn--wishlist.active:hover {
    background: #dc2626 !important;
    transform: scale(1.1);
}

.product-card__action-btn--compare {
    transition: all 0.3s ease;
}

.product-card__action-btn--compare.active {
        background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-card__action-btn--compare.active svg,
.product-card__action-btn--compare.active img {
    filter: brightness(0) invert(1);
}

.product-card__action-btn--compare.active:hover {
    background: #2563eb !important;
    transform: scale(1.1);
}

.product-card__action-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.product-card__action-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.nova-wishlist-count,
.nova-compare-count {
    display: inline-block;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: 4px;
}

/* ==========================================
🔥 БЫСТРЫЙ ПРОСМОТР (QUICK VIEW)
========================================== */
.nova-quick-view-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.nova-quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nova-quick-view-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.nova-quick-view-overlay.active .nova-quick-view-modal {
    transform: scale(1) translateY(0);
}

.nova-quick-view__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nova-quick-view__close:hover {
    background: #f1f5f9;
    color: #ef4444;
    transform: rotate(90deg);
}

.nova-quick-view__body {
    overflow-y: auto;
    max-height: 90vh;
}

.nova-quick-view__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.nova-quick-view__image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.nova-quick-view__image img {
    width: 100%;
    height: auto;
    display: block;
}

.nova-quick-view__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nova-quick-view__category {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nova-quick-view__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.nova-quick-view__sku {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.nova-quick-view__rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-quick-view__reviews {
    font-size: 13px;
    color: #64748b;
}

.nova-quick-view__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
    line-height: 1.2;
}

.nova-quick-view__price del {
    font-size: 20px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 12px;
}

.nova-quick-view__description {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.nova-quick-view__attributes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.nova-quick-view__attribute {
    font-size: 14px;
    color: #334155;
}

.nova-quick-view__attribute strong {
    color: #0f172a;
    margin-right: 8px;
}

.nova-quick-view__add-to-cart {
    margin-top: 8px;
}

.nova-quick-view__add-to-cart-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nova-quick-view__add-to-cart-btn:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 106, 46, 0.3);
}

.nova-quick-view__add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.nova-quick-view__add-to-cart-btn.success {
    background: #10b981;
}

.nova-quick-view__out-of-stock {
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.nova-quick-view__view-full {
    margin-top: 16px;
    text-align: center;
}

.nova-quick-view__view-full a {
    color: var(--ns-primary, #c96a2e);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nova-quick-view__view-full a:hover {
    color: var(--ns-hover, #a85525);
    text-decoration: underline;
}

.nova-quick-view__loading {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.nova-quick-view__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--ns-primary, #c96a2e);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.nova-quick-view__error {
    padding: 60px 20px;
    text-align: center;
    color: #ef4444;
    font-size: 16px;
}

/* Адаптивность быстрого просмотра */
@media (max-width: 768px) {
    .nova-quick-view__content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .nova-quick-view__title { font-size: 22px; }
    .nova-quick-view__price { font-size: 24px; }
    .nova-quick-view__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}









/* ==========================================
🔥 SWIPER В БЫСТРОМ ПРОСМОТРЕ
========================================== */
.nova-quick-view-swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.nova-quick-view-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.nova-quick-view-swiper .swiper-slide img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Стрелки навигации */
.nova-quick-view-swiper .swiper-button-next,
.nova-quick-view-swiper .swiper-button-prev {
    color: var(--ns-primary, #c96a2e);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.nova-quick-view-swiper .swiper-button-next:hover,
.nova-quick-view-swiper .swiper-button-prev:hover {
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
}

.nova-quick-view-swiper .swiper-button-next::after,
.nova-quick-view-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Пагинация (точки) */
.nova-quick-view-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.nova-quick-view-swiper .swiper-pagination-bullet-active {
    background: var(--ns-primary, #c96a2e);
    width: 24px;
    border-radius: 5px;
    transition: all 0.3s ease;
}






/* ==========================================
🔥 ПАНЕЛЬ ИНФОРМАЦИИ ПРИ НАВЕДЕНИИ
🔥 Незаметное продолжение карточки (выезжает вниз)
========================================== */

/* База: скрытое состояние */
.product-card__hover-panel {
    position: absolute;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    z-index: 30;
    pointer-events: none;
    max-height: none;
    overflow: visible;
}

/* Наведённая карточка выше соседей */
.product-card:hover {
    z-index: 1001;
}

/* 🔥 ПОЗИЦИЯ СНИЗУ: панель = продолжение карточки */
.product-card--panel-bottom .product-card__hover-panel {
    top: 100%;
    bottom: auto;
    left: -1px;               /* продолжаем левую границу карточки */
    right: -1px;              /* и правую */
    margin-top: -1px;         /* 🔥 прячем шов под границей карточки */
    border: 0px solid var(--ns-card-border, #e2e8f0);
    border-top: 0;            /* без верхней границы — сливается с карточкой */
    border-radius: 0 0 12px 12px;
    /* 🔥 тень только вниз/в стороны — нет тёмной полосы на стыке */
    box-shadow: 0 24px 24px -8px rgba(0, 0, 0, 0.18);
}

/* 🔥 Карточка при наведении: низ "открывается" под панель */
.product-card--panel-bottom:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

/* Показ панели */
.product-card--panel-bottom:hover .product-card__hover-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Позиция сверху */
.product-card--panel-top .product-card__hover-panel {
    top: 0;
    bottom: auto;
    transform: translateY(-100%);
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
}

.product-card--panel-top:hover .product-card__hover-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Позиция overlay (поверх всего изображения) */
.product-card--panel-overlay .product-card__hover-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
}

.product-card--panel-overlay .product-card__hover-panel-content {
    color: #ffffff;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card--panel-overlay:hover .product-card__hover-panel {
    opacity: 1;
    visibility: visible;
}

.product-card--panel-overlay:hover .product-card__hover-panel-content {
    transform: translateY(0);
}

.product-card--panel-overlay .product-card__hover-category,
.product-card--panel-overlay .product-card__hover-sku,
.product-card--panel-overlay .product-card__hover-attributes {
    color: #ffffff;
}

.product-card--panel-overlay .product-card__hover-description {
    color: #e2e8f0;
}

/* Содержимое панели */
.product-card__hover-panel-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__hover-category {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-card__hover-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.product-card__hover-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card__hover-rating .star-rating {
    font-size: 14px;
}

.product-card__hover-attributes {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.product-card__hover-sku {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* Панель больше не наезжает на кнопку — возвращаем обычный отступ */
.product-card__content {
padding-bottom: 16px;
}

/* Адаптивность панели */
@media (max-width: 768px) {
    .product-card__hover-panel {
        display: none; /* На мобильных скрываем панель */
    }
    .product-card__content {
        padding-bottom: 16px; /* Возвращаем обычный отступ */
    }
}





/* ==========================================
🔥 СТРАНИЦА "ИЗБРАННОЕ"
========================================== */
.nova-wishlist-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.nova-wishlist-page__title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.nova-wishlist-page__count {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.nova-wishlist-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.nova-wishlist-item {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nova-wishlist-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.nova-wishlist-item__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}

.nova-wishlist-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nova-wishlist-item:hover .nova-wishlist-item__image img {
    transform: scale(1.05);
}

.nova-wishlist-item__badge--sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.nova-wishlist-item__content {
    padding: 16px;
}

.nova-wishlist-item__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.nova-wishlist-item__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.nova-wishlist-item__title a:hover {
    color: var(--ns-primary, #c96a2e);
}

.nova-wishlist-item__sku {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.nova-wishlist-item__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
    margin-bottom: 12px;
}

.nova-wishlist-item__add-cart {
    width: 100%;
    padding: 12px;
    background: var(--ns-primary, #c96a2e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.nova-wishlist-item__add-cart:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
}

.nova-wishlist-item__out-of-stock {
    display: block;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.nova-wishlist-item__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 2;
}

.nova-wishlist-item__remove:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.nova-wishlist-page__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================
🔥 СТРАНИЦА "СРАВНЕНИЕ"
========================================== */
.nova-compare-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.nova-compare-page__title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 32px;
}

.nova-compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nova-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.nova-compare-table th,
.nova-compare-table td {
    padding: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.nova-compare-table__label-col {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-align: left;
    width: 180px;
    position: sticky;
    left: 0;
    z-index: 1;
}

.nova-compare-label {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-align: left;
}

.nova-compare-product-header {
    position: relative;
}

.nova-compare-product-header a {
    text-decoration: none;
    color: inherit;
}

.nova-compare-product-header img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.nova-compare-product-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1e293b;
}

.nova-compare-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ns-primary, #c96a2e);
    margin-bottom: 12px;
}

.nova-compare-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
}

.nova-compare-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.nova-compare-add-cart {
    padding: 10px 20px;
    background: var(--ns-primary, #c96a2e);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-compare-add-cart:hover {
    background: var(--ns-hover, #a85525);
}

.nova-compare-instock {
    color: #10b981;
    font-weight: 600;
}

.nova-compare-outofstock {
    color: #ef4444;
    font-weight: 600;
}

.nova-compare-value {
    font-size: 14px;
    color: #334155;
}

.nova-compare-page__actions {
    display: flex;
    gap: 12px;
}

/* ==========================================
🔥 КНОПКИ
========================================== */
.nova-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nova-btn--primary {
    background: var(--ns-primary, #c96a2e);
    color: #fff;
}

.nova-btn--primary:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 106, 46, 0.3);
}

.nova-btn--secondary {
    background: #f1f5f9;
    color: #475569;
}

.nova-btn--secondary:hover {
    background: #e2e8f0;
}

/* ==========================================
🔥 ПУСТОЙ СПИСОК
========================================== */
.nova-empty-list {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 40px auto;
}

.nova-empty-list__icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.nova-empty-list h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 12px;
}

.nova-empty-list p {
    color: #64748b;
    margin-bottom: 24px;
}

.nova-empty-list__btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ns-primary, #c96a2e);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nova-empty-list__btn:hover {
    background: var(--ns-hover, #a85525);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nova-wishlist-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .nova-wishlist-page__title,
    .nova-compare-page__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nova-wishlist-page__grid {
        grid-template-columns: 1fr;
    }
}




/* ==========================================
🔥 ИКОНКИ В ШАПКЕ (WoodMart Style)
========================================== */
.nova-wishlist-icon,
.nova-compare-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nova-wishlist-icon:hover,
.nova-compare-icon:hover {
    color: var(--ns-primary, #c96a2e);
    transform: scale(1.1);
}

.nova-wishlist-icon-inner,
.nova-compare-icon-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nova-wishlist-icon svg,
.nova-compare-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.nova-wishlist-icon img,
.nova-compare-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Счётчики */
.nova-wishlist-count,
.nova-compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--ns-primary, #c96a2e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.nova-wishlist-count:not(:empty),
.nova-compare-count:not(:empty) {
    transform: scale(1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nova-wishlist-icon,
    .nova-compare-icon {
        padding: 6px;
    }
    
    .nova-wishlist-icon svg,
    .nova-compare-icon svg {
        width: 18px;
        height: 18px;
    }
}




/* ==========================================
🔥 ЛЕЙАУТ МАГАЗИНА (WoodMart style)
========================================== */
.nova-shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    margin-top: 25px;
    margin-left: 85px;
    margin-right: 64px;
}

.nova-shop-content {
    min-width: 0;
}

/* 🔥 Оверлей ВСЕГДА position:fixed (выключен из потока на любых экранах) */
.nova-shop-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}
.nova-shop-sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 1025px) {
    .nova-shop-layout--sidebar-left  { grid-template-columns: 280px minmax(0, 1fr); }
    .nova-shop-layout--sidebar-right { grid-template-columns: minmax(0, 1fr) 280px; }
    .nova-shop-layout--sidebar-right .nova-shop-sidebar { order: 2; }
}

@media (min-width: 1025px) {
/* Сайдбар поверх карточек, чтобы flyout не перекрывался */
.nova-shop-sidebar { position: relative; z-index: 40; }
.nova-shop-content { position: relative; z-index: 1; }
.nova-shop-sidebar__inner {
position: sticky;
top: 100px;
max-height: none;      /* 🔥 БЕЗ скролла и ограничения высоты */
overflow: visible;     /* 🔥 flyout не обрезается */
padding-right: 10px;
}
.nova-shop-sidebar__close { display: none; }
}









/* ==========================================
📁 КАТЕГОРИИ: контекстный список + flyout вбок
========================================== */
.nsf-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nsf-cat-item { position: relative; }
.nsf-cat-row { display: flex; align-items: center; gap: 6px; }
.nsf-cat-row > a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--nsf-text, #475569);
    text-decoration: none;
    font-size: 14px;
}
.nsf-cat-row > a:hover .nova-filter-label { color: var(--nsf-accent, #019f91); }
.nsf-cat-item.is-current > .nsf-cat-row > a .nova-filter-label {
    color: var(--nsf-accent, #019f91);
    font-weight: 700;
}
/* Стрелка-переключатель */
.nsf-cat-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    padding: 2px 7px;
    border-radius: 6px;
    transition: .2s;
}
.nsf-cat-toggle:hover { color: var(--nsf-accent, #019f91); background: #f1f5f9; }
.nsf-cat-item.is-open > .nsf-cat-row .nsf-cat-toggle {
    transform: rotate(90deg);
    color: var(--nsf-accent, #019f91);
}
/* 🔥 Flyout с подкатегориями — выезжает ВБОК при наведении */
.nsf-cat-flyout {
    position: absolute;
    left: calc(100% + 10px);
    top: -10px;
    min-width: 230px;
    max-width: 280px;
    background: #fff;
    border: 1px solid var(--nsf-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
    padding: 10px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 80;
}
.nsf-cat-flyout ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nsf-cat-flyout a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--nsf-text, #475569);
    text-decoration: none;
    font-size: 13px;
}
.nsf-cat-flyout a:hover .nova-filter-label { color: var(--nsf-accent, #019f91); }
.nsf-cat-item:hover > .nsf-cat-flyout,
.nsf-cat-item.is-open > .nsf-cat-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
/* Мобильные: flyout раскрывается вниз по клику на стрелку */
@media (max-width: 1024px) {
    .nsf-cat-flyout {
        position: static;
        min-width: 0;
        max-width: none;
        border: 0;
        box-shadow: none;
        padding: 6px 0 2px 12px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nsf-cat-item.is-open > .nsf-cat-flyout { display: block; }
}







/* ---------- САЙДБАР: мобильные (off-canvas) ---------- */
@media (max-width: 1024px) {
    .nova-shop-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: #ffffff;
        z-index: 99999;
        transform: translateX(-105%);
        transition: transform 0.35s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    }
    .nova-shop-layout--sidebar-right .nova-shop-sidebar {
        left: auto; right: 0;
        transform: translateX(105%);
    }
    .nova-shop-sidebar.is-open { transform: none !important; }
    .nova-shop-sidebar__inner {
        height: 100%;
        overflow-y: auto;
        padding: 20px;
    }
}

/* ---------- КНОПКА "ФИЛЬТРЫ" (только мобильные) ---------- */
.nova-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nova-filters-toggle:hover {
    border-color: var(--ns-primary, #c96a2e);
    color: var(--ns-primary, #c96a2e);
}
@media (max-width: 1024px) {
    .nova-filters-toggle { display: inline-flex; }
}

/* ---------- ОФОРМЛЕНИЕ ВИДЖЕТОВ (WoodMart style) ---------- */
.nova-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
}

.nova-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nova-widget li a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.nova-widget li a:hover { color: var(--ns-primary, #c96a2e); }
.nova-widget li .count,
.nova-widget li .count-amount {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
}
.nova-widget li.current-cat > a {
    color: var(--ns-primary, #c96a2e);
    font-weight: 600;
}


/* ==========================================
   🔥 ФИКС: убираем легаси-clearfix WooCommerce,
   который ломает grid-сетку (пустые ячейки)
========================================== */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
    clear: none !important;
}




/* ==========================================
   🔥 ЦЕНА + КНОПКА "В КОРЗИНУ" В ОДНОЙ СТРОКЕ
========================================== */
.product-card__price-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: nowrap;
}

.product-card__price-cart-row .product-card__price {
    
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.product-card__price-cart-row .product-card__price del {
    font-size: 10px;
    color: #c26060;
    font-weight: 400;
}

.product-card__price-cart-row .product-card__price ins {
    text-decoration: none;
}

.product-card__price-cart-row .product-card__add-to-cart {
    margin-top: 0;
    flex: 0 0 auto;
}

/* Кнопка — компактная, в одну строку с ценой */
.product-card__price-cart-row .product-card__add-to-cart-btn {
    width: auto !important;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    background: #2f3a53;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 0px 12px -7px blue;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 69px;
}

.product-card__price-cart-row .product-card__add-to-cart-btn:hover {
    background:  #10b982;
    transform: translateY(-1px);
    box-shadow: 0px 0px 12px -7px blue;
}

/* Состояние "Добавлено" (галочка) */
.product-card__add-to-cart-btn.added {
    background: #10b981 !important;
    pointer-events: none;
}

.product-card__btn-check {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Состояние loading (спиннер WC) */
.product-card__add-to-cart-btn.loading {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.product-card__add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: novaSpin 0.6s linear infinite;
}

@keyframes novaSpin {
    to { transform: rotate(360deg); }
}

/* Не в наличии — серая кнопка */
.product-card--out-of-stock .product-card__add-to-cart-btn {
    background: #94a3b8;
    cursor: not-allowed;
}

.product-card--out-of-stock .product-card__add-to-cart-btn:hover {
    transform: none;
    box-shadow: none;
}

/* На очень узких карточках (мобилки) — кнопка под ценой */
@media (max-width: 480px) {
    .product-card__price-cart-row {
        flex-wrap: wrap;
        gap: 8px;
               display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-content: flex-start;
    }
    .product-card__price-cart-row .product-card__add-to-cart-btn {
        width: 100% !important;
        padding: 11px 16px;
 
    }
    
    .nova-shop-layout{
        margin-left: 25px;
    margin-right: 25px;
    
    }
}

/* ==========================================
   🔥 TOAST УВЕДОМЛЕНИЯ ПРИ ДОБАВЛЕНИИ
========================================== */
.nova-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    z-index: 999999;
    max-width: 380px;
    width: calc(100% - 60px);
    transform: translateY(30px) translateX(30px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.nova-cart-toast--visible {
    transform: translateY(0) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nova-cart-toast--success {
    border-left: 4px solid #10b981;
}

.nova-cart-toast--error {
    border-left: 4px solid #ef4444;
}

.nova-cart-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #10b981;
}

.nova-cart-toast--error .nova-cart-toast__icon {
    background: #fee2e2;
    color: #ef4444;
}

.nova-cart-toast__content {
    flex: 1;
    min-width: 0;
}

.nova-cart-toast__message {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 4px;
}

.nova-cart-toast__link {
    font-size: 13px;
    color: var(--ns-primary, #c96a2e);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 2px;
    transition: color 0.2s;
}

.nova-cart-toast__link:hover {
    color: var(--ns-hover, #a85525);
    text-decoration: underline;
}

.nova-cart-toast__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin: -4px -4px 0 0;
}

.nova-cart-toast__close:hover {
    background: #ef4444;
    color: #ffffff;
}

@media (max-width: 600px) {
    .nova-cart-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}



/* ==========================================
   🔥 ФИКС: скрываем нативную ссылку "Просмотр корзины"
   (WC вставляет её после AJAX и она ломает карточку)
========================================== */
.product-card .added_to_cart {
    display: none !important;
}

/* Цена не переносится по строкам */
.product-card__price-cart-row .product-card__price {
    
    white-space: nowrap;
}

/* ==========================================
   🛒 ТОВАР УЖЕ В КОРЗИНЕ (метка)
========================================== */
.product-card__add-to-cart-btn.in-cart,
.product-card__add-to-cart-btn.added {
    background: #10b981 !important;
}

.product-card__add-to-cart-btn.in-cart:hover,
.product-card__add-to-cart-btn.added:hover {
    background: #059669 !important;
    transform: none;
    box-shadow: none;
}

/* Лёгкая подсветка карточки товара в корзине (необязательно, но красиво) */
.product-card--in-cart .product-card__image-wrapper {
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.nova-cart-toast--info { border-left: 4px solid #3b82f6; }
.nova-cart-toast--info .nova-cart-toast__icon { background: #dbeafe; color: #3b82f6; }




.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 1em;
    padding-left: 87px;
    padding-top: 20px;
}



/* ==========================================
🔥 ТУЛБАР АРХИВА (адаптив)
========================================== */
@media (max-width: 768px) {
    .woocommerce-result-count {
        float: none;
        width: 100%;
        margin: 0 0 10px;
    }
    .woocommerce-ordering {
        float: none;
        width: 100%;
        margin: 0 0 15px;
    }
    .woocommerce-ordering select {
        width: 100%;
    }
}



/* ============================================
   🔥 Убираем стандартные хвосты WC после кнопки
   ============================================ */
.added_to_cart,
a.added_to_cart.wc-forward {
    display: none !important;
}

/* ============================================
   🔥 Toast — ВНИЗУ ПО ЦЕНТРУ
   ============================================ */
.nova-cart-toast {
    left: 0% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translate(-50%, 30px) !important;
    max-width: calc(100vw - 32px);
}
.nova-cart-toast--visible {
    transform: translate(-50%, 0) !important;
}

/* ============================================
   🔥 Dropdown-корзина: открытие по наведению (CSS-страховка)
   ============================================ */
.nova-element-cart { position: relative; }
.nova-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
}
.nova-sidecart-trigger:hover ~ .nova-cart-dropdown,
.nova-cart-dropdown:hover {
    display: block;
}




/* ============================================
   🏷️ БЕЙДЖИ ТОВАРОВ: обёртка для стека (Новинка сверху, Скидка снизу)
   ============================================ */
.product-card__image-wrapper {
    position: relative; /* если ещё не задано */
}

/* Обёртка всех бейджей — прижата к левому верхнему углу */
.product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;                    /* расстояние между бейджами */
    pointer-events: none;
}

/* Сбрасываем absolute у самих бейджей внутри обёртки — они в потоке flex */
.product-card__badges .product-card__badge {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    pointer-events: auto;
    display: inline-block;
    width: fit-content;
}

/* Адаптив: на мобильных бейджи мельче */
@media (max-width: 768px) {
    .product-card__badges { top: 8px; left: 8px; gap: 4px; }
    .product-card__badge { font-size: 11px !important; padding: 3px 8px !important; }
}




/* ==========================================
🔥 ОПТОВАЯ ЦЕНА НАД СКИДКОЙ
========================================== */
.wholesale-above {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 -18px;
}
/* 🔥 Прижимаем надпись к цене (цена прижата к низу карточки) */
.product-card__content > .wholesale-above { margin-top: auto; }
.product-card__content > .wholesale-above + .product-card__price-cart-row { margin-top: 0; }

/* ==========================================
🔥 СЕРАЯ СТАРАЯ ЦЕНА НА СТРАНИЦЕ ТОВАРА
========================================== */
.single-product del,
.single-product del .woocommerce-Price-amount.amount,
.single-product del .woocommerce-Price-amount.amount bdi,
.single-product del .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    color: #999 !important;
    opacity: .7 !important;
    text-decoration-color: #999 !important;
}







/* ===== Расширенные стили фильтров (читает переменные из админки) ===== */
.nova-widget__title { font-size: var(--nsf-title-fs, 14px); }
.nova-filter-widget { padding: var(--nsf-widget-pad, 16px); }
.nsf-master-form { gap: var(--nsf-widget-gap, 18px); }
.nova-filter-widget li a, .nsf-cb label { font-size: var(--nsf-label-fs, 14px); }
.nova-filter-widget .count { font-size: var(--nsf-count-fs, 12px); }
.nova-filter-box {
    width: var(--nsf-cb-size, 17px); height: var(--nsf-cb-size, 17px);
    border-radius: var(--nsf-cb-radius, 5px);
    border-color: var(--nsf-cb-border, #cbd5e1);
}
.nsf-range-track, .nsf-range-fill { height: var(--nsf-slider-h, 4px); }
.nsf-range input[type="range"]::-webkit-slider-thumb { width: var(--nsf-slider-thumb, 16px); height: var(--nsf-slider-thumb, 16px); }
.nsf-range input[type="range"]::-moz-range-thumb { width: var(--nsf-slider-thumb, 16px); height: var(--nsf-slider-thumb, 16px); }
.nova-filter-apply {
    border-radius: var(--nsf-apply-radius, 999px);
    font-size: var(--nsf-apply-fs, 13px);
    padding: var(--nsf-apply-pad, 7px) calc(var(--nsf-apply-pad, 7px) * 1.7);
}
.nsf-reset-all { font-size: var(--nsf-reset-fs, 12px); color: var(--nsf-reset-color, #475569); }
.nsf-reset-all:hover { color: var(--nsf-reset-hover, #019f91); }
.nova-filter-widget li a:hover .nova-filter-label { color: var(--nsf-hover, #019f91); }
.nova-filter-widget ul.children { padding-left: var(--nsf-cat-indent, 14px); }









/* 💰 «Цена по запросу» */
.novashop-price-request {
	color: var(--ns-primary, #c96a2e);
	font-weight: 700;
	font-size: 12px;

	padding: 4px 12px;

	display: inline-block;
	white-space: nowrap;
}
.product-card__price-cart-row .novashop-price-request {
	font-size: 12px;
	padding: 3px 8px;
}
.woocommerce-cart .novashop-price-request,
.woocommerce-checkout .novashop-price-request {
	font-size: 14px;
}
