* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

:root {
    --primary: #FF477E;
    --primary-light: #FFF0F3;
    --text-dark: #2D3436;
    --text-gray: #636E72;
    --bg-color: #FAFAFA;
    --white: #FFFFFF;
}

body { background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- НАВІГАЦІЯ --- */
.navbar { background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; font-weight: 600; }
.nav-links a { transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.cart-btn { background: var(--primary-light); color: var(--primary); padding: 10px 20px; border-radius: 12px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.cart-btn:hover { background: var(--primary); color: var(--white); }
.cart-count { background: var(--white); color: var(--primary); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; }

/* --- ГОЛОВНИЙ БАНЕР --- */
.hero { 
    position: relative;
    /* Оновлений шлях до твоєї нової локальної картинки */
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Можеш прибрати, якщо не подобається ефект скролу */
    padding: 160px 20px; 
    text-align: center; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-content { max-width: 700px; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; color: var(--text-dark); }
.hero p { font-size: 18px; color: var(--text-gray); margin-bottom: 40px; }
.cta-button { background: var(--primary); color: var(--white); padding: 18px 40px; border-radius: 30px; font-size: 18px; font-weight: bold; display: inline-block; box-shadow: 0 10px 24px rgba(255, 71, 126, 0.3); transition: transform 0.3s, box-shadow 0.3s; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255, 71, 126, 0.4); }

/* --- КАТАЛОГ --- */
.catalog-section { padding: 80px 20px; }
.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 40px; text-align: center; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

/* --- КАРТКА ТОВАРУ --- */
.product-card { 
    background: var(--white); 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid rgba(255, 71, 126, 0.2); /* Ніжний рожевий контур */
    box-shadow: 0 8px 24px rgba(255, 107, 139, 0.05); /* Легка рожева тінь */
    /* Пружиниста анімація для ефекту "стрибка" */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
    cursor: pointer;
    /* Оптимізація: браузер заздалегідь готується до анімації, щоб не було провісань */
    will-change: transform, box-shadow, border-color; 
}

/* Ефект при наведенні мишки */
.product-card:hover { 
    transform: translateY(-12px) scale(1.02); /* Картка стрибає вгору і трохи збільшується */
    box-shadow: 0 20px 40px rgba(255, 71, 126, 0.15); /* Тінь стає більш вираженою */
    border-color: rgba(255, 71, 126, 0.5); /* Контур стає яскравішим */
}

/* Зображення товару */
.product-image-wrap { 
    position: relative; 
    width: 100%; 
    padding-top: 100%; /* Квадратні пропорції */ 
    overflow: hidden; 
}
.product-image-wrap img { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
/* Картинка трохи наближається при наведенні на картку */
.product-card:hover .product-image-wrap img { 
    transform: scale(1.08); 
}
/* --- СТИЛЬ ДЛЯ МАТЕРІАЛУ В КАРТЦІ --- */
.product-material {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px; /* Відступ від ціни */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}
/* Інформація про товар */
.product-info { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}
.product-category { 
    font-size: 13px; 
    color: var(--text-gray); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
    font-weight: 600; 
}
.product-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: var(--text-dark); 
    line-height: 1.3; 
    transition: color 0.3s ease; 
}
/* Назва товару стає рожевою при наведенні */
.product-card:hover .product-title { 
    color: var(--primary); 
}
.product-price { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--primary); 
    margin-top: auto; 
    margin-bottom: 20px; 
}

/* Кнопка "Переглянути" / "В кошик" */
.buy-btn { 
    width: 100%; 
    background: rgba(241, 242, 246, 0.6); 
    border: 1px solid rgba(255, 71, 126, 0.1); 
    color: var(--text-dark); 
    padding: 14px; 
    border-radius: 18px; 
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

/* Коли ми наводимо на будь-яке місце картки - кнопка плавно заливається ніжним кольором */
.product-card:hover .buy-btn { 
    background: var(--primary); 
    border-color: var(--primary); 
    color: var(--white); 
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.25);
}
/* --- ПІДВАЛ --- */
/* --- СУЧАСНИЙ ПІДВАЛ (ФУТЕР) --- */
footer { 
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 60px 20px 30px; 
    border-top: 1px solid rgba(255, 107, 139, 0.1);
    margin-top: 60px;
}
.footer-container {
    max-width: 900px;
    margin: 0 auto;
}
.contact-blocks {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Дозволяє блокам падати один під одного на телефоні */
}
/* --- КАРТКИ КОНТАКТІВ (Ефект матового скла та рожева рамочка) --- */
.contact-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 30px;
    border-radius: 28px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    /* Ніжна рожева рамочка та тінь, що виділяє блок з фону */
    border: 1px solid rgba(255, 71, 126, 0.25);
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 800;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 71, 126, 0.6);
    box-shadow: 0 20px 45px rgba(255, 71, 126, 0.15);
}


