/*
Theme Name: Mocheqi Saint Petersburg
Theme URI: http://underscores.me/
Author: Mocheqi Team
Description: Apple Minimalism meets Journal Aesthetics. High-end WooCommerce theme.
Version: 1.0.2
Text Domain: mocheqi
*/

/*--------------------------------------------------------------
>>> СОДЕРЖАНИЕ:
----------------------------------------------------------------
1.  Переменные и Шрифты
2.  Базовые стили и Сброс
3.  Глобальная Типографика
4.  Шапка сайта
5.  Интерфейс: Бургер и Кнопки закрытия
6.  Боковые панели
7.  Глобальные кнопки
8.  Главная страница
9.  WooCommerce: Архивы
10. WooCommerce: Товар
11. WooCommerce: Табы
12. WooCommerce: Корзина
13. WooCommerce: Чекаут
14. Интерактив: Тосты, Степперы
15. Подвал
16. Адаптив
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. ПЕРЕМЕННЫЕ И ШРИФТЫ
--------------------------------------------------------------*/
:root {
    --black: #000000;
    --white: #FFFFFF;
    --peach: #FFE5B4;
    --copper: #BA5A31;
    --grey-light: #F5F5F7;
    --font-heading: 'Shobnika', serif;
    --font-body: 'Zapus sans', sans-serif;
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: blur(20px);
}

@font-face {
    font-family: 'Shobnika';
    src: url('fonts/shobhika_regular.woff2') format('woff2'), url('fonts/shobhika_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zapus sans';
    src: url('fonts/ZapusSans-Regular.woff2') format('woff2'), url('fonts/ZapusSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*--------------------------------------------------------------
# 2. БАЗОВЫЕ СТИЛИ И СБРОС
--------------------------------------------------------------*/
html {
    scroll-behavior: auto;
    box-sizing: border-box;
	overflow-y: auto !important;
    height: auto !important;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
	min-height: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

#page {
    overflow: clip; /* Или просто убери overflow, если он там был */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img, video, .wp-block-image {
    border-radius: var(--radius-md);
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/*--------------------------------------------------------------
# 3. ГЛОБАЛЬНАЯ ТИПОГРАФИКА
--------------------------------------------------------------*/
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: none;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--copper);
}

.woocommerce-tabs .panel a, 
.woocommerce-product-details__short-description a, 
.entry-content a, 
.comment-text a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--peach);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.woocommerce-tabs .panel a:hover,
.woocommerce-product-details__short-description a:hover,
.entry-content a:hover,
.comment-text a:hover {
    color: var(--copper);
    text-decoration-color: var(--copper);
}

/* Ссылка-кнопка (core/button) внутри entry-content — не обычная текстовая
   ссылка, подчёркивание из правила выше ей не нужно (специфичность у этого
   правила выше, чем у .entry-content a, поэтому оно и побеждает). */
.entry-content .wp-block-button__link,
.entry-content .wp-block-button__link:hover {
    text-decoration: none;
}

/* Списки (core/list) внутри entry-content — на новых Gutenberg-страницах
   для них вообще не было стилей, только отступы браузера по умолчанию. */
.entry-content ul,
.entry-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 10px;
}

/*--------------------------------------------------------------
# 3.1. АНИМАЦИИ ПОЯВЛЕНИЯ (GSAP ScrollTrigger)
--------------------------------------------------------------*/
.reveal {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
}

/*--------------------------------------------------------------
# 4. ШАПКА САЙТА
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-link img {
    max-width: 130px;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

/* Глобальное правило "h1{font-size:clamp(2.5rem,8vw,5rem); margin-bottom:1rem}"
   (типографика страниц) иначе тянет за собой сам тег <h1>, даже если ссылка
   внутри стилизована отдельно — раздувает шапку, когда логотип не загружен
   и рендерится текстовый fallback (см. header.php). */
.site-title {
    margin: 0;
    font-size: 22px;
    line-height: 1;
}

.site-title a {
    text-decoration: none;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--black);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# 5. ИНТЕРФЕЙС: БУРГЕР И КНОПКИ ЗАКРЫТИЯ
--------------------------------------------------------------*/
.burger-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    position: relative;
    z-index: 3001;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    position: absolute;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
}

.line-top {
    transform: translateY(-4px);
}

.line-bottom {
    transform: translateY(4px);
    width: 16px;
}

.burger-active .line-top {
    transform: translateY(0) rotate(45deg);
    background: var(--copper);
    width: 24px;
}

.burger-active .line-bottom {
    transform: translateY(0) rotate(-45deg);
    background: var(--copper);
    width: 24px;
}

.burger-button:hover .line-bottom {
    width: 24px;
}

.menu-close-btn, #js-cart-close {
    background: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 30px;
    right: 30px;
    z-index: 3100;
}

.menu-close-btn:hover, #js-cart-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: rotate(90deg) !important;
}

.close-line {
    position: absolute;
    width: 20px;
    height: 1px;
    background: var(--black);
}

.close-line:nth-child(1) { transform: rotate(45deg); }
.close-line:nth-child(2) { transform: rotate(-45deg); }

/*--------------------------------------------------------------
# 6. БОКОВЫЕ ПАНЕЛИ (Overlays)
--------------------------------------------------------------*/
.menu-overlay, .cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    z-index: 5000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-overlay.is-open, .cart-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
}

body.menu-opened {
    overflow: hidden;
}

.mobile-navigation {
    padding: 120px 60px 60px;
    flex-grow: 1;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin-bottom: clamp(15px, 3vh, 25px);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-navigation a {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 42px);
    text-decoration: none;
    color: var(--black);
    display: inline-block;
    line-height: 1.1;
    transition: var(--transition);
}

.mobile-navigation a:hover {
    color: var(--copper);
    transform: translateX(10px);
}

.cart-container {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0;
}

.burger-active {
    opacity: 0;
    pointer-events: none;
}

/*--------------------------------------------------------------
# 7. ГЛОБАЛЬНЫЕ КНОПКИ (Apple Pill Style)
--------------------------------------------------------------*/
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    background-color: var(--black);
    color: var(--white) !important;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

button:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover, .wp-block-button__link:hover {
    background-color: var(--copper);
    color: var(--white) !important;
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px rgba(186, 90, 49, 0.2);
}

.button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
    background-color: var(--black);
}

.button.outline, .button.outline:visited,
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link:visited {
    background-color: transparent !important;
    border: 1px solid var(--black);
    color: var(--black) !important;
    box-shadow: none;
}

.button.outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black);
}

/* Кнопка ядра (core/button) внутри тёмных секций (CTA-баннер и т.п.) —
   тот же приём, что и для .button.outline: белая рамка на затемнённом фоне. */
.cta-inner .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--white);
    color: var(--white) !important;
}

.cta-inner .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--white) !important;
    color: var(--black) !important;
}

.cta-inner .button.outline {
    border-color: var(--white);
    color: var(--white) !important;
}

.cta-inner .button.outline:hover {
    background-color: var(--white) !important;
    color: var(--black) !important;
}

button:disabled, button[disabled], .button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
}

button:active, .button:active {
    transform: scale(0.98);
}

.woocommerce-mini-cart__buttons, .mocheqi-mini-cart-buttons, .mocheqi-cart-totals {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.woocommerce-mini-cart__buttons .button, .mocheqi-cart-totals .button {
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-mini-cart__buttons .checkout, .mocheqi-cart-totals .checkout-button {
    background-color: var(--copper) !important;
}

/*--------------------------------------------------------------
# 8. ГЛАВНАЯ СТРАНИЦА (Home Page)
--------------------------------------------------------------*/
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.1;
}

.hero-title .accent { color: var(--copper); }

/* Gutenberg-блок Group оборачивает вложенные блоки в свой собственный
   ".wp-block-group__inner-container" — из-за этого у грид/флекс-контейнеров
   ниже реально был только один "ребёнок" (сама обёртка), а настоящие
   карточки/колонки внутри неё просто шли потоком. Делаем обёртку
   "прозрачной" для раскладки — её дети становятся прямыми участниками
   грида/флекса у родителя, как и было задумано. */
.benefits-grid > .wp-block-group__inner-container,
.split-grid > .wp-block-group__inner-container,
.magazine-grid > .wp-block-group__inner-container,
.mocheqi-contacts-grid > .wp-block-group__inner-container {
    display: contents;
}

/* display:contents убирает бокс обёртки из раскладки, но не из выборки CSS —
   штатное правило WordPress ".is-layout-flow > *" (отступ 24px между
   вложенными блоками, кроме первого) всё равно видит карточки как её детей
   и продолжает добавлять им margin-top, хотя расстояние между ними уже
   задаёт gap самого грида. Глушим этот отступ именно в этих секциях. */
.benefits-grid > .wp-block-group__inner-container > *,
.split-grid > .wp-block-group__inner-container > *,
.magazine-grid > .wp-block-group__inner-container > *,
.mocheqi-contacts-grid > .wp-block-group__inner-container > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.benefit-card {
    background: var(--grey-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--peach);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.split-item {
    height: 500px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    padding: 50px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.split-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.split-content {
    position: relative;
    z-index: 1;
}

.split-content h2 {
    color: var(--white);
    font-size: 32px;
}

.cta-banner { margin-bottom: 80px; }

.cta-inner {
    background: var(--black);
    color: var(--white);
    padding: 80px;
    border-radius: var(--radius-lg);
    text-align: center;
}

/* Фон-картинка у CTA задаётся через панель "Фон" блока Группа (WordPress сам
   подставляет inline background-image) — затемняем её на 50% для читаемости
   белого текста: multiply с серым #808080 = то же, что чёрный оверлей 0.5. */
.cta-inner[style*="background-image"] {
    background-color: #808080;
    background-blend-mode: multiply;
}

.cta-inner h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.magazine-block { margin-bottom: 100px; }

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.magazine-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.magazine-text { padding: 40px; }

.sub-heading {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--copper);
    display: block;
    margin-bottom: 20px;
}

.magazine-block.alt .magazine-grid .magazine-text { order: 1; }
.magazine-block.alt .magazine-grid .magazine-image { order: 2; }

/*--------------------------------------------------------------
# 9. WOOCOMMERCE: АРХИВЫ (Shop)
--------------------------------------------------------------*/
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    list-style: none;
}

.woocommerce ul.products li.product img {
    max-width: 100%;
    height: auto;
}

/* Блок "Витрина товаров" (mocheqi/product-showcase) — сама сетка карточек
   уже покрыта правилами ".woocommerce ul.products" выше (карточка та же,
   что и в каталоге), здесь только внешний отступ секции + пустое состояние. */
.mocheqi-product-showcase {
    margin-bottom: 80px;
}

.mocheqi-product-showcase__empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.mocheqi-product-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.mocheqi-product-image-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 5;
}

