/* ─── Container ──────────────────────────────────────────────── */
.elixira-cat-showcase-container {
    width: 100%;
    max-width: 1440px;
    margin: 32px auto 40px;
    padding: 0 48px;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* ─── Grid / Flex layout for Desktop ─────────────────────────── */
.elixira-cat-showcase-inner {
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Category Card ──────────────────────────────────────────── */
.elixira-cat-card {
    flex: 1;
    min-width: 0; /* Prevents overflow */
    background: #f6f6f6;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
    box-sizing: border-box;
}

.elixira-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Image/Icon wrapper */
.elixira-cat-image-wrapper {
    flex: 0 0 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.elixira-cat-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Content block */
.elixira-cat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.elixira-cat-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    margin: 0 0 16px 0;
    font-family: 'Outfit', sans-serif;
}

.elixira-cat-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    text-decoration: none !important;
    display: inline-block;
    border-bottom: 1.5px solid #111111;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}

.elixira-cat-link:hover {
    opacity: 0.7;
}

/* ─── Mobile Styles (Swipe Layout) ───────────────────────────── */
@media (max-width: 767px) {
    .elixira-cat-showcase-container {
        padding: 0 0 0 16px; /* Let it overflow to the right edge */
        margin: 20px auto 30px;
        overflow: hidden;
    }

    .elixira-cat-showcase-inner {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-right: 16px; /* Spacing at the end of scroll */
        gap: 12px;
    }

    /* Hide scrollbar but keep functionality */
    .elixira-cat-showcase-inner::-webkit-scrollbar {
        display: none;
    }
    .elixira-cat-showcase-inner {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Show single card, peeking next card on the right */
    .elixira-cat-card {
        flex: 0 0 82%; /* Leaves ~18% peek room */
        scroll-snap-align: start;
        padding: 20px 24px;
        gap: 16px;
    }

    .elixira-cat-image-wrapper {
        flex: 0 0 70px;
        height: 70px;
    }

    .elixira-cat-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
}
