/* TLX Coffee Category Showcase — intentionally scoped, no Flatsome overrides. */
.tlxcs,
.tlxcs * {
    box-sizing: border-box;
}

.tlxcs {
    --tlxcs-gap: 20px;
    --tlxcs-cols: 4;
    position: relative;
    width: 100%;
    min-width: 0;
}

.tlxcs .tlxcs-track {
    display: grid;
    grid-template-columns: repeat(var(--tlxcs-cols), minmax(0, 1fr));
    gap: var(--tlxcs-gap);
    min-width: 0;
}

.tlxcs .tlxcs-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 5/6;
    overflow: hidden;
    isolation: isolate;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    outline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
}

.tlxcs .tlxcs-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .88) 0%,
            rgba(0, 0, 0, .55) 23%,
            rgba(0, 0, 0, .14) 57%,
            rgba(0, 0, 0, 0) 86%);
}

.tlxcs .tlxcs-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform .45s ease;
}

.tlxcs .tlxcs-card__content {
    position: absolute;
    bottom: 25px;
    left: 19px;
    right: 18px;
    z-index: 2;
    min-width: 0;
}

.tlxcs .tlxcs-card .tlxcs-card__title {
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    overflow-wrap: anywhere;
}

.tlxcs .tlxcs-card .tlxcs-card__subtext {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: #f6f0e6;
    overflow-wrap: anywhere;
}

.tlxcs .tlxcs-card__line {
    display: block;
    width: 43px;
    max-width: 100%;
    height: 1px;
    margin-top: 8px;
    background: rgba(246, 240, 230, .7);
    transition: width .3s ease;
}

.tlxcs .tlxcs-card:not(.tlxcs-card--static):hover .tlxcs-card__image,
.tlxcs .tlxcs-card:not(.tlxcs-card--static):focus-visible .tlxcs-card__image {
    transform: scale(1.055);
}

.tlxcs .tlxcs-card:not(.tlxcs-card--static):hover .tlxcs-card__line,
.tlxcs .tlxcs-card:not(.tlxcs-card--static):focus-visible .tlxcs-card__line {
    width: 65px;
}

.tlxcs .tlxcs-card:not(.tlxcs-card--static):focus-visible {
    outline: 2px solid #76533a;
}

/* Keep navigation visible (dim when idle), even on a non-slider grid. */
.tlxcs .tlxcs-nav {
    display: none;
}

.tlxcs.is-ready .tlxcs-nav {
    display: block;
}

/* JS switches between wrapping grid and single-row slider by card count. */
.tlxcs.is-slider .tlxcs-track {
    display: flex;
    gap: var(--tlxcs-gap);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.tlxcs.is-slider .tlxcs-track::-webkit-scrollbar {
    display: none;
}

.tlxcs.is-slider .tlxcs-card {
    flex: 0 0 calc((100% + var(--tlxcs-gap)) / var(--tlxcs-cols) - var(--tlxcs-gap));
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


.tlxcs .tlxcs-nav__button {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    color: #302219;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    cursor: pointer;
    opacity: .38;
    transform: translateY(-50%);
    transition: background .2s ease, opacity .25s ease;
}

.tlxcs .tlxcs-nav__button--prev {
    left: 10px;
}

.tlxcs .tlxcs-nav__button--next {
    right: 10px;
}

.tlxcs .tlxcs-nav__button svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* Pointer, keyboard and touch interaction brings usable arrows to full opacity. */
.tlxcs.is-interacting .tlxcs-nav__button:not(:disabled),
.tlxcs:focus-within .tlxcs-nav__button:not(:disabled) {
    opacity: 1;
    background: #fff;
}

@media (hover: hover) {
    .tlxcs:hover .tlxcs-nav__button:not(:disabled) {
        opacity: 1;
        background: #fff;
    }
}

.tlxcs .tlxcs-nav__button:focus-visible {
    outline: 2px solid #76533a;
    outline-offset: 2px;
}

/* Disabled controls stay visible, but cannot be activated at the slider ends. */
.tlxcs .tlxcs-nav__button:disabled {
    opacity: .2;
    cursor: default;
    pointer-events: none;
}

@media (min-width: 550px) and (max-width: 849px) {
    .tlxcs {
        --tlxcs-cols: 3;
    }

    .tlxcs .tlxcs-card .tlxcs-card__title {
        font-size: 18px;
    }

    .tlxcs .tlxcs-card__content {
        left: 15px;
        right: 15px;
        bottom: 19px;
    }
}

@media (max-width: 549px) {
    .tlxcs {
        --tlxcs-cols: 2;
    }

    .tlxcs .tlxcs-card__content {
        left: 12px;
        right: 11px;
        bottom: 14px;
    }

    .tlxcs .tlxcs-card .tlxcs-card__title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .tlxcs .tlxcs-card .tlxcs-card__subtext {
        font-size: 12px;
        line-height: 1.35;
    }

    .tlxcs .tlxcs-card__line {
        margin-top: 7px;
        width: 35px;
    }

    .tlxcs .tlxcs-nav__button {
        width: 30px;
        height: 30px;
    }

    .tlxcs .tlxcs-nav__button--prev {
        left: 5px;
    }

    .tlxcs .tlxcs-nav__button--next {
        right: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tlxcs .tlxcs-card__image,
    .tlxcs .tlxcs-card__line,
    .tlxcs .tlxcs-nav__button {
        transition: none;
    }
}