/*
Theme Name: Green Ferm
Theme URI: https://greenferm-group.ru
Author: Alex
Author URI: http://greenferm-group.ru
Description: Тема для фермерского магазина Green Ferm с фиксированным хидером и слайдером
Version: 1.0.0
License: GPL v2 or later
Text Domain: greenferm
Tags: farm, organic, green, agriculture, e-commerce
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gravity', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Убираем стандартные отступы WordPress */
.entry-header, .entry-content, .entry-footer {
    margin: 0 !important;
    padding: 0 !important;
}

img {
    vertical-align: middle;
    border-style: none;
    max-width: 100%;
    height: auto;
}

button:focus {
    outline: none;
}

/* ============================================
   HEADER
   ============================================ */
.mslf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.admin-bar .mslf-header {
    top: 32px;
}

.mslf-header.mslf-scrolled {
    background-color: rgba(255, 255, 255, 0.99);
}

.mslf-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Логотип */
.mslf-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5e2e;
    text-decoration: none;
    z-index: 1001;
}

.mslf-logo i {
    margin-right: 10px;
    font-size: 2rem;
    color: #4CAF50;
}

/* Мобильное меню - кнопка */
.mslf-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2c5e2e;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

/* Навигация - десктопная версия */
.mslf-nav {
    position: static;
}

.mslf-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mslf-nav ul li {
    margin-left: 30px;
}

.mslf-nav ul li a {
    position: relative;
    padding: 5px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mslf-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.mslf-nav ul li a:hover,
.mslf-nav ul li a.mslf-active,
.current-menu-item > a,
.current_page_item > a {
    color: #4CAF50 !important;
}

.mslf-nav ul li a:hover:after,
.mslf-nav ul li a.mslf-active:after,
.current-menu-item > a:after,
.current_page_item > a:after {
    width: 100% !important;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.mslf-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mslf-loading-screen.mslf-hidden {
    opacity: 0;
    visibility: hidden;
}

.mslf-leaf-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.mslf-leaf-spinner__circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: mslf-spin 1s linear infinite;
}

.mslf-leaf-spinner__leaf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #2E7D32;
}

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

.mslf-loading-text {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #2c5e2e;
}

.mslf-loading-subtext {
    max-width: 300px;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    text-align: center;
    color: #666;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.mslf-scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mslf-scroll-to-top.mslf-visible {
    opacity: 1;
    visibility: visible;
}

.mslf-scroll-to-top:hover {
    background: linear-gradient(135deg, #3d8b40, #1B5E20);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SLIDER
   ============================================ */
.mslf-hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
}

body.admin-bar .mslf-hero-slider {
    margin-top: 112px;
}

.mslf-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mslf-slide.mslf-active {
    opacity: 1;
}

.mslf-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 800px;
    padding: 0 20px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
}