/* --- КРУГЛІ ІКОНКИ СОЦМЕРЕЖ (ОДРАЗУ КОЛЬОРОВІ ТА СВІТЯТЬСЯ) --- */
/* --- ЕЛЕГАНТНІ ІКОНКИ СОЦМЕРЕЖ (Преміум стиль) --- */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px; 
    text-decoration: none;
    /* Ніжний білий матовий фон для кнопок у стані спокою */
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 71, 126, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Примусово задаємо кольори самим іконкам, щоб вони не були сірими */
.social-btn i {
    transition: all 0.4s ease;
}
.social-btn.tiktok i { color: #111111; }
.social-btn.telegram i { color: #2AABEE; }
.social-btn.viber i { color: #7360F2; }

/* МАГІЯ ПРИ НАВЕДЕННІ: Фон заливається кольором, з'являється світіння */
.social-btn.tiktok:hover { 
    background: linear-gradient(135deg, #111111, #222222);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
    border-color: #111111;
    transform: translateY(-5px);
}
.social-btn.telegram:hover { 
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.3); 
    border-color: #2AABEE;
    transform: translateY(-5px);
}
.social-btn.viber:hover { 
    background: linear-gradient(135deg, #7360F2, #5D4AD8);
    box-shadow: 0 8px 20px rgba(115, 96, 242, 0.3); 
    border-color: #7360F2;
    transform: translateY(-5px);
}

/* При наведенні іконка всередині стає ідеально білою */
.social-btn:hover i {
    color: #FFFFFF !important;
    transform: scale(1.1); /* Трохи збільшується логотип */
}

/* --- МОБІЛЬНА ВЕРСІЯ --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .nav-links { display: none; } /* Пізніше можна додати бургер-меню */
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-info { padding: 15px; }
    .product-title { font-size: 16px; }
    .product-price { font-size: 18px; }
}
/* --- МОДАЛЬНЕ ВІКНО --- */
.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(45, 52, 54, 0.6); 
    backdrop-filter: blur(5px);
    z-index: 2000; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show { display: flex; opacity: 1; }

.modal-content {
    background: var(--white); 
    width: 90%; 
    max-width: 900px; 
    max-height: 90vh; 
    border-radius: 24px; 
    position: relative; 
    overflow-y: auto; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal.show .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; 
    top: 20px; right: 20px; 
    background: #F1F2F6; border: none; 
    width: 40px; height: 40px; 
    border-radius: 50%; font-size: 16px; 
    cursor: pointer; z-index: 10;
    transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { background: #FFDADA; color: var(--primary); }

.modal-body { display: flex; flex-wrap: wrap; }
.modal-gallery { flex: 1; min-width: 300px; padding: 20px; }
.modal-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; aspect-ratio: 1/1; }

.modal-info { flex: 1; min-width: 300px; padding: 40px 40px 40px 20px; display: flex; flex-direction: column; }
.modal-info h2 { font-size: 28px; line-height: 1.2; margin-bottom: 5px; color: var(--text-dark); }
.modal-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }

/* Вибір варіації */
.variation-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.var-btn { 
    background: var(--white); border: 2px solid #F1F2F6; 
    padding: 10px 16px; border-radius: 12px; font-weight: 600; 
    cursor: pointer; transition: 0.3s; color: var(--text-gray);
}
.var-btn:hover { border-color: var(--primary-light); background: var(--primary-light); }
.var-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(255, 71, 126, 0.2); }

/* Список комплектації */
.m-components-wrap { background: #F8F9FA; padding: 15px; border-radius: 16px; margin-bottom: 20px; }
.m-components-wrap h4 { font-size: 14px; margin-bottom: 10px; color: var(--text-dark); }
.m-components-list { list-style: none; font-size: 14px; color: var(--text-gray); }
.m-components-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #E2E8F0; }
.m-components-list li:last-child { border-bottom: none; }

.modal-desc h4 { font-size: 16px; margin-bottom: 5px; }
.modal-desc p { font-size: 14px; color: var(--text-gray); white-space: pre-wrap; }

@media (max-width: 768px) {
    .modal-info { padding: 20px; }
    .modal-gallery { padding: 20px 20px 0 20px; }
}
/* --- КРУТИЙ ПРЕМІАЛЬНИЙ ФОН ТА ВІЗЕРУНОК --- */
body { 
    /* 4 ніжні пастельні тони, які будуть красиво і м'яко переливатися */
    background: linear-gradient(-45deg, #FFF5F7, #FFE5EC, #FFF2F6, #FFFFFF);
    background-size: 400% 400%;
    /* 20 секунд — ідеальна швидкість: переливання помітне, але плавне і не навантажує процесор телефону */
    animation: premiumGradient 20s ease infinite; 
    color: var(--text-dark); 
    line-height: 1.6; 
    position: relative;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Безшовний малюнок у вигляді дрібних естетичних квіточок */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Вбудований векторний код міні-квіточок з мінімальною яскравістю (0.04), щоб дизайн залишався повітряним */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23FF477E' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='25' r='3.5'/%3E%3Ccircle cx='30' cy='35' r='3.5'/%3E%3Ccircle cx='25' cy='30' r='3.5'/%3E%3Ccircle cx='35' cy='30' r='3.5'/%3E%3Ccircle cx='30' cy='30' r='2.5' fill='%23FF759F' fill-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 50px 50px; /* Акуратний розмір квіточок на екрані */
    z-index: -1;
    pointer-events: none;
}

/* Магія плавного переливання градієнту */
@keyframes premiumGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ГЛОБАЛЬНА ЗАБОРОНА КУРСОРУ ПРИ ТАПАХ ТА ВИДІЛЕННЯ ТЕКСТУ */
html, body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, select {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* --- ГОЛОВНИЙ БАНЕР (HERO) --- */
.hero { 
    position: relative;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center center;
    /* Видалено background-attachment: fixed, бо це головна причина лагів на скролі! */
    padding: 160px 20px; 
    text-align: center; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Заблерений темний фільтр, щоб текст читався на фото */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content { 
    position: relative;
    z-index: 2;
    max-width: 800px; 
}

.hero h1 { 
    font-size: 56px; 
    font-weight: 900; 
    margin-bottom: 20px; 
    color: #FFFFFF; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero p { 
    font-size: 20px; 
    color: rgba(255, 255, 255, 0.95); 
    margin-bottom: 40px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* --- КАТАРТКИ ТОВАРІВ --- */
/* --- КАРТКИ ТОВАРІВ З ЕФЕКТОМ СКЛА ТА ПРИЄМНОЮ РАМОЧКОЮ --- */
.product-card { 
    /* Ефект матового преміум-скла (Glassmorphism) */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border-radius: 28px; /* Більш округлі, сучасні кути */
    overflow: hidden; 
    
    /* Та сама приємна рожева рамочка */
    border: 1px solid rgba(255, 71, 126, 0.25); 
    
    /* Дуже м'яка об'ємна рожева тінь */
    box-shadow: 0 12px 32px rgba(255, 107, 139, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6); 
    
    /* Плавний перехід для анімації підстрибування */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; 
    flex-direction: column; 
    cursor: pointer;
    will-change: transform, box-shadow, border-color; 
}

/* Ефект при наведенні (Картка оживає) */
.product-card:hover { 
    transform: translateY(-10px); /* Акуратний стрибок вгору */
    
    /* Рамочка стає насиченою, підкреслюючи блок */
    border-color: rgba(255, 71, 126, 0.6); 
    
    /* Тінь стає глибшою, створюючи ефект 3D ефекту відриву від землі */
    box-shadow: 0 25px 50px rgba(255, 71, 126, 0.15); 
}

/* --- ПІДВАЛ ТА ІНТЕРАКТИВНІ СОЦМЕРЕЖІ --- */
footer { 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px);
    padding: 60px 20px 40px; 
    text-align: center; 
    border-top: 1px solid rgba(255, 107, 139, 0.1); 
    margin-top: 60px; 
}

/* --- КРУГЛІ ІКОНКИ СОЦМЕРЕЖ --- */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px; /* Розмір самої іконки */
    color: var(--text-gray);
    background: #F8F9FA;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Фірмові кольори при наведенні */
.social-btn.tiktok:hover { 
    background: #111111; color: #FFFFFF; 
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), -2px 2px 10px #00F2FE, 2px -2px 10px #FF0050; 
}
.social-btn.telegram:hover { 
    background: #2AABEE; color: #FFFFFF; 
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(42, 171, 238, 0.4); 
}
.social-btn.viber:hover { 
    background: #7360F2; color: #FFFFFF; 
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(115, 96, 242, 0.4); 
}


/* --- БУРГЕР МЕНЮ ТА САЙДБАР --- */
.burger-btn { 
    background: none; border: none; font-size: 16px; font-weight: 700; 
    cursor: pointer; color: var(--text-dark); display: flex; align-items: center; gap: 8px; 
}
.burger-btn:hover { color: var(--primary); }

.sidebar { 
    position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; 
    background: var(--white); z-index: 3000; transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1); 
    box-shadow: 4px 0 24px rgba(0,0,0,0.15); padding: 40px 20px; overflow-y: auto;
}
.sidebar.open { left: 0; }

.sidebar-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(45, 52, 54, 0.5); backdrop-filter: blur(3px);
    z-index: 2999; opacity: 0; visibility: hidden; transition: 0.3s; 
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.close-sidebar { 
    position: absolute; top: 20px; right: 20px; background: #F1F2F6; 
    border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.close-sidebar:hover { background: #FFDADA; color: var(--primary); }

.category-list { list-style: none; margin-top: 30px; }
.category-list li { margin-bottom: 10px; }
.category-list a { 
    font-size: 18px; font-weight: 600; color: var(--text-gray); 
    display: block; padding: 12px 15px; border-radius: 12px; transition: 0.3s; 
}
.category-list a:hover, .category-list a.active { 
    background: var(--primary-light); color: var(--primary); padding-left: 25px;
}

/* --- ВАЖЛИВО: ОНОВЛЕНИЙ МОБІЛЬНИЙ БАНЕР --- */
/* --- МОБІЛЬНА ВЕРСІЯ --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    /* Фікс шапки, щоб елементи не налізали один на одного */
    .nav-container { padding: 0 10px; gap: 10px; }
    .burger-btn { font-size: 14px; gap: 5px; padding: 5px; }
    .burger-btn span { font-size: 20px !important; }
    .logo { font-size: 16px; white-space: nowrap; } /* nowrap не дає тексту переноситись */
    .cart-btn { padding: 8px 12px; font-size: 14px; }
    
    /* Оновлений мобільний банер */
    .hero { 
        padding: 80px 15px; 
        background-position: right 30% center; 
        background-attachment: scroll; 
    }
    .hero h1 { font-size: 32px; margin-bottom: 15px; line-height: 1.2; }
    .hero p { font-size: 16px; margin-bottom: 25px; }
    .cta-button { padding: 14px 28px; font-size: 16px; width: 100%; }
    
    /* Сітка товарів */
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-info { padding: 15px; }
    .product-title { font-size: 16px; }
    .product-price { font-size: 18px; }
}

/* --- СТИЛІ ДЛЯ ІНФОРМАЦІЙНИХ СТОРІНОК --- */
.info-page-wrap {
    max-width: 800px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 107, 139, 0.1);
}
.info-page-wrap h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}
.info-page-wrap h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.info-page-wrap p, .info-page-wrap li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 15px;
}
.info-page-wrap ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .info-page-wrap { margin: 30px 15px; padding: 30px 20px; }
    .info-page-wrap h1 { font-size: 28px; }
}
.footer-bottom {
    text-align: center;
    border-top: 1px dashed rgba(255, 107, 139, 0.2);
    padding-top: 30px;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.footer-links a {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-links .dot {
    color: #DCDDE1;
    font-size: 20px;
}
.copyright {
    color: var(--text-gray);
    font-size: 14px;
}

/* --- Мобільна адаптація --- */
@media (max-width: 768px) {
    footer { padding: 40px 15px 30px; }
    .contact-blocks { gap: 20px; margin-bottom: 40px; }
    .contact-card { padding: 25px 20px; max-width: 100%; }
    
    /* Робимо посилання в стовпчик на телефоні */
    .footer-links { flex-direction: column; gap: 15px; margin-bottom: 30px; }
    .footer-links .dot { display: none; } /* Ховаємо крапочку на телефоні */
}

/* --- АНІМАЦІЯ СТРИБКА ІКОНКИ КОШИКА --- */
@keyframes bounceCart {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.15); }
}
.cart-bounce {
    animation: bounceCart 0.4s ease-in-out;
}

/* --- ПРЕМІУМ ДИЗАЙН КОШИКА --- */
/* --- ПРЕМІУМ ДИЗАЙН КОШИКА (GPU Апаратне прискорення) --- */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden; /* Блокує невидимий елемент, щоб не вантажив пам'ять */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity; /* Підказує телефону підготуватися до анімації */
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0; right: 0; /* Притискаємо до краю назавжди */
    width: 420px;
    max-width: 100%;
    height: 100%; 
    height: 100dvh; /* Динамічна висота екрану */
    background: #F5F5F7 !important;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(255, 71, 126, 0.15);
    
    /* МАГІЯ ШВИДКОСТІ: Використовуємо 3D зсув замість right */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform; /* Змушує відеокарту тримати кошик у пам'яті */
    
    display: flex;
    flex-direction: column;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
}

