/* ============================================================
   ChiliMarket — main.css
   1) База из макета
   2) Стили WooCommerce под наш дизайн
   ============================================================ */

/* ============================================================
   1. БАЗА ИЗ МАКЕТА
   ============================================================ */

:root {
    --primary: #E11D48;
    --primary-green: #15803D;
    --primary-hover: #BE123C;
    --bg-light: #F9FAFB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --radius: 12px;
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* === ЕДИНАЯ АДАПТИВНАЯ ШАПКА === */
body > header { background: #ffffff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.top-bar { background: #F3F4F6; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.address-picker { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.address-text { font-weight: 600; font-size: 13px; }
.btn-change-address { color: var(--primary); font-weight: 600; padding: 2px 6px; border-radius: 6px; font-size: 13px; transition: background 0.2s; }
.btn-change-address:hover { background: #FFE4E6; }
.user-login-btn { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--text-main); transition: color 0.2s; }
.user-login-btn:hover { color: var(--primary); }

.main-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; position: relative; }
.header-top-row { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; transition: opacity 0.2s; }
.logo:hover { opacity: 0.85; }
.logo-icon-wrap { display: flex; align-items: center; color: var(--primary); }
.logo-text { display: flex; flex-direction: column; line-height: 0.9; text-transform: uppercase; font-weight: 900; letter-spacing: -0.5px; }
.logo-text .chili { color: var(--primary); font-size: 20px; }
.logo-text .market { color: var(--primary-green); font-size: 17px; }

.btn-catalog { background: var(--primary); color: white; font-weight: 600; padding: 10px 18px; border-radius: var(--radius); display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; font-size: 15px; }
.btn-catalog:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }

.search-bar { flex: 1; max-width: 500px; position: relative; display: flex; align-items: center; }
.search-bar input { width: 100%; padding: 10px 42px 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 14px; background: var(--bg-light); transition: border-color 0.2s, background 0.2s; }
.search-bar input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search-bar .search-icon-btn { position: absolute; right: 12px; color: var(--text-muted); display: flex; transition: color 0.2s; }
.search-bar .search-icon-btn:hover { color: var(--primary); }

.mobile-search-btn { display: none; color: var(--text-main); transition: color 0.2s; }
.mobile-search-btn:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-main); font-size: 12px; font-weight: 500; transition: color 0.2s; position: relative; }
.action-btn:hover { color: var(--primary); }
.action-badge { position: absolute; top: -4px; right: 4px; background: var(--primary); color: white; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.cart-btn-wrapper { background: #FFF1F2; color: var(--primary); padding: 8px 16px; border-radius: var(--radius); display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; position: relative; transition: all 0.2s ease; }
.cart-btn-wrapper:hover { background: #FFE4E6; transform: translateY(-1px); }
.cart-badge { background: var(--primary); color: white; font-size: 11px; padding: 2px 7px; border-radius: 10px; }

.sub-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; font-size: clamp(8px, 1.8vw, 14px); font-weight: 500; color: var(--text-muted); overflow: hidden; }
.sub-header a { display: inline-flex; align-items: center; gap: clamp(2px, 0.5vw, 6px); padding: 4px 8px; border-radius: 8px; transition: all 0.2s ease; white-space: nowrap; }
.sub-header a:hover { color: var(--primary); background: #FFF1F2; transform: translateY(-1px); }
.sub-header a.highlight { color: var(--primary); font-weight: 600; }
.sub-header svg { width: clamp(10px, 1.8vw, 16px); height: clamp(10px, 1.8vw, 16px); }

/* === ВЫДВИЖНЫЕ ПАНЕЛИ === */
.drawer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.drawer-overlay.active { opacity: 1; pointer-events: all; }

/* Каталог */
.catalog-drawer { position: fixed; top: 0; left: -320px; width: 320px; height: 100%; background: white; z-index: 201; box-shadow: var(--shadow-md); transition: left 0.3s ease; display: flex; flex-direction: column; }
.catalog-drawer.active { left: 0; }

.drawer-header { padding: 18px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; }
.drawer-content { padding: 12px 0; overflow-y: auto; flex: 1; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--text-main); font-weight: 500; font-size: 15px; transition: all 0.2s ease; border-left: 3px solid transparent; }
.drawer-item:hover { background: #FFF1F2; color: var(--primary); border-left-color: var(--primary); padding-left: 24px; }

/* Корзина (панель) */
.cart-drawer { position: fixed; top: 0; right: -380px; width: 380px; height: 100%; background: white; z-index: 201; box-shadow: var(--shadow-md); transition: right 0.3s ease; display: flex; flex-direction: column; }
.cart-drawer.active { right: 0; }

/* --- Стили для содержимого мини-корзины WooCommerce --- */
.cart-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.cart-drawer .cart-items-list { padding: 16px; overflow-y: auto; flex: 1; }

.cart-drawer .cart_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer .cart_list li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; position: relative; }
.cart-drawer .cart_list li:last-child { border-bottom: none; padding-bottom: 0; }

.cart-drawer .cart_list li a.cart-item-link { display: flex; align-items: center; gap: 12px; flex: 1; color: inherit; text-decoration: none; }
.cart-drawer .cart_list li img { width: 55px !important; height: 55px !important; border-radius: 8px; object-fit: cover; margin: 0 !important; float: none !important; background-color: var(--bg-light); }

.cart-item-info { flex: 1; padding-right: 20px; }
.cart-item-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-main); }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 4px; }

/* Кнопка удаления (крестик) */
.cart-drawer .cart_list li a.remove { position: absolute; top: 0; right: 0; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: #FFF1F2 !important; color: var(--primary) !important; font-size: 14px; font-weight: 700; transition: all 0.2s; display: flex !important; align-items: center; justify-content: center; z-index: 2; text-decoration: none; }
.cart-drawer .cart_list li a.remove:hover { background: var(--primary) !important; color: #fff !important; }

/* Подвал корзины */
.cart-drawer .cart-footer { padding: 20px; border-top: 1px solid var(--border-color); background: var(--bg-light); display: flex; flex-direction: column; gap: 8px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.cart-summary-row.total { font-size: 18px; font-weight: 800; color: var(--text-main); margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--border-color); }
.cart-drawer .btn-checkout { width: 100%; background: var(--primary); color: white; padding: 12px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-align: center; margin-top: 8px; transition: all 0.2s ease; display: block; text-decoration: none; }
.cart-drawer .btn-checkout:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2); }