.mslf-slider-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.mslf-slider-arrow {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    border: none;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.mslf-slider-arrow:hover {
    background-color: rgba(76, 175, 80, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.mslf-slider-arrow.mslf-prev {
    left: 20px;
}

.mslf-slider-arrow.mslf-next {
    right: 20px;
}

.mslf-slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.mslf-slider-dots {
    display: flex;
    gap: 10px;
}

.mslf-slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mslf-slider-dot.mslf-active {
    background-color: #4CAF50;
    transform: scale(1.2);
}

/* ============================================
   TYPOGRAPHY & COMMON ELEMENTS
   ============================================ */
.mslf-h1, .mslf-h2, .mslf-h3, .mslf-h4 {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    color: #2c5e2e;
}

.mslf-h1 {
    margin: 0 0 20px;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mslf-h2 {
    position: relative;
    margin-bottom: 90px;
    font-size: 2.5rem;
    text-align: center;
}

.mslf-h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.mslf-h3 {
    margin: 0 0 20px;
    font-size: 1.8rem;
}

.mslf-h4 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.mslf-text {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
}

.mslf-text-dark { color: #444; }
.mslf-text-gray { color: #555; }
.mslf-text-light { color: #ddd; }
.mslf-text-white { color: #fff; }

/* Кнопка */
.mslf-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mslf-btn:hover {
    background: linear-gradient(135deg, #3d8b40, #1B5E20);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mslf-btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Контейнер и секции */
.mslf-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mslf-section {
    padding: 80px 0;
}

/* ============================================
   IMAGE LOADING SYSTEM
   ============================================ */
.mslf-image-container {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background-color: #f5f5f5;
}

.mslf-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mslf-image-fallback i {
    font-size: 3rem;
    color: #bdbdbd;
}

.mslf-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mslf-img.mslf-loaded {
    opacity: 1;
}

.mslf-img[style*="display: none"],
.mslf-img:not([src]),
.mslf-img[src=""] {
    display: none !important;
}

.mslf-image-loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

.mslf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 80, 0.2);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: mslf-spin 1s linear infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.mslf-about {
    background-color: #fff;
}

.mslf-about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mslf-about-text {
    flex: 1;
}

.mslf-about-image {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PRODUCTS GRID & CARDS
   ============================================ */
.mslf-products-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .mslf-products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .mslf-products-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .mslf-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 576px) and (max-width: 767px) {
    .mslf-products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 575px) {
    .mslf-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
    }
}

.mslf-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mslf-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mslf-product-img {
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
    background-color: #e8f5e9;
}

.mslf-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 220px;
    padding: 20px;
}

.mslf-product-info .mslf-h3 {
    min-height: 2.8em;
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mslf-product-info .mslf-h3 a {
    color: #2c5e2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mslf-product-info .mslf-h3 a:hover {
    color: #4CAF50;
}

.mslf-product-info .mslf-text-gray {
    flex-grow: 1;
    min-height: 4.5em;
    max-height: 4.5em;
    margin: 0 0 15px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mslf-price {
    flex-shrink: 0;
    min-height: 1.5em;
    margin-bottom: 15px;
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
}

.mslf-product-info .mslf-btn {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
}

/* Для WooCommerce */
.mslf-product-card a.button,
.mslf-product-card a.added_to_cart {
    display: block !important;
    width: 100% !important;
    margin-top: 15px !important;
    text-align: center;
}

.mslf-product-card .star-rating {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.mslf-product-card .woocommerce-loop-product__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mslf-product-card del {
    margin-right: 5px;
    color: #888;
    font-size: 0.9em;
    opacity: 0.6;
}

.mslf-product-card ins {
    color: #4CAF50;
    text-decoration: none;
}

.mslf-product-card .added_to_cart {
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.9rem;
    border-radius: 5px;
}

.mslf-product-card .added_to_cart:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* Категория товаров */
.mslf-product-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.mslf-category-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   STRAWBERRY SECTION
   ============================================ */
.mslf-strawberry {
    background-color: #fff;
}

.mslf-strawberry-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mslf-strawberry-image {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mslf-strawberry-text {
    flex: 1;
}

.mslf-features {
    margin-top: 20px;
}

.mslf-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mslf-feature i {
    margin-right: 10px;
    margin-top: 5px;
    color: #4CAF50;
    font-size: 1.2rem;
}

/* ============================================
   CONTACTS SECTION
   ============================================ */
.mslf-contacts {
    background-color: #f5f9f5;
}

.mslf-contact-container {
    display: flex;
    gap: 50px;
}

.mslf-contact-info {
    flex: 1;
}

.mslf-contact-form {
    flex: 1;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mslf-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.mslf-contact-item i {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 10%;
}

/* Формы */
.mslf-form-group {
    margin-bottom: 20px;
}

.mslf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.mslf-form-control {
    width: 100%;
    padding: 12px 15px;
    color: #333;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.mslf-form-control:focus {
    border-color: #4CAF50;
    outline: none;
}

.mslf-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.mslf-footer {
    padding: 60px 0 20px;
    background: linear-gradient(135deg, #2c5e2e, #1B5E20);
    color: #fff;
}

.mslf-footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.mslf-footer-column {
    flex: 1;
    min-width: 250px;
}

.mslf-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mslf-footer-links li {
    margin-bottom: 10px;
}

.mslf-footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mslf-footer-links a:hover {
    color: #4CAF50;
}

.mslf-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.mslf-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mslf-social-icons a:hover {
    background-color: #4CAF50;
    transform: translateY(-5px);
}

/* Платежные иконки */
.mslf-payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 15px 0;
}

.mslf-payment-icon {
    width: 35px;
    height: 25px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.mslf-payment-icon:hover {
    transform: translateY(-2px);
}

.mslf-visa { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAzNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHJ4PSIyIiBmaWxsPSIjMUE1OUJGIi8+PHBhdGggZD0iTTE0LjUgM0gxOS41VjIySDE0LjVWM1oiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTIxLjUgM0gyNC41VjIySDIxLjVWM1oiIGZpbGw9IiNGRjRBMDAiLz48cGF0aCBkPSJNMTcuNSA4LjVDMTguMzMzIDcuODMzIDE5Ljc1IDcuMjUgMjEuNzUgNy4yNUgyMi43NUMyNC43NSA3LjI1IDI2IDguMTY3IDI2Ljk1IDlMMzAuNSA5QzI5LjY2NyA1LjgzMyAyNy4yNSA0IDIzLjc1IDRDMjAuMjUgNCAxNy41IDUuNjY3IDE1IDlMMTUgMTMuNUMxNy41IDE4LjgzMyAyMC43NSAyMSAyMy43NSAyMUMyNi43NSAyMSAyOS42NjcgMTguODMzIDMwLjUgMTRMMjYuOTUgMTRDMjYgMTYuMzMzIDI0Ljc1IDE3LjI1IDIyLjc1IDE3LjI1QzIwLjc1IDE3LjI1IDE5LjMzMyAxNi41ODMgMTguNSAxNS41VjguNVoiIGZpbGw9IndoaXRlIi8+PC9zdmc+'); }
.mslf-mastercard { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAzNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHJ4PSIyIiBmaWxsPSIjMjkwQTRCIi8+PGNpcmNsZSBjeD0iMTQuNSIgY3k9IjEyLjUiIHI9IjgiIGZpbGw9IiNFRjUwMjQiLz48Y2lyY2xlIGN4PSIyMC41IiBjeT0iMTIuNSIgcj0iOCIgZmlsbD0iI0ZGN0YwMCIvPjxjaXJjbGUgY3g9IjE3LjUiIGN5PSIxMi41IiByPSI4IiBmaWxsPSIjREYzMzAwIi8+PC9zdmc+'); }
.mslf-mir { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAzNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHJ4PSIyIiBmaWxsPSIjMEU3QUMwIi8+PHBhdGggZD0iTTExIDhDMTEgNS4yNCAxMy40OCAzIDE2LjUgM0MxOS41MiAzIDIyIDUuMjQgMjIgOEMyMiAxMC43NiAxOS41MiAxMyAxNi41IDEzQzEzLjQ4IDEzIDExIDEwLjc2IDExIDhaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0yMiA4QzIyIDUuMjQgMjQuNDggMyAyNy41IDNDMzAuNTIgMyAzMyA1LjI0IDMzIDhDMzMgMTAuNzYgMzAuNTIgMTMgMjcuNSAxM0MyNC40OCAxMyAyMiAxMC43NiAyMiA4WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTYuNSA4QzE2LjUgNi42MiAxNy40OCA1LjUgMTguNzUgNS41QzIwLjAyIDUuNSAyMSA2LjYyIDIxIDhDMjEgOS4zOCAyMC4wMiAxMC41IDE4Ljc1IDEwLjVDMTcuNDggMTAuNSAxNi41IDkuMzggMTYuNSA4WiIgZmlsbD0iIzBFN0FDMCIvPjxwYXRoIGQ9Ik0yNy41IDhDMjcuNSA2LjYyIDI4LjQ4IDUuNSAyOS43NSA1LjVDMzEuMDIgNS41IDMyIDYuNjIgMzIgOEMzMiA5LjM4IDMxLjAyIDEwLjUgMjkuNzUgMTAuNUMyOC40OCAxMC41IDI3LjUgOS4zOCAyNy41IDhaIiBmaWxsPSIjMEU3QUMwIi8+PC9zdmc+'); }
.mslf-maestro { background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAzNSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMzUiIGhlaWdodD0iMjUiIHJ4PSIyIiBmaWxsPSIjMDAwQTZGIi8+PHBhdGggZD0iTTE3LjUgM0MxMy4zMzMgMyA5LjY2NyA2LjE2NyA5IDEyQzkuMTY3IDE3LjgzMyAxMy4zMzMgMjEgMTcuNSAyMUMyMS42NjcgMjEgMjUuODMzIDE3LjgzMyAyNiAxMkMyNS44MzMgNi4xNjcgMjEuNjY3IDMgMTcuNSAzWiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTcuNSAyMUMyMS42NjcgMjEgMjUuODMzIDE3LjgzMyAyNiAxMkMxOC42NjcgMTIgMTAuMzMzIDEyIDkgMTJDOS4xNjcgMTcuODMzIDEzLjMzMyAyMSAxNy41IDIxWiIgZmlsbD0iI0ZGNEEwMCIvPjxjaXJjbGUgY3g9IjEyLjUiIGN5PSIxMiIgcj0iNCIgZmlsbD0iIzAwMEE2RiIvPjxjaXJjbGUgY3g9IjIyLjUiIGN5PSIxMiIgcj0iNCIgZmlsbD0iIzAwMEE2RiIvPjwvc3ZnPg=='); }

.mslf-copyright {
    padding-top: 10px;
    color: #ccc;
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.mslf-breadcrumbs {
    margin-top: 30px;
    padding: 30px 0; /* Увеличиваем вертикальные отступы до 30px */
    background-color: #f5f9f5;
    border-bottom: 1px solid #e0e0e0;
}

body.admin-bar {
    margin-top: 112px;
}

/* Уменьшаем размер текста и отступы между элементами */
.mslf-breadcrumbs-nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
}

.mslf-breadcrumbs-nav li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
}

.mslf-breadcrumbs-nav li:not(:last-child)::after {
    content: '›';
    margin: 0 8px; /* Уменьшаем отступы между элементами */
    color: #888;
    font-size: 1rem; /* Уменьшаем размер разделителя */
}

.mslf-breadcrumbs-nav a {
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem; /* Уменьшаем размер шрифта ссылок */
}

.mslf-breadcrumbs-nav a:hover {
    color: #2c5e2e;
    text-decoration: underline;
}

.mslf-breadcrumbs-nav span {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem; /* Уменьшаем размер шрифта текущего элемента */
}

/* ============================================
   PAGINATION
   ============================================ */
.mslf-pagination {
    width: 100%;
    text-align: center;
}

.pagination-wrapper {
    display: inline-block;
    padding: 15px 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    min-width: 40px;
    margin: 0 5px;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers.current {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background-color: #e8f5e9;
    color: #2c5e2e;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers.dots {
    background-color: transparent;
    border: none;
    color: #666;
    cursor: default;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.pagination-wrapper .page-numbers.prev:hover,
.pagination-wrapper .page-numbers.next:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
}

/* ============================================
   SINGLE POST
   ============================================ */
.mslf-post-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mslf-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mslf-post-header .mslf-h1 {
    margin-bottom: 15px;
    text-align: left;
}

.mslf-post-header .mslf-h1:after {
    display: none;
}

.mslf-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.mslf-post-meta i {
    margin-right: 5px;
    color: #4CAF50;
}

.mslf-post-category {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 15px;
    background-color: #e8f5e9;
    color: #2c5e2e;
    font-size: 0.9rem;
    border-radius: 20px;
}

.mslf-post-thumbnail {
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.mslf-post-content {
    margin-bottom: 40px;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mslf-post-content p {
    margin-bottom: 20px;
}

.mslf-post-content h2,
.mslf-post-content h3,
.mslf-post-content h4 {
    margin: 30px 0 15px;
    color: #2c5e2e;
}

.mslf-post-content ul,
.mslf-post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.mslf-post-content li {
    margin-bottom: 10px;
}

.mslf-post-content blockquote {
    margin: 25px 0;
    padding-left: 20px;
    border-left: 4px solid #4CAF50;
    color: #555;
    font-style: italic;
}

.mslf-post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.mslf-post-tags .mslf-h4 {
    margin-bottom: 15px;
}

.mslf-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mslf-tag-cloud a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f5f9f5;
    color: #2c5e2e;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mslf-tag-cloud a:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* Навигация поста */
.mslf-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.mslf-post-nav-prev,
.mslf-post-nav-next {
    flex: 1;
}

.mslf-post-nav-label {
    display: block;
    margin-bottom: 5px;
    color: #888;
    font-size: 0.9rem;
}

.mslf-post-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c5e2e;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mslf-post-nav-link:hover {
    color: #4CAF50;
}

/* Автор */
.mslf-post-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.mslf-post-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.mslf-post-author-info {
    flex: 1;
}

/* Похожие записи */
.mslf-related-posts {
    margin-bottom: 40px;
}

.mslf-related-posts .mslf-h3 {
    margin-bottom: 30px;
    text-align: center;
}

.mslf-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.mslf-related-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mslf-related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mslf-related-post-thumbnail {
    height: 200px;
}

.mslf-related-post-content {
    padding: 20px;
}

.mslf-related-post-content .mslf-h4 {
    margin-bottom: 10px;
}

.mslf-related-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Комментарии */
.mslf-comments-section {
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.comment-author .fn {
    color: #2c5e2e;
    font-weight: 600;
}

.comment-metadata {
    margin-bottom: 10px;
    color: #888;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.5;
}

.comment-reply-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #3d8b40;
}

/* Форма комментариев */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: linear-gradient(135deg, #3d8b40, #1B5E20);
    transform: translateY(-2px);
}

/* ============================================
   SINGLE PRODUCT
   ============================================ */
.single-product .mslf-product-single-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.single-product .mslf-main-image {
    height: 500px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.single-product .mslf-main-image .mslf-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.single-product .mslf-gallery-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.single-product .mslf-gallery-thumb {
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-product .mslf-gallery-thumb:hover,
.single-product .mslf-gallery-thumb.active {
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.single-product .mslf-gallery-thumb .mslf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-product .mslf-price {
    margin: 20px 0;
    font-size: 2rem;
    color: #4CAF50;
}

.single-product .quantity label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.single-product .quantity input[type="number"] {
    width: 100px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    -moz-appearance: textfield;
}

.single-product .quantity input[type="number"]::-webkit-outer-spin-button,
.single-product .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .single_add_to_cart_button {
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
}

.single-product .mslf-product-meta {
    margin: 30px 0;
    padding-top: 20px;
    color: #666;
    border-top: 1px solid #eee;
}

.single-product .mslf-product-meta a {
    color: #4CAF50;
    text-decoration: none;
}

.single-product .mslf-product-meta a:hover {
    text-decoration: underline;
}

.single-product .mslf-product-tabs {
    margin: 50px 0;
}

.single-product .mslf-tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #4CAF50;
}

.single-product .mslf-tab-button {
    padding: 15px 30px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-product .mslf-tab-button:hover,
.single-product .mslf-tab-button.active {
    background: #4CAF50 !important;
    color: #fff !important;
}

.single-product .mslf-tab-content {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs {
    display: none !important;
}

/* ============================================
   CART PAGE
   ============================================ */
.mslf-cart-related-title {
    position: relative;
    margin: 50px 0 40px;
    color: #2c5e2e;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
}

.mslf-cart-related-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.cross-sells > h2 {
    display: none !important;
}

/* ============================================
   AJAX LOADER
   ============================================ */
.mslf-ajax-loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mslf-ajax-loader p {
    color: #2c5e2e;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

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

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

.mslf-ajax-loader.fade-in {
    animation: mslf-fadeIn 0.3s ease forwards;
}

.mslf-ajax-loader.fade-out {
    animation: mslf-fadeOut 0.3s ease forwards;
}

.pagination-wrapper.loading .page-numbers {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.pagination-wrapper .page-numbers.loading {
    position: relative;
    color: transparent;
}

.pagination-wrapper .page-numbers.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: mslf-spin 0.8s linear infinite;
}

/* ============================================
   MOBILE MENU - ИСПРАВЛЕНО (меню под шапкой)
   ============================================ */
@media (max-width: 1100px) {
    .mslf-mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001; /* Кнопка над шапкой */
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #2c5e2e;
        cursor: pointer;
        padding: 5px;
    }

    .mslf-nav ul {
        position: fixed;
        top: 80px; /* Начинается сразу под шапкой */
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 0; /* Скрыто по умолчанию */
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 20px;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 99; /* НИЗКИЙ z-index - меню ПОД шапкой */
        margin: 0;
        overflow: hidden;
        list-style: none;
        border-top: 1px solid #e0e0e0;
    }

    /* Когда меню открыто */
    .mslf-nav ul.mslf-active {
        max-height: 500px; /* Достаточно для всех пунктов */
        padding: 20px;
        overflow-y: auto;
    }

    /* Корректировка для админ-бара */
    body.admin-bar .mslf-nav ul {
        top: 112px; /* 80px + 32px */
    }

    .mslf-nav ul li {
        width: 100%;
        margin: 0 0 15px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    }

    .mslf-nav ul.mslf-active li {
        opacity: 1;
        transform: translateY(0);
    }

    .mslf-nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        color: #333;
        font-weight: 600;
        font-size: 1.1rem;
        text-decoration: none;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .mslf-nav ul li a:hover {
        background-color: #f0f7f0;
        color: #4CAF50;
        padding-left: 20px;
    }

    .mslf-nav ul li a.mslf-active,
    .mslf-nav ul li.current-menu-item > a {
        background-color: #e8f5e9;
        color: #4CAF50;
    }

    .mslf-nav ul li a:after {
        display: none; /* Убираем подчеркивание в мобильной версии */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .mslf-nav ul {
        top: 60px; /* Меньшая высота шапки */
    }

    body.admin-bar .mslf-nav ul {
        top: 92px; /* 60px + 32px */
    }

    .mslf-header-container {
        height: 60px;
    }
}

/* ============================================
   RESPONSIVE (Mobile & Tablet)
   ============================================ */
@media (max-width: 992px) {
    .single-product .mslf-product-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-product .mslf-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .mslf-header-container {
        height: 80px;
    }

    .mslf-hero-slider {
        height: 80vh;
        margin-top: 70px;
    }

    body.admin-bar .mslf-hero-slider,
    body.admin-bar .mslf-breadcrumbs {
        margin-top: 102px;
    }

    .mslf-breadcrumbs {
        margin-top: 70px;
    }

    .mslf-section {
        padding: 60px 0;
    }

    .mslf-h1 { font-size: 2rem; }
    .mslf-h2 { font-size: 2rem; }

    .mslf-about-content,
    .mslf-strawberry-content,
    .mslf-contact-container {
        flex-direction: column;
    }

    .mslf-about-image,
    .mslf-strawberry-image {
        order: -1;
        width: 100%;
        height: 300px;
    }

    .mslf-post-single {
        padding: 20px;
    }

    .mslf-post-thumbnail {
        height: 250px;
    }

    .mslf-post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .mslf-post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .mslf-post-nav-prev,
    .mslf-post-nav-next {
        max-width: 100%;
    }

    .mslf-related-posts-grid {
        grid-template-columns: 1fr;
    }

    .mslf-comments-section,
    .comment-respond {
        padding: 20px;
    }

    .single-product .mslf-gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-product .mslf-tabs-header {
        flex-direction: column;
    }

    .single-product .mslf-tab-button {
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .single-product .mslf-tab-content {
        padding: 20px;
    }

    .mslf-cart-related-title {
        margin: 40px 0 30px;
        font-size: 2rem;
    }

    .pagination-wrapper {
        padding: 10px 15px;
    }

    .pagination-wrapper .page-numbers {
        min-width: 35px;
        margin: 0 3px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .mslf-header-container {
        height: 60px;
    }

    .mslf-hero-slider {
        height: 70vh;
        margin-top: 60px;
    }

    body.admin-bar .mslf-hero-slider,
    body.admin-bar .mslf-breadcrumbs {
        margin-top: 92px;
    }

    .mslf-breadcrumbs {
        margin-top: 60px;
    }

    .mslf-h1 { font-size: 1.8rem; }
    .mslf-h2 { font-size: 1.8rem; }

    .mslf-about-image,
    .mslf-strawberry-image {
        height: 250px;
    }

    .mslf-post-thumbnail {
        height: 200px;
    }

    .mslf-post-header .mslf-h1 {
        font-size: 1.8rem;
    }

    .single-product .mslf-main-image {
        height: 300px;
    }

    .single-product .mslf-price {
        font-size: 1.8rem;
    }

    .single-product .single_add_to_cart_button {
        width: 100%;
        padding: 12px 30px !important;
    }

    .mslf-cart-related-title {
        margin: 30px 0 20px;
        font-size: 1.8rem;
    }

    .pagination-wrapper .page-numbers {
        min-width: 30px;
        margin: 0 2px;
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .pagination-wrapper .page-numbers.prev,
    .pagination-wrapper .page-numbers.next {
        padding: 5px 12px;
    }

    .pagination-wrapper .page-numbers i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mslf-breadcrumbs-nav li:nth-child(n+4):not(:last-child) {
        display: none;
    }

    .mslf-breadcrumbs-nav li:nth-child(3)::before {
        content: '...';
        margin-right: 5px;
    }
}

p.mslf-text-dark {
    margin-bottom:10px;
}

/* Telegram Form Notifications */
.mslf-form-notification {
    animation: slideIn 0.3s ease-out;
}

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

.mslf-form-notification-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.mslf-form-notification-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Стили для заблокированной кнопки */
.mslf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Отступ для основного контента */
main {
    margin-bottom: 150px;
    padding-top: 20px;
}

/* Но с учетом фиксированного хедера нужно скорректировать */
body:not(.home) main {
    margin-bottom: 150px;
    margin-top: 40px; /* Высота хедера */
    padding-top: 20px; /* Ваш дополнительный отступ */
}

/* Для главной страницы со слайдером */
body.home main {
    margin-top: 0;
    padding-top: 0;
}

/* ============================================
   PRODUCT GALLERY MODAL
   ============================================ */
.single-product .mslf-main-image-wrapper {
    position: relative;
    cursor: pointer;
}

.single-product .mslf-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.single-product .mslf-main-image-wrapper:hover .mslf-zoom-icon {
    opacity: 1;
}

/* Галерея миниатюр */
.single-product .mslf-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.single-product .mslf-gallery-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.single-product .mslf-gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.single-product .mslf-gallery-thumb.active {
    border-color: #4CAF50;
}

.single-product .mslf-gallery-thumb .mslf-image-container {
    height: 80px;
    width: 100%;
}

/* Модальное окно */
.mslf-gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.mslf-gallery-modal.show {
    display: block;
}

.mslf-gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.mslf-gallery-close:hover {
    color: #4CAF50;
}

.mslf-gallery-prev,
.mslf-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.mslf-gallery-prev {
    left: 20px;
}

.mslf-gallery-next {
    right: 20px;
}

.mslf-gallery-prev:hover,
.mslf-gallery-next:hover {
    color: #4CAF50;
    transform: translateY(-50%) scale(1.1);
}

.mslf-gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.mslf-gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.mslf-gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.mslf-gallery-thumbnails-modal {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    max-width: 90%;
    overflow-x: auto;
    z-index: 10;
}

.mslf-gallery-thumb-modal {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px; /* Легкое скругление, почти квадратные */
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Можно сделать вообще без скругления */
.mslf-gallery-thumb-modal.square {
    border-radius: 0; /* Полностью квадратные */
}

/* Стили для активной миниатюры */
.mslf-gallery-thumb-modal.active {
    border-color: #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.mslf-gallery-thumb-modal:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #4CAF50;
}

.mslf-gallery-thumb-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .mslf-gallery-prev,
    .mslf-gallery-next {
        font-size: 30px;
        padding: 10px;
    }

    .mslf-gallery-modal-content {
        padding: 40px 20px;
    }

    .mslf-gallery-thumbnails-modal {
        bottom: 10px;
        padding: 10px;
    }

    .mslf-gallery-thumb-modal {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   CATEGORY DESCRIPTION
   ============================================ */
.mslf-catalog {
    margin-top: 80px;
    margin-bottom: 20px; /* Уменьшаем отступ после заголовка */
}

.category-description {
    max-width: 900px;
    margin: 0 auto 50px auto; /* Увеличиваем нижний отступ до 50px */
    padding: 30px 40px;
    background: linear-gradient(135deg, #f8fff8, #f0f7f0);
    border-left: 4px solid #4CAF50;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e2c;
    text-align: center;
}

.category-description p {
    margin-bottom: 15px;
}

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

.category-description h1,
.category-description h2,
.category-description h3 {
    color: #2c5e2e;
    margin: 20px 0 15px 0;
    font-family: 'Montserrat', sans-serif;
}

.category-description h2 {
    font-size: 1.8rem;
    text-align: center;
}

.category-description h2:after {
    display: none; /* Убираем линию после заголовка внутри описания */
}

.category-description ul,
.category-description ol {
    margin: 15px 0 15px 30px;
    padding: 0;
}

.category-description li {
    margin-bottom: 8px;
}

.category-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-description blockquote {
    margin: 20px 0;
    padding: 15px 25px;
    background: rgba(76, 175, 80, 0.05);
    border-left: 4px solid #4CAF50;
    font-style: italic;
    color: #2c5e2e;
    border-radius: 0 8px 8px 0;
}

.category-description a {
    color: #4CAF50;
    text-decoration: none;
    border-bottom: 1px dotted #4CAF50;
    transition: all 0.3s ease;
}

.category-description a:hover {
    color: #2c5e2e;
    border-bottom: 1px solid #2c5e2e;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .category-description {
        margin: 0 auto 40px auto;
        padding: 20px 25px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .category-description h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .category-description {
        margin: 0 auto 30px auto;
        padding: 15px 20px;
        border-left-width: 3px;
    }
}




















/* ============================================
   MENU ACTIVE STATES - УНИВЕРСАЛЬНОЕ РЕШЕНИЕ
   ============================================ */

/* Для всех родительских пунктов меню */
.mslf-nav ul li.current-menu-parent > a,
.mslf-nav ul li.current_page_parent > a,
.mslf-nav ul li.current-menu-ancestor > a,
.mslf-nav ul li.current_page_ancestor > a {
    color: #4CAF50 !important;
    position: relative;
}

.mslf-nav ul li.current-menu-parent > a:after,
.mslf-nav ul li.current_page_parent > a:after,
.mslf-nav ul li.current-menu-ancestor > a:after,
.mslf-nav ul li.current_page_ancestor > a:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #4CAF50 !important;
}

/* Для всех типов WooCommerce страниц */
.woocommerce-page .mslf-nav ul li.current-menu-parent > a,
.woocommerce-page .mslf-nav ul li.current_page_parent > a,
.single-product .mslf-nav ul li.current-menu-parent > a,
.single-product .mslf-nav ul li.current_page_parent > a,
.tax-product_cat .mslf-nav ul li.current-menu-parent > a,
.tax-product_cat .mslf-nav ul li.current_page_parent > a,
.post-type-archive-product .mslf-nav ul li.current-menu-parent > a,
.post-type-archive-product .mslf-nav ul li.current_page_parent > a {
    color: #4CAF50 !important;
}

/* Мобильная версия */
@media (max-width: 1100px) {
    .mslf-nav ul li.current-menu-parent > a,
    .mslf-nav ul li.current_page_parent > a,
    .mslf-nav ul li.current-menu-ancestor > a,
    .mslf-nav ul li.current_page_ancestor > a {
        background-color: #e8f5e9 !important;
        color: #4CAF50 !important;
        border-left: 4px solid #4CAF50 !important;
    }

    .mslf-nav ul li.current-menu-parent > a:after,
    .mslf-nav ul li.current_page_parent > a:after,
    .mslf-nav ul li.current-menu-ancestor > a:after,
    .mslf-nav ul li.current_page_ancestor > a:after {
        display: none !important;
    }
}

/* ============================================
   АККАУНТ И ВСЕ ЕГО СТРАНИЦЫ
   ============================================ */

/* Все страницы аккаунта (главная, заказы, загрузки, адреса и т.д.) */
.woocommerce-account .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
.woocommerce-account .mslf-nav ul li:has(a[href*="/account/"]) > a {
    color: #4CAF50 !important;
    position: relative;
}

.woocommerce-account .mslf-nav ul li:has(a[href*="/my-account/"]) > a:after,
.woocommerce-account .mslf-nav ul li:has(a[href*="/account/"]) > a:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #4CAF50 !important;
}

/* Для конкретных страниц внутри аккаунта */
.woocommerce-account.woocommerce-view-order .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
.woocommerce-account.woocommerce-orders .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
.woocommerce-account.woocommerce-downloads .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
.woocommerce-account.woocommerce-edit-address .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
.woocommerce-account.woocommerce-edit-account .mslf-nav ul li:has(a[href*="/my-account/"]) > a {
    color: #4CAF50 !important;
}

/* Мобильная версия */
@media (max-width: 1100px) {
    .woocommerce-account .mslf-nav ul li:has(a[href*="/my-account/"]) > a,
    .woocommerce-account .mslf-nav ul li:has(a[href*="/account/"]) > a {
        background-color: #e8f5e9 !important;
        color: #4CAF50 !important;
        border-left: 4px solid #4CAF50 !important;
    }

    .woocommerce-account .mslf-nav ul li:has(a[href*="/my-account/"]) > a:after,
    .woocommerce-account .mslf-nav ul li:has(a[href*="/account/"]) > a:after {
        display: none !important;
    }
}


/* ============================================
   EDIT ACCOUNT FORM - GREENFERM STYLE
   ============================================ */

/* Основной контейнер */
.mslf-account-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: mslfFadeInUp 0.5s ease;
}

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

/* Заголовок формы */
.mslf-account-form-header {
    background: linear-gradient(135deg, #2c5e2e, #4CAF50);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.mslf-account-form-header i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: mslfPulse 2s infinite;
}

@keyframes mslfPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mslf-account-form-header h2 {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mslf-account-form-header .mslf-text-muted {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

/* Сама форма */
.mslf-account-form {
    padding: 40px;
}

/* Сетка для полей */
.mslf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Группа полей */
.mslf-form-group {
    margin-bottom: 25px;
}

.mslf-form-group-full {
    grid-column: 1 / -1;
}

/* Метки полей */
.mslf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c5e2e;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mslf-form-group .required {
    color: #f44336;
    margin-left: 3px;
}

/* Обертка для поля с иконкой */
.mslf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mslf-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #4CAF50;
    font-size: 1.1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Поле ввода */
.mslf-form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.mslf-form-control:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.mslf-form-control:focus + i {
    color: #2c5e2e;
}

.mslf-form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Вспомогательный текст */
.mslf-form-help {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.mslf-form-help i {
    color: #4CAF50;
    margin-right: 5px;
}

/* Секция с паролем */
.mslf-password-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
}

.mslf-password-header {
    text-align: center;
    margin-bottom: 25px;
}

.mslf-password-header i {
    font-size: 2.5rem;
    color: #4CAF50;
    background: white;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    margin-bottom: 15px;
}

.mslf-password-header h3 {
    color: #2c5e2e;
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.mslf-password-header .mslf-text-muted {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Индикатор силы пароля (стилизация стандартного) */
.woocommerce-password-strength {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: mslfShake 0.3s ease;
}

@keyframes mslfShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.woocommerce-password-strength.short {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.woocommerce-password-strength.bad {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffb74d;
}

.woocommerce-password-strength.good {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.woocommerce-password-strength.strong {
    background: #e8f5e9;
    color: #1b5e20;
    border: 2px solid #4CAF50;
    font-weight: 700;
}

.woocommerce-password-hint {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid #2196f3;
}

/* Кнопки */
.mslf-form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e0e0e0;
}

.mslf-btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.mslf-btn-primary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mslf-btn-primary:hover {
    background: linear-gradient(135deg, #3d8b40, #1B5E20);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.mslf-btn-primary:hover i {
    transform: translateX(-3px);
}

.mslf-btn-primary:active {
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-account-form-container {
        margin: 20px;
        border-radius: 15px;
    }

    .mslf-account-form-header {
        padding: 30px 20px;
    }

    .mslf-account-form-header h2 {
        font-size: 1.8rem;
    }

    .mslf-account-form {
        padding: 25px;
    }

    .mslf-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mslf-password-section {
        padding: 20px;
    }

    .mslf-btn-primary {
        width: 100%;
        padding: 14px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .mslf-account-form-header i {
        font-size: 3rem;
    }

    .mslf-account-form-header h2 {
        font-size: 1.5rem;
    }

    .mslf-account-form {
        padding: 20px;
    }

    .mslf-form-control {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }

    .mslf-password-header i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
}

/* Анимации для сообщений */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    animation: mslfSlideIn 0.3s ease;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
    border-left-width: 4px !important;
}

@keyframes mslfSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   EDIT ADDRESS FORM - GREENFERM STYLE
   ============================================ */

/* Основной контейнер */
.mslf-address-form-container {
    max-width: 1000px;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: mslfFadeInUp 0.5s ease;
}

/* Заголовок */
.mslf-address-form-header {
    background: linear-gradient(135deg, #2c5e2e, #4CAF50);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.mslf-address-form-header i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: mslfPulse 2s infinite;
}

.mslf-address-form-header h2 {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.mslf-address-form-header .mslf-text-muted {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

/* Сетка адресов */
.mslf-addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
}

/* Карточка адреса */
.mslf-address-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.mslf-address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.mslf-address-card-header {
    background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.mslf-address-card-header i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
    display: block;
}

.mslf-address-card-header h3 {
    color: #2c5e2e;
    font-size: 1.3rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.mslf-address-card-body {
    padding: 25px;
    flex-grow: 1;
    min-height: 120px;
    color: #555;
    line-height: 1.6;
}

.mslf-address-card-body address {
    font-style: normal;
}

.mslf-address-card-footer {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* Форма редактирования */
.mslf-address-form {
    padding: 40px;
}

.mslf-address-subtitle {
    color: #2c5e2e;
    font-size: 1.5rem;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.mslf-address-subtitle i {
    color: #4CAF50;
    font-size: 1.3rem;
}

.mslf-address-form-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Поля формы (переопределение стандартных полей WooCommerce) */
.mslf-form-grid .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.mslf-form-grid .form-row label {
    display: block;
    margin-bottom: 8px;
    color: #2c5e2e;
    font-weight: 600;
    font-size: 0.95rem;
}

.mslf-form-grid .form-row .required {
    color: #f44336;
    border: none;
}

.mslf-form-grid .form-row input[type="text"],
.mslf-form-grid .form-row input[type="email"],
.mslf-form-grid .form-row input[type="tel"],
.mslf-form-grid .form-row select,
.mslf-form-grid .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.mslf-form-grid .form-row input:focus,
.mslf-form-grid .form-row select:focus,
.mslf-form-grid .form-row textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.mslf-form-grid .form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.mslf-form-grid .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.mslf-form-grid .form-row .select2-container .select2-selection--single {
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.mslf-form-grid .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 15px;
    color: #333;
}

.mslf-form-grid .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

/* Чекбоксы и радио */
.mslf-form-grid .form-row input[type="checkbox"],
.mslf-form-grid .form-row input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: #4CAF50;
}

/* Подписи к полям */
.mslf-form-grid .form-row .description {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Ошибки валидации */
.mslf-form-grid .form-row .woocommerce-input-wrapper .select2-container,
.mslf-form-grid .form-row input.input-text,
.mslf-form-grid .form-row select,
.mslf-form-grid .form-row textarea {
    transition: all 0.3s ease;
}

.mslf-form-grid .form-row.validate-required.woocommerce-invalid input,
.mslf-form-grid .form-row.validate-required.woocommerce-invalid select,
.mslf-form-grid .form-row.validate-required.woocommerce-invalid textarea {
    border-color: #f44336;
    background: #ffebee;
}

.mslf-form-grid .form-row.validate-required.woocommerce-invalid .select2-container .select2-selection--single {
    border-color: #f44336;
}

/* Кнопки */
.mslf-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mslf-btn-secondary:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    color: #2c5e2e;
    transform: translateY(-2px);
}

.mslf-btn-outline {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.mslf-btn-outline:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.mslf-btn-outline i {
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-addresses-grid {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 20px;
    }

    .mslf-address-form {
        padding: 25px;
    }

    .mslf-address-form-header {
        padding: 30px 20px;
    }

    .mslf-address-form-header h2 {
        font-size: 1.8rem;
    }

    .mslf-address-subtitle {
        font-size: 1.3rem;
    }

    .mslf-address-form-content {
        padding: 20px;
    }

    .mslf-form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .mslf-form-actions .mslf-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mslf-address-form-header i {
        font-size: 3rem;
    }

    .mslf-address-form-header h2 {
        font-size: 1.5rem;
    }

    .mslf-address-card-header i {
        font-size: 2rem;
    }

    .mslf-address-card-header h3 {
        font-size: 1.1rem;
    }

    .mslf-address-card-body {
        padding: 15px;
        font-size: 0.9rem;
    }

    .mslf-address-form {
        padding: 20px;
    }

    .mslf-address-subtitle {
        font-size: 1.1rem;
    }

    .mslf-form-grid .form-row input[type="text"],
    .mslf-form-grid .form-row input[type="email"],
    .mslf-form-grid .form-row input[type="tel"],
    .mslf-form-grid .form-row select,
    .mslf-form-grid .form-row textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Анимации */
@keyframes mslfPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Стили для сообщений */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: 10px !important;
    margin: 20px 0 !important;
    padding: 15px 20px !important;
    animation: mslfSlideIn 0.3s ease;
}

@keyframes mslfSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MY ACCOUNT DASHBOARD - GREENFERM STYLE
   ============================================ */

/* Основной контейнер */
.mslf-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: mslfFadeIn 0.5s ease;
}

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

/* Приветственный баннер */
.mslf-welcome-banner {
    background: linear-gradient(135deg, #2c5e2e, #4CAF50);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.mslf-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: mslfRotate 20s linear infinite;
}

@keyframes mslfRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mslf-welcome-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.mslf-user-avatar {
    flex-shrink: 0;
}

.mslf-user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mslf-user-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.mslf-welcome-text {
    flex: 1;
}

.mslf-welcome-title {
    font-size: 2.2rem;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.mslf-user-name {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
}

.mslf-welcome-subtitle {
    font-size: 1.1rem;
    margin: 0 0 15px;
    opacity: 0.9;
}

.mslf-user-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

.mslf-user-email i {
    font-size: 0.9rem;
}

/* Статистика */
.mslf-welcome-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.mslf-stat-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.mslf-stat-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.mslf-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.mslf-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Заголовки секций */
.mslf-section-title {
    color: #2c5e2e;
    font-size: 1.8rem;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.mslf-section-title i {
    color: #4CAF50;
    font-size: 1.5rem;
}

/* Сетка быстрых действий */
.mslf-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.mslf-action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.mslf-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #4CAF50, #2c5e2e);
    transition: height 0.3s ease;
}

.mslf-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.mslf-action-card:hover::before {
    height: 100%;
}

.mslf-action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.mslf-action-card:hover .mslf-action-icon {
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    transform: scale(1.1);
}

.mslf-action-content {
    flex: 1;
}

.mslf-action-content h3 {
    color: #2c5e2e;
    font-size: 1.2rem;
    margin: 0 0 5px;
    font-family: 'Montserrat', sans-serif;
}

.mslf-action-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.mslf-action-arrow {
    color: #4CAF50;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mslf-action-card:hover .mslf-action-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Таблица заказов */
.mslf-recent-orders {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.mslf-orders-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.mslf-orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.mslf-orders-table th {
    background: #f8f9fa;
    color: #2c5e2e;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 2px solid #4CAF50;
}

.mslf-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.mslf-orders-table tr:hover td {
    background: #f8f9fa;
}

.mslf-order-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mslf-order-link:hover {
    color: #2c5e2e;
    text-decoration: underline;
}

/* Статусы заказов */
.mslf-order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.mslf-status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.mslf-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.mslf-status-on-hold {
    background: #fff3e0;
    color: #ef6c00;
}

.mslf-status-pending {
    background: #ffebee;
    color: #c62828;
}

.mslf-status-cancelled {
    background: #f5f5f5;
    color: #616161;
}

.mslf-status-refunded {
    background: #f3e5f5;
    color: #7b1fa2;
}

.mslf-status-failed {
    background: #ffebee;
    color: #b71c1c;
}

/* Кнопки в таблице */
.mslf-btn-small {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mslf-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.mslf-view-all {
    text-align: center;
    margin-top: 20px;
}

.mslf-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mslf-link:hover {
    color: #2c5e2e;
    gap: 12px;
}

/* Информационные карточки */
.mslf-dashboard-footer {
    margin-top: 40px;
}

.mslf-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mslf-info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.mslf-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.mslf-info-card i {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.mslf-info-card h4 {
    color: #2c5e2e;
    font-size: 1.2rem;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.mslf-info-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 15px;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .mslf-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mslf-welcome-banner {
        padding: 30px 20px;
    }

    .mslf-welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .mslf-welcome-title {
        font-size: 1.8rem;
    }

    .mslf-welcome-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mslf-actions-grid {
        grid-template-columns: 1fr;
    }

    .mslf-info-cards {
        grid-template-columns: 1fr;
    }

    .mslf-section-title {
        font-size: 1.5rem;
    }

    .mslf-orders-table th {
        display: none;
    }

    .mslf-orders-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 10px;
    }

    .mslf-orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
    }

    .mslf-orders-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c5e2e;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .mslf-welcome-title {
        font-size: 1.5rem;
    }

    .mslf-user-avatar img {
        width: 80px;
        height: 80px;
    }

    .mslf-action-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .mslf-action-arrow {
        display: none;
    }

    .mslf-recent-orders {
        padding: 20px;
    }
}

/* ============================================
   ORDERS PAGE STYLES
   ============================================ */
.mslf-orders-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: mslfFadeIn 0.5s ease;
}

.mslf-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c5e2e, #4CAF50);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.mslf-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mslf-header-content i {
    font-size: 3rem;
    opacity: 0.9;
}

.mslf-header-text h1 {
    color: white;
    margin: 0 0 5px;
}

.mslf-header-text .mslf-text-muted {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Карточки заказов (мобильная версия) */
.mslf-order-card {
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.mslf-order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.mslf-order-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #f5f5f5);
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.mslf-order-preview {
    flex-shrink: 0;
}

.mslf-order-preview-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.mslf-order-preview-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #4CAF50;
}

.mslf-order-info {
    flex: 1;
}

.mslf-order-number {
    font-weight: 700;
    color: #2c5e2e;
    margin-bottom: 5px;
}

.mslf-order-date {
    font-size: 0.9rem;
    color: #666;
}

.mslf-order-date i {
    margin-right: 5px;
    color: #4CAF50;
}

.mslf-order-card-body {
    padding: 20px;
}

.mslf-order-details {
    display: grid;
    gap: 10px;
}

.mslf-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mslf-detail-label {
    color: #666;
    font-size: 0.9rem;
}

.mslf-detail-value {
    font-weight: 600;
    color: #2c5e2e;
}

.mslf-order-card-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Таблица заказов (десктопная версия) */
.mslf-orders-table-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.mslf-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.mslf-orders-table th {
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    color: #2c5e2e;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 2px solid #4CAF50;
}

.mslf-orders-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    vertical-align: middle;
}

.mslf-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.mslf-order-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mslf-order-link:hover {
    color: #2c5e2e;
    text-decoration: underline;
}

.mslf-order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.mslf-status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.mslf-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.mslf-status-on-hold {
    background: #fff3e0;
    color: #ef6c00;
}

.mslf-status-pending {
    background: #ffebee;
    color: #c62828;
}

.mslf-status-cancelled {
    background: #f5f5f5;
    color: #616161;
}

.mslf-status-refunded {
    background: #f3e5f5;
    color: #7b1fa2;
}

.mslf-status-failed {
    background: #ffebee;
    color: #b71c1c;
}

/* Кнопки действий */
.mslf-actions-group {
    display: flex;
    gap: 8px;
}

.mslf-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #4CAF50;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}

.mslf-btn-icon:hover {
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(76, 175, 80, 0.2);
}

.mslf-btn-outline-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mslf-btn-outline-small:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

/* Пагинация */
.mslf-orders-pagination {
    margin-top: 30px;
    text-align: center;
}

.mslf-orders-pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mslf-orders-pagination li {
    display: inline-block;
}

.mslf-orders-pagination a,
.mslf-orders-pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 5px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mslf-orders-pagination a:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.mslf-orders-pagination .current {
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    border-color: #4CAF50;
}

/* Пустое состояние */
.mslf-no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: mslfFadeIn 0.5s ease;
}

.mslf-empty-state {
    max-width: 800px;
    margin: 0 auto;
}

.mslf-empty-state i {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: mslfPulse 2s infinite;
}

.mslf-empty-state h2 {
    color: #2c5e2e;
    font-size: 2rem;
    margin: 0 0 15px;
}

.mslf-empty-state .mslf-text-muted {
    color: #666;
    margin: 0 0 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mslf-header-content {
        flex-direction: column;
    }

    .mslf-orders-table-wrapper {
        display: none;
    }

    .mslf-order-card {
        display: block;
    }

    .mslf-orders-pagination a,
    .mslf-orders-pagination span {
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mslf-order-card-footer {
        flex-direction: column;
    }

    .mslf-order-card-footer a {
        width: 100%;
        justify-content: center;
    }
}

@keyframes mslfPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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


/* ============================================
   DOWNLOADS PAGE STYLES
   ============================================ */
.mslf-downloads-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: mslfFadeIn 0.5s ease;
}

/* Заголовок */
.mslf-downloads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c5e2e, #4CAF50);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.mslf-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mslf-header-content i {
    font-size: 3rem;
    opacity: 0.9;
}

.mslf-header-text h1 {
    color: white;
    margin: 0 0 5px;
}

.mslf-header-text .mslf-text-muted {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Карточки загрузок (мобильная версия) */
.mslf-downloads-cards {
    display: none;
}

.mslf-download-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.mslf-download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.mslf-download-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #f5f5f5);
    border-bottom: 1px solid #e0e0e0;
}

.mslf-download-preview {
    flex-shrink: 0;
}

.mslf-download-preview-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.mslf-download-preview-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #4CAF50;
}

.mslf-download-info {
    flex: 1;
}

.mslf-download-title {
    color: #2c5e2e;
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.mslf-download-product {
    font-size: 0.9rem;
    color: #666;
}

.mslf-download-product i {
    margin-right: 5px;
    color: #4CAF50;
}

.mslf-download-product a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mslf-download-product a:hover {
    color: #4CAF50;
}

.mslf-download-card-body {
    padding: 20px;
}

.mslf-download-details {
    display: grid;
    gap: 10px;
}

.mslf-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

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

.mslf-detail-label {
    color: #666;
    font-size: 0.9rem;
}

.mslf-detail-label i {
    margin-right: 5px;
    color: #4CAF50;
}

.mslf-detail-value {
    font-weight: 600;
    color: #2c5e2e;
}

.mslf-download-card-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Таблица загрузок (десктопная версия) */
.mslf-downloads-table-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.mslf-downloads-table {
    width: 100%;
    border-collapse: collapse;
}

.mslf-downloads-table th {
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    color: #2c5e2e;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 2px solid #4CAF50;
}

.mslf-downloads-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    vertical-align: middle;
}

.mslf-downloads-table tbody tr:hover {
    background: #f8f9fa;
}

.mslf-product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
}

.mslf-product-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.mslf-product-name {
    font-weight: 500;
    transition: color 0.3s ease;
}

.mslf-product-link:hover .mslf-product-name {
    color: #4CAF50;
}

.mslf-file-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.mslf-file-name i {
    color: #4CAF50;
}

.mslf-remaining-count {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mslf-expiry-date {
    font-size: 0.9rem;
}

.mslf-expiry-date.mslf-expired {
    color: #f44336;
    text-decoration: line-through;
}

/* Пустое состояние */
.mslf-no-downloads {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.mslf-empty-state {
    max-width: 800px;
    margin: 0 auto;
}

.mslf-empty-state i {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: mslfPulse 2s infinite;
}

.mslf-empty-state h2 {
    color: #2c5e2e;
    font-size: 2rem;
    margin: 0 0 15px;
}

.mslf-empty-state .mslf-text-muted {
    color: #666;
    margin: 0 0 30px;
}

.mslf-empty-recommendations {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px dashed #e0e0e0;
}

.mslf-empty-recommendations .mslf-h4 {
    color: #2c5e2e;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.mslf-empty-recommendations .mslf-h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #4CAF50;
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-downloads-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mslf-header-content {
        flex-direction: column;
    }

    .mslf-downloads-table-wrapper {
        display: none;
    }

    .mslf-downloads-cards {
        display: block;
    }

    .mslf-download-card-footer {
        flex-direction: column;
    }

    .mslf-download-card-footer a {
        width: 100%;
        justify-content: center;
    }

    .mslf-empty-state h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mslf-download-card-header {
        flex-direction: column;
        text-align: center;
    }

    .mslf-download-info {
        text-align: center;
    }

    .mslf-detail-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@keyframes mslfPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* ============================================
   WOOCOMMERCE NOTICES - GLOBAL STYLES
   ============================================ */

/* Общий контейнер для уведомлений */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    width: 100%;
    margin-bottom: 30px !important;
    animation: mslfNoticeSlideIn 0.3s ease;
}

@keyframes mslfNoticeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Базовые стили для всех уведомлений */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative !important;
    padding: 16px 20px 16px 50px !important;
    margin: 0 0 20px 0 !important;
    list-style: none !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #333 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Убираем маркеры списков */
.woocommerce-message li,
.woocommerce-info li,
.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.2rem !important;
}

/* Success message (зеленый) */
.woocommerce-message {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important;
    border-left: 4px solid #4CAF50 !important;
}

.woocommerce-message::before {
    content: '\f00c' !important; /* fa-check */
    color: #4CAF50 !important;
}

.woocommerce-message a {
    color: #2c5e2e !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.woocommerce-message a:hover {
    color: #1b5e20 !important;
}

/* Info message (голубой) */
.woocommerce-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
    border-left: 4px solid #2196f3 !important;
}

.woocommerce-info::before {
    content: '\f05a' !important; /* fa-info-circle */
    color: #2196f3 !important;
}

.woocommerce-info a {
    color: #1976d2 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Error message (красный) */
.woocommerce-error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border-left: 4px solid #f44336 !important;
}

.woocommerce-error::before {
    content: '\f06a' !important; /* fa-exclamation-circle */
    color: #f44336 !important;
}

.woocommerce-error a {
    color: #c62828 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Специально для списка ошибок */
.woocommerce-error ul {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-error li {
    margin: 0 0 5px 0 !important;
}

.woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

/* Для уведомлений в корзине */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
    margin: 0 0 20px 0 !important;
}

/* Для уведомлений в чекауте */
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error {
    margin: 0 0 20px 0 !important;
}

/* Для уведомлений в аккаунте */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    margin: 0 0 20px 0 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 14px 15px 14px 45px !important;
        font-size: 0.95rem !important;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        left: 15px !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 12px 12px 12px 40px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   CONTACT FORM WITH ICONS - GREENFERM STYLE
   ============================================ */

/* Обертка для поля с иконкой */
.mslf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Иконка внутри поля */
.mslf-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #4CAF50;
    font-size: 1.1rem;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Поле ввода с отступом для иконки */
.mslf-input-wrapper .mslf-form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* Стили для текстового поля */
.mslf-input-wrapper textarea.mslf-form-control {
    padding: 12px 15px 12px 45px;
    min-height: 120px;
    resize: vertical;
}

/* Состояние фокуса */
.mslf-input-wrapper .mslf-form-control:focus {
    border-color: #4CAF50;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.mslf-input-wrapper .mslf-form-control:focus + i {
    color: #2c5e2e;
    transform: scale(1.1);
}

/* Метка с иконкой */
.mslf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c5e2e;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Обязательное поле */
.mslf-form-group .required {
    color: #f44336;
    margin-left: 3px;
}

/* Кнопка отправки */
.mslf-btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2c5e2e);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mslf-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mslf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.mslf-btn-primary:hover::before {
    left: 100%;
}

.mslf-btn-primary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mslf-btn-primary:hover i {
    transform: translateX(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-input-wrapper .mslf-form-control {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }

    .mslf-input-wrapper i {
        left: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mslf-btn-primary {
        padding: 12px 20px;
    }
}

/* ============================================
   FOOTER PRIVACY LINK
   ============================================ */
.mslf-privacy-link {
    text-align: center;
    margin: 20px 0 10px;
    padding: 0 20px;
}

.mslf-privacy-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mslf-privacy-link-text i {
    color: #4CAF50;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mslf-privacy-link-text:hover {
    color: white;
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.mslf-privacy-link-text:hover i {
    color: white;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .mslf-privacy-link {
        margin: 15px 0 5px;
    }

    .mslf-privacy-link-text {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}
