/* ===== AliDay / AliTop - единый файл стилей ===== */
/* Версия: 2.0 (брендбук + CSS переменные) */
/* Сохранены все исходные стили, заменены только цвета */

/* ===== Базовые переменные и темы ===== */
:root {
    /* Основные цвета бренда (primary palette) */
    --brand-orange: #FF6B00;
    --brand-orange-rgb: 255, 107, 0;
    --brand-red-orange: #FF4500;
    --brand-red-orange-rgb: 255, 69, 0;
    --brand-orange-gradient-end: #FF8C00;
    --brand-dark-blue: #0A1F44;
    --brand-dark-blue-rgb: 10, 31, 68;
    --brand-white: #FFFFFF;
    --brand-white-rgb: 255, 255, 255;
    --brand-black: #1A1A1A;
    --brand-black-rgb: 26, 26, 26;
    
    /* Вспомогательные / нейтральные цвета */
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #666666;
    --success-green: #00C853;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    
    /* Функциональные цвета (применение) */
    --bg-primary: var(--gray-light);
    --bg-card: var(--brand-white);
    --text-primary: var(--brand-black);
    --text-secondary: var(--gray-dark);
    --text-tertiary: #64748b; /* сохранен исходный */
    --text-on-accent: var(--brand-white);
    --text-on-dark: var(--brand-white);
    
    --accent-primary: var(--brand-orange);
    --accent-secondary: var(--brand-red-orange);
    --accent-tertiary: var(--brand-orange-gradient-end);
    --accent-dark: var(--brand-dark-blue);
    --accent-hot: var(--brand-red-orange);
    --accent-success: var(--success-green);
    --accent-warning: var(--warning-orange);
    
    --border-subtle: #e2e8f0; /* сохранен исходный */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--brand-red-orange), var(--brand-orange-gradient-end));
    --gradient-cta: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-gradient-end));
    --gradient-hover: linear-gradient(135deg, var(--brand-red-orange), var(--brand-orange));
    
    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-accent: 0 4px 12px rgba(var(--brand-orange-rgb), 0.3);
    --shadow-accent-lg: 0 8px 20px rgba(var(--brand-orange-rgb), 0.4);
    
    /* Скругления */
    --radius: 24px;
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

/* ===== Dark Theme Variables ===== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --brand-orange: #FF8533;
    --brand-red-orange: #FF5F33;
    --brand-orange-gradient-end: #FFA333;
    
    --border-subtle: #334155;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.6);
    --shadow-accent: 0 4px 12px rgba(255, 133, 51, 0.2);
    --shadow-accent-lg: 0 8px 20px rgba(255, 133, 51, 0.3);
    
    --gray-light: #2d2d2d;
    --gray-medium: #404040;
    --gray-dark: #808080;
}

/* ===== Базовые стили ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.alitop-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .alitop-header {
    background: rgba(30, 41, 59, 0.8);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
}

/* Верхняя строка */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Логотип */
.logo-image {
    width: 200px;
    height: auto;
    display: block;
}

/* Слоган */
.logo-tagline {
    margin-top: 5px;
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 400;
    white-space: nowrap;
}

/* Десктоп/мобильное управление */
@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
        width: 100%;
        text-align: left;
        padding-top: 4px;
    }
    
    .logo-image {
        width: 150px;
    }
}

/* BookMix ссылка */
.bookmix-bridge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.bookmix-bridge:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.bookmix-bridge i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .bookmix-text {
        display: none;
    }
    .bookmix-bridge {
        padding: 6px 8px;
    }
}

/* Telegram */
.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1DA1F2, #0b7bc1);
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.telegram-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
    color: white;
}

[data-theme="dark"] .telegram-link {
    background: linear-gradient(135deg, #2b5b8c, #1a3b5c);
}


/* VK */
.vk-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0077FF;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.vk-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
    color: white;
    background: #0066DD;
}

.vk-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 26px;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-right: 12px;
}


[data-theme="dark"] .vk-link {
    background: #1a4f8c;
}

[data-theme="dark"] .vk-link:hover {
    background: #2b6ab0;
}