/* Пустая корзина */
.cart-empty-wrapper { display: flex; align-items: center; justify-content: center; height: 100%; padding: 40px 20px; text-align: center; }
.cart-empty-wrapper .woocommerce-mini-cart__empty-message { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Мобильное окно поиска */
.mobile-search-modal { position: fixed; top: 0; left: 0; right: 0; background: white; z-index: 250; padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; gap: 10px; align-items: center; transform: translateY(-100%); transition: transform 0.3s ease; box-shadow: var(--shadow-md); }
.mobile-search-modal.active { transform: translateY(0); }
.mobile-search-modal input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 15px; outline: none; }
.mobile-search-modal input:focus { border-color: var(--primary); }

/* Адаптивность корзины на мобильных */
@media (max-width: 768px) {
    .cart-drawer { width: 100%; right: -100%; }
}

/* МОДАЛЬНОЕ ОКНО КАРТОЧКИ ТОВАРА */
.product-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: white; padding: 24px; border-radius: 20px; z-index: 220; width: 90%; max-width: 520px; opacity: 0; pointer-events: none; transition: all 0.3s ease; box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
.product-modal.active { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.product-modal-close { position: absolute; top: 16px; right: 16px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.product-modal-close:hover { color: var(--primary); }
.product-modal-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.product-modal-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }

.product-modal-specs { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; padding: 12px 16px; background: var(--bg-light); border-radius: var(--radius); border: 1px solid var(--border-color); }
.spec-item { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.spec-label { color: var(--text-muted); position: relative; }
.spec-dots { flex: 1; border-bottom: 1px dotted var(--border-color); margin: 0 8px; }
.spec-value { font-weight: 600; color: var(--text-main); }

.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; text-align: center; }
.nutrition-card { background: #FFF1F2; padding: 8px 4px; border-radius: 8px; border: 1px solid #FFE4E6; }
.nutrition-value { font-weight: 700; font-size: 13px; color: var(--primary); }
.nutrition-label { font-size: 10px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; margin-top: 2px; }

.product-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }

/* === ОСНОВНОЙ КОНТЕНТ === */
main { flex: 1; padding: 30px 0; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.section-margin { margin-top: 48px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; transition: all 0.2s; position: relative; }
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-img-wrap { width: 100%; height: 160px; border-radius: 12px; overflow: hidden; background: var(--bg-light); margin-bottom: 12px; position: relative; display: block; cursor: pointer; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.card-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; line-height: 1.3; height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { font-size: 18px; font-weight: 800; color: var(--text-main); }
.card-price-unit { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.btn-card-add { background: #FFF1F2; color: var(--primary); padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.btn-card-add:hover { background: var(--primary); color: white !important; }

.btn-card-fav { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; z-index: 2; }
.btn-card-fav:hover { color: var(--primary); background: white; }

/* ПАГИНАЦИЯ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination-btn { min-width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border-color); background: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--text-main); transition: all 0.2s ease; }
.pagination-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-dots { color: var(--text-muted); padding: 0 4px; }

/* СЕО БЛОК */
.seo-section { background: white; border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; margin-top: 56px; }
.seo-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }
.seo-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; display: flex; flex-direction: column; gap: 12px; }

/* FOOTER */
footer { background: white; border-top: 1px solid var(--border-color); padding: 40px 0 20px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-bottom: 32px; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .search-bar { display: none; }
    .mobile-search-btn { display: flex; }
    .action-btn span { display: none; }
    .cart-text-details { display: none !important; }
    .cart-btn-wrapper { padding: 8px 10px; }
    .btn-catalog { padding: 8px 12px; font-size: 14px; }
    .logo-text .chili { font-size: 16px; }
    .logo-text .market { font-size: 13px; }
    .cart-drawer { width: 100%; right: -100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .seo-section { padding: 16px; }
}



/* ============================================================
   Навигация пользователя в шапке
   ============================================================ */
.user-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-main);
}

.user-greeting {
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 6px;
}

/* Ссылки: Профиль / Мои заказы / Выйти — как sub-header */
.user-nav a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-nav a:hover {
    color: var(--primary);
    background: #FFF1F2;
    transform: translateY(-1px);
}

.user-nav a:active {
    transform: translateY(0);
}

/* «Выйти» — чуть приглушённее, но по ховеру так же ярко */
.user-nav a.user-logout {
    color: var(--text-muted);
    font-weight: 500;
}
.user-nav a.user-logout:hover {
    color: var(--primary);
    background: #FFF1F2;
}

/* Разделители между ссылками */
.user-nav-sep {
    color: var(--border-color);
    user-select: none;
    padding: 0 2px;
}

/* Мобилка */
@media (max-width: 768px) {
    .user-greeting { display: none; }
    .user-nav { font-size: 12px; gap: 2px; }
    .user-nav a { padding: 3px 8px; }
    .user-nav-sep { padding: 0; }
}


/* ============================================================
   Модалка выбора адреса
   ============================================================ */

.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.address-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.address-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.25s ease;
}
.address-modal.active .address-modal-inner {
    transform: translateY(0) scale(1);
}

.address-form { display: flex; flex-direction: column; gap: 14px; }

/* Позиция для подсказок */
.address-field-wrap { position: relative; }

.address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 240px;
    overflow-y: auto;
    z-index: 20;
}
.address-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-main);
    line-height: 1.4;
}
.address-suggestion-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}
.address-suggestion-item:hover {
    background: #FFF1F2;
    color: var(--primary);
}
.address-suggestion-item:hover svg {
    color: var(--primary);
}

