:root {
    --primary-bg: #f5f7fa;
    --secondary-bg: #ffffff;
    --text-color: #1a1a1a;
    --light-text: #6c757d;
    --primary-accent: #000000;
    --primary-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --metal-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --hover-accent: #1a1a1a;
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-color: #d0d7de;
    --dark-border: #c6cdd4;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --bottom-nav-height: 70px;
}

[data-theme="dark"] {
    --primary-bg: #1a1a1a;
    --secondary-bg: #252525;
    --card-bg: #2a2a2a;
    --text-color: #ffffff;
    --light-text: #cccccc;
    --border-color: #3a3a3a;
    --dark-border: #4a4a4a;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
    background: var(--primary-bg);
    color: #ffffff !important;
}

/* Белый текст для всего в тёмной теме */
[data-theme="dark"] * {
    color: #ffffff !important;
}

/* Исключения - элементы форм должны иметь контрастный цвет */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    color: #000000 !important;
    background: #ffffff !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #666666 !important;
}

/* Кнопки и действия сохраняют белый текст при наведении */
[data-theme="dark"] .header-action-btn,
[data-theme="dark"] .header-btn-login,
[data-theme="dark"] .header-btn-register,
[data-theme="dark"] .login-button,
[data-theme="dark"] .register-button,
[data-theme="dark"] .submit-button,
[data-theme="dark"] .action-btn,
[data-theme="dark"] button:not(.theme-toggle):not(.mobile-menu-toggle),
[data-theme="dark"] .header-nav-catalog-btn {
    color: #ffffff !important;
}

[data-theme="dark"] .header-action-btn:hover,
[data-theme="dark"] .header-btn-login:hover,
[data-theme="dark"] .header-btn-register:hover,
[data-theme="dark"] .header-nav-catalog-btn:hover,
[data-theme="dark"] .login-button:hover,
[data-theme="dark"] .register-button:hover,
[data-theme="dark"] .submit-button:hover,
[data-theme="dark"] .action-btn:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .model-card-title,
[data-theme="dark"] .model-card-category,
[data-theme="dark"] .model-card-price,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .products-section h2,
[data-theme="dark"] section h2,
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

/* Убеждаемся, что заголовки секций белые */
.section-title {
    color: var(--text-color);
}

[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .news-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}


[data-theme="dark"] .products-slider-wrapper {
    background: transparent;
}

[data-theme="dark"] .products-slider .model-card-image {
    background: var(--card-bg);
}

[data-theme="dark"] .products-slider .model-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .products-slider .model-card-wrapper {
    background: transparent;
}

[data-theme="dark"] .bx-prev,
[data-theme="dark"] .bx-next {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .bx-prev:hover,
[data-theme="dark"] .bx-next:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden;
    scrollbar-color: var(--primary-accent) var(--dark-border);
    scrollbar-width: thin;
    padding-top: 100px;
    padding-bottom: 0; /* Убираем padding-bottom по умолчанию */
    transition: background-color var(--transition-normal), color var(--transition-normal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content {
    padding: 40px 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-border);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-accent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}


/* Header Main */
.header-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 15px 0;
}

[data-theme="dark"] .header-main {
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header-main-content {
    background: transparent;
}

.header-main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
    min-height: 70px;
}

/* Левая навигация */
.header-nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.nav-list-left {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.nav-link-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link-left i:first-child {
    font-size: 14px;
}

.nav-link-left span {
    display: inline;
}

.nav-link-left:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-accent);
    transform: translateY(-1px);
}

/* Центральный блок - Название и 3 кнопки */
.header-center-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    z-index: 100;
    gap: 12px;
}

.header-brand-link {
    text-decoration: none;
    transition: transform var(--transition-fast);
    width: 100%;
    text-align: center;
}

.header-brand-link:hover {
    transform: translateY(-2px);
}

.header-category-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-category-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.header-category-btn i {
    color: var(--primary-accent);
    font-size: 14px;
}

.header-category-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.header-category-btn:hover i {
    color: white;
}

