/* Hero Page Styles */

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23e3e7ec" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 500px;
    padding-left: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.hero-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Promo Banner */
.promo-banner {
    margin: 60px 0;
}

.promo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.promo-link:hover {
    transform: translateY(-2px);
    color: white;
}

.promo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.promo-link:hover::before {
    transform: translateX(100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promo-image {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.1;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Categories Section */
.categories-section {
    margin: 40px 0;
    padding: 30px 0;
    background: transparent;
    position: relative;
}

.categories-section::before {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.category-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-card::before {
    display: none;
}

.category-card::after {
    display: none;
}

.category-card:hover {
    transform: translateY(-2px);
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.category-card.active {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}



.category-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    position: relative;
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.category-card:hover .category-icon {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900);
    transform: scale(1.05);
}

.category-card.active .category-icon {
    background: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
}

.category-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.category-arrow {
    opacity: 0.7;
    transition: all 0.2s ease;
    color: var(--gray-500);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--gray-900);
}

.category-card.active .category-arrow {
    opacity: 1;
    color: var(--white);
}

/* === ЗАГОЛОВОК КАТАЛОГА === */
.catalog-header {
    margin: var(--space-8) 0 var(--space-6);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.catalog-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.catalog-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.view-switcher {
    display: flex;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: none;
    background: transparent;
    color: var(--gray-600);
    border-radius: calc(var(--radius-md) - 4px);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* === КАТАЛОГ ТОВАРОВ === */
.products-catalog {
    margin-bottom: var(--space-12);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    max-width: none;
    height: auto;
}

.products-grid.list-view .product-image {
    flex: 0 0 220px;
    height: 220px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.products-grid.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-5);
}

/* === КАРТОЧКА ТОВАРА === */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

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

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

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
}

.product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-badge.discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.product-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.product-content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: var(--accent);
}

.product-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.product-price {
    margin-bottom: var(--space-4);
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    font-weight: 500;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
}

.add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--gray-300);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.star.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.empty-icon {
    color: var(--gray-400);
    margin-bottom: var(--space-4);
    opacity: 0.8;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-800);
}

.empty-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    background: transparent;
    padding: 20px 0 10px 0;
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    animation: pulse 2s infinite;
}

.feature-badge.instant {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: lightning 1.5s infinite;
}

.feature-badge.verified {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.feature-badge.support {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

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

@keyframes lightning {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05) rotate(-1deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.08) rotate(0.5deg);
        opacity: 0.95;
    }
}

/* Modern Title Enhancements */
.modern-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: modernPulse 3s ease-in-out infinite;
}

.modern-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: modernShimmer 2s ease-in-out infinite;
}

@keyframes modernPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
    }
}

@keyframes modernShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-title {
    position: relative;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.modern-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    animation: modernUnderline 2s ease-in-out infinite alternate;
}

@keyframes modernUnderline {
    0% { 
        width: 60px;
        opacity: 0.7;
    }
    100% { 
        width: 120px;
        opacity: 1;
    }
}

.modern-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 900;
    letter-spacing: -0.01em;
    animation: modernGlow 3s ease-in-out infinite;
}

@keyframes modernGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.5));
    }
}

.modern-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    z-index: -1;
    transform: scale(1.05);
    opacity: 0;
    animation: modernHighlightBg 4s ease-in-out infinite;
}

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

/* Enhanced Hero Section for Modern Design */
.hero-section.modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-section.modern::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="modernGrid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%236366f1" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23modernGrid)"/></svg>');
}

.hero-section.modern::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: modernFloat 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes modernFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Visual Dashboard */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.stats-dashboard {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.dashboard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.dashboard-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    animation: livePulse 2s ease-in-out infinite;
}

.dashboard-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    color: #6366f1;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

.activity-feed {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.activity-item:not(:last-child) {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    animation: activityPulse 3s ease-in-out infinite;
}

.activity-item:nth-child(2) .activity-dot {
    animation-delay: 1s;
}

.activity-item:nth-child(3) .activity-dot {
    animation-delay: 2s;
}

@keyframes activityPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    color: rgba(99, 102, 241, 0.2);
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.4;
    }
}

