/* css/style.css */
:root {
    --primary: #ff8a9f;
    --primary-dark: #ff6b8b;
    --primary-light: #ffe0e5;
    --secondary: #a8d8ea;
    --accent: #aa96da;
    --success: #a8e6cf;
    --danger: #ff8a8a;
    --warning: #ffd3b5;
    --dark: #555555;
    --light: #fcf9f9;
    --gray: #cccccc;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 12px rgba(255, 138, 159, 0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #fff5f7 0%, #fff0f3 100%);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 138, 159, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 138, 159, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 700;
    min-width: 140px;
    letter-spacing: -0.3px;
}

.logo i {
    color: var(--primary);
    font-size: 24px;
    transform: rotate(-5deg);
}

/* Поиск по центру */
.nav-search {
    flex: 1;
    display: flex;
    gap: 6px;
    max-width: 400px;
    margin: 0 auto;
}

.nav-search .form-control {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 40px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: var(--shadow);
}

.nav-search .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 138, 159, 0.1);
}

.nav-search .btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: flex-end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 40px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link i {
    font-size: 14px;
    color: var(--primary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.nav-link:hover i {
    color: var(--primary-dark);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-link.active i {
    color: white;
}

/* Счетчик корзины */
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-dark);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Меню пользователя */
.user-menu {
    position: relative;
    margin-left: 5px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: white;
    border: 2px solid transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.user-btn:hover {
    border-color: var(--primary);
    background: white;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 138, 159, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
    overflow: hidden;
    font-size: 13px;
    border: 1px solid rgba(255, 138, 159, 0.1);
}

.user-menu:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 138, 159, 0.1);
    margin: 4px 0;
}

/* Кнопки авторизации */
.auth-buttons {
    display: flex;
    gap: 6px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(255, 138, 159, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 138, 159, 0.4);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Быстрые фильтры */
.quick-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 8px 24px;
    border: none;
    background: white;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.quick-filter:hover {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.quick-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 138, 159, 0.3);
}

/* Сортировка */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
}

.sort-info {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sort-select {
    padding: 8px 35px 8px 16px;
    border: none;
    border-radius: 40px;
    font-size: 13px;
    color: var(--dark);
    background: white;
    cursor: pointer;
    outline: none;
    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='%23ff8a9f' 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 12px center;
    background-size: 14px;
    box-shadow: var(--shadow);
    font-weight: 500;
}

.sort-select:focus {
    box-shadow: var(--shadow-hover);
}

/* Категории (быстрый доступ) */
.categories-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding: 5px 0 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--primary-light);
}

.categories-strip::-webkit-scrollbar {
    height: 4px;
}

.categories-strip::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 10px;
}

.categories-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.category-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    padding: 10px;
    border-radius: 16px;
    transition: all 0.2s ease;
    min-width: 80px;
    background: white;
    box-shadow: var(--shadow);
}

.category-strip-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, white, var(--primary-light));
}

.category-strip-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 22px;
}

.category-strip-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
}

.category-strip-count {
    font-size: 9px;
    color: var(--gray);
    font-weight: 500;
}

/* ========== СЕТКА ТОВАРОВ ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    margin: 15px 0;
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    border: 1px solid rgba(255, 138, 159, 0.1);
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-image-container {
    position: relative;
    padding-top: 90%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #fff5f7);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}

.product-badge.popular {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success), #7ed6df);
}

.product-badge i {
    margin-right: 3px;
    font-size: 8px;
}

/* Рейтинг товара */
.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 4px 0;
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    font-size: 9px;
    color: #ffd700;
}

.reviews-count {
    font-size: 8px;
    color: var(--gray);
    font-weight: 500;
}

.product-info {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
}

.product-category {
    font-size: 8px;
    color: var(--primary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.product-price-block {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.current-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.old-price {
    font-size: 10px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 138, 159, 0.3);
}

.add-to-cart-btn i {
    font-size: 10px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.02);
}

/* Контролы количества в карточке */
.cart-counter {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 2px;
    border: 2px solid var(--primary-light);
    box-shadow: 0 2px 6px rgba(255, 138, 159, 0.1);
    width: 100%;
    justify-content: space-between;
}

.counter-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.counter-btn.minus:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.counter-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 11px;
}

/* Кнопка загрузить еще */
.load-more-container {
    text-align: center;
    margin: 25px 0 15px;
}