.header-category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.header-category-btn.active i {
    color: white;
}

[data-theme="dark"] .header-category-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .header-category-btn:hover,
[data-theme="dark"] .header-category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.header-brand-title {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .header-brand-title {
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav-toggle {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    font-size: 13px;
    font-weight: 600;
}

.header-nav-toggle span {
    font-size: 13px;
}

.header-nav-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.header-nav-toggle.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.header-nav-toggle.active i {
    transform: rotate(180deg);
}

[data-theme="dark"] .header-nav-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.header-nav-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.header-nav-toggle.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: rotate(180deg);
}

[data-theme="dark"] .header-nav-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
}

/* Выпадающее меню навигации - ПОД названием */
.header-nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    max-width: 600px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    overflow: hidden;
}

[data-theme="dark"] .header-nav-dropdown {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.header-nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.header-nav-dropdown-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.header-nav-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-nav-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-nav-section-title i {
    color: var(--primary-accent);
    font-size: 12px;
}

.header-nav-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-nav-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--primary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.header-nav-category-btn i {
    font-size: 14px;
    color: var(--primary-accent);
    width: 20px;
    text-align: center;
}

.header-nav-category-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-nav-category-btn:hover i {
    color: white;
}

.header-nav-category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-nav-category-btn.active i {
    color: white;
}

[data-theme="dark"] .header-nav-category-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.header-nav-sort {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-nav-sort-select {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' 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;
}

[data-theme="dark"] .header-nav-sort-select {
    background: var(--card-bg);
    border-color: var(--border-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' 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");
}

.header-nav-sort-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Правая навигация */
.header-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    z-index: 10;
    flex-wrap: wrap;
}

.header-nav-right-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav-catalog-btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
}

.header-nav-catalog-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-1px);
}

[data-theme="dark"] .header-nav-catalog-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .header-nav-catalog-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Общие стили для навигации (для обратной совместимости) */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link i:first-child {
    font-size: 14px;
}

.nav-link i.fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.dropdown:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-accent);
    transform: translateY(-1px);
}

.nav-link.admin-link {
    color: #ff6b6b;
}

.nav-link.admin-link:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-menu a i {
    width: 16px;
    text-align: center;
    color: var(--primary-accent);
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-accent);
    padding-left: 20px;
}

/* Header Actions */
.header-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
}

.header-action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-action-btn.admin-link {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.header-action-btn.admin-link:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Кнопки входа/регистрации */
.header-btn-login,
.header-btn-register {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header-btn-login {
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
}

.header-btn-login:hover {
    background: var(--primary-bg);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-1px);
}

.header-btn-register {
    background: var(--primary-gradient);
    color: white;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--secondary-bg);
}

.cart-count {
    background: var(--primary-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--secondary-bg);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: left var(--transition-normal);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    padding: 100px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-accent);
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-accent);
}

.mobile-nav-link.admin-link {
    color: #ff6b6b;
}

.mobile-nav-link.admin-link:hover {
    background: rgba(255, 107, 107, 0.1);
}

.header.scrolled .header-main {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(4px);
}



.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--primary-bg);
    min-width: 220px;
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    border-radius: 12px;
    padding: 8px 0;
    top: 100%;
    left: 0;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.dropdown-content a:hover {
    background: var(--secondary-bg);
    color: var(--primary-accent);
    padding-left: 24px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 10px;
}

.theme-toggle:hover {
    background: var(--primary-accent);
    color: white;
    transform: rotate(180deg);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: var(--light-text);
    background: var(--secondary-bg);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.breadcrumbs a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0 5px;
}

.breadcrumbs a::after {
    content: '»';
    margin: 0 8px;
    color: var(--light-text);
}

.breadcrumbs a:last-child::after {
    content: '';
}

.breadcrumbs a:hover {
    color: var(--hover-accent);
}

/* Forms */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.login-box, .register-box {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-medium);
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-box:hover, .register-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.login-box h1, .register-box h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.t-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.t-input:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.t-input::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

