/*
Theme Name: Flower Shop
Description: Современная тема для магазина цветов с WooCommerce
Version: 1.0
Author: Flower Shop Team
*/

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; color: #1a202c; }
h2 { font-size: 2rem; color: #2d3748; }
h3 { font-size: 1.5rem; color: #4a5568; }

/* Шапка сайта */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title:hover {
    opacity: 0.9;
}

/* Навигация */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Корзина в шапке */
.cart-icon {
    position: relative;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Главная страница */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), 
                url('https://xn--b1agqmmgp.shop/wp-content/uploads/2025/07/4.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка корзины в героической секции */
.hero-cart-button {
    margin: 2rem 0;
    text-align: center;
}

.btn-cart-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    padding: 1.2rem 2.5rem !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transition: all 0.3s ease !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
    position: relative !important;
}

.btn-cart-hero:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.5) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.btn-cart-hero .cart-badge {
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    margin-left: 0.25rem !important;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Секции */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e53e3e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-badge.new {
    background: #38a169;
}

.product-badge.sale {
    background: #e53e3e;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #667eea;
}

.product-description {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    white-space: nowrap;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.price-old {
    font-size: 1rem;
    color: #a0aec0;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stars {
    color: #fbbf24;
}

.rating-count {
    color: #718096;
    font-size: 0.875rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Подвал */
.site-footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* WooCommerce стили */
.woocommerce-container {
    padding: 2rem 0;
    min-height: 60vh;
}

.woocommerce {
    background: white;
    border-radius: 12px;
    padding: 2rem;
/* Красивые стили для корзины */
.cart-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    min-height: 70vh;
}

.cart-page-wrapper .woocommerce {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.cart-page-wrapper .woocommerce::before {
    content: "🛒 Ваша корзина";
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
}

/* Таблица корзины */
.woocommerce-cart-form .shop_table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-cart-form .shop_table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.woocommerce-cart-form .shop_table thead th {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 1.5rem 1rem;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.woocommerce-cart-form .shop_table tbody tr {
    transition: background-color 0.3s ease;
}

.woocommerce-cart-form .shop_table tbody tr:hover {
    background-color: #f8f9fa;
}

.woocommerce-cart-form .shop_table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

/* Изображения товаров */
.product-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.product-thumbnail img:hover {
    transform: scale(1.05);
}

/* Названия товаров */
.product-name a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-name a:hover {
    color: #667eea;
}

/* Кнопка удаления */
.product-remove .remove {
    background: #dc3545;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
}

.product-remove .remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Поле количества */
.quantity input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.quantity input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Цены */
.woocommerce-Price-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

/* Действия корзины */
.actions {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.coupon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coupon input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    min-width: 200px;
}

.coupon input:focus {
    border-color: #667eea;
    outline: none;
}

/* Кнопки */
.woocommerce .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Итоги корзины */
.cart-collaterals {
    margin-top: 3rem;
}

.cart_totals {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
}

.cart_totals h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 2rem;
}

.cart_totals table th,
.cart_totals table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #667eea;
}

/* Кнопка оформления заказа */
.checkout-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.checkout-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Анимация выпадающего меню */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    /* КРИТИЧНО: Принудительное отображение всех элементов шапки */
    .site-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-header * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Мобильная шапка */
    .header-content {
        display: grid !important;
        grid-template-columns: 1fr auto auto !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        position: relative !important;
        padding: 0.5rem 0 !important;
    }
    
    .site-title {
        font-size: 1.5rem !important;
        grid-column: 1 !important;
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 700 !important;
    }
    
    .main-navigation {
        grid-column: 2 !important;
        justify-self: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    /* КРИТИЧНО: Корзина всегда видна */
    .header-cart {
        grid-column: 3 !important;
        justify-self: end !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* Мобильное меню */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255,255,255,0.1) !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        padding: 8px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 999 !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: white !important;
        margin: 2px 0 !important;
        transition: all 0.3s ease !important;
        border-radius: 1px !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Навигационное меню */
    .main-navigation ul {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        background: rgba(102, 126, 234, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        flex-direction: column !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        min-width: 200px !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
        gap: 0.5rem !important;
        z-index: 9999 !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .main-navigation ul.mobile-menu-open {
        display: flex !important;
        animation: slideDown 0.3s ease !important;
    }
    
    .main-navigation ul li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .main-navigation ul a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        border-radius: 8px !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
        border: none !important;
    }
    
    .main-navigation ul a:hover {
        background: rgba(255,255,255,0.15) !important;
        transform: translateX(5px) !important;
    }
    
    /* Корзина на мобильных */
    .header-cart {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1001 !important;
        margin-left: 0.5rem !important;
    }
    
    .cart-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 50% !important;
        color: white !important;
        text-decoration: none !important;
        font-size: 1.2rem !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    
    .cart-icon:hover {
        background: rgba(255,255,255,0.25) !important;
        transform: scale(1.05) !important;
        color: white !important;
    }
    
    .cart-count {
        position: absolute !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: -8px !important;
        right: -8px !important;
        background: #e53e3e !important;
        color: white !important;
        border-radius: 50% !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        border: 2px solid white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        z-index: 1002 !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Показываем кнопку корзины на мобильных */
    .mobile-only {
        display: inline-flex !important;
        margin-top: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
    
    .btn-cart-hero {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    
    .cart-page-wrapper {
        padding: 2rem 0 !important;
    }
    
    .cart-page-wrapper .woocommerce {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
        border-radius: 15px !important;
    }
    
    .woocommerce-cart-form .shop_table {
        font-size: 0.9rem !important;
    }
    
    .woocommerce-cart-form .shop_table thead th {
        padding: 1rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .woocommerce-cart-form .shop_table tbody td {
        padding: 1rem 0.5rem !important;
    }
    
    .product-thumbnail img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .cart-page-wrapper .actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .cart-page-wrapper .coupon {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .cart-page-wrapper .coupon input {
        min-width: auto !important;
        margin-bottom: 0.5rem !important;
    }
    
    .cart_totals {
        max-width: none !important;
        margin: 2rem 0 0 0 !important;
    }
}

@media (max-width: 480px) {
    /* КРИТИЧНО: Все элементы шапки видны */
    .site-header,
    .header-content,
    .site-title,
    .main-navigation,
    .header-cart,
    .cart-icon,
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-content {
        display: grid !important;
        grid-template-columns: 1fr auto auto !important;
        gap: 0.5rem !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .site-title {
        display: flex !important;
        grid-column: 1 !important;
    }
    
    .main-navigation {
        display: block !important;
        grid-column: 2 !important;
    }
    
    .header-cart {
        display: flex !important;
        grid-column: 3 !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.3rem !important;
    }
    
    .cart-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        background: rgba(255,255,255,0.3) !important;
        border: 2px solid rgba(255,255,255,0.4) !important;
    }
    
    .cart-count {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
        top: -3px !important;
        right: -3px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-page-wrapper::before {
        font-size: 2rem !important;
    }
    
    .woocommerce-cart-form .shop_table thead th {
        padding: 0.75rem 0.25rem !important;
        font-size: 0.8rem !important;
    }
    
    .woocommerce-cart-form .shop_table tbody td {
        padding: 0.75rem 0.25rem !important;
    }
    
    .product-thumbnail img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .quantity input {
        width: 60px !important;
        padding: 0.5rem !important;
    }
}