.mocheqi-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce ul.products li.product:hover .mocheqi-product-image-wrap img {
    transform: scale(1.05);
}

.mocheqi-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-grow: 1;
}

.mocheqi-product-actions {
    margin-top: auto;
    width: 100%;
    padding-top: 15px;
}

.woocommerce .mocheqi-product-actions a.button, .woocommerce .mocheqi-product-actions a.button.alt {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px !important;
    font-size: 12px !important;
}

.mocheqi-product-category {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 11px;
    color: var(--copper);
    font-weight: 600;
}

.mocheqi-product-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover .mocheqi-product-title {
    color: var(--copper);
}

.mocheqi-product-price {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--black);
}

.mocheqi-product-price del {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.mocheqi-product-price ins {
    text-decoration: none;
    color: var(--copper);
}

.mocheqi-archive-header {
    text-align: center;
    padding: 60px 0 80px;
}

.mocheqi-archive-header h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 20px;
}

.mocheqi-archive-header .term-description, .mocheqi-archive-header .page-description {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.mocheqi-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Кнопка "Фильтры", открывающая мобильную всплывающую панель фильтров.
   На десктопе не нужна — фильтры видны в боковой колонке. */
.mocheqi-filters-toggle {
    display: none;
}

.woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: #888;
}

.woocommerce-ordering { margin: 0; }

.woocommerce-ordering select {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 40px 12px 20px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

.woocommerce-ordering select:hover { border-color: var(--black); }

nav.woocommerce-pagination ul {
    border: none !important;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 80px;
}

nav.woocommerce-pagination ul li { border: none !important; }

nav.woocommerce-pagination ul li a, nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 15px;
    color: var(--black) !important;
    background: var(--grey-light);
    transition: var(--transition);
}

nav.woocommerce-pagination ul li a:hover, nav.woocommerce-pagination ul li span.current {
    background: var(--black) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/*--------------------------------------------------------------
# 10. WOOCOMMERCE: СТРАНИЦА ТОВАРА (Single Product)
--------------------------------------------------------------*/
/*
 * У #product-xxx (обёртка content-single-product.php) нет ни одного родителя
 * с отступами — ни #primary/#main core-шаблона single-product.php, ни
 * .container. На мобильных контент упирался прямо в края экрана.
 */
.mocheqi-single-product-grid,
.mocheqi-single-tabs,
.mocheqi-related-products {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.mocheqi-single-product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-top: 60px;
    align-items: start;
}

.mocheqi-single-product-images { position: relative; }

.woocommerce-product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--grey-light);
}

.woocommerce-product-gallery__image img {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 15px;
    margin-top: 15px !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: auto !important;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm) !important;
    opacity: 0.5;
    transition: var(--transition);
    cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover, .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    opacity: 1;
}

.mocheqi-single-product-summary {
    position: sticky;
    top: 120px;
    padding: 20px 0;
}

.mocheqi-summary-inner { max-width: 500px; }

.mocheqi-single-product .product_title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin: 10px 0 20px;
    line-height: 1.1;
}

.mocheqi-single-product .price {
    font-family: var(--font-heading);
    font-size: 24px !important;
    font-weight: 400 !important;
    color: var(--black) !important;
    margin-bottom: 30px !important;
    display: block;
}

.mocheqi-single-product .price del {
    color: #999 !important;
    font-weight: 400;
    margin-right: 10px;
}

.mocheqi-single-product .price ins {
    color: var(--copper) !important;
    text-decoration: none;
    font-weight: 600;
}

.mocheqi-single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mocheqi-single-product .product_meta {
    font-size: 13px;
    color: #888;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    margin-top: 20px;
}

.mocheqi-single-product .product_meta span {
    display: block;
    margin-bottom: 8px;
}

.mocheqi-single-product .product_meta a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--peach);
    text-underline-offset: 3px;
}

/* Форма корзины (Ozon Style Morphing) */
.mocheqi-cart-form-wrap { margin-bottom: 40px; }

.mocheqi-cart-form-wrap form.cart {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.mocheqi-cart-form-wrap form.cart.variations_form { display: block; }

.mocheqi-single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mocheqi-cart-form-wrap .quantity, .mocheqi-single-product .single_variation_wrap .quantity {
    margin: 0 !important;
    flex-shrink: 0;
}

.mocheqi-cart-form-wrap input.qty {
    width: 70px !important;
    height: 55px;
    border: 1px solid var(--black) !important;
    border-radius: 50px !important;
    background: transparent !important;
    text-align: center;
    font-size: 16px !important;
}

.mocheqi-cart-form-wrap button.button, .mocheqi-single-product .single_variation_wrap button.button {
    flex-grow: 1;
    height: 55px;
    padding: 0 30px !important;
}

.mocheqi-cart-form-wrap form.cart.is-in-cart { justify-content: center !important; }
.mocheqi-cart-form-wrap form.cart.is-in-cart .single_add_to_cart_button { display: none !important; }
.mocheqi-cart-form-wrap form.cart.is-in-cart .quantity, .mocheqi-cart-form-wrap form.cart.is-in-cart .mocheqi-qty-wrapper {
    flex-grow: 1 !important;
    width: 100% !important;
    justify-content: space-between !important;
}

/* Вариации (Селекты) */
.mocheqi-single-product .variations {
    width: 100%;
    border: none !important;
    margin-bottom: 30px;
}

.mocheqi-single-product .variations tr, .mocheqi-single-product .variations td {
    display: block;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.mocheqi-single-product .variations td.label { margin-bottom: 10px; }

.mocheqi-single-product .variations label {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--black);
    margin-right: 15px;
}

.mocheqi-single-product .variations select {
    width: 100% !important;
    max-width: 100%;
    height: 50px;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 0 40px 0 20px !important;
    background-color: var(--white) !important;
    font-size: 15px !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    outline: none;
    transition: var(--transition);
}

.mocheqi-single-product .variations select:hover { border-color: var(--black) !important; }

.mocheqi-single-product .reset_variations {
    font-size: 12px !important;
    color: var(--copper) !important;
    margin-left: 15px;
    text-decoration: underline !important;
}

/* Радио-кнопки вариаций (Pills) */
.mocheqi-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mocheqi-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    background: var(--white);
    transition: var(--transition);
    user-select: none;
}

.mocheqi-radio-label:hover { border-color: var(--black); }
.mocheqi-radio-label input[type="radio"] { display: none; }
.mocheqi-radio-label.active {
    background: var(--black);
    color: var(--white) !important;
    border-color: var(--black);
}
.mocheqi-radio-label.disabled {
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

/*--------------------------------------------------------------
# 11. WOOCOMMERCE: ТАБЫ
--------------------------------------------------------------*/
.mocheqi-single-tabs {
    margin-top: 120px;
    background: var(--grey-light);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0;
    margin: 0 0 60px 0;
    list-style: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.woocommerce-tabs ul.tabs li a {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #999 !important;
    text-decoration: none;
    padding-bottom: 15px;
    display: inline-block;
    transition: var(--transition);
    outline: none;
}

.woocommerce-tabs ul.tabs li:hover a { color: var(--copper) !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--black) !important; }

.woocommerce-tabs ul.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    animation: tabLineIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabLineIn {
    from { width: 0; opacity: 0; }
    to { width: 40px; opacity: 1; }
}

.woocommerce-tabs .panel {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.woocommerce-tabs .panel h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--black);
}

.woocommerce-tabs .shop_attributes {
    width: 100%;
    border: none !important;
    margin: 0 auto;
}

.woocommerce-tabs .shop_attributes th, .woocommerce-tabs .shop_attributes td {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 15px 0 !important;
    text-align: center !important;
}

.woocommerce-tabs .shop_attributes th {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--black);
}

.mocheqi-related-products { margin-top: 120px; }

.mocheqi-related-products > h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
}

/*--------------------------------------------------------------
# 12. WOOCOMMERCE: КОРЗИНА
--------------------------------------------------------------*/
.mocheqi-cart-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.mocheqi-cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mocheqi-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 25px;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.mocheqi-cart-item:hover {
    border-color: var(--peach);
    box-shadow: var(--shadow-soft);
}

.mocheqi-cart-item-remove {
    position: absolute;
    top: 15px;
    right: 15px;
}

.mocheqi-cart-item-remove a.remove {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.05) !important;
    color: var(--black) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: var(--transition);
}

.mocheqi-cart-item-remove a.remove:hover {
    background: var(--black) !important;
    color: var(--white) !important;
    transform: rotate(90deg);
}

.mocheqi-cart-item-image img {
    width: 120px !important;
    height: 140px !important;
    object-fit: cover;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
}

.mocheqi-cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0;
}

.mocheqi-cart-item-info a {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
}

.mocheqi-cart-item-info .product-name { margin-bottom: 10px; }

