/* --- 1. SETTINGS & VARIABLES --- */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --success-color: #10b981;
    --secondary-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-light: #f1f5f9;
    --border-radius-lg: 30px;
    --border-radius-sm: 16px;
    --transition-speed: 0.4s;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.08);
}

body { 
    background-color: var(--secondary-bg); 
    font-family: 'Inter', -apple-system, sans-serif; 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

/* --- 2. ANIMATIONS --- */
@keyframes fadeInPage { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes fire-flicker {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

.modern-page-load { animation: fadeInPage 0.6s ease-out; }
.img-loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --- 3. NAVIGATION --- */
.desktop-nav { padding: 25px 0; }
.back-link-pc { 
    text-decoration: none; 
    color: var(--text-muted); 
    transition: 0.3s; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}
.back-link-pc:hover { color: var(--primary-color); transform: translateX(-5px); }

.back-btn-mobile { 
    position: fixed; top: 15px; left: 15px; z-index: 1050; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(10px); 
    border-radius: 50%; 
    width: 44px; height: 44px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: var(--shadow-sm); 
    color: #333; text-decoration: none; 
}

/* --- 4. MAIN PRODUCT CARD & GALLERY --- */

.main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transform: translateY(20px);
    opacity: 0; /* Приховуємо, поки не завантажиться */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Коли картинка завантажена */
.main-img.is-loaded {
    opacity: 1;
    transform: translateY(0); /* Плавний підйом вгору */
}

/* Стан контейнера під час завантаження */
.product-card-img-container.loading {
    background: #f0f0f0; /* Легкий сірий фон (скелетон) */
}


.product-modern-card { 
    background: white; 
    border-radius: var(--border-radius-lg); 
    box-shadow: var(--shadow-lg); 
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.04);
}
.gallery-block { padding: 40px; background: white; }
.main-img-wrap { 
    height: 500px; 
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background: #ffffff; 
    padding: 20px; 
    box-sizing: border-box; 
    position: relative;
}
.main-img-wrap img { 
    max-height: 100%; 
    max-width: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
    flex-shrink: 0; 
}
.main-img-wrap img.loaded { opacity: 1; display: block; }

/* Vendor Logo on Main Photo */
.vendor-badge-on-photo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}
.vendor-logo-inline {
    height: auto;
    width: auto;
    max-height: 60px; 
    max-width: 140px;
    filter: none !important; 
    display: block;
}

/* ====================== THUMBS GALLERY ====================== */
.thumbs-wrap {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-start;
}

@media (max-width: 991px) {
    .thumbs-wrap {
        grid-template-columns: repeat(auto-fit, minmax(75px, 75px));
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
        scroll-behavior: smooth;
    }
    .thumbs-wrap::-webkit-scrollbar { display: none; }
}

@media (min-width: 992px) {
    .thumbs-wrap {
        grid-template-columns: repeat(auto-fit, minmax(80px, 80px));
        max-height: 420px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px;
    }
    .thumbs-wrap::-webkit-scrollbar { width: 6px; }
    .thumbs-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
    .thumbs-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
}

.thumb-modern {
    width: 100%; 
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 6px;
    background: white;
    box-sizing: border-box;
}
.thumb-modern.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
    transform: scale(0.95);
}

/* --- 5. INFO BLOCK & PRICE --- */
.info-block { padding: 30px; background: #ffffff; height: 100%; border-left: 1px solid var(--border-light); }
.product-title { font-weight: 800; font-size: 2.4rem; line-height: 1.1; margin-bottom: 25px; color: var(--text-dark); }
.price-section { 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; 
    gap: 15px; padding: 25px; background: var(--secondary-bg); border-radius: 20px; 
}
.price-modern { font-size: 2.8rem; font-weight: 900; color: #1e293b; line-height: 1; white-space: nowrap; }
.price-modern small { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); margin-left: 4px; }

.status-badge { 
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; 
    border-radius: 50px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; white-space: nowrap;
}
.status-in-stock { background: #dcfce7; color: #166534; }
.status-order { background: #fee2e2; color: #991b1b; }

/* --- 6. BUTTONS & WISHLIST --- */
.buy-btn-modern { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); 
    color: white !important; border-radius: 20px; padding: 20px; 
    font-size: 1.25rem; font-weight: 700; text-decoration: none; 
    display: flex; align-items: center; justify-content: center; gap: 12px; 
    transition: 0.3s; border: none; width: 100%; 
    box-shadow: 0 10px 25px rgba(37,99,235,0.25); cursor: pointer;
}
.buy-btn-modern:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(37,99,235,0.35); }
.buy-btn-modern:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; transform: none; }