.address-map {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.address-guest-hint {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #FFF1F2;
    border: 1px solid #FFE4E6;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.address-guest-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}
.address-guest-hint a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 480px) {
    .address-modal-inner { padding: 24px 20px 22px; border-radius: 16px; }
    .address-map { height: 160px; }
}


/* ============================================================
   Модалка авторизации
   ============================================================ */
body.modal-open { overflow: hidden; }

.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.login-modal.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.25s ease;
}
.login-modal.active .login-modal-inner {
    transform: translateY(0) scale(1);
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
}
.login-modal-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.login-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
    line-height: 1.2;
}
.login-modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 22px;
    line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 14px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin-top: -4px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.login-remember input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.login-forgot {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.login-forgot:hover { color: var(--primary-hover); }

.login-error {
    background: #FFF1F2;
    border: 1px solid #FFE4E6;
    border-left: 3px solid var(--primary);
    color: var(--primary);
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
}

.login-submit {
    position: relative;
    background: var(--primary);
    color: #fff;
    padding: 13px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}
.login-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: chili-spin 0.7s linear infinite;
}

.login-register-hint {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}
.login-register-hint a {
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}
.login-register-hint a:hover { color: var(--primary-hover); }

@media (max-width: 480px) {
    .login-modal-inner { padding: 24px 20px 22px; border-radius: 16px; }
    .login-modal-title { font-size: 19px; }
}



/* ============================================================
   Избранное в шапке (интеграция с SkyNet Smart Favorites)
   ============================================================ */

.action-btn .fav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Счётчик плагина — позиционируем как наш action-badge */
.action-btn .fav-icon-wrap [class*="counter"],
.action-btn .fav-icon-wrap [class*="count"],
.action-btn .fav-icon-wrap [class*="badge"] {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--primary);
    color: #fff;
    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;
    pointer-events: none;
}

/* Иконка внутри плагина — размер и цвет */
.action-btn .fav-icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.2s;
}

.action-btn:hover .fav-icon-wrap svg {
    stroke: var(--primary);
}

/* Активное состояние (добавлено) — если плагин ставит класс */
.action-btn .fav-icon-wrap .active svg,
.action-btn .fav-icon-wrap .in-wishlist svg,
.action-btn .fav-icon-wrap [class*="added"] svg {
    fill: var(--primary);
    stroke: var(--primary);
}

/* Подпись */
.action-btn .action-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s;
    line-height: 1;
}

.action-btn:hover .action-label {
    color: var(--primary);
}



/* === Блоки-виджеты на главной — как SEO-карточка === */

/* Зоны-обёртки: только отступы, без стилей карточки */
.home-blocks-top,
.home-blocks-mid,
.home-blocks-bottom,
.home-blocks-seo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.home-blocks-top    { margin-bottom: 32px; }
.home-blocks-mid    { margin: 32px 0; }
.home-blocks-bottom { margin: 32px 0 0; }
.home-blocks-seo    { margin: 56px 0 0; }

/* Каждый виджет — карточка в рамке (1:1 как .seo-section) */
.home-block {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

/* Заголовок виджета — как .seo-title */
.home-block h2,
.home-block h3,
.home-block .widget-title,
.home-block .section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--text-main);
    line-height: 1.3;
}

/* Текст внутри карточки — как .seo-text */
.home-block p {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    line-height: 1.6;
}
.home-block p:last-child { margin-bottom: 0; }

.home-block ul,
.home-block ol {
    margin: 0 0 12px 20px;
    color: var(--text-muted);
}
.home-block li { margin-bottom: 6px; }
.home-block ul:last-child,
.home-block ol:last-child { margin-bottom: 0; }

.home-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.home-block a {
    color: var(--primary);
    text-decoration: underline;
}
.home-block a:hover { color: var(--primary-hover); }

/* Виджет «Изображение» — без лишних отступов */
.home-block .wp-caption,
.home-block figure { margin: 0; }
.home-block .wp-caption-text,
.home-block figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
}

/* Мобилка */
@media (max-width: 768px) {
    .home-block { padding: 16px; }
    .home-block h2,
    .home-block h3,
    .home-block .widget-title { font-size: 17px; }
    .home-blocks-top,
    .home-blocks-mid,
    .home-blocks-bottom,
    .home-blocks-seo { gap: 12px; }
}










/* ============================================================
   2. WOOCOMMERCE ПОД НАШ ДИЗАЙН
   ============================================================ */

/* --- Общая обёртка WooCommerce --- */
.woocommerce,
.woocommerce-page {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.woocommerce a:hover { color: var(--primary-hover); }

/* --- Уведомления (добавлено в корзину и т.п.) --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-main);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message { border-top-color: var(--primary-green); }
.woocommerce-info { border-top-color: #2563EB; }
.woocommerce-error { border-top-color: var(--primary); }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
    transition: background 0.2s;
}
.woocommerce-message .button:hover { background: var(--primary-hover); color: #fff; }

/* --- Сетка товаров (ul.products) --- */
.woocommerce ul.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 32px 0;
    padding: 0;
    list-style: none;
    clear: both;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
ul.products li.product {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    position: relative;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    text-align: left;
    overflow: hidden;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Картинка товара */
.woocommerce ul.products li.product a img,
ul.products li.product a img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 12px 0 !important;
    transition: transform 0.3s;
}
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}

/* Метки Sale / Out of stock */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    min-height: auto;
    line-height: 1.2;
    top: 18px;
    left: 18px;
    right: auto;
    position: absolute;
    z-index: 3;
    margin: 0;
}

/* Название */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-main);
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Рейтинг */
.woocommerce ul.products li.product .star-rating {
    font-size: 12px;
    margin: 0 0 8px 0;
    color: #F59E0B;
}

/* Цена */
.woocommerce ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.woocommerce ul.products li.product .price del {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
}

/* Обёртка цены + кнопка */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    background: #FFF1F2;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 0 auto !important;
    border: none;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background: var(--primary);
    color: #fff;
}
.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    padding-right: 30px;
    position: relative;
}
.woocommerce ul.products li.product .button.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: chili-spin 0.8s linear infinite;
}
.woocommerce ul.products li.product .added_to_cart {
    background: var(--primary-green);
    color: #fff;
    margin-left: 6px !important;
}

@keyframes chili-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Позиционируем «В корзину» в правый нижний угол, как в макете */
.woocommerce ul.products li.product .button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}
.woocommerce ul.products li.product .added_to_cart {
    position: absolute;
    right: 12px;
    bottom: 52px;
    z-index: 2;
}
/* И отступ справа у цены, чтобы не заезжала на кнопку */
.woocommerce ul.products li.product .price {
    padding-right: 110px;
    margin-top: auto !important;
    min-height: 40px;
    align-items: flex-end;
}