.login-button, .register-button, .submit-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.login-button:hover, .register-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .login-button,
[data-theme="dark"] .register-button,
[data-theme="dark"] .submit-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

[data-theme="dark"] .login-button:hover,
[data-theme="dark"] .register-button:hover,
[data-theme="dark"] .submit-button:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .action-btn {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .action-btn:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
}

[data-theme="dark"] .action-btn.active {
    background: var(--error-color) !important;
    color: white !important;
    border-color: var(--error-color) !important;
}

[data-theme="dark"] .header-action-btn {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .header-action-btn:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
}

[data-theme="dark"] .header-btn-login,
[data-theme="dark"] .header-btn-register {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .header-btn-login:hover,
[data-theme="dark"] .header-btn-register:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Banner */
.banner {
    margin: 20px 0;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--primary-gradient);
}

.banner-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 90%;
    padding: 20px;
    z-index: 1;
}

.banner h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin: 0 0 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner p {
    font-size: clamp(16px, 3vw, 20px);
    line-height: 1.5;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Search & Filter */
.search-filter {
    margin: 30px auto;
    padding: 20px;
    background: var(--primary-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 90%;
    border: 1px solid var(--border-color);
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    height: 52px;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.search-field:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--light-text);
    transition: color var(--transition-fast);
}

.search-icon:hover {
    color: var(--primary-accent);
}

.section-filter {
    width: 100%;
}

.section-list {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.section-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.section-link.active,
.section-link:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Products */
.products-section {
    padding: 60px 0;
    background: transparent;
}

.products-section .container {
    max-width: 1400px;
    padding: 0 40px;
}

.products-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: center;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.products-grid .model-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .products-grid .model-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.products-grid .model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.products-grid-new {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.model-card-wrapper {
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background: var(--primary-bg);
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    padding: 0;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-accent);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--text-color);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-section {
    font-size: 13px;
    color: var(--light-text);
    margin: 0 0 12px;
}

.product-price {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: line-through;
}

/* Favorite & Cart Icons */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--primary-accent);
    color: white;
}

.action-btn.active {
    background: var(--error-color);
    color: white;
}

.action-btn span {
    margin-left: 8px;
    font-size: 14px;
}

/* Product page action buttons */
.product-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.product-actions .action-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions .action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.product-actions .action-btn.active {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.product-actions .action-btn i {
    margin-right: 8px;
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    display: none;
}

.search-bar-main {
    position: relative;
}

.search-autocomplete.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--secondary-bg);
    padding-left: 20px;
}

.autocomplete-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.autocomplete-item-info {
    flex: 1;
}

.autocomplete-item-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.autocomplete-item-price {
    font-size: 14px;
    color: var(--primary-accent);
    font-weight: 600;
}

/* Filters & Sort */
.filters-section {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary-accent);
    outline: none;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--secondary-bg) 25%, var(--border-color) 50%, var(--secondary-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 400px;
    border-radius: 18px;
}

/* Notifications */
.notifications-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: var(--primary-bg);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 4px solid var(--primary-accent);
    animation: slideInRight 0.3s ease;
    border: 1px solid var(--border-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification i {
    font-size: 20px;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--error-color);
}

/* Quick View Modal */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--primary-bg);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    transition: all var(--transition-fast);
    z-index: 10;
}

.quick-view-close:hover {
    background: var(--error-color);
    color: white;
    transform: rotate(90deg);
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-link {
    display: block;
    color: var(--light-text);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-accent);
    padding-left: 5px;
}

.footer-link i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.5s ease-out forwards;
}