.mocheqi-cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.mocheqi-cart-item-price {
    font-family: var(--font-heading);
    font-size: 20px;
    text-align: right;
}

.mocheqi-cart-item-price del {
    display: block;
    color: #999 !important;
    font-size: 14px;
    font-family: var(--font-body);
}

.mocheqi-cart-summary {
    background: var(--grey-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: sticky;
    top: 120px;
}

.mocheqi-coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mocheqi-coupon input.input-text {
    flex-grow: 1;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 0 20px !important;
    height: 45px;
    background: var(--white) !important;
}

.mocheqi-coupon button.button {
    border-radius: 50px !important;
    padding: 0 20px !important;
    height: 45px;
    font-size: 12px !important;
}

.mocheqi-cart-summary .button[name="update_cart"] {
    width: 100%;
    margin-bottom: 30px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.mocheqi-cart-totals h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
}

.mocheqi-cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
}

.mocheqi-cart-total-row span { color: #555; }

.mocheqi-cart-total-row .amount {
    font-family: var(--font-heading);
    color: var(--black);
}

.mocheqi-cart-total-row.total {
    border-bottom: none;
    border-top: 2px solid var(--black);
    margin-top: 10px;
    padding-top: 25px;
    margin-bottom: 30px;
}

.mocheqi-cart-total-row.total span {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--black);
}

.mocheqi-cart-total-row.total .amount {
    font-size: 22px;
    color: var(--copper);
}

.mocheqi-cart-totals .checkout-button {
    width: 100%;
    font-size: 14px !important;
    padding: 18px !important;
    background: var(--black);
}

.mocheqi-cart-totals .checkout-button:hover { background: var(--copper) !important; }

/* Мини-корзина */
.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-grow: 1;
    overflow-y: auto;
}

.woocommerce-mini-cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
	position: relative;
}

.woocommerce-mini-cart-item img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: var(--radius-sm) !important;
}

.woocommerce-mini-cart__total {
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 20px;
    border-top: 2px solid var(--black);
    margin-top: auto;
}

.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
}

/*--------------------------------------------------------------
# 13. WOOCOMMERCE: ЧЕКАУТ
--------------------------------------------------------------*/
.woocommerce-checkout .checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 30px;
}

.woocommerce-checkout .col2-set, .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #order_review_heading { display: none; }

.woocommerce-checkout #order_review {
    flex: 1 1 350px;
    background: var(--grey-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.mocheqi-checkout-grid {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 80px !important;
    max-width: 1300px !important;
    margin: 60px auto !important;
    padding: 0 30px !important;
    align-items: start !important;
}

.mocheqi-checkout-block {
    margin-bottom: 60px;
    background: var(--white);
}

.mocheqi-step-title {
    font-family: var(--font-heading);
    font-size: 28px !important;
    margin-bottom: 35px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    letter-spacing: -0.01em;
}

.mocheqi-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 20px 0 15px;
}

.mocheqi-step-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.woocommerce-checkout .form-row {
    margin: 0 0 20px 0;
    padding: 0;
}

.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last {
    width: 48%;
    display: inline-block;
}

.woocommerce-checkout .form-row-last { margin-left: 3.5%; }

/* Скрытые поля (напр. billing_country = RU) не занимают место в сетке */
.woocommerce-checkout .form-row-hidden,
.woocommerce-checkout .form-row.form-row-hidden {
    display: none !important;
}

#mocheqi-address-section, #mocheqi-shipping-methods-wrap, #mocheqi-payment-methods-step, .form-row-wide {
    grid-column: 1 / -1 !important;
}

.woocommerce-checkout .form-row label {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
}

.woocommerce-checkout input.input-text, .woocommerce-checkout textarea {
    width: 100% !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50px !important;
    padding: 16px 25px !important;
    background: var(--white) !important;
    font-size: 15px !important;
    transition: var(--transition) !important;
    outline: none !important;
}

.woocommerce-checkout input.input-text:focus {
    border-color: var(--black) !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.02) !important;
}

.mocheqi-shipping-tabs {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    background: var(--grey-light) !important;
    padding: 8px !important;
    border-radius: 20px !important;
}

.mocheqi-tab {
    flex: 1 !important;
    padding: 20px !important;
    border: none !important;
    background: transparent !important;
    color: #888 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: none !important;
}

.mocheqi-tab.active {
    background: var(--white) !important;
    color: var(--black) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.mocheqi-tab .tab-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 4px;
}

.mocheqi-tab .tab-desc {
    font-size: 12px;
    opacity: 0.7;
}

#mocheqi-shipping-methods-wrap th { display: none !important; }
#mocheqi-shipping-methods-wrap td {
    display: block !important;
    padding: 0 !important;
}

ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: var(--white) !important;
    border: 1px solid #eee !important;
    border-radius: 15px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

ul#shipping_method li:hover { border-color: var(--black) !important; }

ul#shipping_method li.active-method {
    border-color: var(--black) !important;
    background: var(--grey-light) !important;
}

ul#shipping_method input[type="radio"] {
    margin-right: 15px !important;
    accent-color: var(--black) !important;
    width: 20px !important;
    height: 20px !important;
}

ul#shipping_method label {
    flex-grow: 1 !important;
    cursor: pointer !important;
}

.woocommerce-checkout ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.wc_payment_method {
    margin-bottom: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    background: var(--white) !important;
    display: flex;
    align-items: center;
}

.woocommerce-checkout input[type="radio"] {
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 15px 0 0 !important;
    accent-color: var(--black);
}

.woocommerce-checkout label { cursor: pointer; }
#payment .place-order { display: none !important; }

.mocheqi-checkout-right {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.mocheqi-checkout-summary {
    background: var(--grey-light) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px !important;
}

.mocheqi-order-review-table .woocommerce-shipping-totals { display: none !important; }

.mocheqi-order-review-table table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.mocheqi-order-review-table th, .mocheqi-order-review-table td {
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    text-align: left !important;
}

.mocheqi-order-review-table .order-total {
    border-top: 2px solid var(--black) !important;
    border-bottom: none !important;
    padding-top: 25px !important;
}

.mocheqi-order-review-table .order-total th, .mocheqi-order-review-table .order-total td {
    font-family: var(--font-heading);
    font-size: 24px !important;
}

.mocheqi-final-button-wrap { margin-top: 30px; }

#place_order {
    width: 100% !important;
    font-size: 16px !important;
    padding: 22px !important;
    background: var(--black) !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
}

#place_order:hover {
    background: var(--copper) !important;
    transform: scale(1.02);
}

.mocheqi-checkout-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mocheqi-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    user-select: none;
}

.mocheqi-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mocheqi-checkbox-box {
    width: 22px;
    height: 22px;
    border: 1.5px solid #ccc;
    border-radius: 7px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
    margin-top: 1px;
    background: var(--white);
}

.mocheqi-checkbox-label:hover .mocheqi-checkbox-box { border-color: var(--black); }

.mocheqi-checkbox-label input:checked + .mocheqi-checkbox-box {
    background: var(--black);
    border-color: var(--black);
}

.mocheqi-checkbox-label input:checked + .mocheqi-checkbox-box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    from { transform: rotate(45deg) scale(0); }
    to { transform: rotate(45deg) scale(1); }
}

.mocheqi-checkbox-text a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--peach);
    text-underline-offset: 3px;
}

.mocheqi-checkbox-label input:invalid + .mocheqi-checkbox-box { border-color: #d93025; }

/*--------------------------------------------------------------
# 14. ИНТЕРАКТИВ: ТОСТЫ, СТЕППЕРЫ
--------------------------------------------------------------*/
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: none !important; }

/*
 * Обёртку не прячем через display:none — у скрытого элемента jQuery.offset()
 * возвращает {top:0, left:0}, и скролл WooCommerce "к уведомлению" после
 * AJAX-обновления корзины/чекаута улетает в начало страницы (макет "прыгает").
 * Вместо этого схлопываем высоту, оставляя реальную позицию в потоке.
 */
.woocommerce-notices-wrapper {
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Popup "Выберите объём" (стеклянный, glassmorphism) */
.mocheqi-variation-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mocheqi-variation-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mocheqi-variation-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mocheqi-variation-popup__card {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: calc(100% - 40px);
    padding: 40px 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mocheqi-variation-popup.is-open .mocheqi-variation-popup__card {
    transform: scale(1) translateY(0);
}

.mocheqi-variation-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--black);
    padding: 0 !important;
    box-shadow: none !important;
}

.mocheqi-variation-popup__close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: none;
}

.mocheqi-variation-popup__icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 16px;
}

.mocheqi-variation-popup__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0 0 10px;
}

.mocheqi-variation-popup__text {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.mocheqi-variation-popup__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.mocheqi-variation-popup__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mocheqi-variation-popup__option:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--black);
    transform: translateY(-1px);
    box-shadow: none !important;
}

.mocheqi-variation-popup__option.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.mocheqi-variation-popup__option-label {
    font-weight: 500;
}

.mocheqi-variation-popup__option-price {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* Подсветка невыбранного select'а вариации при попытке добавить в корзину */
.mocheqi-single-product .variations select.mocheqi-field-missing {
    border-color: #c62828 !important;
    animation: mocheqiShake 0.4s;
}

@keyframes mocheqiShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

#mocheqi-toasts {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

.mocheqi-toast {
    background: var(--black);
    color: var(--white) !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mocheqi-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.mocheqi-toast.error {
    background: #d93025;
    align-items: center;
    text-align: left;
    line-height: 1.4;
}

.mocheqi-toast.info { background: var(--copper); }

.mocheqi-toast a {
    color: var(--white) !important;
    text-decoration: underline;
    text-decoration-color: var(--copper);
    text-underline-offset: 3px;
    margin-left: 5px;
}

.mocheqi-toast.error ul, .mocheqi-toast.error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.quantity, .woocommerce .quantity, .woocommerce-product-details__short-description .quantity, .mocheqi-mini-cart-qty .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    float: none !important;
    width: auto !important;
}

input.qty::-webkit-outer-spin-button, input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].qty { -moz-appearance: textfield; }

