/* Simple Woo Theme - Base Bundle */
/**
 * Critical CSS - FOUC Prevention Only
 * Только критичные стили для предотвращения мигания контента
 * Все остальные стили в main.css и header.css
 * @version 1.7.2
 */

/* ============================================
   CRITICAL RESET - Предотвращает скачки
   ============================================ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.5;color:#18181b;background:#d4d4d8;min-height:100vh;-webkit-font-smoothing:antialiased;padding-top:8px}
img{max-width:100%;display:block}

/* ============================================
   CRITICAL HEADER - Виден сразу
   ============================================ */
.site-header{position:sticky;top:12px;z-index:100;max-width:1200px;margin:12px auto 0;padding:4px;background:linear-gradient(135deg,rgba(228,228,231,.95) 0%,rgba(212,212,216,.95) 100%);backdrop-filter:saturate(180%) blur(20px);border:1px solid rgba(255,255,255,.5);border-radius:20px;box-shadow:0 4px 24px rgba(0,0,0,.1)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:12px 28px}
.site-logo a{font-size:21px;font-weight:700;color:#27272a}
.site-logo img{height:32px;width:auto;display:block}
.main-navigation{flex-grow:1}
.nav-menu{display:flex;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}

/* ============================================
   FOUC PREVENTION - Скрываем до загрузки
   ============================================ */
.mobile-logo,.mobile-bottom-nav,.site-footer{display:none}

/* ============================================
   BASE LAYOUT - Критичная структура
   ============================================ */
.site-main{min-height:500px;padding:24px 24px 60px}
.content-area{max-width:1200px;margin:0 auto;padding:0}

/* ============================================
   ACCESSIBILITY - Skip link
   ============================================ */
.skip-to-content{position:absolute;top:-100%;left:50%;transform:translateX(-50%);background:#007aff;color:#fff;padding:12px 24px;border-radius:0 0 12px 12px;font-weight:500;z-index:100000;transition:top .2s}
.skip-to-content:focus{top:0}

/* ============================================
   MOBILE FOUC - Показываем после загрузки
   ============================================ */
@media (max-width:768px){
.desktop-header,.site-footer{display:none!important}
.mobile-logo{display:block!important}
.mobile-bottom-nav{display:block!important;position:fixed!important;bottom:0!important;left:16px!important;right:16px!important;z-index:9999!important;transition:transform .3s ease,opacity .3s ease}
.site-main{padding-bottom:100px}
}

/*
 * Base Styles
 * Базовые стили для всего сайта
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #18181b;
    background: #d4d4d8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-top: 8px;
}

a {
    color: #007aff;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover { 
    color: #0051d5; 
}

img {
    max-width: 100%;
    font-size: 20px;
    display: block;
}

/* Skip to content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #007aff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    font-weight: 500;
    z-index: 100000;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* Main Layout */
.site-main {
    min-height: 500px;
    padding: 24px 24px 60px;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* WooCommerce Area */
.woocommerce-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Single Product styles moved to mobile-single-product.css */

/* Posts */
article {
    margin-bottom: 32px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.entry-title {
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.entry-title a { 
    color: #27272a; 
}

.entry-title a:hover { 
    color: #007aff; 
}

.entry-content { 
    color: #6e6e73;
    line-height: 1.6;
}

/* Footer (Desktop) */
.site-footer {
    max-width: 1200px;
    margin: 40px auto 40px;
    padding: 40px 32px;
    text-align: center;
    background: linear-gradient(145deg, #71717a 0%, #52525b 50%, #3f3f46 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

.error-404-area {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.error-404-content {
    text-align: center;
    max-width: 500px;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.error-message {
    font-size: 16px;
    color: #52525b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-search {
    margin-bottom: 32px;
}

.error-search .search-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.error-search .search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.error-search .search-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.error-search .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-search .search-submit:hover {
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%);
    transform: translateY(-1px);
}

.error-search .search-submit svg {
    width: 20px;
    height: 20px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.error-actions .button-primary {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: #fff;
}

.error-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    color: #fff;
}

.error-actions .button-secondary {
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    color: #fff;
}

.error-actions .button-secondary:hover {
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Mobile 404 */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-404-content {
        padding: 0 16px;
    }
}

/* ============================================
   SEARCH RESULTS PAGE
   ============================================ */

.search-results-area {
    padding: 24px;
}

.search-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.search-query {
    color: #007aff;
}

.search-count {
    font-size: 15px;
    color: #71717a;
}

.search-results-grid {
    display: grid;
    gap: 24px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.search-result-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.search-result-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-image img {
    transform: scale(1.05);
}

.search-result-content {
    display: flex;
    flex-direction: column;
}

.search-result-header {
    margin-bottom: 12px;
}

.search-result-type {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.search-result-title a {
    color: #18181b;
}

.search-result-title a:hover {
    color: #007aff;
}

.search-result-excerpt {
    color: #52525b;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.search-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.search-result-date {
    font-size: 13px;
    color: #71717a;
}

.search-result-link {
    font-weight: 500;
    color: #007aff;
}

.search-result-link:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

.no-results-icon svg {
    width: 32px;
    height: 32px;
    color: #007aff;
}

.no-results-title {
    font-size: 24px;
    font-weight: 600;
    color: #18181b;
    margin-bottom: 8px;
}

.no-results-message {
    color: #52525b;
    margin-bottom: 24px;
}

.no-results-actions .button {
    display: inline-flex;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: #fff;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.no-results-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #52525b;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    color: #fff;
    border-color: transparent;
}

.pagination .current {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: #fff;
    border-color: transparent;
}

.pagination .prev,
.pagination .next {
    padding: 0 20px;
}

/* Mobile Search Results */
@media (max-width: 768px) {
    .search-results-area {
        padding: 16px;
    }
    
    .search-title {
        font-size: 24px;
    }
    
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-result-image {
        aspect-ratio: 16/9;
    }
    
    .search-result-title {
        font-size: 18px;
    }
    
    .search-result-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/*
 * Overlays
 * Оверлеи: меню, поиск, корзина, профиль
 */

/* Common Overlay Styles */
.mobile-menu-overlay,
.mobile-search-overlay,
.mobile-cart-overlay,
.mobile-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none; /* Отключаем клики на фоне */
}

.mobile-menu-overlay.active,
.mobile-search-overlay.active,
.mobile-cart-overlay.active,
.mobile-profile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Включаем клики когда активно */
}

/* Все ссылки внутри оверлеев должны быть кликабельны */
.mobile-cart-overlay a,
.mobile-profile-overlay a {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.mobile-menu-overlay.active,
.mobile-search-overlay.active,
.mobile-cart-overlay.active,
.mobile-profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Overlay */
.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60%;
    max-width: 320px;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    padding: 60px 24px 24px;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    border-radius: 0 24px 24px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    pointer-events: auto; /* Гарантируем кликабельность контента */
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #18181b;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: #18181b;
    transition: all 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: #007aff;
    padding-left: 8px;
}

/* Search Overlay */
.mobile-search-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    padding: 50px 24px 40px;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    pointer-events: auto; /* Гарантируем кликабельность контента */
}

.mobile-search-overlay.active .mobile-search-content {
    transform: translateY(0);
}

.mobile-search-close {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-search-close:hover {
    background: #fff;
    color: #18181b;
    transform: translateX(-50%) scale(1.05);
}

.mobile-search-close svg {
    width: 20px;
    height: 20px;
}

.mobile-search-form {
    display: flex;
    gap: 12px;
}

.mobile-search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.mobile-search-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.mobile-search-submit {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
}

.mobile-search-submit:hover {
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%);
    transform: translateY(-2px);
}

.mobile-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-search-submit svg {
    width: 20px;
    height: 20px;
}

/* Cart Overlay */
.mobile-cart-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    max-height: 80vh;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    pointer-events: auto; /* Гарантируем кликабельность контента */
}

.mobile-cart-overlay.active .mobile-cart-content {
    transform: translateY(0);
}

.mobile-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-cart-title {
    font-size: 20px;
    font-weight: 700;
    color: #18181b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    border-radius: 12px;
}

.mobile-cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
}

.mobile-cart-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #18181b;
}

.mobile-cart-close svg {
    width: 18px;
    height: 18px;
}

.mobile-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    max-height: 50vh;
}

/* Landscape ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-cart-content,
    .mobile-profile-content {
        max-height: 90vh;
    }
    
    .mobile-cart-body {
        max-height: 60vh;
    }
    
    .mobile-menu-content {
        width: 50%;
        max-width: 300px;
    }
    
    .mobile-profile-header {
        flex-direction: row;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .mobile-profile-avatar {
        margin-bottom: 0;
    }
}

.mobile-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #86868b;
}

.mobile-cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.mobile-cart-empty p {
    font-size: 16px;
}

.mobile-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    overflow: hidden;
}

.mobile-cart-item:last-child {
    border-bottom: none;
}

.mobile-cart-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-cart-item-info {
    flex: 1;
    min-width: 0;
}

.mobile-cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #18181b;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-cart-item-qty {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 4px;
}

.mobile-cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #52525b;
}

.mobile-cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #f4f4f5;
    border-color: rgba(0, 0, 0, 0.2);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn svg {
    width: 14px;
    height: 14px;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #18181b;
}

.mobile-cart-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #86868b;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.mobile-cart-item-remove:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 8px;
}

.mobile-cart-item-remove svg {
    width: 18px;
    height: 18px;
}

.mobile-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(244, 244, 245, 0.5) 0%, #f4f4f5 100%);
    border-radius: 0 0 24px 24px;
    position: relative;
    z-index: 5;
}

.mobile-cart-total-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #18181b;
}

.mobile-cart-tax-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #86868b;
}

.cart-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #18181b;
}

.mobile-cart-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    z-index: 10;
    cursor: pointer;
    border: none;
}

.mobile-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.mobile-cart-button:last-child {
    margin-bottom: 0;
}

.mobile-cart-checkout {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
}

.mobile-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Profile Overlay */
.mobile-profile-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    max-height: 70vh;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Гарантируем кликабельность контента */
}

.mobile-profile-overlay.active .mobile-profile-content {
    transform: translateY(0);
}

.mobile-profile-close {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-profile-close:hover {
    background: #fff;
    color: #18181b;
    transform: translateX(-50%) scale(1.05);
}

.mobile-profile-close svg {
    width: 20px;
    height: 20px;
}

.mobile-profile-body {
    padding: 24px;
    overflow-y: auto;
}

.mobile-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.mobile-profile-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e4e4e7 0%, #d4d4d8 100%);
    border-radius: 50%;
    margin-bottom: 12px;
    color: #71717a;
}

.mobile-profile-avatar svg {
    width: 32px;
    height: 32px;
}

.mobile-profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #18181b;
}

.mobile-profile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-profile-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #18181b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-profile-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-profile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    color: #52525b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-profile-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-profile-label {
    font-size: 16px;
    font-weight: 500;
}

.mobile-profile-logout {
    margin-top: 8px;
    color: #ff3b30;
}

.mobile-profile-logout .mobile-profile-icon {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

.mobile-profile-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
    gap: 16px;
}

.mobile-profile-auth p {
    font-size: 14px;
    color: #71717a;
    margin-bottom: 8px;
}

.mobile-profile-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
}