@media (max-width: 768px) {
    .vk-link-footer,
    .vk-link {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ===== Theme Toggle ===== */
.theme-toggle-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.theme-toggle-header:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.theme-toggle-header .fa-sun {
    display: block;
}
.theme-toggle-header .fa-moon {
    display: none;
}
.theme-toggle-header.dark .fa-sun {
    display: none;
}
.theme-toggle-header.dark .fa-moon {
    display: block;
}

@media (max-width: 768px) {
    .theme-toggle-header {
        width: 32px;
        height: 32px;
    }
}

/* ===== Hero Section ===== */
.alitop-hero {
    padding: 24px 0 16px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(var(--brand-orange-rgb), 0.02) 100%);
}

.alitop-hero h1 {
    font-size: 32px;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.5;
    padding: 0 10px;
}

.hero-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

.filter-chip {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .filter-chip:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .filter-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
    .filter-chip .long {
        display: none;
    }
    .filter-chip .short {
        display: inline;
    }
}

@media (min-width: 769px) {
    .filter-chip .long {
        display: inline;
    }
    .filter-chip .short {
        display: none;
    }
}

/* ===== Categories Section ===== */
.alitop-categories {
    padding: 24px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-primary);
    font-size: 22px;
}

.section-title:after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), transparent);
    margin-left: 15px;
}

/* Collapsible Categories */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
}

.section-header .section-title {
    margin-bottom: 0;
}

.collapse-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.collapse-toggle:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {
    .collapse-toggle {
        display: flex;
    }
    .categories-grid.collapsed {
        display: none;
    }
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.category-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-primary);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.category-card:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card:hover .category-icon {
    color: var(--text-on-accent);
}

.category-icon {
    font-size: 16px;
    color: var(--accent-primary);
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.category-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: var(--shadow-sm);
}

/* ===== Niche Category Card ===== */
.niche-category-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px 24px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
    max-width: 600px;
    margin: 0 auto;
}

.niche-category-card:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.niche-category-card .icon {
    color: var(--accent-primary);
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.niche-category-card .content {
    flex: 1;
}

.niche-category-card h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.niche-category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Niche Page Header ===== */
.niche-header {
    padding: 30px 0 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.niche-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.niche-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}

.niche-text {
    flex: 1;
}

.niche-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.niche-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
}

@media (max-width: 768px) {
    .niche-info {
        flex-direction: column;
        text-align: center;
    }
    .niche-text h1 {
        font-size: 24px;
    }
}

/* ===== Feed Section ===== */
.alitop-feed {
    margin-top: 40px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.feed-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-update {
    font-size: 14px;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid var(--border-subtle);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.1, 0.7, 0.3, 1);
    border: 1px solid var(--border-subtle);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

/* Media Section */
.product-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-dark), #764ba2);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Carousel */
.product-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.product-media:hover .carousel-prev,
.product-media:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 12px;
}
.carousel-next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.hot {
    background: var(--accent-hot);
    color: var(--text-on-accent);
}

.badge.discount {
    background: var(--accent-success);
    color: var(--text-on-accent);
}

.badge.new {
    background: var(--warning-orange);
    color: var(--text-on-accent);
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    transform: scale(1.1);
}

.quick-action-btn.favorite {
    color: var(--error-red);
}
.quick-action-btn.favorite:hover,
.quick-action-btn.favorite.active {
    background: var(--error-red);
    color: var(--text-on-accent);
}

[data-theme="dark"] .quick-action-btn.favorite {
    color: #ff6b6b;
}
[data-theme="dark"] .quick-action-btn.favorite:hover,
[data-theme="dark"] .quick-action-btn.favorite.active {
    background: #ff6b6b;
    color: var(--bg-primary);
}

/* Content Section */
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

@media (max-width: 768px) {
    .product-content {
        padding: 16px;
    }
}

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border-color: var(--accent-primary);
}