input.qty:not(.mocheqi-qty-injected) {
    border: 1px solid var(--black) !important;
    border-radius: 50px !important;
    background: transparent !important;
    text-align: center !important;
    height: 45px !important;
    width: 50px !important;
    padding: 0 !important;
    font-size: 15px !important;
    color: var(--black) !important;
    outline: none;
}

.mocheqi-qty-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--black) !important;
    border-radius: 50px !important;
    overflow: hidden;
    height: 45px;
    flex-shrink: 0;
}

.mocheqi-qty-wrapper input.qty {
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    border-radius: 0 !important;
    -moz-appearance: textfield;
    padding: 0 !important;
    font-size: 15px !important;
}

.mocheqi-qty-btn {
    background: transparent !important;
    border: none !important;
    color: var(--black) !important;
    width: 35px !important;
    height: 100% !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.mocheqi-qty-btn:hover { background: var(--grey-light) !important; }

.mocheqi-mini-cart-qty .mocheqi-qty-wrapper {
    height: 30px;
    border: 1px solid #ddd !important;
}

.mocheqi-mini-cart-qty .mocheqi-qty-btn {
    width: 25px !important;
    font-size: 12px !important;
}

.mocheqi-mini-cart-qty input.qty {
    width: 25px !important;
    font-size: 13px !important;
}

.woocommerce a.remove, .woocommerce a.remove_from_mini_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.05) !important;
    color: var(--black) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
    transition: var(--transition);
    text-decoration: none;
    position: absolute;
    top: 50%;
    right: 0px;
}

.woocommerce a.remove:hover, .woocommerce a.remove_from_mini_cart:hover {
    background: var(--black) !important;
    color: var(--white) !important;
    transform: rotate(90deg);
}

.mocheqi-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 50px;
    padding: 10px 10px 10px 30px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.mocheqi-floating-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mocheqi-floating-price {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--black);
}

.mocheqi-floating-btn {
    flex-shrink: 0;
    padding: 12px 30px !important;
}

.woocommerce-cart-form.mocheqi-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.widget_shopping_cart_content { transition: opacity 0.3s ease; }

/*--------------------------------------------------------------
# 15. ПОДВАЛ
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--grey-light);
    padding: 100px 0 40px;
    margin-top: 60px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    color: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 25px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 15px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--copper);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.footer-socials a:hover { color: var(--copper); }

.footer-contacts {
    list-style: none;
    padding: 0;
}

.footer-phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--black) !important;
    opacity: 1 !important;
}

.footer-address {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 15px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.4;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover { text-decoration: underline; }

/*--------------------------------------------------------------
# 16. ПОЛНЫЙ АДАПТИВ (Mobile First)
--------------------------------------------------------------*/
@media (max-width: 1100px) {
    .mocheqi-checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    .mocheqi-checkout-right {
        position: static !important;
    }
    .mocheqi-step-content {
        gap: 25px !important;
    }
}