.wishlist-btn.static-btn {
    position: static; 
    width: 45px; height: 45px; 
    border-radius: 50%; 
    background: rgba(240, 240, 240, 0.9); 
    border: none; 
    display: flex; align-items: center; justify-content: center; 
    color: #807e7f; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.2s ease; cursor: pointer; flex-shrink: 0;
}
.wishlist-btn.static-btn i { font-size: 1.4rem; }
.wishlist-btn.static-btn:hover { transform: scale(1.1); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.wishlist-btn.static-btn.active { background: #ff4757; color: #fff; }
.wishlist-btn.active i { font-weight: 900; }

/* --- 7. TABS & TABLES --- */
.modern-tabs-nav { display: flex; background: var(--border-light); border-radius: 16px; padding: 5px; margin-bottom: 30px; }
.modern-tabs-nav .nav-link { 
    flex: 1; border: none !important; border-radius: 12px !important; 
    color: var(--text-muted); font-weight: 600; padding: 12px; background: none !important; 
}
.modern-tabs-nav .nav-link.active { color: var(--primary-color); background: white !important; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.specs-modern-table tr { border-bottom: 1px solid var(--border-light); }
.specs-modern-table th { color: var(--text-muted); font-weight: 500; padding: 15px 0; border: none; font-size: 0.95rem; }
.specs-modern-table td { color: var(--text-dark); font-weight: 600; text-align: right; padding: 15px 0; border: none; }

/* --- 8. ANALOGS & DIVIDERS --- */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, #2563eb 0%, #e2e8f0 100%);
    flex-grow: 1;
    margin-left: 20px;
    border-radius: 2px;
}

/* --- 9. STICKY BAR (MOBILE) --- */
.sticky-buy-bar { 
    position: fixed; bottom: 0; left: 0; width: 100%; 
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); 
    padding: 15px 20px; z-index: 1000; border-top: 1px solid rgba(0,0,0,0.05); 
    display: flex; align-items: center; justify-content: space-between; 
    transform: translateY(100%); transition: 0.4s; 
}
.sticky-buy-bar.visible { transform: translateY(0); }

/* --- 10. MEDIA QUERIES --- */
@media (min-width: 992px) {
    .row-cols-lg-5 { display: flex; flex-wrap: nowrap; }
    .row-cols-lg-5 .col { width: 20%; flex: 0 0 20%; }
    .analogs-section .row { display: flex; flex-wrap: nowrap; }
    .analogs-section .col { flex: 0 0 20%; width: 20%; }
    .d-lg-block { display: block !important; width: 20%; flex: 0 0 20%; }
}

@media (max-width: 991px) {
    .product-modern-card { border-radius: 0; margin-top: 0; border: none; }

    /* 1. Прибираємо величезний padding зверху */
    .gallery-block { 
        padding: 10px 15px 5px 15px; 
        display: flex;
        flex-direction: column;
    }

    /* 2. Робимо висоту фото адаптивною, а не фіксованою в 60vh */
    .main-img-wrap { 
        height: auto;           /* Дозволяємо фото самому визначати висоту */
        max-height: 45vh;       /* Обмежуємо, щоб не займало весь екран */
        min-height: 250px; 
        padding: 0;             /* Прибираємо внутрішній паддінг, якщо він дає зайве місце */
        margin-bottom: 15px;    /* Фіксована відстань до галереї */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Щоб саме зображення не вилазило за межі */
    .main-img-wrap img {
        max-height: 45vh;
        width: auto;
        object-fit: contain;
    }

    /* 3. Коригуємо інфо-блок */
    .info-block { 
        border-left: none; 
        border-radius: 30px 30px 0 0; 
        margin-top: -20 !important;        /* Прибираємо від'ємний маржин, якщо він накладається на галерею */
        padding: 20px 20px; 
    }

    .product-title { font-size: 1.5rem; line-height: 1.2; }
}


@media (max-width: 768px) {
    .vendor-logo-inline { max-height: 40px; max-width: 100px; }
    .product-card .img-box { height: 140px; }
    .product-card .name { font-size: 0.85rem; }
    .price-tag { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .product-title { font-size: 1.5rem; margin-bottom: 15px; }
    .price-section { padding: 15px; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; }
    .price-modern { font-size: 1.6rem; }
    .price-modern small { font-size: 1.1rem; }
    .status-badge { font-size: 0.65rem; padding: 6px 10px; flex-shrink: 0; }
}

/* --- 11. SHARE PRODUCT --- */
/* Копія стилю кнопки обраного, але в синіх тонах */
.btn-share-static {
    position: static; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: rgba(240, 240, 240, 0.9); 
    border: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #1d61d1; /* Твій синій колір */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.2s ease; 
    cursor: pointer; 
    flex-shrink: 0;
    outline: none;
}

.btn-share-static i { 
    font-size: 1.4rem; 
}

.btn-share-static:hover { 
    transform: scale(1.1); 
    background: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    color: #00b894; /* Можна залишити зелений при наведенні або змінити на світло-синій */
}

/* Стан "активно" (наприклад, якщо натиснуто) */
.btn-share-static.active { 
    background: #1d61d1; 
    color: #fff; 
}
/* ---  Копировать артикль --- */
.copy-vendor-code:hover .code-text {
    text-decoration: underline;
    color: #000;
}

.copy-vendor-code:active {
    transform: scale(0.98);
}

/* Анімація появи галочки */
.fa-check {
    animation: appear 0.2s ease-out;
}

@keyframes appear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 1. Основний клас (універсальний) — залишаємо майже без змін */
.discount-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white !important;
    
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    width: auto;
    border-radius: 21px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
    
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
    z-index: 3;
    border: 2px solid white;
    animation: pulse-discount 2s infinite;
}

/* 2. ПРАВКИ ДЛЯ СТОРІНКИ ТОВАРУ (ЗНИЗУ) */
.product-page-badge {
    /* Міняємо top на auto, а bottom на 20px */
    top: auto !important; 
    bottom: 20px !important; 
    right: 20px !important;
    
    /* Збільшуємо розміри для солідності */
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 26px !important; /* Половина висоти для ідеального кола */
    font-size: 1.1rem !important;
    padding: 0 15px !important; /* Більше відступу, якщо цифри стануть тризначними */
    
    /* Підсилюємо тінь для великого фото */
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.4) !important;
}

@keyframes pulse-discount {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); } /* Трохи активніший пульс */
    100% { transform: scale(1); }
}

