/* ============================================================
   GoraFish — Footer Catalog
   Файл: assets/css/sections/footer.css
   ============================================================ */

.footer-catalog {
    background: var(--bg-b);
    padding: var(--space-3xl) 0;
}

.footer-catalog__title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-variation-settings: "wght" 700;
    font-size: var(--text-l);
    color: #fff;
    margin: 0 0 var(--space-xl) 0;
}

/* --- Grid — 6 колонок з адаптивністю --- */
.footer-catalog__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xl) var(--space-m);
    align-items: start;
}

@media (max-width: 1200px) {
    .footer-catalog__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-catalog__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .footer-catalog__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Колонка --- */
.footer-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- Заголовок колонки — батьківська категорія --- */
.footer-col__title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-variation-settings: "wght" 600;
    font-size: var(--text-s);
    color: #fff;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.footer-col__title:hover {
    color: var(--primary);
}

/* --- Список підкатегорій --- */
.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bricks-color-grey-700) transparent;
}

.footer-col__list::-webkit-scrollbar {
    display: block;
    width: 3px;
}

.footer-col__list::-webkit-scrollbar-track {
    background: transparent;
}

.footer-col__list::-webkit-scrollbar-thumb {
    background: var(--bricks-color-grey-700);
    border-radius: 3px;
}

/* --- Посилання підкатегорій --- */
.footer-col__link {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-variation-settings: "wght" 400;
    font-size: var(--text-xs);
    color: var(--title-l-2);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-col__link:hover {
    color: var(--primary);
}

/* --- Градієнт-підказка знизу --- */
.footer-col__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--bg-b)
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Текст "гортати" */
.footer-col__fade::before {
    content: 'гортати';
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: var(--bricks-color-grey-500);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Стрілка вниз */
.footer-col__fade::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--bricks-color-grey-500);
    border-bottom: 2px solid var(--bricks-color-grey-500);
    transform: translateX(-50%) rotate(45deg);
    animation: bounceArrow 1.5s ease infinite;
}

.footer-col__fade.is-hidden {
    opacity: 0;
}

@keyframes bounceArrow {
    0%, 100% { bottom: 10px; }
    50%       { bottom: 5px;  }
}