@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

:root {
    --brand-blue: #135084;      /* Фірмовий синій */
    --bg-main: #F9FAFB;         /* Світло-сірий фон сайту */
    --text-black: #171616;      /* Глибокий чорний колір */
    --gray-border: #E5E7EB;     /* Сірий для тонких ліній */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-black);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   ГЛОБАЛЬНИЙ КОНТЕЙНЕР
   ========================================================================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ==========================================================================
   ОСНОВНИЙ БЛОК ХЕДЕРА
   ========================================================================== */
.main-header {
    background: #FFFFFF;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: -0.01em;
    line-height: 1;
}

.header-search {
    flex: 1;
    max-width: 460px;
    margin: 0 30px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 44px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    background-color: var(--bg-main);
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: var(--text-black);
    outline: none;
    transition: border-color 0.2s;
}

.search-wrapper input:focus {
    border-color: var(--brand-blue);
    background-color: #FFFFFF;
}

.search-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-black);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, stroke 0.2s;
}

.header-link svg {
    color: var(--text-black);
    transition: transform 0.2s;
}

.header-link:hover {
    color: var(--brand-blue);
}

.header-link:hover svg {
    color: var(--brand-blue);
    transform: translateY(-1px);
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-black);
    display: flex;
    align-items: center;
    padding: 4px;
    margin-left: 6px;
    transition: color 0.2s;
}

.burger-menu:hover {
    color: var(--brand-blue);
}

/* ==========================================================================
   ГОЛОВНИЙ БАНЕР (АДАПТИВНИЙ, ГОТОВИЙ ДО СЛАЙДЕРА)
   ========================================================================== */
.hero-section {
    background-color: #f8f9fa; /* Колір заливки лівої частини (можеш змінити під свій фон крему) */
    width: 100%;
}

.hero-container {
    max-width: 1440px;      /* Обмежувач ширини */
    margin: 0 auto;         /* Центрування по екрану */
    padding: 120px 40px;    /* Внутрішні відступи */
    width: 100%;
    min-height: 500px;      /* Фіксована висота для майбутнього слайдера */
    display: flex;
    align-items: center;
    
    /* Фон тримається всередині контейнера і нікуди не тікає */
    background-image: url('bg-cream.jpg');
    background-repeat: no-repeat;
    background-position: right center; /* Притискаємо до правого краю контейнера */
    background-size: auto 100%;        /* Картинка зберігає пропорції по висоті */
}

.hero-content {
    max-width: 540px;       /* Задаємо чітку ширину для тексту */
    width: 100%;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ГОЛОВНА КНОПКА */
.btn-primary {
    display: inline-block;
    background-color: var(--brand-blue);
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #0d3b63;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ==========================================================================
   СЕКЦІЯ КАТЕГОРІЙ (Обличчя, Тіло, Волосся...)
   ========================================================================== */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-main);
    position: relative;
}

.categories-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 140px;
    cursor: pointer;
}

.category-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    background-color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    text-align: center;
    transition: color 0.3s ease;
}

/* --- ЕФЕКТИ ПРИ НАВЕДЕННІ МИШКОЮ (HOVER) --- */
.category-item:hover .category-circle {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(19, 80, 132, 0.12);
}

.category-item:hover .category-circle img {
    transform: scale(1.08);
}

.category-item:hover .category-name {
    color: var(--brand-blue);
}

/* ==========================================================================
   СЕКЦІЯ ТОВАРІВ (ПОПУЛЯРНІ ЗАСОБИ)
   ========================================================================== */
.popular-products-section {
    padding: 20px 0 80px 0;
    background-color: var(--bg-main);
}

/* Шапка з назвою та стрілками */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-black);
    text-transform: uppercase; /* Робить всі літери великими */
    letter-spacing: 0.02em;
}

/* Стрілки слайдера */
.slider-arrows {
    display: flex;
    gap: 16px;
}