.cart-panel.open {
    /* Кошик виїжджає на екран за рахунок відеокарти (0 лагів) */
    transform: translateX(0); 
}

/* Шапка кошика */
.cart-header {
    padding: 25px;
    background: var(--primary-light); /* Твій світло-рожевий колір */
    border-top-left-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 71, 126, 0.1);
}
.cart-header h2 {
    font-size: 22px;
    color: var(--primary); /* Твій основний рожевий */
    font-weight: 800;
    margin: 0;
}
.close-cart {
    background: white;
    border: 1px solid rgba(255, 71, 126, 0.2);
    color: var(--primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.1);
    display: flex; justify-content: center; align-items: center;
}
.close-cart:hover { 
    background: var(--primary); 
    color: white; 
    transform: rotate(90deg); /* Крутий ефект при наведенні */
}

/* Товари в кошику */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}
.cart-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 126, 0.08);
    border-color: rgba(255, 71, 126, 0.2);
}
.cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-item-info h4 { font-size: 15px; margin-bottom: 5px; color: var(--text-dark); line-height: 1.3; }
.cart-item-info p { font-size: 13px; color: var(--text-gray); margin-bottom: 3px; }
.cart-item-info .price { font-weight: 800; color: var(--primary); margin-top: 8px; font-size: 17px; }

/* Кнопка видалення товару */
.remove-item {
    position: absolute;
    right: 15px; top: 15px;
    background: rgba(255, 71, 126, 0.1); 
    border: none;
    color: var(--primary); 
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.remove-item:hover {
    background: var(--primary);
    color: white;
}

/* Разом до оплати */
.cart-total-box {
    padding: 20px 25px;
    background: var(--primary-light);
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 800; font-size: 20px; color: var(--primary);
    border-top: 1px solid rgba(255, 71, 126, 0.1);
}

/* Блок з інпутами та кнопками */
.checkout-section {
    padding: 20px 25px 25px;
    background: #ffffff;
    border-bottom-left-radius: 20px;
}
.checkout-section .info-text {
    font-size: 13px; color: var(--text-gray); margin-bottom: 10px; line-height: 1.4;
}
.checkout-section .alert-text {
    color: #e17055; font-weight: bold;
}

.checkout-input {
    width: 100%; padding: 14px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.checkout-input:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.1); /* Гарне рожеве світіння при кліку */
}

