﻿/* --- AXIS EXCLUSIVE LINE SECTION --- */
.axis-exclusive-section {
    padding: 80px 0 40px 0;
    background-color: #fff;
    text-align: center;
}

.axis-header {
    margin-bottom: 56px;
}

.axis-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--b700, #1a1a1a);
    margin-bottom: 16px;
}

.axis-subtitle {
    font-size: 16px;
    color: var(--b600, #4a4a4a);
    max-width: 600px;
    margin: 0 auto;
}

.axis-products-wrapper {
    position: relative;
    width: 100%;
}

.axis-products {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center !important;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

    .axis-products::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .axis-products.active-drag {
        scroll-behavior: auto !important;
        scroll-snap-type: none !important;
        cursor: grabbing !important;
    }

/* --- CARD STYLES --- */
.axis-product-card {
    position: relative; /* ВАЖНО: для Stretched Link */
    text-align: left;
    width: calc((100% - 80px) / 3);
    min-width: calc((100% - 80px) / 3);
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-btn);
    outline: none;
    user-select: none;
    height: 100%;
    /* ИСПРАВЛЕНО: Убран transition и hover-эффект (transform) */
}

.axis-p-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.axis-p-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    -webkit-user-drag: none;
}

.axis-p-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.axis-p-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--b700, #1a1a1a);
    margin-bottom: 4px;
    line-height: 1.5;
}

.axis-p-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--b700, #1a1a1a);
    margin-bottom: 8px;
    line-height: 1.4;
    display: block;
}

/* Натянутая ссылка (Stretched Link) */
.axis-p-title-link {
    color: inherit;
    text-decoration: none;
}

    .axis-p-title-link::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1; /* Покрывает всю карточку */
    }

.axis-p-desc {
    font-size: 14px;
    font-weight: 700;
    color: var(--b500, #6c757d);
    margin-bottom: 16px;
    line-height: 1.5;
}

.axis-p-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--b700, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
    /* ИСПРАВЛЕНО: Пропускаем клик сквозь спан на основную ссылку */
    pointer-events: none;
}

    .axis-p-link svg {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
    }

/* --- DOTS --- */
.axis-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.axis-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--b300, #d1d5db);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

    .axis-dot.active {
        background-color: var(--p700, #0056b3);
        transform: scale(1.2);
    }

/* --- HOVER EFFECTS (Только для ПК) --- */
@media (hover: hover) {
    /* Подсветка текста и сдвиг иконки при наведении на всю карточку */
    .axis-product-card:hover .axis-p-link {
        color: var(--p700, #0056b3);
    }

        .axis-product-card:hover .axis-p-link svg {
            transform: translateX(4px);
        }

    .axis-dot:hover {
        background-color: var(--b500, #6c757d);
    }
}

/* --- MOBILE SLIDER --- */
@media (max-width: 992px) {
    .axis-products {
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .axis-product-card {
        width: 100%;
        min-width: 100%;
        scroll-snap-align: center;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .axis-p-img-wrapper {
        justify-content: center;
    }

    .axis-p-img {
        object-position: center center;
    }

    .axis-p-info {
        align-items: center;
    }

    .axis-product-card > * {
        width: 100%;
        max-width: 280px;
    }
}