.arrow-btn {
    background: none;
    border: none;
    color: var(--text-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.arrow-btn:hover {
    color: var(--brand-blue);
}

/* Сітка карток */
.products-grid {
    display: grid;
    /* Створюємо рівно 5 колонок для 5 карток, як на макеті */
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
}

/* Сама картка товару */
.product-card {
    background: #FFFFFF;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    border-color: #d1d5db; /* Трішки темніша рамка при наведенні */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Легка тінь */
}

/* Контейнер картинки зі світінням */
.product-image-wrapper {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

/* Синє світіння (Магія CSS) */
.product-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    /* Радіальний градієнт, який від синього центру розчиняється в прозорий */
    background: radial-gradient(circle, rgba(19, 80, 132, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1; /* Світіння на задньому фоні */
}

.product-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Щоб баночки не обрізались */
    position: relative;
    z-index: 2; /* Картинка поверх світіння */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: translateY(-4px); /* Банка легенько "підстрибує" при наведенні */
}

/* Інформація про товар */
.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Змушує контент займати весь доступний простір, щоб кнопки були на одному рівні */
}

.product-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 4px;
}

.product-name {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280; /* Сірий колір для назви */
    margin-bottom: 16px;
    line-height: 1.4;
    flex-grow: 1; /* Вирівнює кнопки по нижньому краю, навіть якщо назва у два рядки */
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 16px;
}

/* Кнопка "Додати до кошика" */
.btn-add-to-cart {
    width: 100%;
    background-color: transparent;
    color: var(--text-black);
    border: 1px solid var(--gray-border);
    padding: 10px 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card:hover .btn-add-to-cart {
    border-color: var(--text-black); /* Темніша рамка при наведенні на картку */
}

.btn-add-to-cart:hover {
    background-color: var(--text-black);
    color: #FFFFFF;
}

/* ==========================================================================
   СЕКЦІЯ АНАЛІЗАТОРУ СКЛАДУ
   ========================================================================== */
.analyzer-section {
    /* Зменшили: 20px зверху, 0 по боках, 60px знизу (перед футером) */
    padding: 20px 0 60px 0;              
    background-color: var(--bg-main);
}
.analyzer-container {
    display: flex;
    justify-content: center;             /* Вирівнюємо весь блок по центру екрана */
    align-items: center;                 /* Вирівнюємо іконку та текст по одній горизонтальній лінії */
    gap: 60px;                           /* Простір між іконкою та текстом */
    max-width: 900px;                    /* Звужуємо контейнер, щоб контент стояв компактно, як на макеті */
    margin: 0 auto;
}

.analyzer-image {
    flex-shrink: 0;
    width: 200px;                        /* Приблизна ширина іконки (можеш змінити під свій файл) */
}

.analyzer-image img {
    width: 100%;
    height: auto;
    display: block;
}

.analyzer-content {
    max-width: 480px;                    /* Обмежуємо ширину тексту */
}

.analyzer-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 16px;
    line-height: 1.3;
}

.analyzer-description {
    font-size: 16px;
    font-weight: 400;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 32px;
} 

/* ==========================================================================
   ФУТЕР (ПІДВАЛ САЙТУ)
   ========================================================================== */
.main-footer {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    padding: 70px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Для адаптивності на менших екранах */
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Перша колонка (Логотип) */
.brand-col {
    max-width: 340px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 24px;
}

.footer-logo-box {
    background-color: #FFFFFF;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px; /* Легке заокруглення білого квадратика */
}

.footer-logo-box img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85); /* Ледь прозорий білий для кращої читабельності */
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #FFFFFF;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Колонки з посиланнями */
.footer-heading {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Колонка з підпискою */
.subscribe-col {
    max-width: 320px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscribe-input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-input:focus {
    border-color: #FFFFFF;
}

.btn-subscribe {
    background-color: #FFFFFF;
    color: var(--brand-blue);
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-subscribe:hover {
    background-color: #f0f0f0;
}

.btn-subscribe:active {
    transform: scale(0.98);
}

/* ==========================================================================
   СТОРІНКА ТЕСТУВАННЯ (ГОЛОВНИЙ ЕКРАН) - ВИПРАВЛЕНИЙ
   ========================================================================== */
.test-hero-section {
    background-color: #F8F7F5; 
    width: 100%;
}

.test-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 40px;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    
    /* Фото дівчини тепер живе тут, як і крем на головній */
    background-image: url('bg-girl.jpg'); 
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%; /* Картинка буде ідеально по висоті 700px */
}

.test-hero-content {
    max-width: 540px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.test-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.test-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-black);
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-test {
    padding: 16px 48px;
    display: inline-block;
}

.test-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #D86565;
    line-height: 1.4;
    font-weight: 400;
}

/* ==========================================================================
   ПРОГРЕС-БАР
   ========================================================================== */
.progress-section {
    padding: 40px 0 20px 0;
    background-color: var(--bg-main);
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-text {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.progress-bar-bg {
    width: 100%;
    max-width: 500px;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

/* ==========================================================================
   КОНТЕНТ ПИТАННЯ (КАРТКИ)
   ========================================================================== */
.test-question-section {
    padding: 20px 0 80px 0;
    background-color: var(--bg-main);
    min-height: calc(100vh - 400px); /* Щоб футер не стрибав вгору */
}

.test-question-container {
    max-width: 900px; /* Звужуємо контейнер для компактності */
}

.question-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-blue);
    text-align: center;
    margin-bottom: 40px;
}

.question-cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.test-card {
    position: relative;
    width: 260px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.2s ease;
    border: 3px solid transparent; /* Місце для рамки виділення */
}

.test-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Затемнення знизу картки для читабельності тексту */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(19, 80, 132, 0.85), transparent);
}

.card-label {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    z-index: 2;
}

/* Ефект наведення на картку */
.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(19, 80, 132, 0.15);
}

