/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e85d2c;
    --primary-light: #ff8c5a;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;

    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-xxl: 30px;

    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* ===== ТЕМЫ ===== */
.light-theme {
    --chats-color: #f1f1f1;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #2c3e50;
    --bg-hover: #f5f5f5;

    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;

    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --input-border: #dddddd;
    --input-focus: var(--primary-color);

    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #f5f5f5;

    --link-color: var(--primary-color);
    --link-hover: var(--primary-dark);

    --gradient-start: #ff6b35;
    --gradient-end: #ff8c5a;

    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
}

.dark-theme {
    --chats-color: #272524;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #333333;
    --bg-header: #2d2d2d;
    --bg-footer: #000000;
    --bg-hover: #3d3d3d;

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --text-light: #ffffff;

    --border-color: #404040;
    --input-bg: #404040;
    --input-border: #505050;
    --input-focus: var(--primary-light);

    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-bg: #3d3d3d;

    --link-color: var(--primary-light);
    --link-hover: var(--primary-color);

    --gradient-start: #ff6b35;
    --gradient-end: #ff8c5a;

    --card-bg: #333333;
    --card-border: rgba(255, 255, 255, 0.05);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition:
        background-color var(--transition-normal),
        color var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

/* ===== ТИПОГРАФИЯ ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
}

/* ===== HEADER ===== */
header {
    background-color: var(--bg-header);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 28px;
}

.logo span {
    color: var(--primary-color);
}

/* Навигация */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 3px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.theme-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    color: var(--primary-color);
    background: var(--hover-bg);
}

.theme-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* User menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.user-btn:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

/* Добавляем невидимый мост между кнопкой и меню */
.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.dropdown-menu a i {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.discount-badge-small {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: var(--border-radius-sm);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-md);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Убираем стрелки у всех number input */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn {
    min-width: 200px;
}

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

.hero-buttons .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===== FEATURES SECTION ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 50px 0;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== MODERN PRODUCTS GRID ===== */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Modern Product Card */
.product-card-modern {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Image Wrapper - фиксированное соотношение сторон */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Placeholder для изображений */
.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-muted);
}

.product-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.product-image-placeholder span {
    font-size: 14px;
}

.product-image-placeholder.small i {
    font-size: 32px;
}

/* Бейджи */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.product-badge.hit {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #333;
}

/* Контент карточки */
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--card-bg);
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title-modern {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 3.2rem;
}

.product-title-modern a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-modern a:hover {
    color: var(--primary-color);
}

.product-title-modern.small {
    font-size: 1rem;
    min-height: 2.8rem;
}