/* --- Пагинация WooCommerce --- */
.woocommerce nav.woocommerce-pagination {
    margin: 32px 0;
}
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    padding: 0 10px;
    text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- Результаты сортировки и счётчик --- */
.woocommerce .woocommerce-result-count {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px 0;
}
.woocommerce .woocommerce-ordering select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}
.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--primary);
}

/* --- Страница товара (одиночная) --- */
.woocommerce div.product {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}
.woocommerce div.product .product_title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}
.woocommerce div.product p.price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}
.woocommerce div.product p.price del {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
    opacity: 0.7;
    margin-right: 8px;
}
.woocommerce div.product p.price ins {
    text-decoration: none;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
}
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.woocommerce div.product form.cart .quantity {
    display: flex;
    align-items: center;
}
.woocommerce div.product form.cart .quantity input.qty {
    width: 70px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
}
.woocommerce div.product form.cart .quantity input.qty:focus {
    border-color: var(--primary);
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    border: none;
    transition: all 0.2s;
    text-transform: none;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.woocommerce div.product .product_meta {
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 20px;
}
.woocommerce div.product .product_meta a { color: var(--primary); }

/* Вкладки товара */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 32px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.woocommerce div.product .woocommerce-tabs .panel {
    background: #fff;
    padding: 0;
    margin: 0;
}

/* --- Мини-корзина (drawer) --- */
.widget_shopping_cart_content .cart_list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.widget_shopping_cart_content .cart_list li {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 12px 0;
    margin: 0;
    list-style: none;
    position: relative;
}
.widget_shopping_cart_content .cart_list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: var(--text-main);
    text-decoration: none;
}
.widget_shopping_cart_content .cart_list li img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 8px;
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
}
.widget_shopping_cart_content .cart_list li .quantity {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}
.widget_shopping_cart_content .cart_list li a.remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #FFF1F2 !important;
    color: var(--primary) !important;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.widget_shopping_cart_content .cart_list li a.remove:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Итого и кнопки в мини-корзине */
.widget_shopping_cart_content .total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px dashed var(--border-color);
}
.widget_shopping_cart_content .total strong { font-weight: 800; }
.widget_shopping_cart_content .total .amount { color: var(--text-main); }

.widget_shopping_cart_content .buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.widget_shopping_cart_content .buttons a.button {
    width: 100%;
    background: #FFF1F2;
    color: var(--primary);
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}
.widget_shopping_cart_content .buttons a.button:hover {
    background: #FFE4E6;
    color: var(--primary);
}
.widget_shopping_cart_content .buttons a.checkout {
    background: var(--primary) !important;
    color: #fff !important;
}
.widget_shopping_cart_content .buttons a.checkout:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}
.widget_shopping_cart_content .cart-empty {
    text-align: center;
    color: var(--text-muted);
    margin: 40px 0 20px;
    font-size: 13px;
    list-style: none;
}
.widget_shopping_cart_content .return-to-shop { text-align: center; }
.widget_shopping_cart_content .return-to-shop a.button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
}

/* --- Корзина и checkout (страницы) --- */
.woocommerce table.shop_table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}
.woocommerce table.shop_table th {
    background: var(--bg-light);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}
.woocommerce table.shop_table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}
.woocommerce table.shop_table .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.woocommerce table.shop_table .product-name a {
    color: var(--text-main);
    font-weight: 600;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--primary); }

.woocommerce .cart_totals,
.woocommerce .cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}
.woocommerce .cart_totals h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.woocommerce .cart_totals .shop_table { border: none; }
.woocommerce .cart_totals .shop_table th,
.woocommerce .cart_totals .shop_table td {
    border: none;
    padding: 8px 0;
    background: transparent;
    text-transform: none;
    font-size: 14px;
    color: var(--text-muted);
}
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}
.woocommerce .checkout-button,
.woocommerce .wc-forward.checkout-button {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}
.woocommerce .checkout-button:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* Поля форм */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--primary);
}
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}
.woocommerce form .form-row .required { color: var(--primary); }

/* --- Уведомление «нет товаров» --- */
.woocommerce-no-products-found {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Хлебные крошки --- */
.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}
.woocommerce .woocommerce-breadcrumb a {
    color: var(--primary);
}

/* --- Дополнительная адаптивность WooCommerce --- */
@media (max-width: 768px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .woocommerce ul.products li.product .price {
        padding-right: 0;
        min-height: auto;
    }
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        position: static;
        margin: 8px 0 0 auto !important;
    }
    .woocommerce div.product {
        padding: 16px;
    }
    .woocommerce div.product .product_title {
        font-size: 20px;
    }
    .woocommerce div.product p.price {
        font-size: 22px;
    }
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .woocommerce table.shop_table .product-thumbnail { display: none; }
}





/* ============================================================
   СТРАНИЦА ТОВАРА (single product)
   ============================================================ */

/* Основная секция */
.woocommerce div.product {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 36px;
}

/* Галерея */
.product-gallery { width: 100%; position: relative; }

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}
.main-image img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.gallery-thumb {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    margin: 0 !important;
}

/* Информация о товаре */
.product-info { display: flex; flex-direction: column; }

.product-info .product-title,
.product-info h1.product_title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
    color: var(--text-main);
}

