/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --secondary-dark: #DB2777;

    /* Status Colors */
    --success: #10B981;
    --info: #3B82F6;
    --info-dark: #2563EB;
    --warning: #F59E0B;
    --warning-dark: #D97706;
    --error: #EF4444;

    /* Neutrals */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-primary-hover: linear-gradient(135deg, #6D28D9 0%, #DB2777 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 4px 14px 0 rgba(124, 58, 237, 0.25);
    --shadow-primary-hover: 0 8px 20px 0 rgba(124, 58, 237, 0.35);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Features specific variables */
    --viewport-width: 100vw;
    --viewport-height: 100vh;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ===== BASE STYLES ===== */
/* ПРАВИЛЬНО - только базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 70px 0;
    background: #ffffff;
    overflow: hidden;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-subtitle {
    color: #7C3AED;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 14px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
}

.features-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.features-description {
    font-size: 20px;
    color: #6B7280;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Content */
.features-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

/* Right Column Container */
.features-right-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Features Menu */
.features-menu {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: white;
    transform: translateZ(0);
    will-change: transform, background-color, border-color;
}

.feature-item:hover {
    background: #F9FAFB;
    transform: translateX(4px);
}

.feature-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-color: rgba(124, 58, 237, 0.2);
}

.feature-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 0 4px 4px 0;
}

/* Feature Header */
.feature-header {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-item.active .feature-icon {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.25);
}

.feature-info {
    flex: 1;
}

.feature-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.feature-item.active .feature-name {
    color: #7C3AED;
}

.feature-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

/* ========== EXPANDED CONTENT ========== */
.feature-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
               opacity 0.3s ease 0.1s,
               visibility 0.3s ease 0.1s,
               border-color 0.3s ease;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-top: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    will-change: max-height, opacity;
}

.feature-item.expanded .feature-expanded-content {
    max-height: 150px;
    opacity: 1;
    visibility: visible;
    border-top-color: rgba(124, 58, 237, 0.1);
}

.feature-expanded-inner {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-expanded-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.feature-expanded-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* ========== MOBILE INFO BLOCKS ========== */
/*.mobile-info-block {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
               opacity 0.3s ease-out 0.1s, 
               visibility 0.3s ease-out 0.1s,
               margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: max-height, opacity;
}

.mobile-feature-container {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
               opacity 0.3s ease-out 0.1s, 
               visibility 0.3s ease-out 0.1s,
               margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: max-height, opacity;
    overflow: hidden;
    padding-bottom: 16px;
}*/

/* НОВЫЙ КОД - НА ЭТО: */
.mobile-info-block {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    transform: translateZ(0);
    will-change: max-height;
}

.mobile-feature-container {
    display: none;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    transform: translateZ(0);
    will-change: max-height;
}

.mobile-info-block.active {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
    margin-bottom: 12px;
}

.mobile-feature-container.active {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    margin-bottom: 16px;
    overflow: visible;
}

.mobile-info-block .mobile-info-content {
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateZ(0);
}

.mobile-info-block .mobile-info-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7C3AED 0%, #EC4899 100%);
}

.mobile-info-block .mobile-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.mobile-info-block .mobile-info-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
/* Применяйте perspective и backface-visibility только к нужным элементам */
.mobile-info-block,
.mobile-feature-container,
.feature-item,
.feature-expanded-content {
    backface-visibility: hidden;
    perspective: 1000px;
}
/* ========== CHEVRON ICONS ========== */
.chevron-icon {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    margin-left: 8px;
    align-self: center;
    transform: translateZ(0);
}

.feature-item.active .chevron-icon {
    color: #7C3AED;
    transform: rotate(90deg);
}

.feature-item:hover .chevron-icon {
    color: #6B7280;
}

.feature-item.active:hover .chevron-icon {
    color: #6D28D9;
}

/* Content update animation */
.info-update {
    animation: updateContent 0.3s ease-in-out;
}

@keyframes updateContent {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Feature Display */
.feature-display {
    position: relative;
    height: 560px;
    perspective: 1000px;
}

.feature-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, visibility;
}