/* Стан обраної картки (МАГІЯ) */
.test-card.selected {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(19, 80, 132, 0.25);
}

/* ==========================================================================
   КНОПКИ НАВІГАЦІЇ ТЕСТУ
   ========================================================================== */
.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-border);
    padding-top: 30px;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Кнопка "Скасувати/Назад" */
.btn-cancel {
    background-color: transparent;
    color: #6B7280;
    border: 1px solid var(--gray-border);
}

.btn-cancel:hover {
    color: var(--text-black);
    border-color: #9CA3AF;
}

/* Кнопка "Далі" */
.btn-next {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    border: 1px solid var(--brand-blue);
}

/* Стан кнопки, коли жодної відповіді не обрано (disabled) */
.btn-next:disabled {
    background-color: transparent;
    color: #9CA3AF;
    border-color: var(--gray-border);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-next:not(:disabled):hover {
    background-color: #0d3b63;
}

/* ==========================================================================
   СТИЛІ ДЛЯ ТЕКСТОВИХ ВАРІАНТІВ ВІДПОВІДЕЙ (КРОК 2, 3, 5, 7)
   ========================================================================== */
.options-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px; /* Робимо список компактним по центру */
    margin: 0 auto 50px auto;
}

.test-option-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #FFFFFF;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.test-option-row:hover {
    border-color: #9CA3AF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

/* Кружечок-індикатор зліва */
.option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
}

.option-desc-text {
    font-size: 13px;
    color: #6B7280;
}

/* Стан, коли варіант обрано (КЛІК) */
.test-option-row.active {
    border-color: var(--brand-blue);
    background-color: rgba(19, 80, 132, 0.02); /* Дуже легкий синюватий фон плашки */
    box-shadow: 0 8px 20px rgba(19, 80, 132, 0.06);
}

/* Зафарбовуємо кружечок всередині */
.test-option-row.active .option-checkbox {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
}

/* Біла крапка всередині синього кружечка */
.test-option-row.active .option-checkbox::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   КАРТКИ ВИЗНАЧЕННЯ ТИПУ ШКІРИ (КРОК 4)
   ========================================================================== */
.skin-type-container {
    max-width: 1100px; /* Трохи розширюємо для 4 карток в один ряд */
}

.skin-cards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.skin-card {
    background-color: #FFFFFF;
    border: 1px solid #BFDBFE; /* Ніжно-блакитна рамка, як на макеті */
    border-radius: 12px;
    width: 230px;
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.skin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(19, 80, 132, 0.08);
    border-color: #93C5FD;
}

/* Контейнер для самої ілюстрації */
.skin-card-img-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: #FFFFFF;
}