@media (max-width: 992px) {
    .mocheqi-single-product-grid, .magazine-grid, .mocheqi-cart-wrapper, .mocheqi-checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .mocheqi-single-product-summary, .mocheqi-checkout-right, .mocheqi-cart-summary {
        position: static !important;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .magazine-block.alt .magazine-grid .magazine-text { order: 2; }
    .magazine-block.alt .magazine-grid .magazine-image { order: 1; }
    .magazine-image img { height: 400px; }
    .cta-inner { padding: 40px 20px; }
}

@media (max-width: 767px) {
    :root {
        --radius-lg: 24px;
        --radius-md: 16px;
    }
    .container { padding: 0 20px; }
    .mocheqi-single-product-grid,
    .mocheqi-single-tabs,
    .mocheqi-related-products {
        padding-left: 20px;
        padding-right: 20px;
    }
    h1 { font-size: 32px !important; line-height: 1.2; }
    h2 { font-size: 28px !important; }
    .hero-title { font-size: 28px !important; padding: 0 10px; }

    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 10px 15px;
    }
    .custom-logo-link img { max-width: 100px; }
    .menu-overlay, .cart-overlay {
        width: 100% !important;
        border-left: none;
    }
    .mobile-navigation { padding: 100px 30px; }
    .mobile-navigation a { font-size: 26px; }
    .cart-container { padding: 25px; }
    .menu-close-btn, #js-cart-close {
        top: 20px;
        right: 20px;
    }

    .hero-section { padding: 80px 0 40px; }
    .benefits-grid, .split-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .benefit-card { padding: 30px 20px; }
    .split-item { height: 350px; padding: 30px; }
    .cta-inner { padding: 40px 20px; }
    .magazine-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .magazine-image img { height: 300px; }
    .magazine-block.alt .magazine-grid .magazine-image, .magazine-block .magazine-grid .magazine-image { order: -1; }
    .magazine-text {
        padding: 0;
        text-align: center;
    }
    /* Длинная подпись кнопки (nowrap) растягивала .magazine-text за экран; перенос разрешён только здесь */
    .magazine-grid > * { min-width: 0; }
    .magazine-text .button,
    .magazine-text .wp-block-button__link { white-space: normal; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-description { margin: 0 auto 20px; }
    .footer-socials { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mocheqi-checkout-grid {
        padding: 0 20px !important;
        margin: 30px auto !important;
        gap: 40px !important;
    }
    .mocheqi-step-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .mocheqi-step-content .form-row-first, .mocheqi-step-content .form-row-last {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .mocheqi-step-title {
        font-size: 22px !important;
        margin-bottom: 25px !important;
    }
    .mocheqi-shipping-tabs {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 5px !important;
    }
    .mocheqi-tab {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 15px 20px !important;
        gap: 15px !important;
    }
    #place_order {
        width: 100% !important;
        padding: 18px !important;
    }
    .mocheqi-checkout-summary { padding: 25px !important; }
    
    .mocheqi-single-product .product_title { font-size: 32px !important; }
    .mocheqi-single-product .price { font-size: 22px !important; }
    .mocheqi-cart-form-wrap form.cart, .mocheqi-single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .mocheqi-cart-form-wrap .quantity, .mocheqi-single-product .single_variation_wrap .quantity { width: 100%; }
    .mocheqi-cart-form-wrap input.qty, .mocheqi-cart-form-wrap button.button, .mocheqi-single-product .single_variation_wrap button.button {
        width: 100%;
        height: 50px;
    }
    .mocheqi-single-tabs {
        padding: 40px 20px;
        margin-top: 60px;
    }
    .woocommerce-tabs ul.tabs {
        gap: 20px;
        margin-bottom: 40px;
    }
    .woocommerce-tabs ul.tabs li a { font-size: 20px; }
    
    .mocheqi-cart-item {
        grid-template-columns: 80px 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    .mocheqi-cart-item-image img {
        width: 80px !important;
        height: 100px !important;
    }
    .mocheqi-cart-item-info a { font-size: 16px; }
    .mocheqi-cart-item-price { font-size: 16px; }
    .mocheqi-cart-summary { padding: 25px !important; }
    .mocheqi-coupon {
        flex-direction: column !important;
        gap: 10px !important;
    }
	.magazine-image img {
        object-position: 65% 65%;
}
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    .mocheqi-product-inner { padding: 10px !important; }
    .mocheqi-product-title { font-size: 14px !important; }
    .mocheqi-product-price { font-size: 13px !important; }
    .woocommerce .mocheqi-product-actions a.button, .woocommerce .mocheqi-product-actions a.button.alt {
        padding: 8px 5px !important;
        font-size: 9px !important;
        letter-spacing: 0.02em !important;
    }
}

@media (max-width: 400px) {
    .mocheqi-tab .tab-title { font-size: 16px; }
    .mocheqi-tab .tab-desc { font-size: 11px; }
    .mocheqi-checkbox-text { font-size: 13px; }
}

@media (max-width: 380px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .mocheqi-product-inner {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        gap: 15px;
    }
    .mocheqi-product-image-wrap {
        width: 80px !important;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .mocheqi-product-info {
        text-align: left;
        align-items: flex-start;
    }
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.woocommerce-checkout, .woocommerce-checkout .checkout, .mocheqi-checkout-grid, .mocheqi-checkout-left, .mocheqi-checkout-right, .mocheqi-step-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.mocheqi-order-review-table, .mocheqi-order-review-table table, .woocommerce-checkout-review-order-table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: fixed !important;
}

#shipping_method_wrapper, ul#shipping_method, ul#shipping_method li {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

ul#shipping_method label {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}


/*--------------------------------------------------------------
# 23. СПЛИТ-МЕНЮ БРЕНДОВ В БУРГЕРЕ
--------------------------------------------------------------*/

/* Контейнер табов */
.mocheqi-brand-tabs {
    display: flex;
    background: var(--grey-light);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 40px;
}

/* Сами табы */
.brand-tab {
    flex: 1;
    padding: 12px 10px;
    border: none !important;
    background: transparent !important;
    color: #888 !important;
    font-family: var(--font-body) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border-radius: 30px !important;
    cursor: pointer;
    transition: var(--transition) !important;
    box-shadow: none !important;
}

.brand-tab.active {
    background: var(--white) !important;
    color: var(--black) !important;
    box-shadow: var(--shadow-soft) !important;
}

/* Меню брендов */
.brand-menu {
    margin-bottom: 40px;
}

.brand-nav, .common-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-nav li, .common-nav li {
    margin-bottom: clamp(12px, 2.5vh, 20px);
    opacity: 0; /* Для GSAP анимации */
    transform: translateY(20px);
}

.brand-nav a, .common-nav a {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 32px);
    text-decoration: none;
    color: var(--black);
    display: inline-block;
    line-height: 1.1;
    transition: var(--transition);
}

.brand-nav a:hover, .common-nav a:hover {
    color: var(--copper);
    transform: translateX(10px);
}

/* Общее меню (чуть мельче и отделено линией) */
.common-menu-wrapper {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 30px;
    margin-top: auto; /* Прижимаем к низу, если панель длинная */
}

.common-nav a {
    font-size: 18px;
    color: #555;
}

.common-nav a:hover {
    color: var(--black);
}

/* Адаптив для маленьких экранов */
@media (max-width: 480px) {
    .brand-tab {
        font-size: 10px !important;
        padding: 10px 5px;
    }
    .brand-nav a {
        font-size: 24px;
    }
    .common-nav a {
        font-size: 16px;
    }
}


/* ------------------------------------------------------------------ */
/* Page wrapper — hides everything else so the auth card is the hero.  */
/* ------------------------------------------------------------------ */

.mocheqi-auth {
	--auth-accent: var(--copper, #BA5A31);
	--auth-accent-bg: var(--peach, #FFE5B4);
	--auth-text: var(--black, #000000);
	--auth-text-dim: #888;
	--auth-border: rgba(0, 0, 0, 0.08);
	--auth-surface: var(--grey-light, #F5F5F7);
	--auth-white: var(--white, #FFFFFF);
	--auth-radius: var(--radius-md, 20px);
	--auth-radius-sm: var(--radius-sm, 12px);
	--auth-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--auth-white);
}

/* ------------------------------------------------------------------ */
/* Left: brand panel (desktop only)                                    */
/* ------------------------------------------------------------------ */

.mocheqi-auth__brand {
	background: var(--auth-text);
	color: var(--auth-white);
	padding: 80px 60px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.mocheqi-auth__brand::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -30%;
	width: 80%;
	height: 80%;
	background: radial-gradient(circle, var(--auth-accent) 0%, transparent 70%);
	opacity: 0.15;
	pointer-events: none;
}

.mocheqi-auth__brand-inner {
	position: relative;
	z-index: 1;
	max-width: 420px;
}

.mocheqi-auth__brand-eyebrow {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--auth-accent-bg);
	margin-bottom: 24px;
}

.mocheqi-auth__brand-title {
	font-family: var(--font-heading, 'Shobnika', serif);
	font-size: clamp(2rem, 3vw, 2.8rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 24px;
}

.mocheqi-auth__brand-text {
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 40px;
}

.mocheqi-auth__brand-perks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mocheqi-auth__brand-perks li {
	position: relative;
	padding-left: 32px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.mocheqi-auth__brand-perks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 10px;
	border-left: 2px solid var(--auth-accent);
	border-bottom: 2px solid var(--auth-accent);
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Right: card with tabs                                               */
/* ------------------------------------------------------------------ */

.mocheqi-auth__card {
	background: var(--auth-white);
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
}

.mocheqi-auth__head {
	margin-bottom: 40px;
}

.mocheqi-auth__title {
	font-family: var(--font-heading, 'Shobnika', serif);
	font-size: clamp(1.8rem, 2.5vw, 2.4rem);
	font-weight: 400;
	color: var(--auth-text);
	margin: 0 0 8px;
	line-height: 1.1;
}

.mocheqi-auth__subtitle {
	font-size: 14px;
	color: var(--auth-text-dim);
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */

.mocheqi-auth__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	background: var(--auth-surface);
	border-radius: var(--auth-radius-sm);
	padding: 4px;
}

.mocheqi-auth__tab {
	flex: 1;
	padding: 14px;
	border: none;
	background: transparent;
	border-radius: 10px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--auth-text-dim) !important;
	cursor: pointer;
	transition: var(--auth-transition) !important;
}

.mocheqi-auth__tab.is-active {
	background: var(--auth-white) !important;
	color: var(--auth-text) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.mocheqi-auth__tab:not(.is-active):hover {
	color: var(--auth-text) !important;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.mocheqi-auth__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mocheqi-auth__form.is-hidden {
	display: none;
}

.mocheqi-auth__form.is-active {
	animation: mocheqiAuthFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mocheqiAuthFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Fields (reuse .mocheqi-field from account plugin, but standalone)   */
/* ------------------------------------------------------------------ */

.mocheqi-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.mocheqi-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mocheqi-field__label {
	font-size: 13px;
	font-weight: 500;
	color: var(--auth-text);
}

.mocheqi-field__input {
	padding: 16px 22px;
	border: 1px solid var(--auth-border);
	border-radius: 50px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 14px;
	color: var(--auth-text);
	background: var(--auth-white);
	outline: none;
	transition: var(--auth-transition);
	-webkit-appearance: none;
	appearance: none;
}

.mocheqi-field__input::placeholder {
	color: #b0b0b0;
}

.mocheqi-field__input:focus {
	border-color: var(--auth-text);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* ------------------------------------------------------------------ */
/* Row: remember + forgot                                              */
/* ------------------------------------------------------------------ */

.mocheqi-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.mocheqi-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.mocheqi-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mocheqi-checkbox__box {
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--auth-border);
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--auth-transition);
	position: relative;
	flex-shrink: 0;
}

.mocheqi-checkbox input:checked + .mocheqi-checkbox__box {
	background: var(--auth-text);
	border-color: var(--auth-text);
}

.mocheqi-checkbox input:checked + .mocheqi-checkbox__box::after {
	content: '';
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--auth-white);
	border-bottom: 2px solid var(--auth-white);
	transform: rotate(-45deg) translate(1px, -1px);
}

.mocheqi-checkbox__label {
	font-size: 13px;
	color: var(--auth-text-dim);
}

.mocheqi-auth__link {
	font-size: 13px;
	color: var(--auth-text-dim);
	text-decoration: none;
	transition: var(--auth-transition);
}

.mocheqi-auth__link:hover {
	color: var(--auth-accent);
}

/* ------------------------------------------------------------------ */
/* Submit button                                                       */
/* ------------------------------------------------------------------ */

.mocheqi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 28px;
	border-radius: 50px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	border: none;
	transition: var(--auth-transition);
	line-height: 1;
}

.mocheqi-btn--solid {
	background: var(--auth-text);
	color: var(--auth-white);
	width: 100%;
	margin-top: 8px;
}

.mocheqi-btn--solid:hover {
	background: var(--auth-accent);
	transform: scale(1.01) translateY(-2px);
	box-shadow: 0 10px 30px rgba(186, 90, 49, 0.3);
}

/* ------------------------------------------------------------------ */
/* Legal text                                                          */
/* ------------------------------------------------------------------ */

.mocheqi-auth__legal {
	font-size: 12px;
	color: var(--auth-text-dim);
	text-align: center;
	margin-top: 32px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* WC notices                                     */
/* ------------------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 14px 20px !important;
	border-radius: var(--auth-radius-sm);
	font-size: 13px;
	margin: 0 0 24px !important;
	background: var(--auth-surface);
	color: var(--auth-text);
	border: none;
	border-left: 3px solid var(--auth-accent);
}

.woocommerce-error {
	border-left-color: #c62828;
	color: #c62828;
}

/* ------------------------------------------------------------------ */
/* Reveal animation (если GSAP не загрузился)                          */
/* ------------------------------------------------------------------ */

.reveal {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 992px) {
	.mocheqi-auth {
		grid-template-columns: 1fr;
	}

	.mocheqi-auth__brand {
		display: none;
	}

	.mocheqi-auth__card {
		padding: 60px 40px;
		min-height: 100vh;
		justify-content: flex-start;
		margin-top: 60px;
	}
}

@media (max-width: 767px) {
	.mocheqi-auth__card {
		padding: 40px 24px;
		max-width: 100%;
		margin-top: 0;
		justify-content: center;
	}

	.mocheqi-auth__head {
		margin-bottom: 32px;
	}

	.mocheqi-form-grid {
		grid-template-columns: 1fr;
	}

	.mocheqi-auth__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}


/*--------------------------------------------------------------
# 25. СТРАНИЦА 404 (Apple Journal Style)
--------------------------------------------------------------*/

.mocheqi-404-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 160px 20px 80px;
    overflow: hidden;
}

.mocheqi-404-title {
    font-family: var(--font-heading);
    font-size: clamp(10rem, 30vw, 20rem); /* Огромная типографика */
    line-height: 0.8;
    margin: 0;
    /* Делаем текст прозрачным, оставляя только контур (Журнальный эффект) */
    color: transparent;
    -webkit-text-stroke: 2px var(--black);
    text-stroke: 2px var(--black);
    user-select: none;
    pointer-events: none;
}

.mocheqi-404-content {
    margin-top: -40px; /* Немного накладываем текст на цифры */
    position: relative;
    z-index: 2;
}

.mocheqi-404-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--black);
    margin-bottom: 20px;
}

.mocheqi-404-text {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mocheqi-404-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* На мобильных делаем цифру чуть плотнее, чтобы влезала */
@media (max-width: 600px) {
    .mocheqi-404-section {
        padding-top: 120px;
        min-height: 60vh;
    }
    .mocheqi-404-content {
        margin-top: -20px;
    }
    .mocheqi-404-actions .button {
        width: 100%;
    }
}


/*--------------------------------------------------------------
# 26. ФИЛЬТРЫ ТОВАРОВ WOOCOMMERCE (Apple Style)
--------------------------------------------------------------*/

/* Обертка виджета */
.mocheqi-shop-widget {
    background: var(--white) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: var(--radius-md) !important;
    padding: 25px !important;
    margin-bottom: 0 !important;
    transition: var(--transition) !important;
}

.mocheqi-shop-widget:hover {
    border-color: rgba(0,0,0,0.1) !important;
    box-shadow: var(--shadow-soft) !important;
}

/* Заголовок виджета */
.mocheqi-shop-widget .widget-title {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--black) !important;
}

/* --- 1. Чекбоксы и Радио --- */
.mocheqi-shop-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mocheqi-shop-widget ul li {
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.mocheqi-shop-widget ul li:last-child {
    margin-bottom: 0 !important;
}

.mocheqi-shop-widget ul li a,
.mocheqi-shop-widget ul li label,
.mocheqi-shop-widget ul li .count {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    color: var(--black) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
}

.mocheqi-shop-widget ul li label {
    cursor: pointer !important;
}

.mocheqi-shop-widget ul li a:hover,
.mocheqi-shop-widget ul li label:hover {
    color: var(--copper) !important;
}

/* Кнопки "Применить"/"Очистить фильтры" под списком категорий */
.mocheqi-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.mocheqi-apply-filters-btn,
.mocheqi-clear-filters-btn {
    width: 100% !important;
    margin-top: 0 !important;
}

/* "Очистить фильтры" — акцентная терракотовая, как у штатного блока WooCommerce */
.mocheqi-clear-filters-btn {
    background-color: var(--copper) !important;
}

.mocheqi-clear-filters-btn:hover {
    background-color: var(--black) !important;
}

.mocheqi-shop-widget ul li .count {
    color: #888 !important;
    margin-left: auto !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    background: var(--grey-light) !important;
    border-radius: 50px !important;
}

/* Кастомные чекбоксы и Радио */
.mocheqi-shop-widget input[type="checkbox"],
.mocheqi-shop-widget input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 6px !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: var(--transition) !important;
    flex-shrink: 0 !important;
    background: var(--white) !important; /* Фикс белого фона в Safari */
}

.mocheqi-shop-widget input[type="radio"] {
    border-radius: 50% !important;
}

.mocheqi-shop-widget input[type="checkbox"]:checked,
.mocheqi-shop-widget input[type="radio"]:checked {
    background: var(--black) !important;
    border-color: var(--black) !important;
}

/* Галочка внутри чекбокса */
.mocheqi-shop-widget input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 6px !important;
    height: 11px !important;
    border: solid var(--white) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Точка внутри радио */
.mocheqi-shop-widget input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 4px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: var(--white) !important;
}

/* Выбранный пункт */
.mocheqi-shop-widget .chosen a {
    font-weight: 600 !important;
    color: var(--copper) !important;
}

/* --- 2. Ползунок цены (Price Slider) --- */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: var(--grey-light) !important;
    border: none !important;
    border-radius: 50px !important;
    height: 6px !important;
    margin: 10px 5px 25px 5px !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background: var(--black) !important;
    border-radius: 50px !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--white) !important;
    border: 2px solid var(--black) !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    top: -6px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover {
    transform: scale(1.15) !important;
    border-color: var(--copper) !important;
    background: var(--peach) !important;
}

.woocommerce .widget_price_filter .price_slider_amount {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.woocommerce .widget_price_filter .price_slider_amount .price_label {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    color: var(--black) !important;
    font-weight: 600 !important;
}

.woocommerce .widget_price_filter .price_slider_amount .price_label span {
    color: var(--copper) !important;
}

/* Кнопка "Фильтр" */
.woocommerce .widget_price_filter .price_slider_amount .button {
    flex-grow: 1 !important;
    padding: 12px 20px !important;
    font-size: 11px !important;
    background: var(--black) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    box-shadow: none !important;
    border: none !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__close-overlay, :where(.wc-block-product-filters) .wc-block-product-filters__open-overlay{
	color: inherit !important;
}
/* Было без привязки к :where(.wc-block-product-filters) — красило ВСЕ кнопки
   core/button на сайте в терракотовый с !important (в т.ч. в наших паттернах
   на главной/о нас), и мешало менять цвет кнопки в редакторе. Привязываем
   к тому же блоку фильтров, для которого это писалось. */
:root :where(.wc-block-product-filters .wp-element-button, .wc-block-product-filters .wp-block-button__link){
	background-color: var(--copper) !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background: var(--copper) !important;
    color: var(--white) !important;
}

/* --- 3. Активные фильтры (Теги) --- */
.woocommerce .widget_layered_nav_filters ul li {
    margin-bottom: 10px !important;
    display: block !important;
}

.woocommerce .widget_layered_nav_filters ul li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--peach) !important;
    color: var(--copper) !important;
    padding: 8px 15px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border: 1px solid transparent !important;
}

.woocommerce .widget_layered_nav_filters ul li a::before {
    content: '×' !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin-right: 2px !important;
}

.woocommerce .widget_layered_nav_filters ul li a:hover {
    background: var(--copper) !important;
    color: var(--white) !important;
    border-color: var(--copper) !important;
}

/*--------------------------------------------------------------
# 27. СЕТКА МАГАЗИНА С САЙДБАРОМ (Filters Layout)
--------------------------------------------------------------*/

.mocheqi-shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Сайдбар (прилипающий) */
.mocheqi-shop-sidebar {
    position: sticky;
    top: 120px;
}

.mocheqi-shop-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Обертка одного виджета */
.mocheqi-shop-widget {
    background: var(--white) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: var(--radius-md) !important;
    padding: 25px !important;
}

.mocheqi-shop-widget .widget-title {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Контент сайдбара занимает 100% ширину */
.mocheqi-shop-content {
    width: 100%;
    min-width: 0; /* Фикс для Grid чтобы карточки не растягивали сетку */
}

/* Бэкдроп и мобильная шапка панели фильтров нужны только на мобильных —
   на десктопе сайдбар всегда виден, ничего скрывать/открывать не нужно. */
.mocheqi-shop-sidebar-backdrop,
.mocheqi-shop-sidebar-mobile-header {
    display: none;
}

/* Адаптив: на планшетах и мобильных фильтры превращаются во всплывающую
   снизу панель (стеклянный оффканвас, в стиле popup выбора объёма) —
   открывается кнопкой "Фильтры" в тулбаре, закрывается крестиком/бэкдропом/Esc. */
@media (max-width: 992px) {
    .mocheqi-shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mocheqi-archive-toolbar {
        flex-wrap: wrap;
    }

    .mocheqi-filters-toggle {
        display: inline-flex;
        order: -1;
        flex: 0 0 100%;
        margin-bottom: 16px;
    }

    .mocheqi-shop-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10001;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.mocheqi-filters-open .mocheqi-shop-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.mocheqi-filters-open {
        overflow: hidden;
    }

    .mocheqi-shop-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 10002;
        max-height: 85vh;
        overflow-y: auto;
        background: var(--white);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        padding: 24px 20px 24px;
    }

    .mocheqi-shop-sidebar.is-open {
        transform: translateY(0);
    }

    .mocheqi-shop-sidebar-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .mocheqi-shop-sidebar-mobile-title {
        font-family: var(--font-heading);
        font-size: 22px;
    }

    .mocheqi-shop-sidebar-close {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border: none;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        color: var(--black);
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/*--------------------------------------------------------------
# 30. КНОПКА "ПОКАЗАТЬ ПАРОЛЬ" (Apple Eye Icon)
--------------------------------------------------------------*/

/* Обертка поля пароля */
.mocheqi-field {
    position: relative;
}

/* Делаем отступ справа у инпута, чтобы текст не перекрывал глаз */
.mocheqi-field .mocheqi-field__input {
    padding-right: 50px !important;
}

/* Сама кнопка-глаз */
.mocheqi-field .show-password-input {
    position: relative;
    top: 50%;
    left: 15px;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    opacity: 0.4;
    transition: var(--transition) !important;
    
    /* Рисуем иконку глаза через SVG */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3e%3c/path%3e%3ccircle cx='12' cy='12' r='3'%3e%3c/circle%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
/*     text-indent: -9999px; /* Прячем текст, если он есть внутри кнопки */ 
    overflow: hidden;
}

/* Эффект при наведении — глаз становится четким */
.mocheqi-field .show-password-input:hover {
    opacity: 1;
}

/*--------------------------------------------------------------
# 31. ЛИЧНЫЙ КАБИНЕТ (My Account)
--------------------------------------------------------------*/

/*
 * Личный кабинет (дашборд, навигация, заказы, адреса, данные аккаунта)
 * полностью рендерится отдельным плагином mocheqi-account — у него свой
 * CSS (plugin-mocheqi/mocheqi-account/assets/css/account.css). Здесь только
 * то, что реально относится к теме и используется вне плагина.
 */

/* Скидка/фи в корзине — акцентный цвет (страница /cart/, не личный кабинет) */
.mocheqi-cart-total-row.discount .amount {
    color: var(--copper);
}

/*--------------------------------------------------------------
# 32. СТРАНИЦЫ О НАС / КОНТАКТЫ / B2B
--------------------------------------------------------------*/

.mocheqi-page-hero {
    padding: 100px 0 50px;
}

/* Без этого блока правило выше (объявлено без media query) перекрывает
   мобильный брейкпоинт .hero-section из секции 16, т.к. идёт по каскаду позже. */
@media (max-width: 767px) {
    .mocheqi-page-hero {
        padding: 80px 0 40px;
    }
}

.mocheqi-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0 100px;
    align-items: start;
}

.mocheqi-contacts-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mocheqi-contact-card {
    background: var(--grey-light);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mocheqi-contact-card__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.mocheqi-contact-card__value {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
}

a.mocheqi-contact-card__value:hover {
    color: var(--copper);
}

.mocheqi-contacts-form {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 992px) {
    .mocheqi-contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Оферта / Политика конфиденциальности — читаемая типографика для длинного юридического текста */
.mocheqi-legal-hero {
    padding-bottom: 30px;
}

.mocheqi-legal-page {
    margin: 0 auto 100px;
    max-width: 800px;
}

.mocheqi-legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mocheqi-legal-content h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin: 50px 0 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.mocheqi-legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mocheqi-legal-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 30px 0 15px;
}

.mocheqi-legal-content p {
    margin: 0 0 18px;
}

.mocheqi-legal-content ul,
.mocheqi-legal-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.mocheqi-legal-content li {
    margin-bottom: 10px;
}

.mocheqi-legal-content a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--peach);
    text-underline-offset: 3px;
}

.mocheqi-legal-content a:hover {
    color: var(--copper);
}

.mocheqi-legal-content strong {
    font-weight: 600;
}

.mocheqi-legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
}

.mocheqi-legal-content table th,
.mocheqi-legal-content table td {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    text-align: left;
}

.mocheqi-legal-content table th {
    background: var(--grey-light);
    font-weight: 600;
}

@media (max-width: 767px) {
    .mocheqi-legal-content {
        font-size: 15px;
    }
    .mocheqi-legal-content h2 {
        font-size: 22px;
        margin: 36px 0 16px;
    }
}

/*--------------------------------------------------------------
# 33. CONTACT FORM 7 (фирменный стиль)
--------------------------------------------------------------*/

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 6px;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
    width: 100%;
    padding: 16px 22px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--black);
    background: var(--grey-light);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form textarea.wpcf7-form-control {
    border-radius: var(--radius-md);
    min-height: 140px;
    resize: vertical;
}