/* Контейнер кнопки */
.cat-pill-link-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 60%; /* Кнопка не займе більше 60% ширини екрана */
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Стиль для обрізки тексту */
.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Щоб іконка не зникала */
.cat-pill-link-mobile i {
    flex-shrink: 0; 
    font-size: 10px;
    color: #adb5bd;
}

/* Кнопка назад не повинна стискатися */
.back-btn-mobile-inline {
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
}

.vendor-badge-centered {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10px; /* Регулюйте висоту підйому */
    z-index: 1000;
}

/* Ця рамка гарантує однаковий розмір для ВСІХ брендів */
.logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;  /* Фіксована ширина контейнера */
    height: 60px;  /* Фіксована висота контейнера */
    overflow: hidden;
    background: none;
}

.vendor-logo-clean {
    /* Картинка намагається заповнити контейнер, але не деформується */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Найважливіше: зберігає пропорції всередині рамки */
    
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Адаптація для мобілок (трохи менші рамки) */
@media (max-width: 768px) {
    .logo-frame {
        width: 100px;
        height: 50px;
    }
    .vendor-badge-centered {
        top: 70px;
        right: -160px;
    }
}


/* Батьківський контейнер має бути відносним */
.gallery-block,
.main-img-wrap {
    position: relative;
    overflow: hidden; /* Щоб бейдж не вилазив за межі картки */
    display: block;
}

/* Бейдж НОВИНКА: накладається поверх фото */
.universal-badge {
    display: flex;
    position: absolute;
    
    /* Розташування: верхній лівий кут фото */
    bottom: 0px; 
    right: 10px;
    
    /* Щоб був точно НАД картинкою */
    z-index: 10; 
    
    /* Стиль */
    background-color: #28a745; /* Зелений */
    color: white;
    padding: 0px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    
    /* Легка тінь, щоб краще читалося на будь-якому фото */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); 
    
    /* Щоб не перехоплював кліки по галереї */
    pointer-events: none; 
}

/* На мобільних можна трохи зменшити */
@media (max-width: 768px) {
    .universal-badge {
        bottom: 0px;
        right: 10px;
        padding: 5px 5px;
        font-size: 10px;
          transform: translateY(-22px);
    }
}

