/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Убираем подчеркивание у всех кнопок и ссылок */
button, .btn, .add-to-cart-btn, .quantity-btn {
    text-decoration: none !important;
}

/* Убираем подчеркивание у ссылок карточек товаров */
.product-card-link {
    text-decoration: none !important;
}

.product-card-link:hover {
    text-decoration: none !important;
}

/* Убираем подчеркивание у всех ссылок */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 50%, #e8f5e8 100%);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #9ebbd8 0%, #9fbfd8 100%);
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.5s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: #fff3e0;
    transform: scale(1.05);
}

.telegram-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.telegram-link:hover {
    background-color: #0088cc;
    color: white;
    transform: scale(1.1);
}

.telegram-link svg {
    width: 20px;
    height: 20px;
}

/* Main */
.main {
    min-height: calc(100vh - 140px);
    margin-top: 80px; /* Отступ для фиксированной шапки */
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #468a49 0%, #5d7e5e 50%, #5e9561 100%);
    color: white;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Products section */
.products {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f1f3f4;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-category {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6f00;
    margin-bottom: 0.5rem;
}



.product-price-type {
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}

.product-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-status.in-stock {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.product-status.out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 0.5rem;
    width: auto;
    min-width: 140px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.add-to-cart-btn:active {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Контейнер для кнопок корзины */
.cart-controls {
    margin-top: 0.5rem;
    text-align: center;
}

/* Специальные стили для кнопки в карточке товара */
.product-card .add-to-cart-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Стили для контролов количества товара */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.quantity-btn:active {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.3);
}

.quantity-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

/* Loading overlay */
.loader-overlay {
    position: fixed;
    z-index: 9999;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

body.loading main, 
body.loading header, 
body.loading footer {
    visibility: hidden;
}

/* Product image placeholder - теперь используется изображение no-image.png */

/* Product detail page */
.product-detail {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

.product-detail h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.product-detail-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-detail .product-category {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.product-detail .product-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff6f00;
    margin-bottom: 0.8rem;
}

.product-detail .product-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Мобильная шапка */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, #9ebbd8 0%, #9fbfd8 100%);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    display: flex;
    align-items: center;
}

.mobile-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    text-align: center;
    min-height: 50px;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Мобильная нижняя навигация */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #9ebbd8 0%, #9fbfd8 100%);
    box-shadow: 0 -2px 10px rgba(25, 118, 210, 0.2);
    z-index: 100;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-item:active {
    transform: translateY(0);
}

.mobile-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.telegram-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.2rem;
}

.mobile-nav-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6f00;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

/* Десктопные стили - скрываем мобильные элементы */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: none;
    }
    
    .main {
        margin-top: 80px; /* Отступ для десктопной шапки */
        margin-bottom: 0; /* Убираем отступ снизу */
    }
    
    .footer {
        margin-bottom: 0; /* Убираем отступ снизу */
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .main {
        margin-top: 50px; /* Отступ для мобильной шапки */
        margin-bottom: 0; /* Убираем отступ снизу */
    }
    
    .footer {
        margin-bottom: 80px; /* Добавляем отступ снизу для нижней навигации */
        width: 100%; /* Убеждаемся, что футер на всю ширину */
        position: relative; /* Правильное позиционирование */
        z-index: 1; /* Футер должен быть под нижней навигацией */
    }
    
    /* Скрываем десктопную навигацию */
    .nav {
        display: none;
    }
    
    /* Уменьшаем размер мобильного логотипа */
    .mobile-logo {
        font-size: 1rem;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .telegram-link {
        padding: 0.3rem;
    }
    
    .telegram-link svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Уменьшаем размеры карточек товаров для мобильных */
    .product-card {
        min-width: 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        min-width: 80px;
        min-height: 80px;
    }
    
    .category-emoji {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-logo {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .mobile-nav-icon {
        font-size: 1.3rem;
    }
    
    .telegram-icon {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    .mobile-nav-text {
        font-size: 0.6rem;
    }
    
    .mobile-nav-item {
        min-width: 50px;
        padding: 0.3rem;
    }
    
    .header-content {
        padding: 0.3rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Еще более компактные карточки для маленьких экранов */
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .category-card {
        min-width: 70px;
        min-height: 70px;
        padding: 0.5rem;
    }
    
    .category-emoji {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main {
        margin-top: 50px; /* Отступ для мобильной шапки */
        margin-bottom: 0; /* Убираем отступ снизу */
    }
    
    .footer {
        margin-bottom: 80px; /* Добавляем отступ снизу для нижней навигации */
        width: 100%; /* Убеждаемся, что футер на всю ширину */
        position: relative; /* Правильное позиционирование */
        z-index: 1; /* Футер должен быть под нижней навигацией */
    }
} 

.product-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.product-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.product-detail h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-detail .product-category {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail .product-description {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.product-detail .product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1rem;
} 

.categories-section {
    margin-bottom: 3rem;
}

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

.category-card {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    min-width: 120px;
    min-height: 120px;
    border: 3px solid transparent;
    font-size: 1.1rem;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.category-card:hover, .category-card.active {
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
    border-color: #fff3e0;
    transform: translateY(-8px) scale(1.08);
}

.category-card.active {
    background: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
    border-color: #fff;
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
    position: relative;
}

.category-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4caf50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.category-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.in-stock-filter {
    margin: 1.5rem 0 0 0;
    text-align: center;
    font-size: 1.1rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Кастомный переключатель */
.custom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.custom-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    user-select: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ced4da;
    border-radius: 13px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-label .toggle-slider {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.toggle-input:checked + .toggle-label .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    transition: color 0.3s ease;
}

.toggle-input:checked + .toggle-label .toggle-text {
    color: #2e7d32;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.weight-input-group {
    margin-bottom: 1.5rem;
}

.weight-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.weight-input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.weight-input-group input:focus {
    outline: none;
    border-color: #4caf50;
}

.weight-info {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6f00;
}

.quick-weights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-weight-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-weight-btn:hover {
    border-color: #4caf50;
    background: #f8f9fa;
}

.quick-weight-btn.active {
    border-color: #4caf50;
    background: #4caf50;
    color: white;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.category-products-block {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Стили для корзины */
.cart-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cart-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.weight-notice-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.weight-notice-header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
    font-style: italic;
}

.bot-notice-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.bot-notice-header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
    font-style: italic;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex: 1;
    margin-right: 1rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #ff6f00;
    font-weight: 600;
}

.cart-item-quantity {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.weight-input-cart {
    width: 80px;
    padding: 0.3rem 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.weight-input-cart:focus {
    outline: none;
    border-color: #4caf50;
}

.weight-input-cart:hover {
    border-color: #4caf50;
}

.cart-item-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 1rem;
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color: #ffebee;
}

.cart-summary {
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.cart-total-range {
    text-align: center;
}

.total-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.total-amount-range {
    color: #ff6f00;
    font-size: 1.4rem;
}

.weight-notice {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.total-amount {
    color: #ff6f00;
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    align-items: center;
    width: 100%;
}

.cart-actions .btn {
    margin-top: 0;
    height: auto;
    line-height: 1.5;
    vertical-align: middle;
    width: 180px;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 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;
    margin: 0.25rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 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;
    margin: 0.25rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-info {
        margin-right: 0;
        width: 100%;
    }
    
    .cart-item-controls {
        margin-right: 0;
        align-self: center;
    }
    
    .cart-item-total {
        margin-right: 0;
        align-self: center;
        text-align: center;
    }
    
    .remove-btn {
        align-self: center;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: center;
    }
} 