.btn-large {
    padding: 10px 35px;
    font-size: 13px;
    border-radius: 40px;
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary);
    font-size: 14px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.loading i {
    margin-right: 8px;
    color: var(--primary);
}

/* Ошибки */
.error-container {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.error-container i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 15px;
}

.error-container h2 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.error-container p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 13px;
}

.no-products {
    text-align: center;
    color: var(--gray);
    padding: 40px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: var(--shadow);
}

/* ========== ФУТЕР ========== */
.footer {
    background: white;
    border-top: 1px solid rgba(255, 138, 159, 0.2);
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 14px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 138, 159, 0.1);
    color: var(--gray);
    font-size: 11px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin: 8px 0 0;
    }
    
    .logo {
        min-width: auto;
    }
    
    .nav-menu {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 6px 10px;
    }
    
    .nav-link i {
        font-size: 16px;
        margin: 0;
    }
    
    .auth-buttons .btn span {
        display: none;
    }
    
    .auth-buttons .btn {
        padding: 6px 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .product-card {
        max-width: none;
    }
    
    .product-title {
        font-size: 11px;
        min-height: 28px;
    }
    
    .current-price {
        font-size: 12px;
    }
    
    .add-to-cart-btn {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-filters {
        gap: 5px;
    }
    
    .quick-filter {
        padding: 6px 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 5px;
    }
    
    .product-info {
        padding: 6px 5px;
    }
    
    .product-title {
        font-size: 10px;
        min-height: 24px;
        -webkit-line-clamp: 2;
    }
    
    .current-price {
        font-size: 11px;
    }
    
    .old-price {
        font-size: 8px;
    }
    
    .add-to-cart-btn {
        font-size: 8px;
        padding: 4px 6px;
    }
    
    .counter-value {
        min-width: 20px;
        font-size: 10px;
    }
    
    .counter-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

/* Добавьте эти стили в конец файла style.css */

/* Кнопка "Нет в наличии" */
.add-to-cart-btn.out-of-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.add-to-cart-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.add-to-cart-btn.out-of-stock i {
    color: #ecf0f1;
}

/* Улучшенные стили для кнопок в карточке */
.product-actions {
    margin-top: auto;
    padding: 8px 8px 10px 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cart-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 138, 159, 0.3);
    min-height: 36px;
}

.add-to-cart-btn i {
    font-size: 11px;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 138, 159, 0.4);
}

/* Счетчик в корзине */
.cart-counter {
    display: inline-flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 2px;
    border: 2px solid var(--primary-light);
    box-shadow: 0 2px 6px rgba(255, 138, 159, 0.1);
    width: 100%;
    justify-content: space-between;
    min-height: 36px;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.counter-btn.minus:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f0f0f0;
}

.counter-value {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 12px;
}

/* Обновленные стили для навигации */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
}

.nav-search {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
    margin: 0 15px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        order: 3;
        width: 100%;
    }
    
    .nav-search {
        order: 2;
        max-width: 100%;
        margin: 8px 0 0;
    }
    
    .nav-left {
        order: 1;
    }
    
    .nav-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 8px 10px;
    }
    
    .nav-link i {
        font-size: 16px;
        margin: 0;
    }
    
    .nav-search {
        min-width: 150px;
    }
    
    .nav-search .form-control {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-search .btn {
        padding: 8px 12px;
    }
}

/* ========== ИКОНКИ ДЛЯ КАТЕГОРИЙ ========== */
.category-strip-icon i {
    font-size: 24px;
}