.wpcf7-form-control:focus {
    border-color: var(--black);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.wpcf7-form input.wpcf7-submit {
    align-self: flex-start;
    margin-top: 4px;
}

.wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

.wpcf7-not-valid-tip {
    display: block;
    color: #c62828;
    font-size: 12px;
    margin-top: 6px;
}

.wpcf7-response-output {
    border-radius: var(--radius-sm) !important;
    padding: 14px 20px !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.wpcf7-mail-sent-ok {
    border-color: var(--copper) !important;
    color: var(--black) !important;
    background: var(--peach);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    border-color: #c62828 !important;
    color: #c62828 !important;
    background: #fdecea;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: var(--copper);
}

/* Спиннер отправки — перекрашиваем в фирменный цвет */
.wpcf7 .ajax-loader {
    filter: hue-rotate(-140deg) saturate(2);
}

/* Заголовок страниц «Корзина»/«Оформление заказа»: шапка fixed, без отступа заголовок уходил под неё */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
    padding: 110px 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Сводка заказа на оформлении: при table-layout:fixed колонки делились 50/50 — название товара
   сжималось в 6 строк, а «Итого» переносилось по цифрам. Даём названию больше места. */
.mocheqi-checkout-summary {
    padding: 40px 30px !important;
}
.mocheqi-order-review-table th.product-name {
    width: 62% !important;
}
.mocheqi-order-review-table th.product-total,
.mocheqi-order-review-table td.product-total {
    width: 38% !important;
    text-align: right !important;
    white-space: nowrap;
}
.mocheqi-order-review-table tfoot td {
    text-align: right !important;
    white-space: nowrap;
}
.mocheqi-order-review-table td.product-name {
    padding-right: 16px !important;
    line-height: 1.4;
}

/* Мобильное оформление заказа: отступы .checkout (30) + grid (20) + summary (30) съедали ширину —
   таблица заказа была 215px из 375, сумма «Итого» вылезала за карточку. */
@media (max-width: 600px) {
    body.woocommerce-checkout form.checkout {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .mocheqi-checkout-grid {
        padding: 0 !important;
        margin: 30px auto !important;
    }
    .mocheqi-checkout-summary {
        padding: 30px 20px !important;
    }
    .mocheqi-order-review-table th.product-name {
        width: 58% !important;
    }
    .mocheqi-order-review-table th.product-total,
    .mocheqi-order-review-table td.product-total {
        width: 42% !important;
    }
    .mocheqi-order-review-table .order-total th,
    .mocheqi-order-review-table .order-total td {
        font-size: 20px !important;
    }
}

/* Способ оплаты на мобильном: заголовок метода сверху, описание под ним на всю ширину
   (раньше radio, название и описание стояли в одну flex-строку, текст сжимался в узкие колонки). */
@media (max-width: 767px) {
    .wc_payment_method {
        flex-wrap: wrap;
    }
    .wc_payment_method > label {
        flex: 1 1 0;
        min-width: 0;
    }
    .wc_payment_method > .payment_box {
        flex: 0 0 100%;
        margin-top: 10px;
    }
    .wc_payment_method > .payment_box p {
        margin: 0;
    }
}

/* Способ оплаты на десктопе: методы в ряд, у каждого заголовок сверху и описание под ним.,
   #payment — ребёнок 2-колоночной сетки .mocheqi-step-content и занимал только первую колонку. */
#payment.woocommerce-checkout-payment {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .woocommerce-checkout ul.wc_payment_methods {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }
    .woocommerce-checkout ul.wc_payment_methods > .wc_payment_method {
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: flex-start;
        margin-bottom: 0 !important;
    }
    .wc_payment_method > label {
        flex: 1 1 0;
        min-width: 0;
        align-self: center;
    }
    .wc_payment_method > .payment_box {
        flex: 0 0 100%;
        margin-top: 12px;
    }
    .wc_payment_method > .payment_box p {
        margin: 0;
    }
}

/* Оформление заказа: сетка .mocheqi-checkout-grid — flex-item внутри form.checkout (display:flex)
   с margin:auto, поэтому ширина считалась по содержимому: при смене способа оплаты (текст разной
   длины) вся форма «плыла» (сужалась/расширялась). Фиксируем ширину и не даём 1fr раздуваться. */
.mocheqi-checkout-grid {
    width: 100% !important;
}
@media (min-width: 1101px) {
    .mocheqi-checkout-grid {
        grid-template-columns: minmax(0, 1fr) 420px !important;
    }
}

/* Подарочная упаковка в чекауте */
.mocheqi-gift__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: var(--grey-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
}
.mocheqi-gift__toggle input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--black);
    flex: 0 0 auto;
}
.mocheqi-gift__toggle em {
    margin-left: auto;
    font-style: normal;
    color: var(--copper);
    font-weight: 600;
}
.mocheqi-gift__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 0 6px;
}
.mocheqi-gift__qty[hidden] { display: none; }
.mocheqi-gift__stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 50px;
    overflow: hidden;
}
.mocheqi-gift__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--black);
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}
.mocheqi-gift__btn:hover { background: var(--grey-light); }
.mocheqi-gift .mocheqi-gift__btn,
.mocheqi-gift button.mocheqi-gift__btn {
    background: transparent !important;
    color: var(--black) !important;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transform: none;
}
.mocheqi-gift .mocheqi-gift__btn:hover { background: var(--grey-light) !important; color: var(--black) !important; }
.mocheqi-gift__stepper input[type=number] {
    width: 52px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.mocheqi-gift__stepper input[type=number]::-webkit-outer-spin-button,
.mocheqi-gift__stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 600px) {
    .mocheqi-gift__toggle em { margin-left: 32px; flex-basis: 100%; }
}