.mobile-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.mobile-profile-btn-outline {
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    color: #fff;
    border: none;
}

.mobile-profile-btn-outline:hover {
    background: linear-gradient(135deg, #3f3f46 0%, #52525b 100%);
    color: #fff;
}

/*
 * Responsive Utilities
 * Утилиты для адаптивного дизайна и выравнивания
 */

/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ПЕРЕНОСА ТЕКСТА
   ============================================ */

* {
    /* Перенос длинных слов */
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Для старых браузеров */
    word-break: break-word;
}

/* Переносы для основных текстовых элементов */
body {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Заголовки - перенос только при необходимости */
h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Абзацы и ссылки */
p, a, span, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Таблицы - предотвращаем переполнение */
table {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   УТИЛИТЫ ВЫРАВНИВАНИЯ
   ============================================ */

/* Текст */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ============================================
   УТИЛИТЫ ОТСТУПОВ (RESPONSIVE)
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ============================================
   МОБИЛЬНЫЕ УТИЛИТЫ (< 768px)
   ============================================ */

@media (max-width: 768px) {
    .mobile\:hidden { display: none !important; }
    .mobile\:block { display: block !important; }
    .mobile\:flex { display: flex !important; }
    .mobile\:text-center { text-align: center !important; }
    .mobile\:text-left { text-align: left !important; }
    .mobile\:p-0 { padding: 0 !important; }
    .mobile\:m-0 { margin: 0 !important; }
    
    /* Полная ширина на мобильных */
    .mobile\:w-full { width: 100% !important; }
    .mobile\:max-w-full { max-width: 100% !important; }
    
    /* Стек на мобильных */
    .mobile\:flex-col { flex-direction: column !important; }
    .mobile\:items-stretch { align-items: stretch !important; }
}

/* ============================================
   TABLET УТИЛИТЫ (769px - 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .tablet\:hidden { display: none !important; }
    .tablet\:block { display: block !important; }
    .tablet\:flex { display: flex !important; }
    
    /* Две колонки на планшете */
    .tablet\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Отступы для планшета */
    .site-main {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    .content-area,
    .woocommerce-area {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================
   DESKTOP УТИЛИТЫ (> 1024px)
   ============================================ */

@media (min-width: 1025px) {
    .desktop\:hidden { display: none !important; }
    .desktop\:block { display: block !important; }
    .desktop\:flex { display: flex !important; }
    .desktop\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .desktop\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (< 375px)
   ============================================ */

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .site-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Уменьшаем отступы в оверлеях */
    .mobile-menu-content {
        width: 75% !important;
        max-width: 280px !important;
        padding: 48px 16px 16px !important;
    }
    
    .mobile-cart-content,
    .mobile-profile-content,
    .mobile-search-content {
        left: 8px !important;
        right: 8px !important;
    }
    
    /* Уменьшаем нижнюю навигацию */
    .mobile-bottom-nav {
        left: 8px !important;
        right: 8px !important;
    }
    
    .mobile-nav-item {
        padding: 6px 8px !important;
    }
    
    .mobile-nav-label {
        font-size: 9px !important;
    }
    
    /* Карточки товаров */
    .products .product,
    .product-card {
        width: 220px !important;
    }
    
    /* Заголовки поменьше */
    .entry-title {
        font-size: 24px !important;
    }
    
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
}

/* ============================================
   БОЛЬШИЕ ЭКРАНЫ (> 1440px)
   ============================================ */

@media (min-width: 1440px) {
    .site-header,
    .content-area,
    .woocommerce-area,
    .site-footer {
        max-width: 1400px !important;
    }
}

/* ============================================
   ПРЕДОТВРАЩЕНИЕ ГОРИЗОНТАЛЬНОГО СКРОЛЛА
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fix для iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        /* Предотвращаем эффект "отскока" на iOS */
        overscroll-behavior-y: none;
    }
}

/* ============================================
   УЛУЧШЕНИЯ ДОСТУПНОСТИ
   ============================================ */

/* Focus visible для клавиатурной навигации */
*:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Убираем focus для мыши (только для тач) */
@media (hover: none) and (pointer: coarse) {
    *:focus {
        outline: none;
    }
}

/* ============================================
   УЛУЧШЕНИЯ ДЛЯ ПЕЧАТИ
   ============================================ */

@media print {
    .mobile-bottom-nav,
    .mobile-menu-overlay,
    .mobile-search-overlay,
    .mobile-cart-overlay,
    .mobile-profile-overlay,
    .site-header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    /* Показываем URL ссылок */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        opacity: 0.7;
    }
}

/*
 * Mobile Bottom Navigation
 * Мобильная навигация снизу
 */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(228, 228, 231, 0.98) 0%, rgba(212, 212, 216, 0.98) 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #52525b;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: inherit;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #18181b;
}

.mobile-nav-item.active {
    color: #007aff;
}

.mobile-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mobile-nav-icon svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
    border-radius: 9px;
    border: 2px solid rgba(228, 228, 231, 0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 9999 !important;
    }
    
    /* Hide when overlay is open */
    body.overlay-open .mobile-bottom-nav {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .desktop-header,
    .site-footer {
        display: none !important;
    }
    
    /* Стили .mobile-logo перенесены в header.css для единообразия */
    /* Здесь только display для показа на мобильных */
    .mobile-logo {
        display: block;
    }
    
    .site-main {
        padding-bottom: 100px;
    }
    
    /* Landscape ориентация - более компактная навигация */
    @media (max-height: 500px) and (orientation: landscape) {
        .mobile-bottom-nav {
            border-radius: 16px 16px 0 0;
        }
        
        .mobile-nav-item {
            padding: 4px 8px;
            flex-direction: row;
            gap: 8px;
        }
        
        .mobile-nav-icon {
            width: 20px;
            height: 20px;
        }
        
        .mobile-nav-icon svg {
            width: 18px;
            height: 18px;
        }
        
        .mobile-nav-label {
            font-size: 12px;
        }
        
        .site-main {
            padding-bottom: 60px;
        }
    }
    
    /* Очень маленькие экраны */
    @media (max-width: 375px) {
        .mobile-bottom-nav {
            left: 8px !important;
            right: 8px !important;
        }
        
        .mobile-nav-item {
            padding: 6px 4px;
        }
        
        .mobile-nav-label {
            font-size: 9px;
        }
    }
    
    /* Большие мобильные телефоны (6.7"+) */
    @media (min-width: 414px) and (max-width: 768px) {
        .mobile-bottom-nav-inner {
            max-width: 500px;
        }
        
        .mobile-nav-item {
            padding: 10px 16px;
        }
        
        .mobile-nav-icon {
            width: 26px;
            height: 26px;
        }
        
        .mobile-nav-icon svg {
            width: 24px;
            height: 24px;
        }
    }
}

/* Updated: 2026-03-10 15:15:23 - Fixed overlay transition with !important */