/* Кнопки месенджерів */
.order-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.order-btn {
    padding: 16px; border: none; border-radius: 12px;
    color: #fff; font-weight: 800; font-size: 16px;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.tg-btn { 
    background: linear-gradient(135deg, #0088cc, #00aaff); 
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3); 
} 
.tg-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4); }
.vi-btn { 
    background: linear-gradient(135deg, #7360f2, #9181f4); 
    box-shadow: 0 4px 15px rgba(115, 96, 242, 0.3); 
} 
.vi-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(115, 96, 242, 0.4); }

/* Реквізити ФОП */
.fop-details {
    margin-top: 15px; margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    overflow: hidden;
}
.fop-details summary {
    padding: 14px 15px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-dark);
    list-style: none; /* Ховаємо стандартну стрілочку */
}
.fop-details summary::-webkit-details-marker { display: none; }
.fop-content {
    padding: 15px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    background: white;
}

/* ГОЛОВНА ПАНЕЛЬ */
/* ГОЛОВНА ПАНЕЛЬ КОШИКА */
/* ГОЛОВНА ПАНЕЛЬ КОШИКА (ВІДНОВЛЕНО) */
.cart-panel {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%; 
    height: 100dvh; 
    background: #F5F5F7 !important;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(255, 71, 126, 0.15);
    
    /* САМЕ ЦІ РЯДКИ ЗНИКЛИ: вони ховають кошик за екран */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    
    display: flex;
    flex-direction: column;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    overscroll-behavior: contain; 
}

.cart-panel.open {
    transform: translateX(0); 
}

/* ОБЛАСТЬ СКРОЛУ */
.cart-scrollable-content {
    flex: 1 1 auto; /* Дозволяємо області адаптуватися */
    min-height: 0; /* КРИТИЧНИЙ ХАК: Без цього flexbox блокує скрол на телефонах */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch; /* Вмикає фірмовий ідеально плавний скрол на iPhone/iPad */
}

.cart-header {
    background: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5ea;
}

/* ОБЛАСТЬ СКРОЛУ */
.cart-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