.feature-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.feature-screen.hiding {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mock Dashboard Styles */
.dashboard-mock {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.dash-header {
    height: 60px;
    background: #1F2937;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    flex-shrink: 0;
}

.dash-nav {
    display: flex;
    gap: 24px;
}

.dash-nav-item {
    color: #9CA3AF;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.dash-nav-item:hover {
    color: white;
}

.dash-nav-item.active {
    color: white;
}

.dash-content {
    flex: 1;
    padding: 32px;
    background: #F9FAFB;
    overflow: auto;
    min-height: 0;
}

.dash-footer {
    height: 48px;
    background: #F3F4F6;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    font-size: 12px;
    color: #6B7280;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: #D1D5DB;
}

/* ===== REPRICER SCREEN STYLES ===== */
.repricer-screen .dash-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
}

.price-settings {
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0;
}

.settings-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.settings-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.settings-close:active {
    transform: scale(0.95);
}

.repricer-screen .product-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    margin-bottom: 8px;
}

.repricer-screen .product-img {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.repricer-screen .product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.repricer-screen .product-name {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repricer-screen .product-sku {
    font-size: 13px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repricer-screen .price-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 100px;
}

.repricer-screen .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.repricer-screen .price-change {
    font-size: 12px;
    color: #10B981;
    white-space: nowrap;
}

.repricer-screen .price-change.negative {
    color: #EF4444;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.setting-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.setting-input:hover {
    border-color: #D1D5DB;
}

.setting-input:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toggle-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.toggle-setting:last-child {
    border-bottom: none;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.toggle {
    width: 44px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle.active {
    background: #7C3AED;
}

.toggle-dot {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle.active .toggle-dot {
    transform: translateX(20px);
}

/* ===== ANALYTICS SCREEN STYLES ===== */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-card.primary {
    border-color: rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(236, 72, 153, 0.03) 100%);
}

.stat-card.primary:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    height: 20px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 32px;
    margin-bottom: 8px;
}

.stat-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    opacity: 0.6;
}

.stat-chart svg {
    width: 100%;
    height: 100%;
}

.analytics-screen .dash-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, #7C3AED 0%, #EC4899 100%);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    height: 0;
    transition: height 0.6s ease-out, opacity 0.6s ease-out;
}

.chart-container.animate .chart-bar {
    opacity: 1;
}

.chart-container.animate .chart-bar:nth-child(1) { 
    height: 60%; 
    transition-delay: 0.1s; 
}
.chart-container.animate .chart-bar:nth-child(2) { 
    height: 80%; 
    transition-delay: 0.2s; 
}
.chart-container.animate .chart-bar:nth-child(3) { 
    height: 45%; 
    transition-delay: 0.3s; 
}
.chart-container.animate .chart-bar:nth-child(4) { 
    height: 90%; 
    transition-delay: 0.4s; 
}
.chart-container.animate .chart-bar:nth-child(5) { 
    height: 70%; 
    transition-delay: 0.5s; 
}
.chart-container.animate .chart-bar:nth-child(6) { 
    height: 85%; 
    transition-delay: 0.6s; 
}
.chart-container.animate .chart-bar:nth-child(7) { 
    height: 55%; 
    transition-delay: 0.7s; 
}
.chart-container.animate .chart-bar:nth-child(8) { 
    height: 95%; 
    transition-delay: 0.8s; 
}

/* ===== ORDERS SCREEN STYLES ===== */
.orders-screen .dash-content {
    padding: 0;
    background: #F9FAFB;
}

.orders-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 32px;
    margin-bottom: 0;
}

.orders-content {
    padding: 24px;
}

.orders-table-header {
    display: grid;
    grid-template-columns: 1fr 125px 140px;
    gap: 24px;
    padding: 0 20px 16px;
    border-bottom: 2px solid #F3F4F6;
    margin-bottom: 16px;
    align-items: center;
}