.animate-card:nth-child(1) { animation-delay: 0.1s; }
.animate-card:nth-child(2) { animation-delay: 0.2s; }
.animate-card:nth-child(3) { animation-delay: 0.3s; }
.animate-card:nth-child(4) { animation-delay: 0.4s; }
.animate-card:nth-child(5) { animation-delay: 0.5s; }
.animate-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
        padding-bottom: var(--bottom-nav-height);
    }

    .header-top-bar {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main-content {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
    }
    
    .header-nav-left {
        order: 1;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .header-center-brand {
        order: 2;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-brand-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .header-category-buttons {
        flex-direction: row;
        width: 100%;
        gap: 6px;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .header-category-btn {
        flex: 1;
        min-width: 80px;
        max-width: none;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .header-category-btn span {
        display: inline;
    }
    
    .header-nav-right {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
    
    .header-nav-catalog-btn span {
        display: none;
    }

    .catalog-header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .catalog-sort-block {
        width: 100%;
    }

    .catalog-sort-select {
        width: 100%;
    }
    
    .header-nav-category-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .header-nav-right {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-list-left .nav-link span {
        display: none;
    }
    
    .header-btn-login span,
    .header-btn-register span {
        display: none;
    }

    .logo-name {
        font-size: 20px;
    }

    .logo-tagline {
        font-size: 10px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .header-nav-left {
        display: none;
    }
    
    .header-nav-right {
        gap: 8px;
    }
    
    .header-action-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .header-btn-login,
    .header-btn-register {
        padding: 8px 14px;
        font-size: 13px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .news-item.featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .news-item.featured .news-image {
        width: 100%;
        min-height: 200px;
    }

    .news-item.featured .news-title {
        font-size: 22px;
    }

    .news-feed {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-bg);
        flex-direction: column;
        padding: 20px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-medium);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .dropdown-content {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .model-card {
        flex-direction: column;
        min-height: auto;
    }

    .model-card-image {
        width: 100%;
        min-width: 100%;
        min-height: 250px;
        height: 250px;
    }

    .model-card-content {
        width: 100%;
        padding: 25px;
    }



    .news-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-section h2 {
        font-size: 28px;
    }


    .search-field-main {
        height: 56px;
        font-size: 15px;
    }

    .search-filter {
        width: 95%;
        padding: 15px;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .banner {
        height: 250px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .action-btn {
        width: 100%;
    }

    .bottom-nav {
        display: flex; /* Показываем на мобильных устройствах */
        height: 65px;
    }

    .bottom-nav-item span {
        font-size: 10px;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }


    .search-bar-main {
        max-width: 100%;
    }

    .products-section {
        padding: 40px 0;
    }

    .products-section .container {
        padding: 0 20px;
    }

    .news-section {
        padding: 40px 0;
    }

    .mode-toggle {
        flex-direction: column;
    }

    .seller-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner {
        height: 200px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 14px;
    }

    .login-box, .register-box {
        padding: 25px 20px;
    }

    .bottom-nav {
        height: 60px;
    }

    .bottom-nav-item {
        padding: 5px;
    }

    .bottom-nav-item span {
        font-size: 9px;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }

    .seller-stats {
        grid-template-columns: 1fr;
    }
}

/* Bottom Navigation - ПолиМетТех */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    display: none; /* Скрыто по умолчанию на десктопе */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bottom-nav {
    background: var(--secondary-bg);
    border-top-color: var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px;
    text-decoration: none;
    color: var(--light-text);
    transition: all var(--transition-fast);
    position: relative;
    border-radius: 12px;
    margin: 0 4px;
}

.bottom-nav-item.active {
    color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bottom-nav-item.active {
    background: rgba(0, 0, 0, 0.2);
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    transition: transform var(--transition-fast);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: var(--primary-accent);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .bottom-nav-item:hover {
    background: rgba(0, 0, 0, 0.15);
}

.bottom-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 20%;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Main Categories Section */


/* Main Search Section */
.main-search-section {
    padding: 40px 0;
    background: transparent;
}

.search-bar-main {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-field-main {
    width: 100%;
    height: 64px;
    padding: 0 70px 0 24px;
    border: 2px solid var(--border-color);
    border-radius: 32px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.search-field-main:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 8px 30px rgba(0, 0, 0, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.search-field-main::placeholder {
    color: var(--light-text);
    opacity: 0.6;
}

.search-icon-main {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--light-text);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-field-main:focus + .search-icon-main {
    color: var(--primary-accent);
    transform: translateY(-50%) scale(1.1);
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
    margin: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--text-color);
    letter-spacing: -0.8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-text);
    margin: 0;
    font-weight: 500;
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.news-item.featured {
    grid-column: span 2;
    flex-direction: row;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-accent);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-item.featured .news-image {
    width: 40%;
    height: auto;
    min-height: 300px;
}

.news-image-placeholder {
    color: white;
    font-size: 48px;
    opacity: 0.8;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--light-text);
    font-weight: 500;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--light-text);
    font-weight: 500;
}

.news-date i {
    font-size: 12px;
}

.news-category {
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-color);
    line-height: 1.4;
    letter-spacing: -0.4px;
}

.news-item.featured .news-title {
    font-size: 28px;
}

.news-excerpt {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.news-read-more i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.news-read-more:hover {
    gap: 12px;
    color: var(--hover-accent);
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* Category Cards - ПолиМетТех */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
}

.category-card {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-accent);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card-icon {
    font-size: 48px;
    color: var(--primary-accent);
    margin-bottom: 15px;
}

.category-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.category-card-count {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 8px;
}

/* File Type Badges */
.file-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    margin: 2px;
}

.file-type-badge.stl { border-color: #000000; color: #000000; }
.file-type-badge.step { border-color: #28a745; color: #28a745; }
.file-type-badge.sldprt { border-color: #ffc107; color: #ffc107; }
.file-type-badge.obj { border-color: #dc3545; color: #dc3545; }

/* Model Card - ПолиМетТех - Новая версия */
.model-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-accent);
}

.model-card-image {
    width: 55%;
    min-width: 55%;
    height: auto;
    min-height: 320px;
    object-fit: cover;
    background: var(--primary-bg);
    transition: transform var(--transition-slow);
}

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

.model-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.products-grid .model-card {
    flex-direction: column;
    width: 100%;
    min-height: auto;
}

.products-grid .model-card-image {
    width: 100%;
    height: 250px;
    min-height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.products-grid .model-card-content {
    padding: 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-grid .model-card-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.products-grid .model-card-price {
    font-size: 22px;
    margin-top: auto;
}

.model-card-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 25px;
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.model-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--light-text);
}

.model-card-seller {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.seller-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.seller-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.seller-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.seller-action-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.seller-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-gradient);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.seller-action-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.seller-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.model-card-price {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: auto;
    letter-spacing: -0.5px;
}

.model-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.action-btn.active {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.model-card-purchases {
    font-size: 12px;
    color: var(--light-text);
}

/* Карусель других проектов */
.related-projects-carousel {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.related-projects-carousel h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.carousel-item {
    min-width: 220px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.carousel-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-accent);
}

.carousel-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item-content {
    padding: 18px;
}

.carousel-item-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.carousel-item-price {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Add Model Page */
.add-model-form {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--primary-bg);
}

.file-upload-area:hover {
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.1);
}

.file-upload-icon {
    font-size: 48px;
    color: var(--primary-accent);
    margin-bottom: 15px;
}

.uploaded-files {
    margin-top: 20px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--primary-bg);
    border-radius: 8px;
    margin-bottom: 10px;
}

.uploaded-file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.uploaded-file-name i {
    color: var(--primary-accent);
}

/* Seller Dashboard */
.seller-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-accent);
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--light-text);
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    margin: 20px 0;
}

.mode-toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--light-text);
}

.mode-toggle-btn.active {
    background: var(--primary-gradient);
    color: white;
}

/* Компактный каталог - интегрированный в header */
.catalog-header-filters {
    position: sticky;
    top: 100px;
    z-index: 998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

[data-theme="dark"] .catalog-header-filters {
    background: rgba(26, 26, 26, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.catalog-header-filters.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.catalog-header-filters.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.catalog-filters-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 20px;
}

.catalog-categories-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.catalog-categories-compact::-webkit-scrollbar {
    display: none;
}

.catalog-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.catalog-filter-btn:hover {
    border-color: var(--primary-accent);
    transform: translateY(-1px);
}

.catalog-filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.catalog-filter-btn i {
    font-size: 12px;
}

.catalog-sort-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.catalog-sort-select {
    padding: 8px 14px 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23333" d="M5 7L1 3h8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    min-width: 160px;
}

[data-theme="dark"] .catalog-sort-select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23fff" d="M5 7L1 3h8z"/></svg>');
}

.catalog-sort-select:hover {
    border-color: var(--primary-accent);
}

.catalog-filter-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    font-size: 14px;
}

.catalog-filter-toggle:hover,
.catalog-filter-toggle.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.filter-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--secondary-bg);
}

.catalog-advanced-filters {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    background: var(--primary-bg);
}

.advanced-filters-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-row label i {
    color: var(--primary-accent);
    font-size: 11px;
}

.filter-input {
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 13px;
    transition: all 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-apply,
.btn-reset {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-apply {
    background: var(--primary-gradient);
    color: white;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-reset {
    background: var(--primary-bg);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
}

.btn-reset:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.catalog-main {
    margin-top: 160px;
}

.catalog-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.catalog-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.catalog-results-count {
    font-size: 14px;
    color: var(--light-text);
}

.catalog-results-count strong {
    color: var(--text-color);
    font-weight: 600;
}

.catalog-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-sort-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
}

.catalog-sort-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.catalog-sort-label i {
    color: var(--primary-accent);
    font-size: 12px;
}

.catalog-sort-select {
    padding: 6px 28px 6px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' 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 8px center;
    min-width: 140px;
}

.catalog-sort-select:hover {
    border-color: var(--primary-accent);
}

.catalog-sort-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .catalog-sort-block,
[data-theme="dark"] .catalog-sort-select {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .catalog-sort-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' 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");
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-accent);
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--primary-bg);
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-file-types {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-favorite {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.product-card-favorite:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-page {
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-bg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover,
.pagination-page:hover {
    border-color: var(--primary-accent);
    transform: translateY(-1px);
}

.pagination-page.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.pagination-pages {
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .catalog-header-filters {
        top: 70px;
    }
    
    .catalog-filters-compact {
        flex-direction: column;
        gap: 15px;
    }
    
    .catalog-categories-compact {
        width: 100%;
    }
    
    .catalog-sort-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .catalog-sort-select {
        flex: 1;
        min-width: 0;
    }
    
    .advanced-filters-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-apply,
    .btn-reset {
        flex: 1;
    }
    
    .catalog-main {
        margin-top: 220px !important;
    }
    
    .catalog-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* Анимация появления sticky toolbar */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.catalog-sticky-toolbar {
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Плавное скрытие/показ при скролле */
.catalog-sticky-toolbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Sticky Catalog Toolbar (Amazon/Apple стиль) */
.catalog-sticky-toolbar {
    position: sticky;
    top: 100px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

[data-theme="dark"] .catalog-sticky-toolbar {
    background: rgba(26, 26, 26, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.catalog-sticky-toolbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--primary-accent);
}

.sticky-toolbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 30px;
}

.sticky-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sticky-categories::-webkit-scrollbar {
    display: none;
}

.sticky-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sticky-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: -1;
}

.sticky-category-btn:hover {
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticky-category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-category-btn i {
    font-size: 14px;
}

.sticky-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sticky-filter-item {
    position: relative;
}

.sticky-filter-select {
    padding: 10px 16px 10px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    min-width: 140px;
}

[data-theme="dark"] .sticky-filter-select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23fff" d="M6 9L1 4h10z"/></svg>');
}

.sticky-filter-select:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticky-filter-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.sticky-filter-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 16px;
}

.sticky-filter-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-filter-toggle.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--secondary-bg);
}

/* Расширенная панель фильтров */
.sticky-filters-panel {
    max-height: 0;
    overflow: hidden;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}

.sticky-filters-panel.active {
    max-height: 200px;
    opacity: 1;
}

.sticky-filters-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.sticky-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-filter-group label i {
    color: var(--primary-accent);
    font-size: 12px;
}

.sticky-filter-input {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 14px;
    width: 120px;
    transition: all 0.25s;
}

.sticky-filter-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.sticky-filter-apply,
.sticky-filter-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-filter-apply {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sticky-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sticky-filter-reset {
    background: var(--primary-bg);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
}

.sticky-filter-reset:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .catalog-sticky-toolbar {
        top: 70px;
    }
    
    .sticky-toolbar-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .sticky-categories {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sticky-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .sticky-filter-select {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 14px 8px 35px;
    }
    
    .sticky-filters-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sticky-filter-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .sticky-filter-input {
        width: 100%;
        flex: 1;
    }
    
    .mobile-only {
        display: block;
    }
    
    /* ========== МОБИЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ========== */
    
    /* Блок поиска */
    .main-search-section {
        margin-top: 10px !important;
        padding: 20px 0 !important;
    }
    
    .main-search-wrapper {
        max-width: 100%;
    }
    
    .main-search-box {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px !important;
        border-radius: 15px !important;
    }
    
    .main-search-icon {
        display: none;
    }
    
    .main-search-input {
        width: 100%;
        font-size: 14px !important;
        padding: 10px 0;
    }
    
    .main-search-btn {
        width: 100%;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }
    
    .main-search-suggestions {
        top: calc(100% + 5px) !important;
        border-radius: 12px !important;
        max-height: 300px !important;
    }
    
    .main-search-suggestion-item {
        padding: 12px 15px !important;
        gap: 12px !important;
    }
    
    .main-search-suggestion-item img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Новостной слайдер */
    .news-slider-section {
        margin-top: 30px !important;
        padding: 20px 0 !important;
    }
    
    .news-slide {
        min-height: 400px !important;
    }
    
    .news-slide-content.floating-news {
        min-height: 400px !important;
        border-radius: 15px !important;
    }
    
    .news-slide-image-bg {
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .news-slide-text.floating-text {
        padding: 30px 20px !important;
    }
    
    .news-slide-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .news-slide-excerpt {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    
    .news-slide-read-more {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .news-slider-prev,
    .news-slider-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .news-slider-prev {
        left: 10px !important;
    }
    
    .news-slider-next {
        right: 10px !important;
    }
    
    /* Фильтры по оборудованию */
    .equipment-filters {
        margin: 30px 0 !important;
        padding: 20px 0 !important;
        border-radius: 15px !important;
    }
    
    .equipment-filters-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
        padding: 0 15px;
    }
    
    .equipment-filters-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }
    
    .equipment-filter-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }
    
    .equipment-filter-icon {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .equipment-filter-name {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .equipment-filter-count {
        font-size: 12px !important;
    }
    
    /* Слайдеры товаров - ПОЛНЫЙ РЕФАКТОРИНГ */
    .products-slider-wrapper {
        margin: 30px 0 !important;
        padding: 0 20px !important;
        position: relative;
    }
    
    .products-slider {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
    }
    
    .products-slider::-webkit-scrollbar {
        display: none;
    }
    
    .products-slider-track {
        gap: 20px !important;
        display: flex;
        padding: 0 0 0 0;
        scroll-snap-type: x mandatory;
    }
    
    .products-slider-track::-webkit-scrollbar {
        display: none;
    }
    
    .products-slider .model-card-wrapper {
        width: calc(100vw - 80px) !important;
        min-width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    
    .products-slider .model-card {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 12px !important;
    }
    
    .products-slider .model-card-image {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--card-bg) !important;
    }
    
    .products-slider .model-card-content {
        padding: 15px !important;
        width: 100% !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .products-slider .model-card-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
        min-height: auto !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .products-slider .model-card-category {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .products-slider .model-card-footer {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .products-slider .model-card-price {
        font-size: 18px !important;
        font-weight: 700;
    }
    
    .products-slider .action-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        flex-shrink: 0;
    }
    
    /* Кнопки навигации слайдера на мобиле */
    .slider-nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #ffffff !important;
    }
    
    [data-theme="dark"] .slider-nav-btn {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #ffffff !important;
    }
    
    .slider-prev {
        left: 5px !important;
    }
    
    .slider-next {
        right: 5px !important;
    }
    
    /* Заголовки секций */
    .products-section h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
        padding: 0 5px;
    }
    
    .products-section {
        margin-top: 30px !important;
    }
    
    /* Категории карточки */
    .category-card-main {
        padding: 10px 15px !important;
        gap: 10px !important;
    }
    
    .category-card-main svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .category-card-title {
        font-size: 14px !important;
    }
    
    /* Карточки товаров в сетке */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .products-grid .model-card {
        flex-direction: column !important;
    }
    
    .products-grid .model-card-image {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .products-grid .model-card-content {
        padding: 12px !important;
    }
    
    .products-grid .model-card-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .products-grid .model-card-price {
        font-size: 16px !important;
    }
    
    .products-grid .action-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    /* Кнопки "Показать все" */
    .products-section > div:last-child {
        margin-top: 15px !important;
    }
    
    .products-section > div:last-child a {
        padding: 10px 20px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        display: block;
        text-align: center;
    }
    
    /* Популярное по категориям */
    .products-section > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px !important;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .products-section > div:first-child h3 {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    .products-section > div:first-child a {
        padding: 8px 14px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }
    
    /* Дополнительные исправления для картинок */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .model-card-image,
    .products-slider .model-card-image,
    .products-grid .model-card-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        background: var(--secondary-bg) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Убираем blur для lazy-load на мобильных */
    .model-card-image.lazy-load {
        filter: blur(2px) !important;
        opacity: 0.7 !important;
    }
    
    .model-card-image:not(.lazy-load) {
        filter: none !important;
        opacity: 1 !important;
    }
    
    /* Исправление для всех карточек */
    .model-card {
        overflow: hidden !important;
    }
    
    /* Контейнеры */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Улучшение читаемости текста */
    .model-card-title,
    .products-slider .model-card-title {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Кнопки действий */
    .action-btn {
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    /* Футер карточки */
    .model-card-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Мета информация */
    .model-card-meta {
        font-size: 11px !important;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Бейджи типов файлов */
    .file-type-badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    /* Пагинация */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin: 20px 0 !important;
    }
    
    .pagination-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .main-search-section {
        padding: 15px 0 !important;
    }
    
    .main-search-box {
        padding: 10px 12px !important;
    }
    
    .main-search-input {
        font-size: 13px !important;
    }
    
    .main-search-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .products-slider-wrapper {
        padding: 0 40px !important;
    }
    
    .products-slider .model-card-wrapper {
        width: calc(100vw - 80px) !important;
        min-width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
    }
    
    .products-slider .model-card-image {
        height: 180px !important;
        min-height: 180px !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .products-grid .model-card-image {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .news-slide {
        min-height: 350px !important;
    }
    
    .news-slide-content.floating-news {
        min-height: 350px !important;
    }
    
    .news-slide-text.floating-text {
        padding: 20px 15px !important;
    }
    
    .news-slide-title {
        font-size: 20px !important;
    }
    
    .news-slide-excerpt {
        font-size: 13px !important;
    }
    
    .equipment-filters-grid {
        padding: 0 10px !important;
    }
    
    .equipment-filter-card {
        padding: 15px !important;
    }
    
    .slider-nav-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .slider-prev {
        left: 2px !important;
    }
    
    .slider-next {
        right: 2px !important;
    }
    
    .products-section h2 {
        font-size: 20px !important;
    }
    
    .header-brand-title {
        font-size: 18px !important;
    }
    
    body {
        padding-top: 80px !important;
    }
    
    /* Улучшение видимости картинок */
    .model-card-image[src=""],
    .model-card-image:not([src]),
    .model-card-image[src*="data:image/svg"] {
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .model-card-image[src*="data:image/svg"]::after {
        content: "📷";
        font-size: 48px;
        opacity: 0.3;
    }
}
