/*
Theme Name: Leibal Woo Theme
Theme URI: https://example.com/
Author: Claude & Leibal
Description: Minimalistic WooCommerce-ready theme in Leibal style
Version: 2.0.2
License: GPLv2 or later
Text Domain: leibal-woo
*/

/* =============================================================================
   RESET & BASE
============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   HEADER & NAVIGATION
============================================================================= */

.header {
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: stretch;
    height: 60px;
}

.nav-main {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 20px;
    background-color: white;
}

.logo {
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    color: #000;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 400;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-right {
    display: flex;
    align-items: stretch;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    padding: 0 20px;
    height: 60px;
}

.nav-item.white {
    background-color: white;
    color: #000;
}

.nav-item.black {
    background-color: #000;
    color: #fff;
}

.nav-item:hover {
    opacity: 0.6;
}

.cart-count {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* =============================================================================
   ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ
============================================================================= */

.menu-item-language-switcher {
    margin-left: auto;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    border: 1px solid #e0e0e0;
    background: white;
    transition: all 0.2s ease;
}

.lang-link:hover {
    color: #000;
    border-color: #ccc;
    background: #f8f8f8;
}

.lang-link.active {
    color: white;
    background: #000;
    border-color: #000;
}

/* =============================================================================
   SHOP PAGE LAYOUT
============================================================================= */

.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid #e0e0e0;
}

.page-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.product-count {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.main-content {
    display: flex;
    gap: 60px;
    padding: 60px 0;
    align-items: flex-start;
}

/* =============================================================================
   SIDEBAR
============================================================================= */

.sidebar {
    min-width: 200px;
    width: 200px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 8px;
    position: relative;
}

.sidebar-list a {
    text-decoration: none;
    color: #999;
    font-size: 11px;
    font-weight: 400;
    transition: color 0.2s;
    display: block;
    line-height: 1.3;
    padding: 2px 0;
    position: relative;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    color: #000;
}

/* =============================================================================
   PRODUCT GRID
============================================================================= */

.product-section {
    flex: 1;
}

.grid,
.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products li.product {
    margin: 0;
    list-style: none;
}

.product-card,
ul.products li.product a,
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
    width: 100%;
}

.product-card:hover,
ul.products li.product a:hover,
ul.products li.product a.woocommerce-LoopProduct-link:hover {
    opacity: 0.8;
}

.product-image,
ul.products li.product img,
ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f8f8f8;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-info {
    line-height: 1.3;
}

.brand {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.category {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 400;
}

.product-name,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.price,
ul.products li.product .price {
    font-size: 12px;
    color: #000;
    font-weight: 400;
}

/* =============================================================================
   WOOCOMMERCE SPECIFIC FIXES
============================================================================= */

/* Force WooCommerce elements to use our styling */
.woocommerce .products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 40px 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    list-style: none !important;
    width: auto !important;
    float: none !important;
}

.woocommerce ul.products li.product a {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: opacity 0.2s !important;
}

.woocommerce ul.products li.product a:hover {
    opacity: 0.8 !important;
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    background: #f8f8f8 !important;
    margin-bottom: 16px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 6px 0 6px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 12px !important;
    color: #000 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Remove WooCommerce default styles */
.woocommerce ul.products li.product .button {
    display: none !important;
}

/* Fix WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #000;
    background: #f8f9fa;
    font-size: 14px;
}

/* =============================================================================
   PAGINATION
============================================================================= */

.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
    color: #000;
}

/* =============================================================================
   SINGLE PRODUCT PAGE
============================================================================= */