/* КАРТКА ТОВАРУ */
.cart-item-card {
    background: #fff;
    border-radius: 18px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 14px; color: #1c1c1e; margin-bottom: 2px; }
.cart-item-meta { font-size: 11px; color: #8e8e93; }
.cart-item-price { font-weight: 800; font-size: 16px; margin-top: 4px; color: #000; }

/* ФОРМА ВВОДУ */
.checkout-form-mono {
    margin-top: 20px;
}
.section-title { font-size: 14px; font-weight: 700; color: #8e8e93; text-transform: uppercase; margin-bottom: 12px; }

.mono-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 15px;
    outline: none;
}

.delivery-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.delivery-option { cursor: pointer; }
.delivery-option input { display: none; }
.custom-radio {
    display: block;
    background: #fff;
    border: 1px solid #e5e5ea;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.delivery-option input:checked + .custom-radio {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ФІКСОВАНИЙ НИЗ */
.cart-footer-fixed {
    background: #fff;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.total-label { font-size: 14px; color: #8e8e93; font-weight: 600; }
.total-price { font-size: 24px; font-weight: 900; color: #000; }

.order-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mono-btn {
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-tg { background: #000; } /* Monobank style - чорний */
.btn-vi { background: #7360f2; }

.mono-hint {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
}
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 600px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-content { margin: 0; width: 100%; height: 100%; border-radius: 0; }
}

.modal-image-container img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.current-price { font-size: 28px; font-weight: 800; color: #000; }

.variation-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.v-chip {
    padding: 8px 16px;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.v-chip.active { background: #000; color: #fff; border-color: #000; }

.qty-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f2f2f7;
    width: fit-content;
    padding: 5px;
    border-radius: 14px;
}

.qty-btn {
    width: 40px; height: 40px;
    border: none; background: #fff;
    border-radius: 10px; font-size: 20px;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.total-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e5e5ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.buy-btn-big {
    width: 100%;
    background: #FF477E;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
}

/* --- СТИЛЬНИЙ РЯДОК ПОШУКУ (ГЛАСМОРФІЗМ) --- */
.search-container {
    max-width: 550px;
    margin: 0 auto 40px auto;
    padding: 0 10px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 71, 126, 0.25);
    border-radius: 20px;
    padding: 6px 18px;
    box-shadow: 0 8px 32px rgba(255, 107, 139, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ефект коли клієнт натискає на пошук */
.search-wrapper:focus-within {
    border-color: rgba(255, 71, 126, 0.6);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.12);
    background: #ffffff;
    transform: translateY(-2px); /* Рядок злегка підстрибує */
}

#search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    font-weight: 600;
}

#search-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
    font-weight: 500;
}

/* Кнопка стерти пошук (хрестик) */
.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    display: none; /* З'являється тільки коли введено текст */
    transition: color 0.2s;
}
.clear-search-btn:hover {
    color: var(--primary);
}
/* --- ОПТИМІЗАЦІЯ ДЛЯ ТЕЛЕФОНІВ (АНТИ-ЛАГ) --- */
@media (max-width: 768px) {
    /* 1. Вимикаємо важку анімацію фону (залишаємо просто красивий статичний градієнт) */
    body {
        animation: none !important;
        background-size: 100% 100% !important;
    }
    /* Відгуки на телефоні */
    .review-card img { height: 85px; } /* Робимо трохи меншими */
    .marquee-track { gap: 15px; }
    /* 2. Зменшуємо силу розмиття "скла", щоб відеокарта телефону не "задихалася" */
    .product-card, 
    .contact-card, 
    .search-wrapper {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        /* Робимо фон трохи щільнішим, щоб компенсувати менше розмиття */
        background: rgba(255, 255, 255, 0.95) !important; 
    }
    
    /* 3. Вимикаємо ефект підстрибування при скролі (hover на телефонах часто залипає) */
    .product-card:hover {
        transform: none !important;
        box-shadow: 0 12px 32px rgba(255, 107, 139, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
        border-color: rgba(255, 71, 126, 0.25) !important;
    }
}
/* Вимикаємо розмиття фону під кошиком на телефоні (головна причина лагів при відкритті) */
    .cart-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .reviews-section {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.reviews-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Ефект розмиття по краях екрану (створює ілюзію нескінченності) */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 25px;
    width: max-content;
    /* Анімація триває 20 секунд. Якщо буде зашвидко — змініть 20s на 30s */
    animation: scrollMarquee 20s linear infinite;
}

/* При наведенні стрічка зупиняється, щоб зручно було читати */
.marquee-track:hover {
    animation-play-state: paused;
}

.review-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 126, 0.2);
    box-shadow: 0 10px 25px rgba(255, 107, 139, 0.08);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Коли наводимо мишку — відгук підстрибує і збільшується */
.review-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.18);
    border-color: rgba(255, 71, 126, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.review-card img {
    height: 110px; /* Оптимальна висота для скріншотів коментарів */
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    /* Прокручуємо рівно половину (оригінали), щоб дублікати стали на їх місце непомітно */
    100% { transform: translateX(calc(-50% - 12.5px)); } 
}
/* --- СТИЛІ ВІКНА LIGHTBOX ДЛЯ ВІДГУКІВ --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Наш фірмовий ефект темного скла */
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Поверх всього! */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: zoom-out; /* Підказує клієнту, що клік закриє фото */
}

/* Стан, коли Lightbox відкритий (додається через JS) */
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    /* Анімація появи великого фото */
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

/* Велика кнопка Хрестик для мобільних */
.close-lightbox {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255, 71, 126, 0.3);
    color: #FF477E;
}
/* --- ПАГІНАЦІЯ (ПОДІЛ НА СТОРІНКИ) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    width: 100%;
}

.page-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 71, 126, 0.2);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-3px);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(255, 71, 126, 0.3);
    transform: scale(1.05);
}
/* --- ВІДЕО КАРУСЕЛЬ (Стиль TikTok) --- */
.video-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.video-carousel-wrapper {
    position: relative;
    max-width: 1000px; /* Широкий контейнер для 3 відео */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* Доріжка скролу */
.video-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Магнітний скрол */
    scroll-behavior: smooth;
    padding: 20px 10px; /* Відступи для тіней, щоб вони не обрізались */
    /* Ховаємо негарний повзунок скролу в різних браузерах */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.video-track::-webkit-scrollbar {
    display: none; 
}

/* Рамочка-скло для кожного відео */
/* --- ОНОВЛЕНИЙ СЛАЙД ВІДЕО З ПУЛЬСАЦІЄЮ --- */
.video-slide {
    flex: 0 0 calc(100% / 3 - 14px); /* На комп'ютері показуємо рівно 3 відео */
    scroll-snap-align: center; /* Центрує відео при гортанні */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 71, 126, 0.3);
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(255, 107, 139, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    
    /* МАГІЯ ПУЛЬСАЦІЇ: Анімація триває 3 секунди, рухається хвилеподібно та безкінечно */
    animation: videoGlowPulse 3s ease-in-out infinite;
    will-change: transform, box-shadow, border-color; 
}

/* При наведенні мишки збільшення плавно зупиняє пульсацію, фіксуючи яскраве сяйво */
.video-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(255, 71, 126, 0.2) !important;
    border-color: rgba(255, 71, 126, 0.7) !important;
    animation-play-state: paused; /* Зупиняє пульс, коли клієнт взаємодіє з відео */
}

/* ЕЛЕГАНТНА ПУЛЬСАЦІЯ РОЖЕВОГО СЯЙВА (Ефект "дихання") */
@keyframes videoGlowPulse {
    0% {
        box-shadow: 0 15px 35px rgba(255, 107, 139, 0.06);
        border-color: rgba(255, 71, 126, 0.25);
    }
    50% {
        /* У піку анімації рамочка стає чіткішою, а рожева тінь навколо м'яко розширюється */
        box-shadow: 0 15px 40px rgba(255, 71, 126, 0.18);
        border-color: rgba(255, 71, 126, 0.55);
    }
    100% {
        box-shadow: 0 15px 35px rgba(255, 107, 139, 0.06);
        border-color: rgba(255, 71, 126, 0.25);
    }
}

/* Саме відео в пропорціях TikTok */
.video-slide video {
    width: 100%;
    aspect-ratio: 9/16; /* Ідеальний вертикальний розмір телефону */
    object-fit: cover;
    border-radius: 18px;
    display: block;
    background-color: rgba(255, 240, 243, 0.5);
}

/* Кнопки навігації (Стрілочки) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 71, 126, 0.2);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Робимо так, щоб було зрозуміло, що відео можна клікати */
.video-slide video {
    cursor: pointer;
}

@media (max-width: 600px) {
    .video-slide { 
        /* Відео займає 80% екрану, щоб з боків ідеально виглядали сусіди */
        flex: 0 0 80%; 
        /* МАГІЯ СТАБІЛЬНОСТІ: Жорстка зупинка на кожному відео (не дає пролетіти повз) */
        scroll-snap-stop: always; 
    } 
    .prev-btn, .next-btn { display: none; } 
    
    /* Ідеальне центрування за рахунок відступів по 10% з країв */
    .video-track { 
        padding: 15px 10%; 
        gap: 15px; 
        scroll-padding: 0 10%; 
    }
}
/* --- ПРЕМІУМ ВХІДНИЙ ЕКРАН (EDITORIAL INTRO GATE) --- */
.intro-gate {
    position: relative;
    width: 100%;
    height: 100vh; /* Займає рівно 100% висоти екрану при відкритті */
    height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1e1e1e;
}

/* Мозаїчна сітка з картинок */
.intro-grid-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 вертикальні колони на ПК */
    gap: 0;
}

.intro-grid-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Ефект легкого наближення картинок при завантаженні */
    animation: introFadeZoom 10s ease-out forwards;
    opacity: 0.85;
}

/* Робимо асиметричний час старту для кожної картинки, щоб сітка "жила" */
.intro-grid-item.item-1 { animation-delay: 0s; }
.intro-grid-item.item-2 { animation-delay: 0.5s; }
.intro-grid-item.item-3 { animation-delay: 0.2s; }
.intro-grid-item.item-4 { animation-delay: 0.7s; }

/* Напівпрозорий дорогий градієнт-вуаль поверх картинок */
.intro-gate-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(255, 71, 126, 0.2) 100%);
    backdrop-filter: blur(2px); /* Легке-легке преміальне розмиття */
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

/* Контент у центрі */
.intro-gate-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 850px;
}

/* Підзаголовок над брендом */
.brand-sub-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 6px; /* Великі розкішні відступи між літерами */
    display: block;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Головний бренд-напис */
.brand-main-title {
    font-size: 68px;
    font-weight: 300; /* Тонкий, елегантний шрифт */
    color: #FFFFFF;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', Georgia, serif; /* Дорогий журнальний стиль */
}

.brand-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Люксова велика кнопка */
.intro-gate-btn {
    background: #FFFFFF;
    color: #000000;
    padding: 18px 45px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.intro-gate-btn:hover {
    background: var(--primary); /* При наведенні плавно заливається вашим фірмовим рожевим */
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.4);
}

/* Ефект плавного наближення картинок */
@keyframes introFadeZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* --- АДАПТАЦІЯ СІТКИ ДЛЯ ТЕЛЕФОНІВ (АНТИ-ЛАГ) --- */
@media (max-width: 768px) {
    .intro-grid-bg {
        /* На телефоні 4 колонки в ряд будуть занадто вузькими, тому робимо красивий квадратний колаж 2х2 */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .intro-grid-item {
        animation: none !important; /* Повністю вимикаємо рух картинок на телефонах, щоб не було лагів */
    }
    .brand-main-title {
        font-size: 42px; /* Зменшуємо напис для екрану смартфона */
        letter-spacing: 2px;
    }
    .brand-sub-title {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .brand-description {
        font-size: 15px;
        margin-bottom: 35px;
    }
    .intro-gate-btn {
        padding: 16px 35px;
        width: 85%; /* Кнопка зручна під великий палець */
    }
}
/* --- ПРЕМІУМ ВХІДНИЙ ЕКРАН "ПАЗЛ" (EDITORIAL PUZZLE GRID) --- */
/* --- ЛЮКС ЗАСТАВКА-ПАЗЛ (ОДНЕ ФОТО НА ВСІ ЧАСТИНИ) --- */
.intro-puzzle-gate {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 9999; /* Поверх абсолютно всього сайту */
    overflow: hidden;
    background: #0d0d0d;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease;
}

/* Клас від'їзду завіси вгору */
.intro-puzzle-gate.hidden-gate {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* --- СІТКА ПАЗЛУ (ОПТИМІЗОВАНА БЕЗ РОЗТЯГУВАНЬ) --- */
.puzzle-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Налаштування для кожної частинки */
.puzzle-piece {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%; /* Кожна частинка займає весь екран */
    background-image: url('alla.png');
    background-size: cover; /* МАГІЯ ТУТ: Картинка більше ніколи не розтягнеться! */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: transform, opacity;
}

/* Віртуальні ножиці: розрізаємо ідеальну картинку на 4 рівні частини */
.puzzle-piece.item-1 { clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%); }
.puzzle-piece.item-2 { clip-path: polygon(50% 0, 100% 0, 100% 50%, 50% 50%); }
.puzzle-piece.item-3 { clip-path: polygon(0 50%, 50% 50%, 50% 100%, 0 100%); }
.puzzle-piece.item-4 { clip-path: polygon(50% 50%, 100% 50%, 100% 100%, 50% 100%); }

/* --- МАКСИМАЛЬНО ПЛАВНІ АНІМАЦІЇ ЗЛІТАННЯ --- */
/* Використовуємо м'який cubic-bezier для ефекту кінематографічності */
.puzzle-piece.item-1 {
    animation: glideInTopLeft 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.1s;
}
.puzzle-piece.item-2 {
    animation: glideInTopRight 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.2s;
}
.puzzle-piece.item-3 {
    animation: glideInBottomLeft 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}
.puzzle-piece.item-4 {
    animation: glideInBottomRight 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
}

/* Рух зроблено через % та з легким зменшенням масштабу (scale), щоб телефон не лагав */
@keyframes glideInTopLeft {
    0% { transform: translate(-4%, -4%) scale(1.03); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes glideInTopRight {
    0% { transform: translate(4%, -4%) scale(1.03); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes glideInBottomLeft {
    0% { transform: translate(-4%, 4%) scale(1.03); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes glideInBottomRight {
    0% { transform: translate(4%, 4%) scale(1.03); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* --- КАТЕГОРІЇ ЗНИЗУ В РЯДОК (ЗІ СВІТІННЯМ) --- */
.intro-categories-row {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 10; /* Підняли шар, щоб точно було поверх усього */
    opacity: 0;
    /* Використовуємо НОВУ анімацію саме для цього рядка */
    animation: fadeInRow 0.8s ease-out forwards;
    animation-delay: 1.5s; 
}

/* Окрема плавна анімація для категорій (їдуть рівно знизу) */
@keyframes fadeInRow {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.glow-category {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 71, 126, 0.7), 0 0 30px rgba(255, 71, 126, 0.3);
}

.glow-category:hover {
    color: #FF477E;
    text-shadow: 0 0 20px rgba(255, 71, 126, 1), 0 0 40px rgba(255, 71, 126, 0.8);
    transform: translateY(-2px);
}

/* --- АДАПТАЦІЯ ДЛЯ ТЕЛЕФОНІВ (З ВЕРТИКАЛЬНИМ ФОТО ТА ПІДСВІТКОЮ) --- */
@media (max-width: 768px) {
    
    /* Підміняємо картинку спеціально для вузьких екранів */
    .puzzle-piece {
        background-image: url('dis.png'); 
    }

    /* Вирівнюємо контент по центру (напис + кнопка один під одним) */
    .intro-content {
        position: absolute;
        top: 62%; /* Ідеальна висота на екрані телефону */
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        z-index: 3;
    }

    /* СТИЛЬ НАПИСУ "ТИЦЯЙ" */
    /* ОНОВЛЕНИЙ ЕЛІТНИЙ НАПИС "ТИЦЯЙ" */
    .intro-btn-hint {
        background: linear-gradient(135deg, #FF477E 0%, #FF6B8B 100%); /* Соковитий рожевий градієнт */
        color: #FFFFFF !important; /* Кришталево білий текст */
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 6px 18px;
        border-radius: 30px; /* Красива закруглена капсула */
        margin-bottom: 12px; /* Відступ до кнопки */
        display: inline-block;
        /* Об'ємна преміальна тінь */
        box-shadow: 0 6px 20px rgba(255, 71, 126, 0.4);
        /* Плавне легке погойдування (працює через відеокарту, без лагів) */
        animation: hintBounce 2s infinite ease-in-out;
    }

    @keyframes hintBounce {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-5px) scale(1.03); } /* Легенько підстрибує та збільшується */
    }

    /* РОЗКІШНА РОЖЕВА КНОПКА ДЛЯ ТЕЛЕФОНУ */
    .intro-btn {
        background: linear-gradient(135deg, #FF477E 0%, #FF6B8B 100%) !important; /* Соковитий преміальний градієнт */
        color: #FFFFFF !important; /* Білий чіткий текст */
        padding: 14px 35px;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.5px;
        border-radius: 40px;
        border: none !important;
        /* М'яке об'ємне рожеве світіння */
        box-shadow: 0 8px 25px rgba(255, 71, 126, 0.5) !important;
        text-decoration: none;
        transition: transform 0.2s ease;
    }
    
    .intro-btn:active {
        transform: scale(0.96); /* Кнопка приємно проминається під пальцем при натисканні */
    }

    /* Налаштування для категорій знизу залишаються як були */
    .intro-categories-row {
        bottom: 0;
        padding: 40px 10px 25px 10px;
        gap: 12px;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 100%);
    }
    .glow-category {
        font-size: 11px;
        letter-spacing: 1px;
        font-weight: 700;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.9), 0 0 15px rgba(255, 71, 126, 1);
    }
}

/* Контейнер для кнопки (чітко по центру під текстом, що на фото) */
.intro-content {
    position: absolute;
    top: 66%; /* Стає ідеально під логотипом вашого фото */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    animation: fadeInButton 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes fadeInButton {
    0% { opacity: 0; transform: translate(-50%, -30%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

.intro-btn {
    background: #FFFFFF;
    color: #000000;
    padding: 16px 45px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}
.intro-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.45);
}

/* Анти-лаг оптимізація для телефонів (проявлення без зсувів процесора) */
@media (max-width: 768px) {
    .puzzle-piece.item-1, .puzzle-piece.item-2, .puzzle-piece.item-3, .puzzle-piece.item-4 {
        animation: fadeInMobile 0.8s ease-out forwards !important;
    }
    .puzzle-piece.item-1 { animation-delay: 0.1s !important; }
    .puzzle-piece.item-2 { animation-delay: 0.25s !important; }
    .puzzle-piece.item-3 { animation-delay: 0.18s !important; }
    .puzzle-piece.item-4 { animation-delay: 0.32s !important; }

    @keyframes fadeInMobile {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
    .puzzle-category {
        font-size: 13px;
        padding: 8px 18px;
        letter-spacing: 2px;
    }
    .intro-content {
        top: 70%; /* Зсув кнопки під мобільні екрани */
    }
}
/* --- ПРЕМІУМ ЗАГОЛОВОК КАТАЛОГУ --- */
.catalog-title-wrapper {
    text-align: center;
    margin: 40px 0 30px 0;
}

.pulse-title {
    display: inline-block;
    padding: 12px 35px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 240, 243, 0.7); /* Ніжний рожевий фон */
    border: 2px solid rgba(255, 71, 126, 0.4); /* Рожева рамка */
    border-radius: 40px;
    /* Ефект плавного дихання (пульсації) */
    animation: titlePulse 3s infinite ease-in-out;
}

@keyframes titlePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 126, 0.2); transform: scale(1); border-color: rgba(255, 71, 126, 0.4); }
    50% { box-shadow: 0 0 20px 0 rgba(255, 71, 126, 0.5); transform: scale(1.02); border-color: rgba(255, 71, 126, 0.8); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 126, 0.2); transform: scale(1); border-color: rgba(255, 71, 126, 0.4); }
}

@media (max-width: 768px) {
    .pulse-title {
        font-size: 20px;
        padding: 10px 25px;
    }
}

/* --- ЕФЕКТ ЗБІЛЬШЕННЯ ВІДЕО ПРИ ВІДТВОРЕННІ --- */
/* Цей клас ми будемо додавати через JavaScript, коли відео грає зі звуком */
.video-slide.is-playing {
    transform: scale(1.05); /* Збільшуємо відео */
    z-index: 10; /* Піднімаємо його над іншими */
    box-shadow: 0 25px 50px rgba(255, 71, 126, 0.3) !important;
    border-color: var(--primary) !important;
}

/* Робимо перехід масштабування дуже плавним */
.video-slide {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* --- ПРЕМІУМ БЛОК КОНТАКТІВ (КОМПАКТНИЙ ТА НІЖНИЙ) --- */
.modal-contact-box {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #fff0f3 0%, #ffffff 100%);
    border: 1px solid rgba(255, 71, 126, 0.15);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.05); /* Дуже м'яка тінь замість агресивного світіння */
}

.modal-contact-text {
    font-size: 13px;
    color: #636E72;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-contact-text strong {
    color: #2D3436;
}

.modal-contact-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Кнопки тепер однакового розміру і акуратні */
.contact-link {
    flex: 1;
    max-width: 140px;
    padding: 10px 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important; /* Прибираємо будь-які підкреслення */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none; /* Прибрали жорсткі рамки */
}

.tg-link { background: #E1F5FE; color: #0288D1; }
.tg-link:hover { background: #039BE5; color: white; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(3, 155, 229, 0.2); }

.vb-link { background: #F3E5F5; color: #7B1FA2; }
.vb-link:hover { background: #8E24AA; color: white; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(142, 36, 170, 0.2); }

/* Виправляємо чорну рамку на тексті */
.modal-contact-hint {
    font-size: 12px;
    color: #A0A0A0;
    text-decoration: none !important; /* Жодних підкреслень від браузера */
    border-bottom: 1px dashed #A0A0A0;
    padding-bottom: 2px;
    background: none;
    outline: none;
}
.modal-contact-hint:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Ідеально для телефонів */
@media (max-width: 480px) {
    .modal-contact-box { padding: 12px; margin: 15px 0; }
    .modal-contact-links { gap: 8px; }
    .contact-link { font-size: 12px; padding: 8px 0; max-width: 120px; }
    .modal-contact-text { font-size: 12px; margin-bottom: 10px; }
}
/* --- ПРЕМІАЛЬНЕ ВІДОБРАЖЕННЯ РОЗМІРУ В МОДАЛЦІ --- */
#modal-size-value {
    display: inline-block;
    background: linear-gradient(135deg, #FF477E 0%, #FF6B8B 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-left: 5px;
    /* М'яка тінь, яка плавно розширюється і зникає */
    animation: pulseSizeBadge 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseSizeBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 126, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 71, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 126, 0);
    }
}
/* =======================================================
   🚀 АНТИ-ЛАГ ОПТИМІЗАЦІЯ ДЛЯ ТЕЛЕФОНІВ (МАКСИМАЛЬНА ПЛАВНІСТЬ)
   ======================================================= */
/* =======================================================
   🚀 АНТИ-ЛАГ ОПТИМІЗАЦІЯ ДЛЯ ТЕЛЕФОНІВ (GPU ACCELERATION)
   ======================================================= */
@media (max-width: 768px) {
    
    /* 1. Повністю вимикаємо важкі фонові анімації екрану */
    body {
        animation: none !important;
        background-size: 100% 100% !important;
    }

    /* 2. Зменшуємо силу розмиття "скла" в 4 рази. 
       20px розмиття плавить бюджетні смартфони. 5px виглядає так само гарно, але не лагає. */
    .product-card, 
    .contact-card, 
    .search-wrapper,
    .cart-overlay,
    .modal-content,
    .info-page-wrap,
    .video-slide {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    /* 3. Вимикаємо важкі пульсації тіней і рамок */
    .modal-contact-box, 
    .pulse-title {
        animation: none !important; 
        box-shadow: 0 4px 10px rgba(255, 71, 126, 0.08) !important; 
        border-color: rgba(255, 71, 126, 0.2) !important;
    }

    /* 4. Замінюємо світіння розміру на легке дихання (через відеокарту) */
    #modal-size-value {
        animation: lightPulse 2s infinite ease-in-out !important;
        box-shadow: none !important;
    }
    
    @keyframes lightPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.06); } 
        100% { transform: scale(1); }
    }

    /* 5. GPU-ПРИСКОРЕННЯ (МАГІЯ): Примушуємо телефон використовувати відеокарту 
       для елементів, які рухаються (пазл, кошик, вікно товару) */
   .puzzle-piece {
        will-change: transform, opacity;
        -webkit-transform: translateZ(0); 
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .cart-panel,
    .custom-modal-box {
        will-change: transform, opacity;
        backface-visibility: hidden;
        /* ТУТ МИ ПРИБРАЛИ translateZ(0), щоб кошик та модалки могли нормально ховатися за екран! */
    }
    /* 6. Вимикаємо ефект "підстрибування" при наведенні (на телефоні нема мишки) */
    .contact-link:hover, .glow-category:hover, .intro-btn:hover, .product-card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}
/* --- ПРЕМІУМ ПОВІДОМЛЕННЯ В КОШИКУ --- */
.cart-notice {
    display: flex;
    align-items: flex-start; /* Вирівнювання по верхньому краю */
    gap: 15px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: fadeInNotice 0.4s ease-out forwards;
}

@keyframes fadeInNotice {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Красива кругла підкладка під іконку (лампочку/галочку) */
.notice-icon {
    font-size: 20px;
    background: #ffffff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    flex-shrink: 0; /* Щоб кружечок не сплющувався на телефоні */
}

/* Дрібний текст-підказка знизу */
.notice-hint {
    display: block;
    font-size: 12px;
    color: #8e8e93;
    margin-top: 6px;
    font-style: italic; /* Легкий нахил для естетики */
}

/* --- РОЖЕВИЙ БЛОК (Нова Пошта) --- */
.warning-notice {
    background: linear-gradient(135deg, #FFF0F3 0%, #ffffff 100%);
    color: #2D3436;
    border: 1px solid rgba(255, 71, 126, 0.15);
    /* Головна фішка: товста рожева лінія зліва */
    border-left: 5px solid #FF477E; 
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.08);
}
.warning-notice strong {
    color: #FF477E; /* Виділяємо головні слова рожевим */
}

/* --- ЗЕЛЕНИЙ БЛОК (Укрпошта) --- */
.success-notice {
    background: linear-gradient(135deg, #e8f8f5 0%, #ffffff 100%);
    color: #2D3436;
    border: 1px solid rgba(39, 174, 96, 0.15);
    /* Головна фішка: товста зелена лінія зліва */
    border-left: 5px solid #27ae60; 
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.08);
}
.success-notice strong {
    color: #27ae60; /* Виділяємо головні слова зеленим */
}

/* Адаптація для вузьких телефонів */
@media (max-width: 480px) {
    .cart-notice {
        padding: 14px 16px;
        gap: 12px;
        font-size: 13px;
    }
    .notice-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* --- КНОПКА "ЯК ЗАМОВИТИ" В КОШИКУ --- */
.how-to-order-btn {
    background: rgba(255, 71, 126, 0.08);
    color: #FF477E;
    border: 1px solid rgba(255, 71, 126, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}
.how-to-order-btn:hover {
    background: rgba(255, 71, 126, 0.15);
    transform: translateY(-2px);
}

/* --- ОВЕРЛЕЙ МОДАЛКИ (РОЗМИТТЯ ФОНУ) --- */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px); /* Робить фон позаду розмитим */
    z-index: 9999; /* Поверх усього сайту */
    display: none; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* --- САМО ВІКНО --- */
.custom-modal-box {
    background: #ffffff;
    width: 92%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(255, 71, 126, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинна анімація */
}
.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0) scale(1);
}

/* Хрестик закриття */
.close-custom-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: #F1F2F6;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #636E72;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.close-custom-modal:hover { background: #FFDADA; color: #FF477E; }

/* Заголовок вікна */
.custom-modal-title {
    text-align: center;
    color: #2D3436;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
}

/* --- КРОКИ ІНСТРУКЦІЇ --- */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.howto-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #FAFAFA;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #F1F2F6;
    transition: transform 0.2s;
}
.howto-step:hover {
    transform: translateX(5px);
    border-color: rgba(255, 71, 126, 0.2);
    background: #FFF0F3;
}

/* Іконки кроків */
.step-icon {
    font-size: 22px;
    background: #ffffff;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

/* Текст кроків */
.step-text {
    font-size: 13px;
    color: #636E72;
    line-height: 1.5;
}
.step-text strong {
    display: block;
    color: #2D3436;
    font-size: 14.5px;
    margin-bottom: 4px;
}

/* Виділення про Укрпошту */
.highlight-green {
    color: #1e8449;
    font-weight: 700;
    background: #e8f8f5;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2px;
}
/* --- КНОПКА "ВСЕ ЗРОЗУМІЛО" --- */
.modal-understand-btn {
    background: linear-gradient(135deg, #FF477E 0%, #FF6B8B 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.3);
    transition: all 0.3s ease;
    margin-top: 15px;
}
.modal-understand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 71, 126, 0.4);
}
.modal-understand-btn:active {
    transform: translateY(2px); /* Ефект реального натискання */
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

/* =======================================================
   🍞 ГАРНІ СПОВІЩЕННЯ (TOAST NOTIFICATIONS)
   ======================================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999; /* Поверх абсолютно усього */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Щоб не блокувати кліки по сайту */
}

.custom-toast {
    min-width: 280px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    /* Початковий стан (сховано за екраном) */
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    pointer-events: auto; /* Сам тоаст можна клікати */
    border-left: 6px solid; /* Кольорова лінія збоку */
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Кольорові теми для різних подій */
.custom-toast.error { border-left-color: #FF4757; }
.custom-toast.success { border-left-color: #2ED573; }
.custom-toast.info { border-left-color: #2AABEE; } /* Колір Telegram/Viber */

.toast-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.toast-content { flex: 1; }

.toast-title {
    font-size: 15px;
    font-weight: 800;
    color: #2D3436;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #636E72;
    line-height: 1.4;
}

/* Ідеально для телефонів: виїжджають зверху по центру */
@media (max-width: 480px) {
    .toast-container {
        top: 20px; left: 50%; right: auto;
        transform: translateX(-50%);
        width: 90%;
        align-items: center;
    }
    .custom-toast {
        transform: translateY(-150%); /* Ховаємо вгору */
        width: 100%;
        max-width: 100%;
    }
    .custom-toast.show {
        transform: translateY(0);
    }
}

/* --- ГАЛЕРЕЯ ФОТО В МОДАЛЦІ --- */
.modal-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto; /* Дозволяє скролити мініатюри пальцем */
    padding-bottom: 5px;
}
.modal-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.modal-thumb:hover, .modal-thumb.active {
    border-color: #FF477E;
    transform: translateY(-3px);
    opacity: 1;
}
/* Ховаємо скролбар для краси */
.modal-thumbs::-webkit-scrollbar { display: none; }