.skin-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Нижня плашка з назвою типу шкіри */
.skin-card-label {
    background-color: #3B82F6; /* Синьо-блакитний колір з макета */
    color: #FFFFFF;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease;
}

/* АКТИВНИЙ СТАН ПРИ КЛІКУ (ОБРАНО) */
.skin-card.active {
    border: 3px solid var(--brand-blue); /* Жирна фірмова рамка */
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(19, 80, 132, 0.15);
}

.skin-card.active .skin-card-label {
    background-color: var(--brand-blue); /* Темніший бренд-колір для виділення */
}

/* ==========================================================================
   ОНОВЛЕНІ КАРТКИ ТИПІВ ШКІРИ З ФОТО (КРОК 4)
   ========================================================================== */
.skin-type-container {
    max-width: 1040px; /* Ідеальна ширина для 4 карток */
}

.skin-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Рівно 4 колонки */
    gap: 20px;
    margin-bottom: 50px;
}

.skin-photo-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skin-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер для тексту внизу картки */
.skin-card-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
}

/* Основний заголовок типу шкіри */
.skin-photo-card .card-label {
    position: static; /* Скидаємо попередній абсолют */
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

/* Додатковий дрібний опис під назвою */
.card-sublabel {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.3;
}

/* Збільшуємо затемнення градієнта, щоб текст ідеально читався */
.skin-photo-card .card-overlay {
    height: 60%;
    background: linear-gradient(to top, rgba(19, 80, 132, 0.9) 0%, rgba(19, 80, 132, 0.4) 50%, transparent 100%);
}

/* Ефекти ховеру та виділення */
.skin-photo-card:hover, 
.skin-photo-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(19, 80, 132, 0.25);
}

.skin-photo-card.selected {
    border: 3px solid var(--brand-blue);
}

/* ==========================================================================
   ФІНАЛЬНИЙ МАКЕТ СТОРІНКИ РЕЗУЛЬТАТІВ
   ========================================================================== */
.results-page-wrapper {
    background-color: var(--bg-main);
    padding: 50px 0 80px 0;
}

.results-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-blue);
    text-align: center;
    margin-bottom: 40px;
}

/* Кнопки-дропдауни в один ряд */
.dropdowns-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.custom-dropdown {
    position: relative;
    width: 260px;
}

.dropdown-trigger {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #B4C6D8;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-blue);
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    border-color: var(--brand-blue);
}

.arrow-icon {
    transition: transform 0.2s;
}

/* Випадаюче вікно під кнопкою */
.dropdown-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid var(--brand-blue);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(19, 80, 132, 0.08);
    z-index: 10;
}

.dropdown-dropdown-content p {
    font-size: 14px;
    color: var(--text-black);
    margin-bottom: 8px;
    line-height: 1.4;
}
.dropdown-dropdown-content p:last-child {
    margin-bottom: 0;
}

/* Стан, коли віконце відкрите */
.custom-dropdown.active .dropdown-dropdown-content {
    display: block;
}
.custom-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

/* Заголовок категорії та стрілочки */
.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 12px;
}

.category-main-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 0.02em;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    background: transparent;
    border: none;
    color: var(--text-black);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.arrow-btn:hover {
    opacity: 0.6;
}

/* П'ЯТЬ КАРТОК В ОДИН РЯД */
.cosmo-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cosmo-product-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cosmo-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
}

/* Бокс для фото з синьою аурою */
.cosmo-img-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.cosmo-img-container img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* СИНЄ СВІТІННЯ НАВКОЛО ФЛАКОНІВ */
.blue-glow-aura {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cosmo-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cosmo-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 4px;
}

.cosmo-product-title {
    font-size: 13px;
    font-weight: 400;
    color: #4B5563;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
}

.cosmo-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 14px;
}

/* КНОПКА З КОНТУРОМ, ЯК НА МАКЕТІ */
.cosmo-btn-cart {
    width: 100%;
    background: transparent;
    border: 1px solid #374151;
    color: #374151;
    border-radius: 4px;
    padding: 8px 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cosmo-btn-cart:hover {
    background-color: #374151;
    color: #FFFFFF;
}