.orders-table-header > div {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.orders-table-header > div:first-child {
    padding-left: 64px;
}

.orders-table-header > div:nth-child(2) {
    text-align: center;
}

.orders-table-header > div:last-child {
    text-align: right;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr 110px 140px;
    gap: 24px;
    padding: 20px;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-item:hover {
    background: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.order-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.product-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.product-image.sweater {
    background-image: url('https://images.unsplash.com/photo-1434389677669-e08b4cac3105?w=100&h=100&fit=crop');
}

.product-image.samsung {
    background-image: url('https://images.unsplash.com/photo-1610945415295-d9bbf067e59c?w=100&h=100&fit=crop');
}

.product-image.airfryer {
    background-image: url('https://plus.unsplash.com/premium_photo-1672192166833-c8ae84e5e127?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.product-image.jeans {
    background-image: url('https://images.unsplash.com/photo-1542272604-787c3835535d?w=100&h=100&fit=crop');
}

.order-product-info {
    flex: 1;
    min-width: 0;
}

.order-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-details {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-product-sku {
    font-size: 12px;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.25px;
    white-space: nowrap;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.status-badge.delivered {
    background-color: #b0ffc0;
    color: #115c4a;
    border-color: #b0ffc0;
}

.status-badge.delivered:hover {
    background-color: #a0f5b0;
    border-color: #a0f5b0;
}

.status-badge.processing {
    background-color: #d6ebff;
    color: #184e6e;
    border-color: #d6ebff;
}

.status-badge.processing:hover {
    background-color: #c6dbf0;
    border-color: #c6dbf0;
}

.status-badge.pending {
    background-color: #ffe7d7;
    color: #d85b00;
    border-color: #ffe7d7;
}

.status-badge.pending:hover {
    background-color: #ffd7c7;
    border-color: #ffd7c7;
}

.status-badge.cancelled {
    background-color: #ffe7e7;
    color: #c21f1f;
    border-color: #ffe7e7;
}

.status-badge.cancelled:hover {
    background-color: #ffd7d7;
    border-color: #ffd7d7;
}

.status-badge.refused {
    background-color: #efefef;
    color: #636262;
    border-color: #efefef;
}

.status-badge.refused:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.order-profit {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
}

.profit-amount.negative {
    color: #EF4444;
}

.order-mobile {
    display: none;
}

.mobile-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.mobile-product-info {
    flex: 1;
    min-width: 0;
}

.mobile-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-product-sku {
    font-size: 14px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mobile-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
}

.mobile-profit-amount.negative {
    color: #EF4444;
}

/* ===== LOSSES SCREEN STYLES ===== */
.loss-summary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.loss-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.loss-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.loss-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loss-period {
    font-size: 16px;
    color: #6B7280;
}

.loss-additional {
    margin-top: 8px;
}

.compensated-note {
    font-size: 14px;
    color: #16A34A;
    font-weight: 500;
    background: rgba(22, 163, 74, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.loss-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.loss-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.loss-action:hover::before {
    left: 100%;
}

.loss-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.loss-action:active {
    transform: translateY(0);
}

.loss-category {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
    margin-bottom: 12px;
}

.loss-category:last-child {
    margin-bottom: 0;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.losses-screen .product-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 80px;
}

.losses-screen .product-item:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.losses-screen .product-item:last-child {
    margin-bottom: 0;
}

.losses-screen .product-img {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.losses-screen .product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.losses-screen .product-name {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.losses-screen .product-specs {
    font-size: 14px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.losses-screen .product-sku {
    font-size: 13px;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.losses-screen .price-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 100px;
    min-height: 48px;
    justify-content: center;
    align-items: flex-end;
}

.losses-screen .current-price,
.losses-screen .profit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.losses-screen .profit-amount.negative {
    color: var(--error);
}

.losses-screen .price-change {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.losses-screen .price-change.compensated {
    color: #16A34A;
}

.losses-screen .price-change.lost {
    color: #D97706;
}

.losses-screen .price-change.error {
    color: var(--error);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .features-content {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-right-column {
        gap: 0;
    }

    .features-menu {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        margin-bottom: 0;
    }

    .feature-expanded-content {
        display: none !important;
    }

    .feature-display {
        height: 550px;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .orders-table-header {
        grid-template-columns: 1fr 160px 120px;
        gap: 20px;
    }
    
    .order-item {
        grid-template-columns: 1fr 160px 120px;
        gap: 20px;
        padding: 16px;
    }
    
    .orders-table-header > div:first-child {
        padding-left: 56px;
    }
    
    .orders-table-header > div:nth-child(2) {
        text-align: center;
    }
    
    .product-image {
        width: 48px;
        height: 48px;
    }
    
    .order-product-name {
        font-size: 15px;
    }
    
    .order-product-details {
        font-size: 13px;
    }
    
    .profit-amount {
        font-size: 16px;
    }

    .status-badge {
        min-width: 120px;
        padding: 5px 12px;
        font-size: 12px;
    }

    .loss-summary {
        padding: 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .loss-amount {
        font-size: 36px;
    }

    .loss-action {
        min-width: 180px;
        padding: 16px 28px;
    }

    .losses-screen .product-item {
        grid-template-columns: 52px 1fr auto;
        gap: 14px;
        padding: 16px;
        min-height: 84px;
    }

    .losses-screen .product-img {
        width: 52px;
        height: 52px;
    }

    .losses-screen .product-name {
        font-size: 15px;
    }

    .losses-screen .product-specs {
        font-size: 13px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 17px;
    }

    .losses-screen .price-change {
        font-size: 11px;
    }

    .losses-screen .price-info {
        min-width: 90px;
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
	
    /* Скрываем неактивные элементы навигации на мобильных */
    .dash-nav-item:not(.active) {
        display: none !important;
    }
    
    /* Опционально: центрируем активный элемент */
    .dash-nav {
        justify-content: center;
    }
    

	
    .features-section {
        padding: 50px 0px 0px 0px;
    }

    .features-header {
        margin-bottom: 40px;
    }

    .features-title {
        font-size: 36px;
    }

    .features-description {
        font-size: 18px;
    }

    .features-right-column {
        gap: 0;
    }

    .features-menu {
        grid-template-columns: 1fr;
        gap: 0;
        display: flex;
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 12px;
    }
    
    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-expanded-content {
        display: none !important;
    }

    .feature-header {
        padding: 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .feature-name {
        font-size: 16px;
    }

    .feature-desc {
        font-size: 15px;
    }

    .feature-display {
        display: none !important;
    }

    .mobile-feature-container {
        display: block !important;
        visibility: visible !important;
    }

    .mobile-info-block {
        display: block !important;
        visibility: visible !important;
    }

    .mobile-info-block.active {
        max-height: 180px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .mobile-feature-container.active {
        max-height: 620px;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .feature-screen {
        position: relative;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        height: 550px;
        box-shadow: 
            0 0 0 1px rgba(0, 0, 0, 0.05),
            0 8px 20px -4px rgba(0, 0, 0, 0.15),
            0 4px 8px -2px rgba(0, 0, 0, 0.08);
        animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        margin-bottom: 16px;
    }

    .mobile-feature-container .dashboard-mock {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-feature-container .dash-header {
        height: 56px;
        flex-shrink: 0;
        background: #1F2937;
        padding: 0 16px;
    }

    .mobile-feature-container .dash-content {
        flex: 1;
        padding: 20px;
        background: #F9FAFB;
        overflow-y: auto;
        min-height: 0;
    }

    .mobile-feature-container .dash-footer {
        height: 44px;
        flex-shrink: 0;
        background: #F3F4F6;
        border-top: 1px solid #E5E7EB;
        padding: 0 16px;
        font-size: 11px;
    }

    .mobile-feature-container .orders-section {
        margin: 0;
        border-radius: 10px;
        box-shadow: none;
    }

    .mobile-feature-container .orders-content {
        padding: 12px;
    }

    .mobile-feature-container .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .stat-card {
        padding: 12px;
        min-height: 70px;
    }

    .mobile-feature-container .price-settings {
        padding: 16px;
        margin: 0;
        border-radius: 8px;
        max-width: none;
    }

    .dash-nav {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dash-nav::-webkit-scrollbar {
        display: none;
    }

    .dash-nav-item {
        white-space: nowrap;
        font-size: 13px;
        padding: 4px 8px;
    }

    .repricer-screen .dash-content {
        padding: 20px;
    }

    .price-settings {
        max-width: none;
        padding: 20px;
        gap: 20px;
    }

    .settings-header {
        gap: 12px;
    }

    .settings-title {
        font-size: 16px;
    }

    .settings-close {
        width: 28px;
        height: 28px;
    }

    .repricer-screen .product-item {
        grid-template-columns: 48px 1fr auto;
        gap: 12px;
        padding: 14px;
    }

    .repricer-screen .product-img {
        width: 48px;
        height: 48px;
    }

    .repricer-screen .product-name {
        font-size: 15px;
    }

    .repricer-screen .current-price {
        font-size: 16px;
    }

    .repricer-screen .price-info {
        min-width: 80px;
    }

    .orders-section {
        margin: 20px;
        margin-bottom: 0;
    }
    
    .orders-content {
        padding: 16px;
    }
    
    .orders-table-header {
        display: none;
    }
    
    .order-item {
        display: block;
        padding: 0;
        background: white;
        border: 1px solid #E5E7EB;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .order-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .order-mobile {
        display: block;
        padding: 16px;
    }
    
    .order-product,
    .order-profit {
        display: none;
    }
    
    .order-item > .status-badge {
        display: none;
    }
    
    .mobile-product-header {
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .product-image {
        width: 48px;
        height: 48px;
    }
    
    .mobile-product-name {
        font-size: 15px;
    }
    
    .mobile-product-sku {
        font-size: 13px;
    }
    
    .mobile-order-info {
        gap: 12px;
        grid-template-columns: 1fr;
    }
    
    .mobile-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .order-mobile .status-badge {
        margin: 0;
        min-width: auto;
        width: auto;
        flex-shrink: 0;
    }
    
    .mobile-profit-amount {
        font-size: 16px;
    }

    .status-badge {
        min-width: 90px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        min-height: 85px;
    }

    .stat-header {
        height: 18px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 8px;
    }

    .loss-summary {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .loss-info {
        text-align: center;
    }

    .loss-info h3 {
        font-size: 18px;
    }

    .loss-amount {
        font-size: 32px;
    }

    .loss-period {
        font-size: 14px;
    }

    .compensated-note {
        font-size: 12px;
        padding: 3px 10px;
    }

    .loss-action {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .loss-category {
        padding: 12px;
        margin-bottom: 8px;
    }

    .losses-screen .product-item {
        grid-template-columns: 48px 1fr auto;
        gap: 12px;
        padding: 12px;
        min-height: 72px;
    }

    .losses-screen .product-img {
        width: 48px;
        height: 48px;
    }

    .losses-screen .product-name {
        font-size: 15px;
    }

    .losses-screen .product-specs {
        font-size: 13px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 16px;
    }

    .losses-screen .price-change {
        font-size: 11px;
    }

    .losses-screen .price-info {
        min-width: 85px;
        min-height: 42px;
        justify-content: center;
    }

    .mobile-info-block .mobile-info-content {
        padding: 14px;
    }
    .mobile-info-block .mobile-info-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .mobile-info-block .mobile-info-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .features-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .features-description {
        font-size: 16px;
    }

    .features-subtitle {
        font-size: 12px;
        padding: 6px 16px;
    }

    .mobile-info-block.active {
        max-height: 160px;
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .mobile-feature-container.active {
        max-height: 620px;
        margin-top: 6px;
        margin-bottom: 1px;
    }

    .mobile-feature-container .feature-screen {
        height: 550px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .dash-header {
        height: 52px;
        padding: 0 14px;
    }

    .mobile-feature-container .dash-content {
        padding: 16px;
    }

    .mobile-feature-container .dash-footer {
        height: 40px;
        padding: 0 14px;
        font-size: 10px;
    }

    .chevron-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-info-block .mobile-info-content {
        padding: 12px;
        border-radius: 8px;
    }
    
    .mobile-info-block .mobile-info-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .mobile-info-block .mobile-info-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .repricer-screen .dash-content {
        padding: 16px;
    }

    .price-settings {
        padding: 16px;
        gap: 16px;
    }

    .settings-title {
        font-size: 16px;
    }

    .settings-close {
        width: 24px;
        height: 24px;
    }

    .repricer-screen .product-item {
        grid-template-columns: 40px 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .repricer-screen .product-img {
        width: 40px;
        height: 40px;
    }

    .repricer-screen .product-name {
        font-size: 14px;
    }

    .repricer-screen .product-sku {
        font-size: 12px;
    }

    .repricer-screen .current-price {
        font-size: 15px;
    }

    .repricer-screen .price-change {
        font-size: 11px;
    }

    .repricer-screen .price-info {
        min-width: 70px;
    }

    .setting-label {
        font-size: 13px;
    }

    .setting-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .toggle-setting {
        padding: 12px 0;
    }

    .toggle-label {
        font-size: 13px;
    }

    .toggle {
        width: 40px;
        height: 22px;
    }

    .toggle-dot {
        width: 18px;
        height: 18px;
    }

    .toggle.active .toggle-dot {
        transform: translateX(18px);
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .chart-container {
        padding: 16px;
        height: 180px;
    }

    .chart-bar {
        width: 20px;
    }

    .orders-section {
        margin: 16px;
        margin-bottom: 0;
    }
    
    .orders-content {
        padding: 12px;
    }
    
    .order-mobile {
        padding: 12px;
    }
    
    .mobile-order-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mobile-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .status-badge {
        min-width: 80px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .loss-summary {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 16px;
    }

    .loss-info h3 {
        font-size: 16px;
    }

    .loss-amount {
        font-size: 28px;
    }

    .loss-period {
        font-size: 13px;
    }

    .compensated-note {
        font-size: 11px;
        padding: 2px 8px;
    }

    .loss-action {
        width: 100%;
        padding: 12px 18px;
        font-size: 13px;
    }

    .loss-category {
        padding: 10px;
        margin-bottom: 6px;
    }

    .losses-screen .product-item {
        grid-template-columns: 44px 1fr auto;
        gap: 10px;
        padding: 10px;
        min-height: 64px;
    }

    .losses-screen .product-img {
        width: 44px;
        height: 44px;
    }

    .losses-screen .product-name {
        font-size: 14px;
    }

    .losses-screen .product-specs {
        font-size: 12px;
    }

    .losses-screen .product-sku {
        font-size: 11px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 15px;
    }

    .losses-screen .price-change {
        font-size: 10px;
    }

    .losses-screen .price-info {
        align-items: flex-end;
        min-width: 75px;
        min-height: 38px;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .features-title {
        font-size: 24px;
    }

    .mobile-info-block.active {
        max-height: 140px;
    }

    .mobile-feature-container.active {
        max-height: 620px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .feature-screen {
        height: 550px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .mobile-feature-container .dash-header {
        height: 48px;
        padding: 0 12px;
    }

    .mobile-feature-container .dash-content {
        padding: 14px;
    }

    .mobile-feature-container .dash-footer {
        height: 38px;
        padding: 0 12px;
        font-size: 9px;
    }

    .chevron-icon {
        width: 16px;
        height: 16px;
        margin-left: 6px;
    }

    .mobile-info-block .mobile-info-content {
        padding: 10px;
    }

    .repricer-screen .product-item {
        grid-template-columns: 32px 1fr auto;
        gap: 8px;
        padding: 10px;
    }

    .repricer-screen .product-img {
        width: 32px;
        height: 32px;
    }

    .repricer-screen .product-name {
        font-size: 12px;
    }

    .repricer-screen .product-sku {
        font-size: 10px;
    }

    .repricer-screen .current-price {
        font-size: 13px;
    }

    .repricer-screen .price-change {
        font-size: 10px;
    }

    .repricer-screen .price-info {
        min-width: 60px;
    }

    .mobile-product-header {
        gap: 8px;
    }
    
    .product-image {
        width: 40px;
        height: 40px;
    }
    
    .mobile-product-name {
        font-size: 14px;
    }
    
    .mobile-product-sku {
        font-size: 12px;
    }

    .status-badge {
        min-width: 70px;
        padding: 2px 6px;
        font-size: 10px;
    }

    .losses-screen .product-item {
        grid-template-columns: 40px 1fr auto;
        gap: 8px;
        padding: 8px;
        border-radius: 8px;
        min-height: 60px;
    }

    .losses-screen .product-img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .losses-screen .product-name {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .losses-screen .product-specs {
        font-size: 11px;
    }

    .losses-screen .product-sku {
        font-size: 10px;
    }

    .losses-screen .current-price,
    .losses-screen .profit-amount {
        font-size: 14px;
    }

    .losses-screen .price-change {
        font-size: 9px;
    }

    .losses-screen .price-info {
        align-items: flex-end;
        min-width: 65px;
        min-height: 34px;
        justify-content: center;
    }
}

/* ===== MOBILE ELEMENTS VISIBILITY ===== */
@media (min-width: 769px) {
    .mobile-feature-container {
        display: none !important;
    }
    
    .mobile-info-block {
        display: none !important;
    }
    
    .feature-display {
        display: block !important;
    }

}

/* ===== СОВРЕМЕННЫЕ СТИЛИ СКРОЛЛБАРА ===== */
/* Применяем ко всем элементам для максимального покрытия */

/* ===== БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ БРАУЗЕРОВ ===== */
html, body, * {
    /* Firefox стили */
    scrollbar-width: thin !important;
    scrollbar-color: #BDC1C6 #F8F9FA !important;
}

/* ===== WEBKIT СТИЛИ (Chrome, Safari, Edge) ===== */
/* Основной скроллбар */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
    background: transparent !important;
}

/* Трек (дорожка) скроллбара */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #F8F9FA !important;
    border-radius: 10px !important;
    border: 1px solid #F3F4F6 !important;
}

/* Ползунок скроллбара */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #BDC1C6, #D1D5DB) !important;
    border-radius: 10px !important;
    border: 2px solid #F8F9FA !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(189, 193, 198, 0.2) !important;
}

/* Ховер эффект для ползунка */
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #9CA3AF, #BDC1C6) !important;
    box-shadow: 0 4px 8px rgba(156, 163, 175, 0.3) !important;
    transform: scale(1.05) !important;
}

/* Активное состояние ползунка */
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #6B7280, #9CA3AF) !important;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.4) !important;
}

/* Углы скроллбара */
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: #F3F4F6 !important;
}

/* Кнопки скроллбара (стрелки) */
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
    display: none !important;
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ ТЕМНЫХ ЭЛЕМЕНТОВ ===== */
.dark-theme,
.dark-theme *,
[data-theme="dark"],
[data-theme="dark"] * {
    scrollbar-color: #9CA3AF #374151 !important;
}

.dark-theme::-webkit-scrollbar-track,
[data-theme="dark"]::-webkit-scrollbar-track {
    background: #374151 !important;
    border-color: #4B5563 !important;
}

.dark-theme::-webkit-scrollbar-thumb,
[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9CA3AF, #D1D5DB) !important;
    border-color: #374151 !important;
}

/* ===== ТОНКИЕ СКРОЛЛБАРЫ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track,
    *::-webkit-scrollbar-track {
        background: rgba(248, 250, 252, 0.5) !important;
        border: none !important;
        border-radius: 6px !important;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    *::-webkit-scrollbar-thumb {
        border: 1px solid rgba(248, 250, 252, 0.3) !important;
        border-radius: 6px !important;
    }
}

/* ===== СТИЛИ ДЛЯ КОНКРЕТНЫХ ЭЛЕМЕНТОВ ===== */
/* Скроллбары в модальных окнах */
.modal,
.dialog,
.popup {
    scrollbar-width: thin !important;
    scrollbar-color: #9CA3AF #F3F4F6 !important;
}

.modal::-webkit-scrollbar-thumb,
.dialog::-webkit-scrollbar-thumb,
.popup::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9CA3AF, #D1D5DB) !important;
}

/* Скроллбары в сайдбарах */
.sidebar,
.navigation,
.menu {
    scrollbar-width: thin !important;
}

.sidebar::-webkit-scrollbar,
.navigation::-webkit-scrollbar,
.menu::-webkit-scrollbar {
    width: 8px !important;
}

/* Скроллбары в таблицах */
table,
.table-container,
.data-table {
    scrollbar-width: thin !important;
}

table::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.data-table::-webkit-scrollbar {
    height: 8px !important;
}

/* ===== АНИМИРОВАННЫЕ СКРОЛЛБАРЫ ===== */
@keyframes scrollbarGlow {
    0% { 
        box-shadow: 0 2px 4px rgba(189, 193, 198, 0.2) !important; 
    }
    50% { 
        box-shadow: 0 4px 12px rgba(189, 193, 198, 0.4) !important; 
    }
    100% { 
        box-shadow: 0 2px 4px rgba(189, 193, 198, 0.2) !important; 
    }
}

/* Применяем анимацию при скролле */
.scrolling::-webkit-scrollbar-thumb {
    animation: scrollbarGlow 1s ease-in-out !important;
}

/* ===== АЛЬТЕРНАТИВНЫЕ ЦВЕТОВЫЕ СХЕМЫ ===== */
/* Серая схема (основная) */
.scrollbar-gray,
.scrollbar-gray * {
    scrollbar-color: #BDC1C6 #F8F9FA !important;
}

.scrollbar-gray::-webkit-scrollbar-thumb,
.scrollbar-gray *::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #BDC1C6, #D1D5DB) !important;
}

/* Зеленая схема */
.scrollbar-green,
.scrollbar-green * {
    scrollbar-color: #10B981 #E5E7EB !important;
}

.scrollbar-green::-webkit-scrollbar-thumb,
.scrollbar-green *::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #10B981, #34D399) !important;
}

/* Синяя схема */
.scrollbar-blue,
.scrollbar-blue * {
    scrollbar-color: #3B82F6 #E5E7EB !important;
}

.scrollbar-blue::-webkit-scrollbar-thumb,
.scrollbar-blue *::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3B82F6, #60A5FA) !important;
}

/* Красная схема */
.scrollbar-red,
.scrollbar-red * {
    scrollbar-color: #EF4444 #E5E7EB !important;
}

.scrollbar-red::-webkit-scrollbar-thumb,
.scrollbar-red *::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #EF4444, #F87171) !important;
}

/* ===== СКРЫТЫЕ СКРОЛЛБАРЫ (ПРИ НЕОБХОДИМОСТИ) ===== */
.scrollbar-hidden,
.scrollbar-hidden * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.scrollbar-hidden::-webkit-scrollbar,
.scrollbar-hidden *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ===== ОЧЕНЬ ТОНКИЕ СКРОЛЛБАРЫ ===== */
.scrollbar-minimal,
.scrollbar-minimal * {
    scrollbar-width: thin !important;
}

.scrollbar-minimal::-webkit-scrollbar,
.scrollbar-minimal *::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

.scrollbar-minimal::-webkit-scrollbar-track,
.scrollbar-minimal *::-webkit-scrollbar-track {
    background: transparent !important;
    border: none !important;
}

.scrollbar-minimal::-webkit-scrollbar-thumb,
.scrollbar-minimal *::-webkit-scrollbar-thumb {
    background: rgba(189, 193, 198, 0.6) !important;
    border-radius: 4px !important;
    border: none !important;
}

/* ===== ТОЛСТЫЕ СКРОЛЛБАРЫ ДЛЯ ЛУЧШЕЙ ВИДИМОСТИ ===== */
.scrollbar-thick,
.scrollbar-thick * {
    scrollbar-width: thick !important;
}

.scrollbar-thick::-webkit-scrollbar,
.scrollbar-thick *::-webkit-scrollbar {
    width: 20px !important;
    height: 20px !important;
}

.scrollbar-thick::-webkit-scrollbar-thumb,
.scrollbar-thick *::-webkit-scrollbar-thumb {
    border: 4px solid #F8F9FA !important;
}

/* ===== ФИКС ДЛЯ WEBKIT БРАУЗЕРОВ ===== */
/* Принудительное применение стилей */
body {
    overflow-y: auto !important;
}

html {
    overflow-y: auto !important;
}

/* ===== СОВМЕСТИМОСТЬ СО СТАРЫМИ БРАУЗЕРАМИ ===== */
/* Internet Explorer стили */
body {
    -ms-overflow-style: auto !important;
}

/* Старые webkit браузеры */
body::-webkit-scrollbar-track-piece {
    background: #F8F9FA !important;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ ===== */
/* Класс для принудительного обновления скроллбаров */
.force-scrollbar-update {
    transform: translateZ(0) !important;
    will-change: scroll-position !important;
}

/* Класс для отладки скроллбаров */
.debug-scrollbar::-webkit-scrollbar {
    background: red !important;
    width: 20px !important;
}

.debug-scrollbar::-webkit-scrollbar-thumb {
    background: yellow !important;
    border: 2px solid blue !important;
}

/* ===== СОСТОЯНИЯ ПРОКРУТКИ ===== */
/* Когда элемент прокручивается */
.is-scrolling::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #9CA3AF, #D1D5DB) !important;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4) !important;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ВЫСОКИХ DPI ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        width: 14px !important;
        height: 14px !important;
    }
}

/* ===== ФИНАЛЬНЫЙ ФИКС - ПРИМЕНЯЕМ КО ВСЕМУ ===== */
/* Этот блок должен быть в самом конце для максимального приоритета */
*, *::before, *::after {
    scrollbar-width: thin !important;
    scrollbar-color: #BDC1C6 #F8F9FA !important;
}

*::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

*::-webkit-scrollbar-track {
    background: #F8F9FA !important;
    border-radius: 10px !important;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #BDC1C6, #D1D5DB) !important;
    border-radius: 10px !important;
    border: 2px solid #F8F9FA !important;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #9CA3AF, #BDC1C6) !important;
}

/* Скрываем все nav-item по умолчанию в dashboard-mock */
.dashboard-mock .dash-nav-item {
    display: none !important;
}

/* Показываем только соответствующий nav-item для каждой секции */

/* В repricer-screen показываем только repricer nav-item */
.repricer-screen .dash-nav-item[data-feature="repricer"] {
    display: flex !important;
}

/* В analytics-screen показываем только analytics nav-item */
.analytics-screen .dash-nav-item[data-feature="analytics"] {
    display: flex !important;
}

/* В orders-screen показываем только orders nav-item */
.orders-screen .dash-nav-item[data-feature="orders"] {
    display: flex !important;
}

/* В losses-screen показываем только losses nav-item */
.losses-screen .dash-nav-item[data-feature="losses"] {
    display: flex !important;
}

/* Центрируем единственный видимый элемент навигации */
.dashboard-mock .dash-nav {
    justify-content: center;
}


/* SKU font */
.product-sku,
.order-product-sku,
.mobile-product-sku {
    font-family: 'WB combo VF Variable', sans-serif;
}
