/* =====================================================
   CHASY.KG - Премиум дизайн 2.0 - ИСПРАВЛЕНО
   Фикс mobile/tablet + новый дизайн категорий
   ===================================================== */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные цвета */
    --primary-color: #1e293b;
    --secondary-color: #64748b;
    --accent-color: #2563eb;
    --accent-light: #3b82f6;
    --accent-dark: #1e40af;
    --purple-accent: #7c3aed;
    --purple-light: #a78bfa;
    
    /* Фоновые цвета */
    --background-color: #ffffff;
    --background-light: #f8fafc;
    --background-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* Текстовые цвета */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Границы */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Статусные цвета */
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    
    /* Анимации */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: -0.5px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.logo:hover::after {
    width: 100%;
}

/* Navigation */
.desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    position: relative;
    padding: 8px 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::before {
    width: 100%;
}

.phone-link {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.phone-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.phone-link:hover::before {
    width: 300px;
    height: 300px;
}

.phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    font-size: 22px;
    text-decoration: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--background-light);
    transition: all var(--transition-base);
    color: var(--text-color);
    flex-shrink: 0;
}

.cart-icon:hover {
    transform: scale(1.1);
    background: var(--accent-light);
    color: white;
    box-shadow: var(--shadow-md);
}

.cart-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.cart-counter.active {
    display: flex;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: white;
    flex-direction: column;
    padding: 80px 24px 40px;
    box-shadow: var(--shadow-2xl);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

.mobile-nav-link {
    padding: 18px 0;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 17px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    padding-left: 12px;
    background: var(--background-light);
}

/* ==================== HERO SECTION ==================== */
.hero-fullscreen {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(124, 58, 237, 0.3) 100%
    );
    z-index: 1;
}

.brands-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.brand-logo {
    position: absolute;
    font-size: 80px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-out;
}