.product-description-modern {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Футер карточки */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-price-modern {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price-modern.small .price-value {
    font-size: 1.2rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Действия */
.product-actions-modern {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-icon.added {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    animation: pulse 0.5s;
}

/* ===== MODERN PRODUCT DETAIL PAGE ===== */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Glass effect */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

/* Product Detail Modern */
.product-detail-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px;
    border-radius: 30px;
    margin: 30px 0;
}

/* Gallery */
.product-gallery-modern {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
}

.product-main-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

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

.product-main-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-muted);
}

.product-main-image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
    aspect-ratio: 1 / 1;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Modern */
.product-info-modern {
    padding: 20px 0;
}

.product-category-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: var(--bg-secondary);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.product-category-modern i {
    color: var(--primary-color);
}

.product-title-modern {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

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

.stars i {
    color: #ddd;
    font-size: 18px;
}

.stars i.active {
    color: #ffd700;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Price Section */
.product-price-section {
    margin-bottom: 25px;
}

.product-price-large {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-old-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge-modern {
    background: var(--danger-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Description */
.product-short-description {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Specifications */
.product-specs {
    margin-bottom: 25px;
}

.product-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    padding: 10px 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.spec-name {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.spec-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Full Description */
.product-full-description {
    margin-bottom: 25px;
}

.product-full-description h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.description-content {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Product Actions Modern */
.product-actions-modern {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-card);
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 70px;
    height: 45px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-icon-large {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.btn-icon-large:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.1);
}

/* Product Meta */
.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* Similar Products */
.similar-products-section {
    margin-top: 60px;
}

.similar-products-section .section-title {
    margin-bottom: 30px;
}

/* ===== FILTERS ===== */
.filters {
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
}

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

.filter-select {
    min-width: 220px;
    height: 45px;
    border-radius: 30px !important;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 1;
}

.search-input {
    padding-left: 45px !important;
    height: 45px;
    border-radius: 30px !important;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    height: 45px;
    border-radius: 30px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--card-border);
}

.empty-icon {
    font-size: 100px;
    color: var(--text-muted);
    margin-bottom: 25px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ===== MODERN PAGINATION ===== */
.pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 60px 0;
}

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

.pagination-page {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--card-border);
}

.pagination-page:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-page.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.pagination-arrow {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.pagination-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.pagination-arrow:first-child:hover {
    transform: translateX(-3px);
}

.pagination-dots {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== STEPS SECTION ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step {
    text-align: center;
    position: relative;
}

.step__num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
    margin: 50px 0;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta__buttons .btn {
    margin: 0 10px;
}

.cta__buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta__buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 50px;
}

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

.footer__nav a,
.footer__catalog a {
    display: block;
    color: #b3b3b3;
    text-decoration: none;
    margin: 5px 0;
}

.footer__nav a:hover,
.footer__catalog a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
}

/* ===== HOME PAGE LAYOUT ===== */
.home-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-column {
    flex: 2;
    min-width: 0;
}

.chat-column {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Контейнер для закрепленного сообщения */
.fixed-message-container {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Преимущества и шаги */
.features {
    margin: 60px 0;
}

.how-we-work {
    margin: 60px 0;
    padding: 40px 0;
    background: var(--bg-secondary);
    border-radius: 20px;
}

/* ===== CHAT STYLES ===== */
.chat-input-area {
    position: relative;
}

.emoji-panel,
.stickers-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.emoji {
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.sticker {
    width: 80px;
    height: 80px;
    cursor: pointer;
    padding: 5px;
    border-radius: 12px;
    transition: all 0.2s ease;
    object-fit: contain;
    background: white;
}

.sticker:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-width: 400px;
    margin: 0 auto;
    animation: slideUp 0.3s ease;
}

.cookie-notice-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-notice p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.cookie-notice a {
    color: var(--primary-color);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.profile-avatar {
    text-align: center;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.profile-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.profile-info i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 5px;
}

.profile-discount {
    text-align: center;
    min-width: 150px;
}

.discount-badge {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.discount-badge small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

/* ===== ORDERS ===== */
.order-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new {
    background: #ff9800;
    color: white;
}
.status-processed {
    background: #2196f3;
    color: white;
}
.status-completed {
    background: #4caf50;
    color: white;
}
.status-cancelled {
    background: #f44336;
    color: white;
}

.order-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.order-comment {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin: 10px 0;
}

.order-actions {
    margin-top: 15px;
}

.referral-link {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

/* ===== TABS ===== */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--hover-bg);
}

.tab-btn.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===== CONTACTS PAGE ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== CONTACT FORM ===== */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-md);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== REGISTER FORM ===== */
.register-form input {
    font-size: 16px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

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

/* ===== ТАБЛИЦЫ В ПРОФИЛЕ ===== */
.discount-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.discount-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.discount-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.discount-table tbody tr:hover {
    background: var(--hover-bg);
}

.discount-table tfoot {
    font-weight: bold;
    background: var(--bg-secondary);
}

.discount-table tfoot td {
    padding: 12px 15px;
    border-top: 2px solid var(--border-color);
}

.discount-table tfoot tr:last-child td {
    color: var(--primary-color);
    font-size: 16px;
}

/* Адаптивность для таблицы */
@media (max-width: 768px) {
    .discount-table {
        font-size: 14px;
    }

    .discount-table th,
    .discount-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .discount-table {
        font-size: 13px;
    }

    .discount-table th,
    .discount-table td {
        padding: 6px 8px;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .cookie-notice {
        left: auto;
        right: 20px;
        margin: 0;
    }

    .cookie-notice-content {
        flex-direction: row;
        align-items: center;
    }
}

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

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .product-detail-modern {
        gap: 30px;
        padding: 30px;
    }

    .product-title-modern {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .home-layout {
        flex-direction: column;
    }

    .chat-column {
        position: static;
        width: 100%;
    }

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

    .product-detail-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery-modern {
        position: static;
    }

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

    .filter-select,
    .search-wrapper,
    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Мобильное меню */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-actions {
        margin-left: auto;
    }

    /* Герой */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Контакты */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step__num {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step__title {
        font-size: 16px;
    }

    .step__desc {
        font-size: 13px;
    }

    /* Chat */
    .emoji {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .sticker {
        width: 60px;
        height: 60px;
    }

    /* Profile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }

    /* Product Detail */
    .product-detail-modern {
        padding: 20px;
    }

    .product-title-modern {
        font-size: 1.8rem;
    }

    .product-actions-modern {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .btn-icon-large {
        width: 100%;
        border-radius: 30px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    /* Products Grid */
    .products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Pagination */
    .pagination-modern {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 20px 15px;
    }

    .form-group[style*='background'] {
        padding: 10px !important;
    }

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav a {
        margin: 5px 0;
    }

    .cta__buttons .btn {
        display: block;
        margin: 10px 0;
    }

    .features-grid,
    .products-grid-modern,
    .steps {
        grid-template-columns: 1fr;
    }

    .emoji {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .sticker {
        width: 50px;
        height: 50px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .product-title-modern {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .pagination-page,
    .pagination-arrow {
        width: 38px;
        height: 38px;
    }
}