/* Maison Neue Font Face */
@font-face {
    font-family: 'Maison Neue';
    src: url('assets/fonts/MaisonNeue-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('assets/fonts/MaisonNeue-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('assets/fonts/MaisonNeue-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Maison Neue';
    src: url('assets/fonts/MaisonNeue-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Обновляем базовый шрифт */
body {
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Breadcrumb */
.breadcrumb {
    padding: 30px 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-breadcrumb,
.breadcrumb a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover,
.breadcrumb a:hover {
    color: #000;
}

.woocommerce-breadcrumb span,
.breadcrumb span {
    font-size: 12px;
    color: #ccc;
    margin: 0 8px;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    padding: 60px 0;
    align-items: start;
}

/* Left Side: Images + Details */
.product-left {
    position: sticky;
    top: 100px;
}

/* Images Section */
.images-section {
    margin-bottom: 40px;
}

.images-container {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 20px;
    align-items: start;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8f8f8;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f5f5f5;
    color: #ccc;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumbnail-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1 / 1;
    background-color: #f8f8f8;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f5f5f5;
    color: #ccc;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.1;
}

/* Product Details Section */
.product-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    color: #000;
}

.section-content {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Specifications */
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

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

.spec-label {
    font-size: 12px;
    color: #000;
    text-transform: capitalize;
}

.spec-value {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Downloads */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.download-link:hover {
    opacity: 0.6;
}

.download-link:last-child {
    border-bottom: none;
}

.download-icon {
    font-size: 14px;
    color: #666;
}

/* Product Info */
.product-info {
    position: sticky;
    top: 100px;
}

.product-brand {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-price {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #000;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

/* Purchase Section - Стиль как в финальном дизайне */
.purchase-section {
    margin-bottom: 40px;
}

.lead-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Стили для вариаций товаров - НАД кнопкой покупки */
.product-variations {
    margin-bottom: 24px; /* Увеличенный отступ снизу */
}

.variation-group {
    margin-bottom: 20px; /* Увеличенный отступ между группами */
}

.variation-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    color: #000;
}

.variation-select {
    width: 100%;
    padding: 16px 20px; /* Увеличенный padding для лучшего внешнего вида */
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 13px; /* Чуть крупнее шрифт */
    color: #000;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
    transition: border-color 0.2s;
    min-height: 52px; /* Минимальная высота для лучшего вида */
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.variation-select:hover,
.variation-select:focus {
    border-color: #000;
}

.variation-select option {
    padding: 12px;
    font-size: 13px;
}

.quantity-cart {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* Add to Cart Button - Left, Larger */
.add-to-cart {
    flex: 1;
    height: 56px;
    background: #000;
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.add-to-cart:hover {
    opacity: 0.8;
}

/* Quantity Selector - Right, Smaller */
.quantity-selector {
    display: flex;
    border: 1px solid #e0e0e0;
    width: 120px;
    flex-shrink: 0;
    height: 56px;
    background: white;
}

.quantity-btn {
    width: 40px;
    height: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.quantity-btn:hover {
    background: #f8f8f8;
}

.quantity-btn:first-child {
    border-right: 1px solid #e0e0e0;
}

.quantity-btn:last-child {
    border-left: 1px solid #e0e0e0;
}

.quantity-input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 14px;
    outline: none;
    background: transparent;
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    color: #000;
    height: 56px;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Shipping & Returns Section */
.shipping-returns {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.shipping-returns-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.2s;
}

.shipping-returns-title:hover {
    opacity: 0.6;
}

.shipping-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
}

.shipping-returns.open .shipping-arrow {
    transform: rotate(180deg);
}

.shipping-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.shipping-returns.open .shipping-content {
    max-height: 200px;
}

.shipping-text {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    padding-top: 8px;
}

.shipping-text p {
    margin-bottom: 12px;
}

.shipping-text p:last-child {
    margin-bottom: 0;
}

/* Related Products */
.related-products {
    border-top: 1px solid #e0e0e0;
    padding: 80px 0;
    margin-top: 80px;
}

.related-products-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px 30px;
}

/* =============================================================================
   BUTTONS
============================================================================= */

.button,
button[type="submit"],
.single_add_to_cart_button {
    padding: 12px 24px;
    background: #000;
    color: white !important;
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.button:hover,
button[type="submit"]:hover,
.single_add_to_cart_button:hover {
    opacity: 0.8;
    color: white !important;
    text-decoration: none;
}

/* =============================================================================
   FOOTER
============================================================================= */

.footer {
    border-top: 1px solid #e0e0e0;
    padding: 60px 0 40px;
    margin-top: 80px;
    background-color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.2s;
    line-height: 1.4;
}

.footer-section ul li a:hover {
    color: #000;
}

.footer-section p {
    color: #999;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.footer-bottom a {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #000;
}

/* =============================================================================
   HOMEPAGE SECTIONS
============================================================================= */

.featured-release {
    padding: 80px 0;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.release-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.release-title {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.release-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* =============================================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ИСПРАВЛЕНИЙ
============================================================================= */

/* Убираем сортировку над товарами */
.woocommerce .woocommerce-ordering,
.woocommerce-ordering {
    display: none !important;
}

/* Убираем результат счетчика над товарами */
.woocommerce .woocommerce-result-count,
.woocommerce-result-count {
    display: none !important;
}

/* Убираем стандартные кнопки на карточках товаров */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* ПАГИНАЦИЯ В СТИЛЕ LEIBAL */
.woocommerce nav.woocommerce-pagination {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    border: none;
    background: none;
    min-width: 40px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.current {
    color: #000;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.next {
    font-size: 12px;
    padding: 8px 16px;
}

/* СОРТИРОВКА В САЙДБАРЕ */
.sort-dropdown {
    margin-bottom: 16px;
}

.sort-select {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    font-size: 11px;
    color: #000;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.sort-select:hover,
.sort-select:focus {
    border-bottom-color: #000;
}

.sort-select option {
    font-size: 11px;
    padding: 6px;
}

/* ФИЛЬТРЫ */
.filter-group {
    margin-bottom: 24px;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 2px 0;
}

.filter-checkbox {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #000;
}

.filter-label {
    font-size: 11px;
    color: #666;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s;
}

.filter-label:hover {
    color: #000;
}

.filter-count {
    font-size: 10px;
    color: #999;
    margin-left: auto;
}

/* Price Filter */
.price-filter {
    margin-bottom: 16px;
}

.price-inputs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.price-input {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    font-size: 10px;
    color: #000;
    outline: none;
    text-align: center;
}

.price-input::placeholder {
    color: #999;
}

.price-input:hover,
.price-input:focus {
    border-bottom-color: #000;
}

/* NO PRODUCTS FOUND */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-products-found h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.no-products-found p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.no-products-found .button {
    padding: 12px 24px;
    background: #000;
    color: white;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: opacity 0.2s;
    display: inline-block;
}

.no-products-found .button:hover {
    opacity: 0.8;
    color: white;
}

/* УБИРАЕМ ЛИШНИЕ ЭЛЕМЕНТЫ WOOCOMMERCE */

/* Убираем breadcrumbs по умолчанию */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* Убираем notice сообщения, если они мешают */
.woocommerce-message,
.woocommerce-info {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-left: 4px solid #000;
    background: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Убираем лишние отступы */
.woocommerce-page .woocommerce {
    margin: 0;
    padding: 0;
}

/* HOVER-ЭФФЕКТ НА КАРТОЧКАХ ТОВАРОВ */
.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f8f8f8;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image .main-image,
.product-image .hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.product-image .main-image {
    opacity: 1;
    z-index: 1;
}

.product-image .hover-image {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image .main-image {
    opacity: 0;
}

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

/* Если нет hover изображения, делаем легкий zoom эффект */
.product-image:not(:has(.hover-image)) .main-image {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image:not(:has(.hover-image)) .main-image {
    transform: scale(1.05);
}

/* Placeholder изображения */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f5f5f5;
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.product-card:hover .placeholder-image {
    opacity: 0.8;
}

/* КАТЕГОРИИ В САЙДБАРЕ С ПОДКАТЕГОРИЯМИ */
.category-item {
    position: relative;
    margin-bottom: 8px;
}

.category-item.has-submenu > a {
    cursor: pointer;
    padding-right: 20px;
    position: relative;
}

.category-item.has-submenu > a::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 8px;
    color: #ccc;
    transition: transform 0.2s ease;
}

.category-item.has-submenu.open > a::after {
    transform: rotate(180deg);
}

.category-item.has-submenu:hover > a::after {
    color: #666;
}

/* Подменю категорий */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 12px;
}

.category-item.open .submenu {
    max-height: 300px;
}

.submenu li {
    margin-bottom: 4px;
}

.submenu a {
    font-size: 10px !important;
    color: #ccc !important;
    padding: 1px 0;
    position: relative;
    padding-left: 12px;
}

.submenu a::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #f0f0f0;
    font-size: 10px;
}

.submenu a:hover {
    color: #999 !important;
}

.submenu a:hover::before {
    color: #ccc;
}

.submenu a.active {
    color: #000 !important;
}

.submenu a.active::before {
    color: #000;
}

/* Счетчики в категориях */
.category-count {
    font-size: 10px;
    color: #999;
    font-weight: 300;
}

.sidebar-list a:hover .category-count {
    color: #666;
}

.sidebar-list a.active .category-count {
    color: #000;
}

/* УЛУЧШЕННЫЕ СТИЛИ ДЛЯ WOOCOMMERCE ЭЛЕМЕНТОВ */

/* Убираем все стандартные стили WooCommerce для изображений */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Контейнер для изображений в WooCommerce */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    transition: opacity 0.3s ease !important;
}

/* Out of Stock Section */
.out-of-stock {
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
}

.out-of-stock p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* WooCommerce Quantity Input Fix */
.woocommerce .quantity {
    display: contents;
}

.woocommerce .quantity .qty {
    width: 40px !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    outline: none !important;
    background: transparent !important;
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
    color: #000 !important;
    height: 56px !important;
    -moz-appearance: textfield !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* WooCommerce Single Product Summary Hooks */
.woocommerce div.product div.summary {
    margin: 0;
    padding: 0;
}

/* Hide default WooCommerce elements that we're replacing */
.woocommerce div.product .product_title {
    display: none;
}

.woocommerce div.product p.price {
    display: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    display: none;
}

.woocommerce div.product form.cart {
    margin: 0;
    padding: 0;
}

.woocommerce div.product form.cart .quantity {
    margin: 0;
}

/* Variations Fix */
.woocommerce div.product form.cart table.variations {
    display: none;
}

.woocommerce div.product form.cart .single_variation_wrap {
    display: none;
}

/* Product Images Fix - Hide default WooCommerce images */
.woocommerce div.product div.images {
    display: none;
}

.woocommerce div.product .flex-control-nav {
    display: none;
}

/* Price formatting */
.woocommerce .price {
    font-family: 'Maison Neue', 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

.woocommerce .price del {
    opacity: 0.5;
    margin-right: 8px;
}

.woocommerce .price ins {
    text-decoration: none;
    font-weight: 400;
}

/* WooCommerce Notices */
.woocommerce-message {
    background: #f8f9fa;
    border-left: 4px solid #000;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading State for Images */
.main-image img[src=""] {
    display: none;
}

.thumbnail img[src=""] {
    display: none;
}

/* Better thumbnail active state */
.thumbnail.active {
    opacity: 1;
    border: 2px solid #000;
}

/* =============================================================================
   RESPONSIVE DESIGN
============================================================================= */

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .sidebar {
        width: 100%;
        min-width: auto;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-left {
        position: static;
    }
    
    .images-container {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-info {
        position: static;
    }
    
    .grid,
    .products,
    ul.products,
    .woocommerce .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 30px 20px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav {
        flex-wrap: wrap;
        height: auto;
    }
    
    .nav-main {
        flex: 1 0 100%;
        padding: 16px 20px;
    }
    
    .nav-right {
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        height: 45px;
    }
    
    /* Стили для языкового переключателя на мобильных */
    .menu-item-language-switcher {
        order: -1;
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .language-switcher {
        justify-content: center;
        height: auto;
        gap: 12px;
    }
    
    .lang-link {
        min-width: 40px;
        height: 35px;
        font-size: 12px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-layout {
        gap: 30px;
        padding: 30px 0;
    }
    
    .quantity-cart {
        flex-direction: column;
        gap: 12px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .grid,
    .products,
    ul.products,
    .woocommerce .products,
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 30px 20px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    /* Адаптивные стили для вариаций */
    .product-variations {
        margin-bottom: 20px;
    }
    
    .variation-group {
        margin-bottom: 16px;
    }
    
    .variation-select {
        padding: 14px 16px;
        font-size: 12px;
        min-height: 48px;
        padding-right: 40px;
        background-position: right 12px center;
        background-size: 14px;
    }
    
    .variation-label {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    /* На мобильных делаем подменю всегда открытыми при клике */
    .category-item.has-submenu > a {
        padding-right: 15px;
    }
    
    .category-item.has-submenu > a::after {
        font-size: 7px;
        right: 2px;
    }
    
    .submenu {
        padding-left: 8px;
    }
    
    .submenu a {
        font-size: 11px !important;
        padding: 3px 0;
        padding-left: 10px;
    }
    
    /* Hover эффект на мобильных отключаем */
    .product-card:hover .product-image .main-image {
        opacity: 1;
    }
    
    .product-card:hover .product-image .hover-image {
        opacity: 0;
    }
    
    .out-of-stock {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .out-of-stock p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid,
    .products,
    ul.products,
    .woocommerce .products,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .product-name,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
    
    .price,
    ul.products li.product .price {
        font-size: 11px !important;
    }
    
    .woocommerce nav.woocommerce-pagination ul {
        gap: 10px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li .page-numbers {
        min-width: 30px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .variation-select {
        padding: 12px 14px;
        font-size: 11px;
        min-height: 44px;
        padding-right: 36px;
        background-position: right 10px center;
        background-size: 12px;
    }
}

/* =============================================================================
   MISC FIXES
============================================================================= */

/* Remove WordPress default margins */
.wp-block-group {
    margin: 0;
}

/* Fix admin bar spacing */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* Clear floats */
.clear,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Hide screen reader text */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Убираем margin/padding у WooCommerce списков */
.woocommerce ul.products,
.woocommerce .products {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Фиксируем layout для продуктов */
.woocommerce ul.products li.product,
.woocommerce .products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

/* Убираем box-sizing проблемы */
.woocommerce ul.products li.product *,
.woocommerce .products li.product * {
    box-sizing: border-box;
}

/* Исправляем проблемы с clearfix */
.woocommerce ul.products::after,
.woocommerce .products::after {
    display: none !important;
}

/* Скрываем пустые элементы переводов */
.section-content:empty,
.spec-value:empty {
    display: none;
}

/* Стили для индикатора загрузки переводов */
.translation-loading {
    opacity: 0.6;
    position: relative;
}

.translation-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Исправления для совместимости с qTranslate-XT */
.qtranxs-lang-switch {
    display: none !important;
}

/* Переопределяем стандартные стили qTranslate если они конфликтуют */
#qtranslate-chooser {
    display: none !important;
}

/* Стили для уведомлений о переводах */
.translation-notice {
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.translation-notice.warning {
    border-left-color: #ffb900;
    background: #fff8e1;
}

.translation-notice.error {
    border-left-color: #dc3232;
    background: #ffeaea;
}

/* Стили для правильного отображения RTL языков (если нужно) */
[dir="rtl"] .lang-link {
    direction: rtl;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .variation-select {
    background-position: left 12px center;
    padding-left: 40px;
    padding-right: 16px;
}

/* Улучшенная типографика для многоязычного контента */
.section-content {
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Стили для цветовых и материальных вариаций */
.variation-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Если нужны цветовые свотчи в селекте */
.variation-option-with-swatch {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

/* =============================================================================
   ЛАЙТБОКС ДЛЯ ГАЛЕРЕИ ТОВАРОВ
============================================================================= */

.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Кнопки управления лайтбоксом */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    line-height: 1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    line-height: 1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Счетчик изображений */
.lightbox-counter {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

/* =============================================================================
   УЛУЧШЕНИЯ ДЛЯ ОСНОВНОЙ ГАЛЕРЕИ
============================================================================= */

/* Курсор zoom-in для главного изображения */
.main-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Улучшенные состояния thumbnail'ов */
.thumbnail {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #000;
    opacity: 1;
    transform: scale(1.02);
}

.thumbnail:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Индикатор загрузки для изображений */
.main-image img {
    transition: opacity 0.3s ease;
}

.loading-image {
    position: relative;
}

.loading-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ ЛАЙТБОКСА
============================================================================= */

@media (max-width: 768px) {
    .lightbox-container {
        padding: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: calc(95vh - 80px);
    }
    
    .lightbox-counter {
        margin-top: 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-container {
        padding: 10px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 5px;
        right: 5px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .lightbox-image {
        max-height: calc(98vh - 60px);
    }
    
    .lightbox-counter {
        margin-top: 10px;
        font-size: 11px;
    }
}

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

/* Фокус состояния для кнопок лайтбокса */
.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Скрытие кнопок навигации когда они неактивны */
.lightbox-prev[style*="display: none"],
.lightbox-next[style*="display: none"] {
    pointer-events: none;
    opacity: 0;
}

/* Анимация появления лайтбокса */
.product-lightbox {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.product-lightbox.active .lightbox-content {
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Предотвращение выделения текста в лайтбоксе */
.product-lightbox {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Стили для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .main-image:hover {
        transform: none;
    }
    
    .thumbnail:hover {
        opacity: 1;
        transform: none;
    }
    
    .lightbox-prev:hover,
    .lightbox-next:hover,
    .lightbox-close:hover {
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .lightbox-close:hover {
        transform: none;
    }
}

/* Исправления для высоких разрешений */
@media (min-width: 1920px) {
    .lightbox-image {
        max-width: 80vw;
        max-height: 80vh;
    }
}

/* Темная тема поддержка (если нужно) */
@media (prefers-color-scheme: dark) {
    .product-lightbox {
        background: rgba(0, 0, 0, 0.98);
    }
}

/* =============================================================================
   LEIBAL EXACT TYPOGRAPHY STYLES - Точная копия оригинала
============================================================================= */

@import './maison-neue.css';

:root {
  --leibal-font-family: 'Maison Neue', sans-serif;
  --leibal-primary-color: #484634;
  --leibal-text-dark: #000;
  --leibal-text-medium: #555;
  --leibal-text-light: #888;
  --leibal-border-color: #ddd;
  --leibal-letter-spacing: 0.09375rem; /* 1.5px */
  --leibal-letter-spacing-wide: 2px; /* как в body */
}

/* =============================================================================
   BASE TYPOGRAPHY - ТОЧНО КАК У LEIBAL
============================================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Maison Neue', sans-serif;
  font-size: 15px;
  font-weight: 100;
  line-height: 1.7;
  letter-spacing: 2px;
  color: #000;
  margin: 0;
  padding: 0;
  border: 0;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   PRODUCT PAGE TYPOGRAPHY - ТОЧНЫЕ РАЗМЕРЫ LEIBAL
============================================================================= */

/* Product Brand - 10px */
.product-brand {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Product Title - 20px */
.product-title,
h1.product-title {
  font-family: var(--leibal-font-family);
  font-size: 1.25rem; /* 20px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  margin: 0 0 1rem 0;
  text-transform: none;
}

/* Product Price - 12px */
.product-price,
.price {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-price del,
.price del {
  opacity: 0.5;
  margin-right: 0.5rem;
}

.product-price ins,
.price ins {
  text-decoration: none;
  font-weight: 100;
}

/* Product Description - 12px */
.product-description {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-medium);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-description p {
  margin-bottom: 1.5rem;
  font-weight: 100;
}

.product-description p:last-child {
  margin-bottom: 0;
}

/* Lead Time - 10px */
.lead-time {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  letter-spacing: var(--leibal-letter-spacing);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* =============================================================================
   PRODUCT DETAILS & SPECIFICATIONS
============================================================================= */

/* Section Titles - 10px */
.section-title {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Section Content - 12px */
.section-content {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-medium);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
}

.section-content p {
  margin-bottom: 1.5rem;
  font-weight: 100;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Specifications List */
.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--leibal-border-color);
}

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

.spec-label {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-transform: capitalize;
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
}

.spec-value {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-medium);
  letter-spacing: var(--leibal-letter-spacing);
  text-align: right;
  line-height: 1.7;
}

/* =============================================================================
   FORM ELEMENTS & BUTTONS - ФИРМЕННЫЙ ЦВЕТ LEIBAL
============================================================================= */

/* Variation Labels - 10px */
.variation-label {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1.7;
}

/* Variation Selects - 12px */
.variation-select {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  padding: 1rem 1.25rem;
  border: 1px solid var(--leibal-border-color);
  background: white;
  outline: none;
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 52px;
}

.variation-select:focus,
.variation-select:hover {
  border-color: var(--leibal-primary-color);
}

/* Add to Cart Button - ФИРМЕННЫЙ ЦВЕТ #484634 */
.add-to-cart,
.single_add_to_cart_button,
button[type="submit"],
.button {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: white !important;
  background: var(--leibal-primary-color);
  border: none;
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.25s ease-in-out;
  line-height: 1.7;
  min-height: 52px;
  text-decoration: none;
  display: inline-block;
}

.add-to-cart:hover,
.single_add_to_cart_button:hover,
button[type="submit"]:hover,
.button:hover {
  opacity: 0.8;
  color: white !important;
  text-decoration: none;
}

/* Quantity Input - 12px */
.quantity-input {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  text-align: center;
  border: none;
  outline: none;
  background: transparent;
  width: 40px;
  height: 52px;
  line-height: 1.7;
  -moz-appearance: textfield;
}

.quantity-btn {
  font-family: var(--leibal-font-family);
  font-size: 1rem;
  font-weight: 100;
  color: var(--leibal-text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  width: 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.7;
}

.quantity-btn:hover {
  background: var(--leibal-primary-color);
  color: white;
}

/* =============================================================================
   SHIPPING & RETURNS
============================================================================= */

.shipping-returns-title {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  line-height: 1.7;
  transition: opacity 0.25s ease-in-out;
}

.shipping-returns-title:hover {
  opacity: 0.6;
}

.shipping-text {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-medium);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
}

.shipping-text p {
  margin-bottom: 1rem;
  font-weight: 100;
}

.shipping-text p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   PRODUCT GRID & CARDS
============================================================================= */

/* Brand on Product Cards - 10px */
.brand {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 0.25rem;
  line-height: 1.7;
}

/* Product Name on Cards - 15px */
.product-name,
.woocommerce-loop-product__title {
  font-family: var(--leibal-font-family);
  font-size: 0.9375rem; /* 15px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  margin: 0.375rem 0;
}

/* Price on Cards - 12px */
.price {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
}

/* =============================================================================
   BREADCRUMB & NAVIGATION
============================================================================= */

.woocommerce-breadcrumb,
.breadcrumb a {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  transition: color 0.25s ease-in-out;
}

.woocommerce-breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--leibal-text-dark);
}

/* =============================================================================
   SIDEBAR TYPOGRAPHY
============================================================================= */

.sidebar-title {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.sidebar-list a {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  text-decoration: none;
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  transition: color 0.25s ease-in-out;
  display: block;
  padding: 0.125rem 0;
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--leibal-text-dark);
}

/* Category Count */
.category-count {
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-light);
  letter-spacing: var(--leibal-letter-spacing);
}

/* =============================================================================
   DOWNLOAD LINKS
============================================================================= */

.download-link {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--leibal-border-color);
  transition: opacity 0.25s ease-in-out;
  line-height: 1.7;
}

.download-link:hover {
  opacity: 0.6;
}

.download-link:last-child {
  border-bottom: none;
}

.download-icon {
  font-size: 0.75rem; /* 12px */
  color: var(--leibal-text-medium);
}

/* =============================================================================
   HEADER & FOOTER NAVIGATION
============================================================================= */

/* Logo */
.logo {
  font-family: var(--leibal-font-family);
  font-size: 0.9375rem; /* 15px */
  font-weight: 100;
  text-decoration: none;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  text-transform: uppercase;
  line-height: 1.7;
}

/* Navigation Links */
.nav-links a {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  transition: opacity 0.25s ease-in-out;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Nav Items */
.nav-item {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
  transition: opacity 0.25s ease-in-out;
}

.nav-item:hover {
  opacity: 0.6;
}

/* =============================================================================
   PAGE HEADERS
============================================================================= */

.page-title {
  font-family: var(--leibal-font-family);
  font-size: 1.25rem; /* 20px */
  font-weight: 100;
  color: var(--leibal-text-dark);
  letter-spacing: var(--leibal-letter-spacing);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.product-count {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  color: var(--leibal-text-medium);
  letter-spacing: var(--leibal-letter-spacing);
  line-height: 1.7;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
============================================================================= */

@media (max-width: 1024px) {
  .product-title,
  h1.product-title {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 0.75rem;
  }

  .variation-select,
  .add-to-cart,
  .single_add_to_cart_button {
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .product-title,
  h1.product-title {
    font-size: 1rem; /* 16px */
  }

  .variation-select,
  .add-to-cart,
  .single_add_to_cart_button {
    min-height: 44px;
  }
}

/* =============================================================================
   FORCE OVERRIDE WOOCOMMERCE STYLES
============================================================================= */

.woocommerce .product-name,
.woocommerce .woocommerce-loop-product__title {
  font-family: var(--leibal-font-family) !important;
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 100 !important;
  letter-spacing: var(--leibal-letter-spacing) !important;
  line-height: 1.7 !important;
  margin: 0.375rem 0 !important;
}

.woocommerce .price {
  font-family: var(--leibal-font-family) !important;
  font-size: 0.75rem !important; /* 12px */
  font-weight: 100 !important;
  letter-spacing: var(--leibal-letter-spacing) !important;
  line-height: 1.7 !important;
}

.woocommerce .add-to-cart,
.woocommerce .single_add_to_cart_button,
.woocommerce button[type="submit"],
.woocommerce .button {
  font-family: var(--leibal-font-family) !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 100 !important;
  text-transform: uppercase !important;
  letter-spacing: var(--leibal-letter-spacing) !important;
  background: var(--leibal-primary-color) !important;
  color: white !important;
  line-height: 1.7 !important;
}

/* =============================================================================
   CUSTOM INPUTS & FORMS
============================================================================= */

.dimension-input {
  all: unset;
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  letter-spacing: var(--leibal-letter-spacing);
  padding-bottom: 0.13rem;
  border-bottom: 1px solid var(--leibal-text-dark);
  text-align: center;
  width: 2.5rem;
  box-sizing: border-box;
  line-height: 1.7;
}

.dimension-apply {
  all: unset;
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  letter-spacing: var(--leibal-letter-spacing);
  padding: 2px 0.5rem;
  border: 1px solid var(--leibal-text-dark);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  line-height: 1.7;
}

.dimension-apply:hover {
  background-color: var(--leibal-primary-color);
  color: white;
  border-color: var(--leibal-primary-color);
}

/* =============================================================================
   SEARCH FORM
============================================================================= */

.search-input {
  font-family: var(--leibal-font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: 100;
  letter-spacing: var(--leibal-letter-spacing);
  border: none;
  background: transparent;
  outline: none;
  color: var(--leibal-text-dark);
  line-height: 1.7;
  width: 100%;
}

.search-input::placeholder {
  color: var(--leibal-text-light);
  font-weight: 100;
}

.search-close {
  font-family: var(--leibal-font-family);
  font-size: 0.625rem; /* 10px */
  font-weight: 100;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--leibal-text-light);
  text-transform: uppercase;
  letter-spacing: var(--leibal-letter-spacing);
  transition: color 0.25s ease-in-out;
  line-height: 1.7;
}

.search-close:hover {
  color: var(--leibal-text-dark);
}

/* =============================================================================
   MOBILE HEADER - LEIBAL STORE EXACT DESIGN
   Добавить в конец style.css или в отдельный mobile-header.css файл
============================================================================= */

/* =============================================================================
   BASE MOBILE HEADER OVERRIDES
============================================================================= */

@media (max-width: 768px) {
    /* Ensure header is always on top */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Adjust body padding to account for fixed header */
    body {
        padding-top: 60px;
    }
    
    .admin-bar body {
        padding-top: 106px; /* 60px header + 46px admin bar */
    }
    
    /* Hide desktop navigation elements */
    .nav-main,
    .nav-right {
        display: none;
    }
    
    /* Override container padding on mobile */
    .header .container {
        padding: 0;
        max-width: 100%;
    }
}

/* =============================================================================
   MOBILE NAVIGATION LAYOUT
============================================================================= */

@media (max-width: 768px) {
    .mobile-nav-container {
        display: grid;
        grid-template-columns: 44px 1fr 120px;
        align-items: center;
        height: 60px;
        padding: 0 20px;
        gap: 16px;
    }
    
    .mobile-menu-btn {
        justify-self: start;
    }
    
    .mobile-logo {
        justify-self: center;
        position: static;
        transform: none;
        left: auto;
    }
    
    .mobile-nav-right {
        justify-self: end;
    }
}

/* =============================================================================
   ENHANCED MOBILE ICONS
============================================================================= */

@media (max-width: 768px) {
    .mobile-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .mobile-icon-btn:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.95);
    }
    
    /* Cart count styling improvements */
    .mobile-cart-count {
        font-size: 9px;
        min-width: 14px;
        height: 14px;
        top: 4px;
        right: 4px;
        line-height: 14px;
        padding: 0 2px;
    }
    
    /* Hide count when zero */
    .mobile-cart-count[data-count="0"],
    .mobile-cart-count:empty {
        display: none;
    }
}

/* =============================================================================
   MOBILE MENU ENHANCEMENTS
============================================================================= */

@media (max-width: 768px) {
    /* Smooth menu animation */
    .mobile-menu {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        will-change: transform;
    }
    
    /* Menu list improvements */
    .mobile-menu-list > li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-list > li > a {
        position: relative;
    }
    
    .mobile-menu-list > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background: #f0f0f0;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .mobile-menu-list > li > a:hover::after {
        opacity: 1;
    }
    
    /* Submenu styling improvements */
    .mobile-submenu {
        border-top: 1px solid #e0e0e0;
    }
    
    .mobile-submenu a {
        position: relative;
    }
    
    .mobile-submenu a::before {
        content: '—';
        color: #ccc;
        margin-right: 8px;
        font-size: 12px;
    }
}

/* =============================================================================
   SEARCH BAR MOBILE ADJUSTMENTS
============================================================================= */

@media (max-width: 768px) {
    .search-bar {
        border-top: 1px solid #e0e0e0;
    }
    
    .search-container {
        max-width: 100%;
        height: 60px;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        height: 44px;
    }
    
    .search-close {
        white-space: nowrap;
        padding: 0 16px;
        height: 44px;
        border-left: 1px solid #e0e0e0;
        margin-left: 16px;
    }
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS FOR MOBILE HEADER
============================================================================= */

/* Large mobile screens */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav-container {
        padding: 0 24px;
    }
    
    .mobile-nav-right {
        gap: 20px;
    }
    
    .mobile-icon-btn {
        width: 36px;
        height: 36px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .mobile-nav-container {
        padding: 0 16px;
        grid-template-columns: 40px 1fr 100px;
        gap: 12px;
    }
    
    .mobile-logo {
        font-size: 13px;
    }
    
    .mobile-nav-right {
        gap: 12px;
    }
    
    .mobile-icon-btn {
        width: 28px;
        height: 28px;
    }
    
    .mobile-icon-btn img,
    .mobile-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-cart-count {
        font-size: 8px;
        min-width: 12px;
        height: 12px;
        top: 2px;
        right: 2px;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        width: 260px;
    }
    
    .mobile-menu-list > li > a {
        padding: 18px;
        font-size: 15px;
    }
    
    .mobile-submenu a {
        padding: 14px 18px 14px 36px;
        font-size: 13px;
    }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
============================================================================= */

@media (max-width: 768px) {
    /* Hardware acceleration for animations */
    .mobile-menu,
    .mobile-menu-overlay,
    .hamburger-line {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Optimize transitions */
    .mobile-menu {
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu.active {
        transform: translate3d(0, 0, 0);
    }
    
    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
        .mobile-menu,
        .mobile-menu-overlay,
        .hamburger-line,
        .mobile-dropdown-arrow {
            transition: none;
        }
    }
}

/* =============================================================================
   DARK MODE SUPPORT (Optional)
============================================================================= */

@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .mobile-menu {
        background: #1a1a1a;
        color: white;
    }
    
    .mobile-menu-list > li {
        border-bottom-color: #333;
    }
    
    .mobile-menu-list > li > a {
        color: white;
    }
    
    .mobile-submenu {
        background: #2a2a2a;
    }
    
    .mobile-submenu a {
        color: #ccc;
    }
    
    .mobile-submenu a:hover {
        color: white;
        background: #333;
    }
}

/* =============================================================================
   INTEGRATION WITH EXISTING STYLES
============================================================================= */

/* Ensure compatibility with existing dropdown styles */
@media (min-width: 769px) {
    .mobile-nav,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Language switcher mobile positioning */
@media (max-width: 768px) {
    .menu-item-language-switcher {
        order: -1;
        margin: 0;
        padding: 16px 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .language-switcher {
        justify-content: center;
        height: auto;
        gap: 12px;
    }
    
    .lang-link {
        min-width: 40px;
        height: 32px;
        font-size: 11px;
    }
}

/* Cart count update animation */
@keyframes cartCountUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.mobile-cart-count.updated {
    animation: cartCountUpdate 0.3s ease;
}

/* Focus states for better accessibility */
@media (max-width: 768px) {
    .mobile-menu-btn:focus,
    .mobile-icon-btn:focus {
        outline: 2px solid #484634;
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    .mobile-menu-list a:focus,
    .mobile-submenu a:focus {
        background: rgba(72, 70, 52, 0.1);
        outline: none;
    }
}

/* =============================================================================
   SEARCH BAR БЕЗОПАСНОЕ ИСПРАВЛЕНИЕ - ДОБАВИТЬ В КОНЕЦ style.css
============================================================================= */

/* По умолчанию поиск полностью скрыт */
.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Показываем только на десктопе когда активен */
@media (min-width: 769px) {
    .search-bar {
        display: flex;
    }
    
    .search-bar.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Контейнер поиска */
.search-container {
    max-width: 600px;
    width: 90%;
    padding: 0 20px;
}

.search-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Форма поиска */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Maison Neue', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: #000;
    outline: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.search-input::placeholder {
    color: #999;
    font-weight: 100;
}

.search-form button[type="submit"] {
    background: none;
    border: none;
    font-family: 'Maison Neue', sans-serif;
    font-size: 12px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #000;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 8px 16px;
}

.search-form button[type="submit"]:hover {
    opacity: 0.6;
}

/* Кнопка закрытия */
.search-close {
    background: none;
    border: none;
    font-family: 'Maison Neue', sans-serif;
    font-size: 12px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 8px 16px;
    white-space: nowrap;
}

.search-close:hover {
    color: #000;
}

/* ПОЛНОСТЬЮ скрываем на мобильных */
@media (max-width: 768px) {
    .search-bar,
    .search-bar.active,
    #searchBar {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Скрываем кнопку Search на мобильных */
    .nav-item.black {
        display: none !important;
    }
}

/* Убеждаемся что кнопка Search видна на десктопе */
@media (min-width: 769px) {
    .nav-item.black {
        display: flex !important;
    }
}

/* Анимация появления */
.search-bar.active .search-content {
    animation: searchFadeIn 0.3s ease;
}

@keyframes searchFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Фокус стили для accessibility */
.search-input:focus {
    box-shadow: 0 0 0 2px rgba(72, 70, 52, 0.1);
}

.search-form button:focus,
.search-close:focus {
    outline: 2px solid #484634;
    outline-offset: 2px;
}