.brand-logo[data-brand="casio"] {
    top: 15%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.brand-logo[data-brand="orient"] {
    top: 25%;
    right: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

.brand-logo[data-brand="citizen"] {
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite 2s;
}

.brand-logo[data-brand="seiko"] {
    bottom: 30%;
    right: 10%;
    animation: float 9s ease-in-out infinite 3s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ==================== SECTIONS ==================== */
.categories-section,
.brands-section,
.features-section {
    padding: 100px 0;
    position: relative;
}

.categories-section {
    background: white;
}

.brands-section {
    background: var(--background-gradient);
}

.features-section {
    background: white;
}

.section-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==================== CATEGORY CARDS - НОВЫЙ ДИЗАЙН С ФОТО ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.category-card {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    border: 2px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

/* Фоновое изображение */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 1;
}

/* Мужские часы - используем placeholder, вы замените на реальное фото */
.category-card[href*="gender=men"]::before {
    background-image: url('https://images.unsplash.com/photo-1524805444758-089113d48a6d?w=800');
    /* ИЛИ используйте свой путь: */
    /* background-image: url('/images/men-watches-category.jpg'); */
}

/* Женские часы */
.category-card[href*="gender=women"]::before {
    background-image: url('https://images.unsplash.com/photo-1539874754764-5a96559165b0?w=800');
    /* ИЛИ используйте свой путь: */
    /* background-image: url('/images/women-watches-category.jpg'); */
}

/* Градиентный overlay */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0.85;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Hover эффекты */
.category-card:hover::before {
    transform: scale(1.1);
}

.category-card:hover::after {
    opacity: 0.75;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: transparent;
}

/* Контент карточки */
.category-icon,
.category-title,
.category-count,
.category-link {
    position: relative;
    z-index: 3;
}

.category-icon {
    display: none; /* Убираем эмодзи */
}

.category-title {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.category-count {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    align-self: flex-start;
}

.category-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.category-card:hover .category-link {
    background: rgba(255, 255, 255, 1);
    color: var(--accent-color);
    transform: translateX(8px);
}

.category-card:hover .category-link::after {
    transform: translateX(4px);
}

/* ==================== BRAND CARDS ==================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.brand-card {
    background: white;
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all 0.4s var(--bounce);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(37, 99, 235, 0.05) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.8s;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.brand-logo {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
    letter-spacing: 1px;
    line-height: 1.3;
}

.brand-card:hover .brand-logo {
    transform: scale(1.1);
    letter-spacing: 2px;
}

/* Brand title в секции брендов */
.brand-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
    letter-spacing: 1px;
    line-height: 1.3;
}

.brand-card:hover .brand-title {
    transform: scale(1.1);
    letter-spacing: 2px;
}

.brand-card p {
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.9;
    font-size: 15px;
}

.brand-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    margin-bottom: 8px;
}

.brand-link:last-child {
    margin-right: 0;
}

.brand-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.brand-link:hover {
    color: var(--purple-accent);
}

.brand-link:hover::after {
    transform: translateX(4px);
}

/* ==================== FEATURE CARDS ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all 0.4s;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
    border-radius: 20px 20px 0 0;
}

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

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
    background: var(--background-light);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(-5deg);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 32px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 14px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--purple-light);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== CART TOAST ==================== */
.cart-toast {
    position: fixed;
    top: 90px;
    right: 24px;
    background: var(--gradient-success);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-2xl);
    z-index: 2000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s var(--bounce);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-toast::before {
    content: '✓';
    font-size: 18px;
    font-weight: 900;
}

/* ==================== LOADING STATE ==================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== RESPONSIVE - ИСПРАВЛЕНО ==================== */

/* iPad Pro и большие планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .desktop-nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .phone-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .cart-icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }
    
    .hero-fullscreen {
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-card {
        height: 450px;
    }
    
    .brands-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .brand-card,
    .feature-card {
        padding: 44px 30px;
    }
    
    .brand-card p,
    .feature-card p {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* iPad и планшеты */

/* iPad Portrait */
@media (max-width: 900px) {
    .desktop-nav .nav-link:nth-child(4),
    .desktop-nav .nav-link:nth-child(5) {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .cart-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hero-fullscreen {
        min-height: 500px;
        max-height: 650px;
    }
    
    .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: clamp(32px, 7vw, 48px);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: clamp(14px, 3vw, 18px);
        margin-bottom: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .categories-section,
    .brands-section,
    .features-section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 44px;
        line-height: 1.3;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .category-card {
        height: 400px;
        padding: 32px 24px;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-count {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .category-link {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .brands-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brand-card,
    .feature-card {
        padding: 40px 28px;
    }
    
    .brand-card p,
    .feature-card p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .brand-logo {
        font-size: 24px;
        margin-bottom: 28px;
    }
    
    .brand-title {
        font-size: 24px;
        margin-bottom: 28px;
    }
    
    .brand-link {
        font-size: 14px;
        margin-right: 12px;
        margin-bottom: 6px;
    }
    
    .brands-animation {
        display: none;
    }
    
    .footer {
        padding: 48px 0 28px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cart-toast {
        right: 16px;
        left: 16px;
        top: 80px;
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* iPhone и маленькие мобильные */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .cart-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .hero-fullscreen {
        min-height: 450px;
    }
    
    .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-card {
        height: 350px;
        padding: 28px 20px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .category-count {
        font-size: 14px;
    }
    
    .category-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .brand-logo {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .brand-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .brand-link {
        font-size: 13px;
        margin-right: 10px;
        margin-bottom: 6px;
    }
    
    .brand-card,
    .feature-card {
        padding: 36px 24px;
    }
    
    .brand-card p,
    .feature-card p {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .feature-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .category-card {
        height: 320px;
    }
    
    .category-title {
        font-size: 24px;
    }
}

/* Touch Device Optimizations */
.touch-device .category-card:hover,
.touch-device .brand-card:hover,
.touch-device .feature-card:hover {
    transform: none;
}

/* Print Styles */
@media print {
    .header,
    .hero-fullscreen,
    .footer,
    .cart-icon,
    .mobile-menu-btn {
        display: none;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== LOGO IMAGE ==================== */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: all var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 24px;
    }
}

.cart-counter-mobile.active {
    display: inline-block;
}