/* Специфичные иконки для разных категорий */
.category-strip-item:nth-child(1) .category-strip-icon i { color: #ff8a9f; } /* Букеты */
.category-strip-item:nth-child(2) .category-strip-icon i { color: #a8d8ea; } /* Искусственные */
.category-strip-item:nth-child(3) .category-strip-icon i { color: #aa96da; } /* Комнатные */
.category-strip-item:nth-child(4) .category-strip-icon i { color: #95a5a6; } /* Пластиковые */
.category-strip-item:nth-child(5) .category-strip-icon i { color: #7ed6df; } /* Садовые */
.category-strip-item:nth-child(6) .category-strip-icon i { color: #f6b83e; } /* Тканевые */
.category-strip-item:nth-child(7) .category-strip-icon i { color: #f8c291; } /* Бумажные */
.category-strip-item:nth-child(8) .category-strip-icon i { color: #6ab04c; } /* Дикорастущие */
.category-strip-item:nth-child(9) .category-strip-icon i { color: #e67e22; } /* Деревянные */
.category-strip-item:nth-child(10) .category-strip-icon i { color: #d4a5a5; } /* Сухоцветы */
.category-strip-item:nth-child(11) .category-strip-icon i { color: #e0566b; } /* Керамические */
.category-strip-item:nth-child(12) .category-strip-icon i { color: #7f8c8d; } /* Металлические */
.category-strip-item:nth-child(13) .category-strip-icon i { color: #95a5a6; } /* Каменные */

/* ========== УЛУЧШЕННОЕ ВЫПАДАЮЩЕЕ МЕНЮ ========== */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 138, 159, 0.2);
    min-width: 220px;
    display: none;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(255, 138, 159, 0.15);
    animation: dropdownFadeIn 0.2s ease;
}

/* Убираем задержку при наведении */
.user-menu:hover .user-dropdown {
    display: block;
}

/* Добавляем невидимый мост для плавного перехода */
.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Анимация появления */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для пунктов меню */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.dropdown-item i {
    width: 18px;
    color: var(--primary);
    font-size: 16px;
    text-align: center;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-light), #fff5f7);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

.dropdown-item:hover i {
    color: var(--primary-dark);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 138, 159, 0.2), transparent);
    margin: 6px 0;
}

/* Кнопка выхода */
.dropdown-item.logout-btn {
    color: var(--danger);
}

.dropdown-item.logout-btn i {
    color: var(--danger);
}

.dropdown-item.logout-btn:hover {
    background: #fff2f2;
    border-left-color: var(--danger);
}

/* Улучшенный стиль кнопки пользователя */
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: white;
    border: 2px solid transparent;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1002;
}

.user-btn:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-hover);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 138, 159, 0.3);
}

/* ========== УЛУЧШЕННЫЕ НОТИФИКАЦИИ ========== */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 15px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notification.success .notification-icon {
    background: rgba(168, 230, 207, 0.2);
    color: var(--success);
}

.notification.error .notification-icon {
    background: rgba(255, 138, 138, 0.2);
    color: var(--danger);
}

.notification.warning .notification-icon {
    background: rgba(255, 211, 181, 0.2);
    color: #ff9800;
}

.notification.info .notification-icon {
    background: rgba(168, 216, 234, 0.2);
    color: var(--secondary);
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.notification-close {
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== УЛУЧШЕННЫЕ КАРТОЧКИ ТОВАРОВ ========== */
.product-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 138, 159, 0.2);
}

.product-image-container {
    background: linear-gradient(135deg, #fff5f7, #fff0f3);
}

.product-badge {
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 138, 159, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 138, 159, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 138, 159, 0);
    }
}

/* ========== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .user-btn span {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .notification {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        animation: slideInUp 0.3s ease;
    }
    
    @keyframes slideInUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .categories-strip {
        padding-bottom: 15px;
    }
    
    .category-strip-item {
        min-width: 70px;
    }
    
    .category-strip-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .category-strip-name {
        font-size: 10px;
    }
}

/* Стили для отображения категории и подкатегории */
.product-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 500;
}

.main-category {
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sub-category {
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category-arrow {
    color: var(--primary-light);
    font-size: 8px;
    display: flex;
    align-items: center;
}

.category-arrow i {
    font-size: 8px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-category {
        font-size: 8px;
        gap: 3px;
    }
    
    .category-arrow i {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .product-category {
        font-size: 7px;
        gap: 2px;
    }
}

/* Стиль для отображения родительской категории */
.category-parent {
    font-size: 8px;
    color: var(--primary);
    display: block;
    margin-top: 2px;
    font-weight: normal;
}

.category-strip-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

/* Добавьте в конец файла style.css, если этих стилей еще нет */

/* Рейтинг товара */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 10px;
    color: #ffd700;
}

.stars i.far.fa-star {
    color: #ddd;
}

.stars i.fas.fa-star-half-alt {
    color: #ffd700;
}

.reviews-count {
    font-size: 9px;
    color: var(--gray);
    font-weight: 500;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .stars i {
        font-size: 9px;
    }
    
    .reviews-count {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .stars i {
        font-size: 8px;
    }
    
    .product-rating {
        margin: 4px 0;
    }
}

/* Исправление для длинных названий товаров на главной */
.product-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

/* Для очень длинных слов */
.product-title::after {
    content: '';
    display: block;
    height: 0;
    clear: both;
}

/* Обновленные стили для карточки */
.product-card {
    max-width: 100%;
    overflow: hidden;
}

.product-info {
    max-width: 100%;
    overflow: hidden;
    padding: 8px;
}

/* Дополнительная защита для контейнера */
.product-image-container {
    flex-shrink: 0;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .product-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 10px;
        -webkit-line-clamp: 2;
        max-height: 2.2em;
    }
}

/* Добавьте в конец файла style.css */

/* Рейтинг в карточках товаров */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
    color: #f39c12;
}

.stars i {
    font-size: 11px;
}

.stars i.fas.fa-star {
    color: #f39c12;
}

.stars i.fas.fa-star-half-alt {
    color: #f39c12;
}

.stars i.far.fa-star {
    color: #e0e0e0;
}

.rating-value {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
}

.reviews-count {
    font-size: 10px;
    color: #95a5a6;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stars i {
        font-size: 10px;
    }
    
    .rating-value {
        font-size: 10px;
    }
    
    .reviews-count {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .product-rating {
        gap: 4px;
    }
    
    .stars i {
        font-size: 9px;
    }
    
    .rating-value {
        font-size: 9px;
    }
    
    .reviews-count {
        font-size: 8px;
        padding: 1px 5px;
    }
}

/* Добавьте в начало файла catalog.css */

/* Бейджи на карточках товаров */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulseBadge 2s infinite;
    pointer-events: none;
    white-space: nowrap;
}

.badge.discount {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge.hit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.badge.new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Исправление для карточки товара */
.product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 12px;
    color: #f39c12;
}

.rating-value {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.reviews-count {
    font-size: 11px;
    color: #95a5a6;
}

.product-price-block {
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.old-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-actions {
    margin-top: auto;
    padding: 0 15px 15px;
}

.cart-button-container {
    width: 100%;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.add-to-cart-btn.out-of-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
}

/* Адаптивность */
@media (max-width: 768px) {
    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 38px;
    }
    
    .current-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .badge {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .product-title {
        font-size: 12px;
        min-height: 34px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .stars i {
        font-size: 10px;
    }
    
    .rating-value {
        font-size: 10px;
    }
    
    .reviews-count {
        font-size: 9px;
    }
}

/* Дополнительные стили для карточек товаров */
.product-card {
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.product-info {
    max-width: 100%;
    overflow: hidden;
    padding: 12px 10px;
}

.product-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 500;
    margin-bottom: 4px;
}

.main-category, .sub-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    display: inline-block;
}

.category-arrow {
    flex-shrink: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
    max-width: 100%;
    overflow: hidden;
}

.stars {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}

.stars i {
    font-size: 10px;
}

.rating-value {
    font-size: 10px;
    font-weight: 600;
    color: #2c3e50;
    flex-shrink: 0;
}

.ratings-count {
    font-size: 9px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
    max-width: 100%;
    overflow: hidden;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
}

.old-price {
    font-size: 12px;
    color: #95a5a6;
    text-decoration: line-through;
    white-space: nowrap;
}

.product-actions {
    max-width: 100%;
    overflow: hidden;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .main-category, .sub-category {
        max-width: 60px;
    }
    
    .product-title {
        font-size: 12px;
        min-height: 2.4em;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .old-price {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .main-category, .sub-category {
        max-width: 50px;
        font-size: 8px;
    }
    
    .product-title {
        font-size: 11px;
        min-height: 2.2em;
    }
    
    .current-price {
        font-size: 12px;
    }
    
    .old-price {
        font-size: 9px;
    }
    
    .stars i {
        font-size: 9px;
    }
    
    .rating-value {
        font-size: 9px;
    }
    
    .ratings-count {
        font-size: 8px;
        max-width: 60px;
    }
}

/* Добавьте в конец файла style.css */

/* Кнопка избранного как в catalog.css */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 138, 159, 0.2);
    border: 1px solid var(--primary-light);
    padding: 0;
}

.favorite-btn i {
    font-size: 12px;
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: var(--danger);
    border-color: var(--danger);
}

.favorite-btn.active {
    color: var(--danger);
    background: var(--white);
}

.favorite-btn.active i {
    color: var(--danger);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .favorite-btn {
        width: 26px;
        height: 26px;
        top: 6px;
        right: 6px;
    }
    
    .favorite-btn i {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .favorite-btn {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
    }
    
    .favorite-btn i {
        font-size: 10px;
    }
}

/* Обновленные стили для бейджей как в catalog.css */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70px;
}

.badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(255, 138, 159, 0.2);
}

.badge.discount {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: var(--white);
}

.badge.hit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.badge.new {
    background: linear-gradient(135deg, var(--success), #7ed6df);
    color: var(--white);
}

/* Стили для рейтинга как в catalog.css */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 11px;
}

.stars i {
    font-size: 11px;
}

.stars i.fas.fa-star {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.2);
}

.stars i.fas.fa-star-half-alt {
    color: #ffc107;
}

.stars i.far.fa-star {
    color: #e0e0e0;
}

.rating-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark);
    margin-right: 2px;
}

.rating-count {
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
    background: var(--light);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    margin-left: auto;
}

/* Обновленные стили для карточки товара */
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--primary-light);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), var(--light));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 10px;
    cursor: pointer;
    flex: 1;
}