/* Кнопка "Назад" */
.back-link-pc {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.back-link-pc:hover {
    color: #0ea5e9;
    transform: translateX(-1px);
}

/* Пігулка категорії */
.cat-pill-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #f1f5f9; /* Світло-сірий фон */
    border-radius: 50px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.cat-pill-link .cat-label {
    color: #94a3b8; /* Підпис "Категорія:" трохи світліший */
    margin-right: 6px;
    font-weight: 400;
}

.cat-pill-link .cat-name {
    color: #3a629c; /* Колір назви категорії */
    font-weight: 700;
}

.cat-pill-link i {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

/* Ефекти при наведенні */
.cat-pill-link:hover {
    background: #e0f2fe; /* Ніжно-блакитний при наведенні */
    border-color: #bae6fd;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.cat-pill-link:hover i {
    transform: translateX(3px);
    color: #0ea5e9;
}

@media (max-width: 991px) {
    .main-img-wrap {
        /* Резервуємо місце заздалегідь */
        aspect-ratio: 1 / 1; /* Робимо блок квадратним за замовчуванням */
        height: auto;
        width: 100%;
        min-height: 300px; /* Мінімальна висота, щоб не стрибало */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
}

/* Додаємо плавний перехід для появи картинки */
#mainImage {
    transition: opacity 0.2s ease-in-out;
}


/* Дизайн модального вікна */
.modern-modal {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.modern-input {
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    background-color: #f9f9f9 !important;
}

.modern-input:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05) !important;
    border-color: #333 !important;
}

/* Логіка зірок */
.stars-clickable {
    gap: 8px;
}

.star-item {
    font-size: 2.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Ефект при наведенні та виборі */
.star-item:hover,
.star-item:hover ~ .star-item,
.star-item.active,
.star-item.active ~ .star-item {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hover-lift:hover {
    transform: translateY(-2px);
    background-color: #000;
}
.btn-modern-submit {
    /* Позиціонування та розміри */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Відступ між текстом та іконкою */
    width: 100%;
    padding: 16px 30px;
    
    /* Колір та фон (Глибокий графіт) */
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffffff;
    
    /* Форма та кордони */
    border: none;
    border-radius: 16px; /* М'який квадрат, сучасніший за овал */
    
    /* Шрифт */
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    
    /* Ефекти */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); /* Плавна анімація */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* М'яка тінь */
}



/* Стилізація іконки */
.btn-modern-submit i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Ефекти при наведенні (Hover) */
.btn-modern-submit:hover {
    background: linear-gradient(135deg, #000 0%, #222 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px); /* Легке підняття */
}

/* Анімація іконки при наведенні */
.btn-modern-submit:hover i {
    transform: translateX(4px) translateY(-2px); /* Іконка "злітає" */
}

/* Ефект натискання (Active) */
.btn-modern-submit:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Блік (світлова смуга), що пробігає при наведенні */
.btn-modern-submit::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: none;
}

.btn-modern-submit:hover::after {
    left: 120%;
    transition: all 0.6s ease;
}



.btn-add-review-minimal {
    background: none;
    border: none;
    padding: 0;
    color: #0062ff; /* Колір бренду */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline; /* Щоб було зрозуміло, що це лінк */
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.btn-add-review-minimal i {
    font-size: 0.75rem;
    margin-right: 3px;
    text-decoration: none;
}

.btn-add-review-minimal:hover {
    color: #0046b5;
    text-decoration: none;
}


/* Контейнер заголовка */
.section-header {
    width: 100%;
}

/* Лінія, яка займає весь вільний простір */
.header-line {
    height: 1px;
    background: #e2e8f0;
    flex-grow: 1; /* Лінія розтягується між текстом і кнопкою */
    margin: 0 20px;
}

/* Кнопка "Більше" з обводкою */
.btn-more-outline {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 2px solid #e2e8f0; /* Світла обводка */
    border-radius: 20px;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-more-outline:hover {
    border-color: #1e293b; /* Темніє при наведенні */
    background: #1e293b;
    color: #fff;
    transform: translateY(-1px);
}

.btn-more-outline i {
    font-size: 0.7rem;
}

/* Адаптивність для мобілок */
@media (max-width: 576px) {
    .header-line {
        margin: 0 10px;
    }
    .btn-more-outline {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}