/* Рейтинг */
.rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.stars-wrap { display: flex; align-items: center; gap: 2px; color: var(--star-color, #F59E0B); }
.stars-wrap .star-rating { margin: 0; color: var(--star-color, #F59E0B); }
.rating-value { font-weight: 700; font-size: 15px; }
.reviews-count {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}
.reviews-count:hover { color: var(--primary); }

/* Карточка с ценой */
.price-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.price-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.price-card .current-price,
.price-card .price {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: var(--text-main) !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.price-card .price del {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.6;
    color: var(--text-muted);
}
.price-card .price ins {
    text-decoration: none;
    color: var(--primary);
}
.price-unit { font-size: 14px; color: var(--text-muted); }

/* Кнопка избранного рядом с ценой */
.btn-fav-card {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-fav-card:hover { border-color: var(--primary); color: var(--primary); background: #FFF1F2; }
.btn-fav-card svg { width: 20px; height: 20px; }
.btn-fav-card a { color: inherit; display: flex; align-items: center; }
.btn-fav-card .active svg,
.btn-fav-card [class*="added"] svg,
.btn-fav-card [class*="in-wishlist"] svg {
    fill: var(--primary);
    stroke: var(--primary);
}

/* Форма добавления в корзину */
.cart-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Quantity */
.woocommerce div.product form.cart {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
    width: 100%;
    flex-wrap: nowrap;
}

.woocommerce div.product form.cart .quantity {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0;
    height: 46px;
    position: relative;
    flex-shrink: 0;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 60px;
    height: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Кнопки +/- вокруг qty (добавим через JS) */
.qty-btn-custom {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent;
    flex-shrink: 0;
}
.qty-btn-custom:hover { background: var(--bg-light); color: var(--primary); }

/* Кнопка "В корзину" */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product .single_add_to_cart_button {
    flex: 1;
    background: var(--primary) !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: var(--radius) !important;
    font-weight: 700;
    font-size: 16px;
    border: none;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: none;
    line-height: 1;
    margin: 0 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Краткое описание */
.product-short-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 20px;
}

/* Секция "О товаре" */
.details-section,
.reviews-section {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 36px;
}

.section-h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.spec-item {
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.spec-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Секция отзывов */
.woocommerce #reviews { padding: 0; }
.woocommerce #reviews h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}
.woocommerce #reviews .woocommerce-Reviews-title { display: none; }
.woocommerce #reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.woocommerce #reviews ol.commentlist li {
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 16px 0 !important;
    margin: 0 !important;
    list-style: none;
}
.woocommerce #reviews ol.commentlist li:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}
.woocommerce #reviews .comment_container { display: flex; gap: 12px; }
.woocommerce #reviews .comment_container img.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: static !important;
    float: none !important;
    border: none;
    padding: 0;
    margin: 0;
}
.woocommerce #reviews .comment-text {
    flex: 1;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce #reviews .comment-text .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.woocommerce #reviews .comment-text .meta strong {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}
.woocommerce #reviews .comment-text .description p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 6px 0 0;
}
.woocommerce #reviews .star-rating {
    color: var(--star-color, #F59E0B);
    margin: 0 0 4px;
}

/* Форма отзыва */
.woocommerce #review_form_wrapper {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 24px;
}
.woocommerce #review_form #respond p { margin: 0 0 12px 0; }
.woocommerce #review_form label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
}
.woocommerce #review_form input[type="text"],
.woocommerce #review_form input[type="email"],
.woocommerce #review_form textarea,
.woocommerce #review_form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.woocommerce #review_form input:focus,
.woocommerce #review_form textarea:focus {
    border-color: var(--primary);
}
.woocommerce #review_form textarea { height: 100px; resize: vertical; }
.woocommerce #review_form .comment-form-rating .stars a {
    color: var(--star-color, #F59E0B);
}
.woocommerce #review_form .form-submit input[type="submit"] {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius) !important;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.woocommerce #review_form .form-submit input[type="submit"]:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
    }
    .main-image { height: 260px; }
    .product-info .product-title,
    .product-info h1.product_title { font-size: 22px; }
    .details-section,
    .reviews-section { padding: 16px; }
    .price-card .current-price,
    .price-card .price { font-size: 24px !important; }
}



/* ============================================================
   СТРАНИЦА ТОВАРА — доработки
   ============================================================ */

/* Цифра внутри input.qty */
.woocommerce div.product form.cart .quantity input.qty {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: var(--text-main) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    -webkit-appearance: none;
}
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Остаток на складе */
.stock-info {
    margin-top: 12px;
    font-size: 13px;
}
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.stock-badge svg { flex-shrink: 0; }
.stock-in {
    background: #ECFDF5;
    color: var(--primary-green);
}
.stock-out {
    background: #FEF2F2;
    color: var(--primary);
}

/* Форма отзывов */
.review-form-wrapper {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 24px;
}
.review-form-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--text-main);
}
.review-form-wrapper p { margin: 0 0 12px 0; }
.review-form-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}
.review-form-wrapper input[type="text"],
.review-form-wrapper input[type="email"],
.review-form-wrapper textarea,
.review-form-wrapper select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.review-form-wrapper input:focus,
.review-form-wrapper textarea:focus,
.review-form-wrapper select:focus {
    border-color: var(--primary);
}
.review-form-wrapper textarea {
    height: 100px;
    resize: vertical;
}
.review-form-wrapper .required {
    color: var(--primary);
}
.review-form-wrapper .form-submit input[type="submit"],
.review-form-wrapper .submit {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius) !important;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}
.review-form-wrapper .form-submit input[type="submit"]:hover,
.review-form-wrapper .submit:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}

/* Нет отзывов */
.no-reviews {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* Звёзды в .stars-wrap (для ручного рендера) */
.stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--star-color, #F59E0B);
    font-size: 16px;
    letter-spacing: 1px;
}

/* Скрываем вторую кнопку избранного от плагина (в форме корзины) */
.woocommerce div.product form.cart [class*="skynsmfa"],
.woocommerce div.product form.cart [class*="wishlist"]:not(.btn-fav-card):not(.btn-fav-card *),
.woocommerce div.product form.cart .skynsmfa-btn,
.woocommerce div.product form.cart .skynsmfa-add-to-wishlist {
    display: none !important;
}


/* ============================================================
   ОТЗЫВЫ НА СТРАНИЦЕ ТОВАРА
   ============================================================ */

/* Главная белая карточка секции */
.reviews-section {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 36px;
    margin-bottom: 36px;
}

/* Обертка внутри */
.woocommerce-Reviews {
    margin: 0;
    padding: 0;
}

/* Шапка отзывов (заголовок + кнопка) */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Кнопка "Оставить отзыв" */
.btn-write-review {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.btn-write-review:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

/* Список отзывов */
.reviews-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* Карточка одного отзыва */
.review-card {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.review-card:first-child {
    padding-top: 0;
}
.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Автор и дата */
.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Звездочки */
.stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--star-color, #F59E0B);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Текст отзыва */
.review-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-top: 4px;
    word-break: break-word;
}

/* Заглушка, если нет отзывов */
.no-reviews {
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px 0;
}

/* ============================================================
   ФОРМА ДОБАВЛЕНИЯ ОТЗЫВА
   ============================================================ */

/* Обертка формы (скрыта по умолчанию) */
.review-form-wrapper {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.review-form-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--text-main);
}