/* Согласие на обработку персональных данных */
.mocheqi-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
    margin: 4px 0;
}
.mocheqi-consent input[type=checkbox] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--black);
}
.mocheqi-consent a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--peach);
    text-underline-offset: 3px;
}
.mocheqi-consent a:hover { color: var(--copper); }
.mocheqi-feedback__consent { margin: 2px 0 4px; }
.mocheqi-field--consent { margin: 6px 0 14px; }

/* Глаз «показать пароль» в формах входа/сброса: внутри поля справа, по центру по вертикали */
.mocheqi-auth .password-input {
    position: relative !important;
    display: block !important;
}
.mocheqi-auth .password-input .mocheqi-field__input {
    padding-right: 60px !important;
}
.mocheqi-auth .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    opacity: .6;
    cursor: pointer;
    display: block !important;
}
.mocheqi-auth .show-password-input:hover,
.mocheqi-auth .show-password-input.display-password {
    opacity: 1;
}

/*--------------------------------------------------------------
# AJAX-каталог и «Продолжить покупки»
--------------------------------------------------------------*/
/* Блок товаров на время загрузки (js/ajax-catalog.js): приглушён и не реагирует на клики. */
.mocheqi-shop-content {
    transition: opacity 0.25s ease;
}

.mocheqi-shop-content.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .mocheqi-shop-content {
        transition: none;
    }
}

/* Третья кнопка в миникорзине и корзине — второстепенная, рядом с «Оформить заказ». */
a.button.outline.mocheqi-continue-shopping,
a.button.outline.mocheqi-continue-shopping:visited {
    background-color: transparent !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    text-align: center;
}

a.button.outline.mocheqi-continue-shopping:hover {
    background-color: var(--black) !important;
    color: var(--white) !important;
}

/*--------------------------------------------------------------
# Бесконечная прокрутка каталога (js/ajax-catalog.js)
--------------------------------------------------------------*/
/* Цифровая пагинация остаётся в разметке (оттуда берётся адрес следующей страницы), но не показывается. */
.mocheqi-shop-content.has-infinite nav.woocommerce-pagination {
    display: none;
}

.mocheqi-infinite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0 8px;
    min-height: 1px;
}

.mocheqi-infinite__spinner {
    display: none;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--copper);
    border-radius: 50%;
    animation: mocheqi-spin 0.8s linear infinite;
}

.mocheqi-infinite.is-loading .mocheqi-infinite__spinner {
    display: block;
}

.mocheqi-infinite__btn[hidden] {
    display: none !important;
}

.mocheqi-infinite-prev {
    display: flex;
    width: max-content;
    margin: 0 auto 28px;
}

.mocheqi-infinite-new {
    animation: mocheqi-fade-in 0.5s ease both;
}

@keyframes mocheqi-spin {
    to { transform: rotate(360deg); }
}