/* Title */
.product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-sku {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

/* Metrics */
.product-metrics {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.metric {
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric i {
    font-size: 14px;
    color: var(--accent-primary);
}

.metric.rating i {
    color: var(--warning-orange);
}

/* Price Block */
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
}

.price-old {
    font-size: 16px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.discount-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-success);
    background: rgba(0, 200, 83, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
}

/* ETA доставки */
.product-delivery {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-delivery i {
    color: var(--accent-primary);
    font-size: 12px;
}

/* Buttons */
.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 24px;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-lg);
    background: var(--gradient-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

/* ===== Product Actions ===== */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* ===== Loading Indicator ===== */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 16px;
}

.loading-indicator.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Notifications ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--accent-primary);
    pointer-events: auto;
    max-width: 350px;
    backdrop-filter: blur(8px);
}

.notification-success {
    border-left-color: var(--accent-success);
}
.notification-warning {
    border-left-color: var(--warning-orange);
}
.notification-error {
    border-left-color: var(--error-red);
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .notification {
        max-width: 100%;
    }
}

/* ===== Empty State Messages ===== */
.empty-niche-message,
.end-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon,
.end-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-niche-message h3,
.end-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.empty-niche-message p,
.end-message p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px;
}

.empty-niche-message .btn,
.end-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-cta);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.empty-niche-message .btn:hover,
.end-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-lg);
}

/* ===== Trust Block ===== */
.alitop-trust {
    padding: 48px 0;
    background: linear-gradient(135deg, rgba(var(--brand-orange-rgb), 0.02), rgba(124, 58, 237, 0.02));
    margin-top: 40px;
}

.trust-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.trust-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-block p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.trust-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 10px 24px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

/* ===== Footer ===== */
.alitop-footer {
    background: var(--accent-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-on-dark);
    font-size: 14px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    align-items: center;
}

.telegram-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.telegram-link-footer:hover {
    background: var(--accent-primary);
    transform: scale(1.1) rotate(5deg);
    color: white;
}