.review-form-wrapper p {
    margin: 0 0 16px 0;
}

.review-form-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

/* Инпуты и текстовое поле */
.review-form-wrapper input[type="text"],
.review-form-wrapper input[type="email"],
.review-form-wrapper textarea,
.review-form-wrapper select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none;
}

.review-form-wrapper input[type="text"]:focus,
.review-form-wrapper input[type="email"]:focus,
.review-form-wrapper textarea:focus,
.review-form-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.review-form-wrapper textarea {
    height: 120px;
    resize: vertical;
}

.review-form-wrapper .required {
    color: var(--primary);
}

/* Кнопка отправки */
.review-form-wrapper .form-submit {
    margin-bottom: 0;
}

.review-form-wrapper .form-submit input[type="submit"],
.review-form-wrapper .submit {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius) !important;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    font-family: inherit;
    width: auto;
    display: inline-block;
}

.review-form-wrapper .form-submit input[type="submit"]:hover,
.review-form-wrapper .submit:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ============================================================ */
@media (max-width: 768px) {
    .reviews-section {
        padding: 16px;
    }
    .review-form-wrapper {
        padding: 16px;
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-write-review {
        width: 100%;
        text-align: center;
    }
}




/* ============================================================
   СОСТОЯНИЕ КНОПКИ "ДОБАВЛЕНО"
   ============================================================ */

/* Скрываем стандартную кнопку "Просмотр корзины" */
.woocommerce a.added_to_cart,
.woocommerce ul.products li.product a.added_to_cart {
    display: none !important;
}

/* В состоянии .added скрываем текст "В корзину", убираем галочки */
.woocommerce ul.products li.product .btn-card-add.added {
    font-size: 0 !important; /* Убираем старый текст */
    background: #ECFDF5 !important; /* Нежно-зеленый фон */
    color: #15803D !important; /* Темно-зеленый текст */
    pointer-events: none; /* Запрещаем кликать повторно, пока идет анимация */
}

/* Вставляем текст "Добавлено" */
.woocommerce ul.products li.product .btn-card-add.added::before {
    content: "Добавлено";
    font-size: 12px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* На случай, если WooCommerce добавит свой псевдоэлемент (галочку) - скрываем */
.woocommerce ul.products li.product .btn-card-add.added::after {
    display: none !important;
    content: none !important;
}



/* ============================================================
   КАРТОЧКА ТОВАРА (ФИНАЛЬНАЯ ВЕРСТКА)
   ============================================================ */

/* Строка Цена + Кнопка */
.card-row-price-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.woocommerce ul.products li.product .card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

.woocommerce ul.products li.product .btn-card-add {
    background: #FFF1F2;
    color: var(--primary);
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: static !important;
    margin: 0 !important;
    border: none;
    flex-shrink: 0;
}
.woocommerce ul.products li.product .btn-card-add:hover {
    background: var(--primary);
    color: #fff;
}

/* Строка Количество (на всю ширину) */
.card-row-qty {
    margin-bottom: 10px;
    width: 100%;
}

.quantity-picker.card-qty {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    height: 36px;
    width: 100%;
    justify-content: space-between;
}
.quantity-picker.card-qty .qty-btn {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s;
    background: transparent;
}
.quantity-picker.card-qty .qty-btn:hover {
    background: #E5E7EB;
    color: var(--primary);
}
.quantity-picker.card-qty .qty-input {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    width: 100%;
}

/* УБИРАЕМ СТРЕЛОЧКИ В ИНПУТЕ */
.quantity-picker.card-qty .qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-picker.card-qty .qty-input::-webkit-outer-spin-button,
.quantity-picker.card-qty .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Строка Наличие (последняя) */
.card-row-stock {
    margin-top: auto;
    font-size: 12px;
}

.card-row-stock .stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

/* Убираем старые стили нижней части, если они мешают */
.woocommerce ul.products li.product .card-bottom {
    display: none;
}


.woocommerce ul.products li.product .card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product .card-price-unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================================
   ФИКС ПРЫЖКОВ КНОПКИ ПРИ ЗАГРУЗКЕ (LOADING)
   ============================================================ */

/* 1. Фиксируем минимальную ширину и отступы, чтобы кнопка не сжималась */
.woocommerce ul.products li.product .btn-card-add {
    min-width: 92px; /* Чтобы кнопка не прыгала, когда текст исчезает */
    padding: 0 10px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s; /* Убираем дергающуюся анимацию */
}

/* 2. Убираем стандартный спиннер и прозрачность WooCommerce при загрузке */
.woocommerce ul.products li.product .btn-card-add.loading {
    opacity: 1 !important; /* Не делаем кнопку бледной */
    padding: 0 10px !important; /* Отменяем стандартный padding-right: 30px */
    background: #FFF1F2 !important;
    color: var(--primary) !important;
    pointer-events: none;
}

/* 3. Убираем стандартный крутящийся кружок WooCommerce */
.woocommerce ul.products li.product .btn-card-add.loading::after {
    display: none !important;
    content: none !important;
}

/* ============================================================
   ФИКС ИНПУТА КОЛИЧЕСТВА НА СТРАНИЦЕ ТОВАРА
   ============================================================ */

/* Убираем стрелки в Chrome, Safari, Edge */
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Убираем стрелки в Firefox и делаем поле текстовым */
.woocommerce div.product form.cart .quantity input.qty {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
    width: 40px !important; /* Чуть шире, чтобы влезало 0,5 */
}
/* ============================================================
   СТИЛИ ДЛЯ КНОПОК + И - НА СТРАНИЦЕ ТОВАРА
   ============================================================ */

/* Контейнер (белая плашка с рамкой) */
.woocommerce div.product form.cart .quantity {
    display: flex !important;
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    padding: 0 4px !important; /* Небольшой отступ по краям */
    height: 46px !important;
    margin-right: 12px;
}

/* Поле ввода (без рамок и фона, так как фон у контейнера) */
.woocommerce div.product form.cart .quantity input.qty {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 44px !important;
    height: 100% !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем стрелки в браузере */
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce div.product form.cart .quantity input.qty {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Сами кнопки + и - */
.qty-btn-custom {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.qty-btn-custom:hover {
    background: var(--bg-light);
    color: var(--primary);
}


/* ============================================================
   ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOASTS) WOOCOMMERCE
   ============================================================ */

#chili-toast-container{
    position:fixed;
    bottom:20px;          /* было top:20px */
    right:20px;
    z-index:999999;
    display:flex;
    flex-direction:column;
    gap:10px;
    max-width:360px;
}
.chili-toast{
    display:flex;
    align-items:flex-start;
    gap:12px;
    background:#fff;
    border-left:4px solid #ccc;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.15);
    padding:14px 16px;
    font-size:14px;
    line-height:1.4;
    opacity:0;
    transform:translateY(20px);   /* было translateX — теперь всплывает снизу */
    transition:all .3s ease;
}
.chili-toast.show{opacity:1;transform:translateY(0)}
.chili-toast.error{border-color:#e2401c}
.chili-toast.success{border-color:#0f834d}
.chili-toast.info{border-color:#3d9cd2}
.chili-toast-close{background:none;border:0;font-size:18px;line-height:1;cursor:pointer;color:#999}

/* на мобильных — во всю ширину снизу */
@media (max-width:480px){
    #chili-toast-container{left:12px;right:12px;bottom:12px;max-width:none}
}



/* ============================================================
   БЛОК ТОВАРОВ ИЗ КАТЕГОРИИ (ВИДЖЕТ НА ГЛАВНОЙ)
   ============================================================ */

.chili-product-block {
    margin-bottom: 56px;
}

.chili-product-block:last-child {
    margin-bottom: 0;
}

.chili-product-block .section-title {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Кнопка "Показать все" по центру */
.btn-show-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-show-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 220px;
}

.btn-show-all:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Скрываем стандартную пагинацию, если она вдруг вылезет */
.chili-product-block .woocommerce-pagination {
    display: none !important;
}

/* Убираем стандартную сортировку, если она вдруг вылезет */
.chili-product-block .woocommerce-ordering,
.chili-product-block .woocommerce-result-count {
    display: none !important;
}

@media (max-width: 768px) {
    .btn-show-all {
        width: 100%;
        padding: 12px 24px;
    }
}

/* ============================================================
   СТРАНИЦЫ СТАТЕЙ И ОБЫЧНЫХ СТРАНИЦ
   ============================================================ */

.article-main {
    padding-top: 40px;
    padding-bottom: 60px;
}

.single-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px; /* Ограничиваем ширину для удобства чтения */
    margin: 0 auto;
}

/* Шапка статьи */
.article-header {
    margin-bottom: 24px;
    text-align: center;
}

.article-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-cat {
    background: #FFF1F2;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0;
}

/* Картинка статьи */
.article-image {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент статьи (то, что выводит редактор) */
.article-content {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-main);
    font-weight: 800;
    margin: 32px 0 16px;
    line-height: 1.3;
}

.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }

.article-content ul,
.article-content ol {
    margin: 0 0 20px 20px;
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color:var(--primary-hover);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-main);
}

.article-content blockquote p {
    margin-bottom: 0;
    color: var(--text-main);
}

/* Навигация по статьям (Предыдущая/Следующая) */
.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}

.post-navigation a:hover {
    border-color: var(--primary);
    background: #FFF1F2;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* Адаптивность */
@media (max-width: 768px) {
    .single-article {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta-top {
        flex-direction: column;
        gap: 8px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}


/* ============================================================
   СТИЛИЗАЦИЯ ТАБЛИЦЫ "ВАШ ЗАКАЗ" НА CHECKOUT
   ============================================================ */

/* Сама таблица */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    margin-bottom: 24px;
}

/* Заголовки таблицы (Товар / Подытог) */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th {
    background: var(--bg-light) !important;
    font-size: 12px !important;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 700 !important;
}

/* Ячейки таблицы */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td {
    padding: 16px 20px !important;
    border-top: 1px solid var(--border-color) !important;
    font-size: 15px !important;
    color: var(--text-main) !important;
}

/* Скрываем строку "Подытог" (Subtotal) */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .cart-subtotal {
    display: none !important;
}

/* Делаем строку "Доставка" чуть более серой */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

/* Строка "Итого к оплате" (делаем крупной и жирной) */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    border-top: 1px dashed var(--border-color) !important;
    padding: 20px !important;
}
.woocommerce table.shop_table.woocommerce-checkout-review-order-table .order-total .amount {
    color: var(--primary) !important; /* Итоговая сумма красным */
}

/* Оформление кнопки "Подтвердить заказ" (которая сейчас фиолетовая) */
#place_order {
    background-color: var(--primary) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    border-radius: var(--radius) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    border: none !important;
    text-transform: none !important;
}
#place_order:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Блок с ошибкой об оплате (делаем его аккуратным) */
.woocommerce-info {
    background: #FFF1F2 !important;
    border: 1px solid #FFE4E6 !important;
    border-radius: 12px !important;
    color: var(--primary) !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
}
.woocommerce-info::before {
    color: var(--primary) !important;
}


/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ (МОЙ АККАУНТ)
   ============================================================ */

/* Общая обертка страницы (белая карточка) */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    background: #fff;
    padding: 40px 0px 40px 0px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
    margin-bottom: 60px;
}

/* --- Левое меню (Навигация) --- */
.woocommerce-MyAccount-navigation {
    width: 260px;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius);
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #FFF1F2;
    color: var(--primary);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: #FFF1F2;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 4px var(--radius) var(--radius) 4px;
}

/* --- Правая часть (Контент) --- */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    color: var(--text-main);
    line-height: 1.6;
}

/* Заголовки и тексты */
.account-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.account-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Карточка адреса */
.account-address-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
}