@keyframes mocheqi-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .mocheqi-infinite-new { animation: none; }
    .mocheqi-infinite__spinner { animation-duration: 2s; }
}

/* Попап выбора объёма: подпись варианта наследовала белый цвет общего правила button (color:#fff !important)
   и сливалась со светлой плашкой — задаём тёмный цвет с достаточной специфичностью, в т.ч. при наведении. */
.mocheqi-variation-popup .mocheqi-variation-popup__option,
.mocheqi-variation-popup .mocheqi-variation-popup__option:hover,
.mocheqi-variation-popup .mocheqi-variation-popup__option:focus-visible {
    color: var(--black) !important;
}

.mocheqi-variation-popup .mocheqi-variation-popup__option-label {
    color: inherit;
}

/*--------------------------------------------------------------
# Заказ принят (woocommerce/checkout/thankyou.php)
--------------------------------------------------------------*/
/* Заголовок «Оформление заказа» от шаблона страницы здесь лишний: вместо него — блок благодарности. */
body.woocommerce-order-received .entry-header,
body.woocommerce-order-received .entry-footer {
    display: none;
}

.mocheqi-thankyou {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 90px;
    box-sizing: border-box;
    text-align: left;
}

.mocheqi-thankyou__hero {
    text-align: center;
    margin-bottom: 40px;
}

.mocheqi-thankyou__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--peach);
    color: var(--copper);
}

.mocheqi-thankyou__hero.is-failed .mocheqi-thankyou__icon {
    background: #fbe4e1;
    color: #b3261e;
}

.mocheqi-thankyou__title {
    margin: 0 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--black);
}

.mocheqi-thankyou__lead {
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Карточки: номер, дата, сумма, способ оплаты */
.mocheqi-thankyou .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}

.mocheqi-thankyou .woocommerce-order-overview li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 20px 22px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--grey-light);
    font-size: 13px;
    text-transform: none;
    color: #777;
}

.mocheqi-thankyou .woocommerce-order-overview li span {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mocheqi-thankyou .woocommerce-order-overview li strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--black);
    overflow-wrap: anywhere;
}

.mocheqi-thankyou .woocommerce-order-overview li.total strong {
    color: var(--copper);
}

/* Заголовки разделов: «Информация о заказе», реквизиты, адреса */
.mocheqi-thankyou h2.woocommerce-order-details__title,
.mocheqi-thankyou h2.woocommerce-column__title,
.mocheqi-thankyou h2.wc-bacs-bank-details-heading,
.mocheqi-thankyou .woocommerce-bacs-bank-details h2 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: var(--black);
}

.mocheqi-thankyou .woocommerce-order-details,
.mocheqi-thankyou .woocommerce-customer-details,
.mocheqi-thankyou .woocommerce-bacs-bank-details {
    margin: 0 0 44px;
}

/* Таблица заказа */
.mocheqi-thankyou table.shop_table {
    width: 100%;
    margin: 0;
    border: 1px solid #ececec;
    border-radius: var(--radius-md);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--white);
    font-size: 15px;
}

.mocheqi-thankyou table.shop_table th,
.mocheqi-thankyou table.shop_table td {
    padding: 16px 22px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
    color: var(--black);
}

.mocheqi-thankyou table.shop_table thead th {
    background: var(--grey-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
}

.mocheqi-thankyou table.shop_table .product-total,
.mocheqi-thankyou table.shop_table thead th:last-child,
.mocheqi-thankyou table.shop_table tfoot td {
    text-align: right;
    overflow-wrap: anywhere;
}

.mocheqi-thankyou table.shop_table .woocommerce-Price-amount {
    white-space: nowrap;
}

.mocheqi-thankyou table.shop_table td.product-name a {
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}

.mocheqi-thankyou table.shop_table td.product-name a:hover {
    color: var(--copper);
}

.mocheqi-thankyou table.shop_table .product-quantity {
    margin-left: 6px;
    font-weight: 400;
    color: #777;
}

.mocheqi-thankyou table.shop_table tfoot th {
    font-weight: 400;
    color: #666;
}

.mocheqi-thankyou table.shop_table tfoot tr:last-child th,
.mocheqi-thankyou table.shop_table tfoot tr:last-child td,
.mocheqi-thankyou table.shop_table tr:last-child td,
.mocheqi-thankyou table.shop_table tr:last-child th {
    border-bottom: 0;
}

.mocheqi-thankyou table.shop_table tfoot tr:nth-last-child(2) th,
.mocheqi-thankyou table.shop_table tfoot tr:nth-last-child(2) td {
    background: var(--grey-light);
    font-size: 17px;
    font-weight: 600;
    color: var(--copper);
}

/* Адреса: две карточки рядом (глобальное правило чекаута делает .col2-set на всю ширину — переопределяем) */
.woocommerce-checkout .mocheqi-thankyou .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.woocommerce-checkout .mocheqi-thankyou .woocommerce-column {
    width: auto !important;
    padding: 22px 24px !important;
    border-radius: var(--radius-md);
    background: var(--grey-light);
}

.mocheqi-thankyou .woocommerce-column h2.woocommerce-column__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.mocheqi-thankyou address {
    margin: 0;
    font-style: normal;
    line-height: 1.7;
    color: #333;
}

/* Реквизиты для банковского перевода */
.mocheqi-thankyou .woocommerce-bacs-bank-details h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.mocheqi-thankyou ul.wc-bacs-bank-details {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.mocheqi-thankyou ul.wc-bacs-bank-details li {
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--grey-light);
    font-size: 14px;
    text-transform: none;
    color: #777;
}

.mocheqi-thankyou ul.wc-bacs-bank-details li strong {
    margin-left: 6px;
    font-size: 15px;
    color: var(--black);
    overflow-wrap: anywhere;
}

/* Низ страницы: контакты и кнопки */
.mocheqi-thankyou__footer {
    margin-top: 12px;
    text-align: center;
}

.mocheqi-thankyou__contact {
    margin: 0 0 24px;
    font-size: 15px;
    color: #666;
}

.mocheqi-thankyou__contact a {
    margin-left: 10px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.mocheqi-thankyou__contact a:hover {
    color: var(--copper);
    border-bottom-color: var(--copper);
}

.mocheqi-thankyou__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mocheqi-thankyou__actions .button {
    min-width: 200px;
    justify-content: center;
}

/* .woocommerce a.button красит текст белым с !important — у контурной кнопки нужна специфичность выше */
.mocheqi-thankyou a.button.outline,
.mocheqi-thankyou a.button.outline:visited {
    background-color: transparent !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
    box-shadow: none !important;
}

.mocheqi-thankyou a.button.outline:hover {
    background-color: var(--black) !important;
    color: var(--white) !important;
}

@media (max-width: 600px) {
    .mocheqi-thankyou {
        padding: 36px 16px 60px;
    }

    .mocheqi-thankyou table.shop_table th,
    .mocheqi-thankyou table.shop_table td {
        padding: 14px 16px;
    }

    .mocheqi-thankyou__actions .button {
        width: 100%;
    }
}

/* Цены на странице «Заказ принят»: общее правило темы делает .woocommerce-Price-amount мелким (12px) —
   здесь размер берётся от блока, в котором стоит цена. */
.mocheqi-thankyou .woocommerce-Price-amount,
.mocheqi-thankyou .woocommerce-Price-amount bdi,
.mocheqi-thankyou .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: inherit;
}

/*--------------------------------------------------------------
# Пустая корзина (woocommerce/cart/cart-empty.php)
--------------------------------------------------------------*/
.mocheqi-empty-cart {
    max-width: 560px;
    margin: 10px auto 0;
    padding: 36px 24px 24px;
    box-sizing: border-box;
    text-align: center;
}

.mocheqi-empty-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--peach);
    color: var(--copper);
}

.mocheqi-empty-cart__title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--black);
}

.mocheqi-empty-cart__text {
    max-width: 440px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.mocheqi-empty-cart__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mocheqi-empty-cart__actions .button {
    min-width: 200px;
    justify-content: center;
}

/* .woocommerce a.button красит текст белым с !important — для контурной кнопки нужна специфичность выше */
.mocheqi-empty-cart a.button.outline,
.mocheqi-empty-cart a.button.outline:visited {
    background-color: transparent !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
    box-shadow: none !important;
}

.mocheqi-empty-cart a.button.outline:hover {
    background-color: var(--black) !important;
    color: var(--white) !important;
}

/* Подборка популярных товаров под сообщением */
.mocheqi-empty-cart__popular {
    max-width: 1200px;
    margin: 50px auto 90px;
    padding: 0 24px;
    box-sizing: border-box;
}

.mocheqi-empty-cart__popular-title {
    margin: 0 0 28px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    color: var(--black);
}

.woocommerce .mocheqi-empty-cart__popular ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .woocommerce .mocheqi-empty-cart__popular ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .mocheqi-empty-cart {
        padding: 24px 16px 16px;
    }

    .mocheqi-empty-cart__popular {
        padding: 0 16px;
        margin: 36px auto 60px;
    }

    .mocheqi-empty-cart__actions .button {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Прокрутка списка в миникорзине
--------------------------------------------------------------*/
/* Панель занимает экран целиком и сама не прокручивается: прокручивается только список товаров,
   а итог и кнопки остаются внизу на виду. Колесо над списком не уходит в Lenis (data-lenis-prevent). */
.cart-overlay {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.cart-overlay .cart-container {
    box-sizing: border-box;
    min-height: 0;
}

.cart-overlay .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.cart-overlay .woocommerce-mini-cart {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.cart-overlay .woocommerce-mini-cart::-webkit-scrollbar {
    width: 6px;
}

.cart-overlay .woocommerce-mini-cart::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
}

.cart-overlay .woocommerce-mini-cart__total,
.cart-overlay .woocommerce-mini-cart__buttons {
    flex-shrink: 0;
}