.product-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
    
    /* Ограничение в 2 строки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    
    /* Фиксированная высота для 2 строк */
    min-height: 2.6em;
    max-height: 2.6em;
    
    /* Предотвращение переноса длинных слов */
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-price-block {
    margin: 6px 0 4px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.old-price {
    font-size: 11px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-actions {
    padding: 0 10px 10px;
}

.cart-button-container {
    width: 100%;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-image-container {
        height: 130px;
    }
    
    .product-title {
        font-size: 12px;
        min-height: 2.4em;
        max-height: 2.4em;
    }
    
    .stars {
        font-size: 10px;
    }
    
    .stars i {
        font-size: 10px;
    }
    
    .rating-count {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .current-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 120px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 11px;
        min-height: 2.2em;
        max-height: 2.2em;
    }
    
    .product-rating {
        gap: 2px;
    }
    
    .stars {
        font-size: 9px;
    }
    
    .stars i {
        font-size: 9px;
    }
    
    .rating-count {
        font-size: 8px;
        padding: 1px 5px;
    }
    
    .current-price {
        font-size: 13px;
    }
}

/* Добавьте в конец файла style.css */

/* Бейджи как в catalog.css */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70px;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulseBadge 2s infinite;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

/* Бейдж скидки - красный градиент */
.badge.discount {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Бейдж хит - оранжевый градиент */
.badge.hit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Бейдж новинки - зеленый градиент */
.badge.new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Анимация пульсации */
@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .badge {
        font-size: 8px;
        padding: 2px 5px;
    }
}

/* Добавьте в css/style.css */

/* Страница избранного */
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.favorites-count {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
}

.favorites-count i {
    margin-right: 8px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.favorite-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.favorite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.favorite-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.favorite-card:hover .favorite-image img {
    transform: scale(1.05);
}

.favorite-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.favorite-remove-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.favorite-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.favorite-category {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.favorite-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-name:hover {
    color: var(--primary);
}

.favorite-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.stars i {
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: var(--gray);
}

.favorite-price-block {
    margin-bottom: 15px;
}

.favorite-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}

.favorite-old-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    margin-top: 4px;
}

.favorite-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.favorite-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--dark);
}

.btn-outline-secondary:hover {
    background: var(--light);
    border-color: var(--dark);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.favorite-stock {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--light);
}

.favorite-stock.in-stock {
    color: var(--success);
}

.favorite-stock.out-of-stock {
    color: var(--danger);
}

.empty-favorites {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

.empty-favorites i {
    font-size: 80px;
    color: var(--gray);
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-favorites h2 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 10px;
}

.empty-favorites p {
    color: var(--gray);
    margin-bottom: 30px;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    background: #fee;
    border-radius: 12px;
    border: 1px solid var(--danger);
}

.error-message i {
    font-size: 48px;
    color: var(--danger);
    margin-bottom: 20px;
}

.error-message p {
    color: var(--danger);
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .favorites-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .favorite-actions {
        flex-direction: column;
    }
    
    .empty-favorites {
        padding: 40px 15px;
    }
    
    .empty-favorites i {
        font-size: 60px;
    }
    
    .empty-favorites h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-card {
        max-width: 100%;
    }
}