.footer-disclaimer {
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 15px 24px 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


/* ===== Product Page ===== */
.product-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge.hot {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-hot);
    color: var(--text-on-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--accent-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-actions-side {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 60px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--border-subtle);
}

.action-btn.active {
    background: var(--accent-hot);
    color: var(--text-on-accent);
    border-color: transparent;
}

.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.product-sku {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 30px;
}

.product-store i {
    margin-right: 4px;
    color: var(--accent-primary);
}

.product-stats {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.rating-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stars {
    color: var(--warning-orange);
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.reviews-count {
    color: var(--text-tertiary);
    font-size: 14px;
}

.stats-numbers {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat i {
    color: var(--accent-primary);
    font-size: 18px;
}

.product-purchase {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

@media (max-width: 768px) {
    .current-price {
        font-size: 32px;
    }
}

.old-price {
    font-size: 20px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(0, 200, 83, 0.1);
    color: var(--accent-success);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
}

.btn-large {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

.delivery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item i {
    font-size: 28px;
    color: var(--accent-primary);
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-item span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.similar-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.similar-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
}

@media (max-width: 1024px) {
    .similar-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .similar-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .similar-products .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card-wrapper {
    height: 100%;
    cursor: pointer;
}

/* ===== SEO и FAQ блоки ===== */
.alitop-seo {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.alitop-seo h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.alitop-seo h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.alitop-seo p, .alitop-seo ul {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.alitop-seo ul {
    padding-left: 20px;
    list-style-type: disc;
}

.alitop-faq {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.alitop-faq h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Suggest Form ===== */
.alitop-suggest {
    padding: 40px 0;
    background: var(--bg-primary);
}

.alitop-suggest h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.suggest-form {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 35px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group .required {
    color: var(--error-red);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    font-size: 14px;
    transition: all 0.2s;
    background: var(--bg-primary);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.1);
    background: var(--bg-card);
}

select.form-control {
    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='%23666' 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;
    padding-right: 40px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 25px;
    padding: 5px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.form-actions {
    text-align: center;
    margin-top: 15px;
}

.form-actions .btn {
    min-width: 240px;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
}

/* Успешное сообщение */
.suggest-success {
    max-width: 500px;
    margin: 30px auto 0;
    padding: 45px 35px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 70px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.suggest-success h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.suggest-success p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.suggest-success .btn-outline {
    padding: 12px 30px;
    font-size: 15px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.suggest-success .btn-outline:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* ===== 404 Error Page ===== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.error-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.error-animation {
    position: relative;
    height: 200px;
    margin-bottom: 30px;
}

.book-stack {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: flex-end;
}

.book {
    font-size: 40px;
    animation: bookWobble 2s ease-in-out infinite;
    transform-origin: bottom center;
}

.book-1 { animation-delay: 0s; }
.book-2 { animation-delay: 0.2s; }
.book-3 { animation-delay: 0.4s; }
.book-4 { animation-delay: 0.6s; }

@keyframes bookWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.magnifying-glass {
    position: absolute;
    top: 20px;
    right: 30%;
    animation: glassMove 3s ease-in-out infinite;
}

.glass {
    font-size: 48px;
    position: relative;
    z-index: 2;
}

.search-beam {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    border-radius: 2px;
    animation: beamPulse 1.5s ease-in-out infinite;
}

@keyframes glassMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, -10px) rotate(5deg); }
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.question-marks {
    position: absolute;
    left: 30%;
    top: 30%;
}

.qm {
    position: absolute;
    font-size: 30px;
    font-weight: bold;
    color: var(--accent-primary);
    opacity: 0.6;
    animation: questionFloat 2s ease-in-out infinite;
}

.qm-1 { animation-delay: 0s; left: 0; top: 0; }
.qm-2 { animation-delay: 0.3s; left: 30px; top: -20px; }
.qm-3 { animation-delay: 0.6s; left: 60px; top: 10px; }

@keyframes questionFloat {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-10px); opacity: 0.8; }
}

.error-content h1 {
    font-size: 120px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: skew(0deg); }
    95% { transform: skew(0deg); }
    96% { transform: skew(5deg); }
    97% { transform: skew(-5deg); }
    98% { transform: skew(3deg); }
    99% { transform: skew(-3deg); }
}

.error-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0 20px;
}

.error-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.funny-line {
    font-style: italic;
    margin-top: 10px;
}

.highlight {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.error-suggestions {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--border-subtle);
}

.error-suggestions p {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.suggestion-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 100px;
    border: 1px solid transparent;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.suggestion-card .icon {
    font-size: 32px;
}

.suggestion-card .text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.error-fun-fact {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    border-left: 4px solid var(--accent-primary);
    text-align: left;
}

.error-fun-fact p:first-child {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 5px;
}

.fact-text {
    font-size: 16px;
    color: var(--text-primary);
    font-style: italic;
}

[data-theme="dark"] .error-content h1 {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

[data-theme="dark"] .logo-image {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* ===== Мобильные адаптации (общие) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-container {
        padding: 8px 16px;
    }
    
    .header-top-row {
        margin-bottom: 4px;
    }
    
    .header-bottom-row {
        margin-top: 4px;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .logo-star, .logo-crown {
        font-size: 14px;
    }
    
    .logo-tagline {
        font-size: 14px;
    }
    
    /* Hero */
    .alitop-hero h1 {
        font-size: 19px;
        margin-bottom: 6px;
        padding: 0 10px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 12px;
        padding: 0 12px;
    }
    
    .hero-filters {
        gap: 4px;
    }
    
    .filter-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Categories */
    .section-header {
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 8px 12px;
        white-space: normal;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .category-icon {
        font-size: 14px;
    }
    
    /* Product card */
    .product-content {
        padding: 12px;
    }
    
    .price-current {
        font-size: 20px;
    }
    
    /* Suggest form */
    .suggest-form {
        padding: 25px 20px;
        margin: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        margin: 15px 0 20px;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .suggest-success {
        margin: 20px 15px;
        padding: 30px 20px;
    }
    
    .success-icon {
        font-size: 60px;
    }
    
    .suggest-success h3 {
        font-size: 22px;
    }
    
    /* 404 */
    .error-content h1 {
        font-size: 80px;
    }
    
    .error-content h2 {
        font-size: 24px;
    }
    
    .error-animation {
        height: 150px;
    }
    
    .book {
        font-size: 30px;
    }
    
    .glass {
        font-size: 36px;
    }
    
    .search-beam {
        width: 60px;
    }
    
    .suggestion-links {
        flex-direction: column;
    }
    
    .suggestion-card {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 6px 10px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .filter-chip {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .logo-main {
        font-size: 18px;
    }
    
    .logo-star, .logo-crown {
        font-size: 12px;
    }
    
    .logo-tagline {
        font-size: 11px;
    }
}



/* Product Page Container */
.product-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* Main Product Container */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Gallery Section */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge.hot {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-hot);
    color: var(--text-on-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--accent-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Side Actions */
.product-actions-side {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 60px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--border-subtle);
}

.action-btn.active {
    background: var(--accent-hot);
    color: var(--text-on-accent);
    border-color: transparent;
}

.action-btn i {
    font-size: 16px;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.product-sku {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 30px;
}

.product-store i {
    margin-right: 4px;
    color: var(--accent-primary);
}

/* Stats Block */
.product-stats {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.rating-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stars {
    color: var(--warning-orange);
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.reviews-count {
    color: var(--text-tertiary);
    font-size: 14px;
}

.stats-numbers {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat i {
    color: var(--accent-primary);
    font-size: 18px;
}

/* Purchase Block */
.product-purchase {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

@media (max-width: 768px) {
    .current-price {
        font-size: 32px;
    }
}

.old-price {
    font-size: 20px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(var(--success-green), 0.1);
    color: var(--success-green);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
}

.btn-large {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
}

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-primary);
    color: var(--text-on-accent);
}

/* Delivery Info */
.delivery-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item i {
    font-size: 28px;
    color: var(--accent-primary);
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-item span {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Similar Products Section */
.similar-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Products Grid (для похожих товаров) */
.similar-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
}

@media (max-width: 1024px) {
    .similar-products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .similar-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .similar-products .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card-wrapper {
    height: 100%;
    cursor: pointer;
}

/* Loading States */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--border-subtle) 25%,
        var(--bg-card) 50%,
        var(--border-subtle) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--accent-hot);
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-gallery {
        position: static;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-numbers {
        flex-direction: column;
        gap: 12px;
    }
    
    .delivery-info {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .product-actions-side,
    .action-buttons,
    .similar-products {
        display: none;
    }
    
    .product-gallery {
        position: static;
    }
}

/* ===== Product Description ===== */
.product-description {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.description-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.description-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-line;
}



/* ===== Breadcrumbs Block (белый блок) ===== */
.breadcrumbs-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumbs-block {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 12px 24px; /* Уменьшил вертикальные отступы */
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    line-height: 1.2; /* Контролируем межстрочный интервал */
}

.breadcrumbs-block:hover {
    box-shadow: var(--shadow);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-tertiary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.2; /* Убираем лишнее пространство между строками */
}

.breadcrumbs a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
    padding: 2px 0; /* Минимальные отступы */
    display: inline-block;
    line-height: 1.2;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs .separator {
    margin: 0 4px;
    color: var(--border-subtle);
    font-weight: 300;
    line-height: 1.2;
    display: inline-block;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    line-height: 1.2;
    display: inline-block;
}

@media (max-width: 768px) {
    .breadcrumbs-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 16px; /* Только на мобильных добавляем паддинги */
    }
    
    .breadcrumbs-block {
        padding: 10px 16px;
    }
    
    .breadcrumbs {
        font-size: 13px;
    }
    
    .breadcrumbs .current {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs .current {
        max-width: 150px;
    }
}


/* ===== Product Popularity ===== */
.product-popularity {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.product-popularity h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.popularity-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 16px;
}

.popularity-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.detail-label {
    color: var(--text-tertiary);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.popularity-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ===== Product Why Popular ===== */
.product-why-popular {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.product-why-popular h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.popularity-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.popularity-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Product Price Info ===== */
.product-price-info,
.product-reviews-info {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.product-price-info h2,
.product-reviews-info h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.product-price-info p,
.product-reviews-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.product-price-info p:last-child,
.product-reviews-info p:last-child {
    margin-bottom: 0;
}

/* ===== Similar Products Footer ===== */
.similar-products-footer {
    margin-top: 30px;
    text-align: center;
}

.similar-products-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
}

/* ===== Product FAQ ===== */
.product-faq {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.product-faq h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-item {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Niche Fullwidth Card ===== */
.niche-fullwidth-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px 24px;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    border: 1px solid var(--border-subtle);
    box-sizing: border-box; /* Важно для правильного расчёта ширины с padding */
}

.niche-fullwidth-card .niche-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.niche-fullwidth-card .niche-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.niche-fullwidth-card .niche-text {
    flex: 1;
    min-width: 0; /* Важно для переноса текста */
}

.niche-fullwidth-card h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.niche-fullwidth-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .niche-fullwidth-card {
        padding: 12px 16px; /* Уменьшаем отступы на мобильных */
    }
    
    .niche-fullwidth-card .niche-content {
        gap: 12px; /* Уменьшаем gap между иконкой и текстом */
    }
    
    .niche-fullwidth-card .niche-icon {
        font-size: 24px; /* Чуть уменьшаем иконку */
        min-width: 32px;
    }
    
    .niche-fullwidth-card h1 {
        font-size: 18px; /* Чуть уменьшаем заголовок */
    }
    
    .niche-fullwidth-card p {
        font-size: 13px; /* Чуть уменьшаем текст */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .niche-fullwidth-card {
        padding: 10px 12px;
    }
    
    .niche-fullwidth-card .niche-content {
        gap: 8px;
    }
    
    .niche-fullwidth-card .niche-icon {
        font-size: 22px;
        min-width: 28px;
    }
}


/* ===== Product Properties ===== */
.product-properties {
    margin: 12px 0 16px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-line;
}

.product-properties p {
    margin: 0;
}

.product-properties ul, 
.product-properties ol {
    margin: 8px 0;
    padding-left: 20px;
}

#showMoreBtn {
    cursor: pointer;
    transition: all 0.2s ease;
}

#showMoreBtn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

#showMoreBtn {
    border-radius: 60px !important;
}

#showMoreBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-accent-lg) !important;
}


/* Сворачиваемое описание ниши */
.niche-desc-wrapper {
    margin-top: 6px;
}

.niche-desc-content {
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.niche-desc-content.expanded {
    max-height: 3000px;
}

.niche-desc-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.niche-desc-content.expanded::after {
    display: none;
}

.niche-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.niche-desc-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.niche-desc-toggle i {
    font-size: 12px;
    transition: transform 0.2s ease;
}


.product-categories-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

.category-chip {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.category-chip:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(255, 107, 0, 0.05);
}

/* Фильтр цены */
.feed-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.price-filter-inline {
    position: relative;
}

.price-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.price-filter-chip:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.price-filter-chip.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(255, 107, 0, 0.06);
}

.price-filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.price-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.price-sep {
    color: var(--text-tertiary);
    font-size: 13px;
    flex-shrink: 0;
}

.price-filter-apply {
    padding: 8px 14px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-filter-apply:hover {
    opacity: 0.9;
}

.price-filter-reset {
    padding: 8px 14px;
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-filter-reset:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.price-presets {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.price-presets span {
    padding: 5px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.price-presets span:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .feed-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .price-filter-dropdown {
        width: 300px;
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .price-filter-dropdown {
        width: 280px;
        padding: 12px;
    }
    
    .price-input {
        width: 70px;
        font-size: 12px;
        padding: 7px 8px;
    }
    
    .price-filter-apply,
    .price-filter-reset {
        padding: 7px 10px;
        font-size: 11px;
    }
    
    .price-presets span {
        font-size: 10px;
        padding: 4px 10px;
    }
}

@media (max-width: 380px) {
    .price-filter-dropdown {
        width: 260px;
        left: -80px;
        padding: 10px;
    }
    
    .price-input {
        width: 60px;
        padding: 6px 7px;
    }
    
    .price-inputs {
        gap: 4px;
    }
    
    .price-filter-apply,
    .price-filter-reset {
        padding: 6px 8px;
        font-size: 10px;
    }
}

.price-filter-active-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(255, 107, 0, 0.08);
    padding: 5px 10px;
    border-radius: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-filter-clear {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.7;
}

.price-filter-clear:hover {
    opacity: 1;
}