/* Counting Animation */
.counting {
    counter-reset: num 0;
    animation: countUp 3s ease-out forwards;
}

@keyframes countUp {
    from {
        counter-increment: num 0;
    }
    to {
        counter-increment: num var(--target);
    }
}

/* Responsive Design for Modern Elements */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats-dashboard {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .modern-title {
        font-size: 2.5rem;
    }
    
    .modern-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-section.modern::after {
        width: 200px;
        height: 200px;
        top: 10%;
        right: -20%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .feature-icon {
        align-self: center;
    }
    
    .feature-badge {
        position: static;
        align-self: center;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .promo-content {
        max-width: 100%;
    }
    
    .promo-image {
        position: static;
        transform: none;
        margin-top: 2rem;
        opacity: 0.3;
    }
    
    /* === АДАПТИВНОСТЬ ДЛЯ КАТАЛОГА === */
    .catalog-header {
        margin: var(--space-6) 0 var(--space-4);
        padding: var(--space-4);
    }
    
    .catalog-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .catalog-title {
        font-size: 1.5rem;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        padding: var(--space-3);
    }
    
    .controls-left,
    .controls-right {
        justify-content: center;
        gap: var(--space-2);
    }
    
    .products-catalog {
        padding: var(--space-4);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-4);
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        flex: none;
        height: 200px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    
    .product-actions {
        flex-direction: row;
        top: auto;
        bottom: var(--space-3);
        right: var(--space-3);
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-header {
        padding: var(--space-3);
        margin: var(--space-4) 0;
    }
    
    .catalog-title {
        font-size: 1.25rem;
    }
    
    .products-catalog {
        padding: var(--space-3);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .product-content {
        padding: var(--space-4);
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .price-current {
        font-size: 1.25rem;
    }
}

/* Стили для модального окна быстрого просмотра */
.modern-modal .modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    border: none;
    padding: 20px 30px;
}

.modern-modal .modal-header * {
    color: white !important;
    -webkit-text-fill-color: white !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    background: none !important;
}

.modern-modal .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: white !important;
    margin: 0;
    line-height: 1.4;
}

.modern-modal .btn-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
    width: auto;
    height: auto;
    padding: 0;
}

.modern-modal .btn-close:hover {
    opacity: 1;
}

.modern-modal .btn-close svg {
    width: 24px;
    height: 24px;
}

.product-modal-content {
    padding: 30px;
}

.product-modal-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
}

.product-modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-modal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-modal-placeholder {
    height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.badge-category {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

.product-modal-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.old-price {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.price-savings {
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-add-cart {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5856eb 0%, #7c3aed 100%);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .product-modal-content {
        padding: 20px;
    }
    
    .modern-modal .modal-header {
        padding: 15px 20px;
    }
    
    .product-modal-image img {
        height: 250px;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .old-price {
        font-size: 1.1rem;
    }
}

/* Стили для многоточия в пагинации */
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    color: #6b7280;
    font-weight: 500;
    font-size: 1rem;
    user-select: none;
    pointer-events: none;
}

/* Стили для пагинации в стиле сайта */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px 28px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    color: #475569;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
}

.pagination-number:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #6366f1;
    text-decoration: none;
    border-color: #6366f1;
    transform: translateY(-1px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: transparent;
    transform: translateY(-1px);
}

/* Адаптивность пагинации */
@media (max-width: 768px) {
    .pagination {
        padding: 12px 16px;
        gap: 4px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .pagination-numbers {
        margin: 0 8px;
        gap: 2px;
    }
    
    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Стили для кнопки "Нет в наличии" в карточках товаров */
.product-unavailable {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.product-unavailable:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
}

/* Simple Stats Styles */
.simple-stats {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.simple-stat {
    text-align: center;
    flex: 1;
}

.simple-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.simple-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .simple-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .simple-stat-number {
        font-size: 2.5rem;
    }
}