/* Быстрые ссылки на главной */
.account-quick-links {
    display: flex;
    gap: 12px;
}

/* Стили для таблицы заказов (чтобы тоже была красивой) */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-orders-table th {
    background: var(--bg-light);
    padding: 12px;
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
}
.woocommerce-orders-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .woocommerce-MyAccount-navigation {
        width: 100%;
    }
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .woocommerce-MyAccount-navigation li a {
        padding: 10px 14px;
        font-size: 13px;
    }
    .woocommerce-MyAccount-navigation li.is-active a {
        border-left: none;
        border-bottom: 3px solid var(--primary);
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

/* ============================================================
   СТИЛИЗАЦИЯ МОИХ ЗАКАЗОВ И ПРОСМОТРА ЗАКАЗА
   ============================================================ */

/* --- 1. Таблица списка заказов (компактнее) --- */
.woocommerce-orders-table {
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.woocommerce-orders-table th {
    background: var(--bg-light) !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

.woocommerce-orders-table td {
    padding: 16px !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

/* --- 2. Кнопки действий в списке заказов (Оплатить, Посмотреть, Отмена) --- */
.woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.woocommerce-orders-table__cell-order-actions a {
    padding: 6px 12px !important;
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    line-height: 1.2 !important;
}

.woocommerce-orders-table__cell-order-actions a:hover {
    background: #E5E7EB !important;
}

/* Кнопка "Оплатить" делаем красной */
.woocommerce-orders-table__cell-order-actions a.pay {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.woocommerce-orders-table__cell-order-actions a.pay:hover {
    background: var(--primary-hover) !important;
}

/* --- 3. Просмотр конкретного заказа --- */

/* Прячем Платежный адрес (оставляем только Доставку, если она есть) */
.woocommerce-customer-details .woocommerce-column--billing-address {
    display: none !important;
}

/* Делаем адрес доставки на всю ширину, так как платежного больше нет */
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-customer-details .woocommerce-column--shipping-address {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}

/* Прячем строку "ПОДЫТОГ" в таблице заказа */
.woocommerce-table--order-details .cart-subtotal,
.woocommerce-table--order-details tfoot .woocommerce-table__line-item:first-child {
    display: none !important;
}

/* Убираем жирный шрифт у количества в деталях заказа, чтобы не рябило */
.woocommerce-table--order-details .product-quantity {
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}

/* --- 4. Уведомление "Подтвердите email" делаем аккуратнее --- */
.woocommerce-info {
    background: #FFF1F2 !important;
    border: 1px solid #FFE4E6 !important;
    border-radius: 12px !important;
    color: var(--primary) !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
}
.woocommerce-info::before {
    color: var(--primary) !important;
}


/* ============================================================
   КОМПАКТНАЯ ТАБЛИЦА МОИХ ЗАКАЗОВ
   ============================================================ */

.woocommerce-MyAccount-content {
    overflow-x: hidden; 
    width: 100%;
}

.woocommerce-orders-table {
    width: 100% !important;
    table-layout: fixed; 
    margin: 0 !important;
    border-collapse: collapse;
}

/* 1. Уменьшаем шрифт и отступы в шапке */
.woocommerce-orders-table th {
    font-size: 11px !important;
    padding: 10px 8px !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Запрещаем перенос заголовков (ДЕЙСТВИЯ) */
}

/* 2. Уменьшаем шрифт в ячейках и делаем их компактнее */
.woocommerce-orders-table td {
    font-size: 13px !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid var(--border-color);
}

/* 3. Распределяем ширину колонок так, чтобы данные не ломались */
.woocommerce-orders-table__cell-order-number {
    width: 12%;
}
.woocommerce-orders-table__cell-order-date {
    width: 18%;
}
.woocommerce-orders-table__cell-order-status {
    width: 20%;
}
.woocommerce-orders-table__cell-order-total {
    width: 18%;
}
.woocommerce-orders-table__cell-order-actions {
    width: 32%; /* Кнопкам нужно больше всего места */
}

/* 4. Настраиваем контейнер для кнопок */
.woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    flex-direction: row !important; /* Ставим кнопки в ряд */
    flex-wrap: wrap !important;    /* Если не влезут — перенесутся */
    gap: 4px !important;           /* Маленький отступ между кнопками */
    justify-content: flex-start;
    align-items: center;
}

/* 5. Сами кнопки делаем маленькими и аккуратными */
.woocommerce-orders-table__cell-order-actions a {
    padding: 5px 10px !important;
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    font-size: 11px !important; /* Мелкий шрифт для кнопок */
    font-weight: 600 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    line-height: 1.2 !important;
    white-space: nowrap; /* Текст внутри кнопки не переносится */
    display: inline-block;
}

.woocommerce-orders-table__cell-order-actions a:hover {
    background: #E5E7EB !important;
}

/* Красная кнопка "Оплатить" */
.woocommerce-orders-table__cell-order-actions a.pay {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.woocommerce-orders-table__cell-order-actions a.pay:hover {
    background: var(--primary-hover) !important;
}

/* Статус заказа (чтобы "Ожидается оплата" не ломалось на "Ожидаетс я") */
.woocommerce-orders-table__cell-order-status {
    word-wrap: break-word;
}

/* Убираем жирный шрифт у количества в деталях заказа */
.woocommerce-table--order-details .product-quantity {
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}


/* ============================================================
   ПРОСМОТР ЗАКАЗА В ЛИЧНОМ КАБИНЕТЕ
   ============================================================ */

/* 1. ПОЛНОСТЬЮ прячем блок с адресами (Платежный и Доставка) */
.woocommerce-customer-details {
    display: none !important;
}

/* 2. Убираем подытог (на случай, если PHP фильтр не сработал) */
.woocommerce-table--order-details .cart_subtotal,
.woocommerce-table--order-details .cart-subtotal {
    display: none !important;
}

/* 3. Делаем таблицу заказа аккуратной */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-table--order-details th {
    background: var(--bg-light) !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    text-align: left;
}

.woocommerce-table--order-details td {
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-top: 1px solid var(--border-color);
}

/* Делаем строку Итого более заметной */
.woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 800 !important;
    font-size: 16px !important;
    color: var(--text-main) !important;
    background: #fff !important;
}

/* Кнопки Оплатить/Отмена */
.woocommerce-table--order-details tfoot .button {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    background: var(--primary) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block;
    margin-right: 4px;
}
.woocommerce-table--order-details tfoot .button:hover {
    background: var(--primary-hover) !important;
}

a.btn-show-all:hover {
  color: white;
}