/*
 * Wicked Things — Featured Products Carousel
 */

.wt-featured-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 58px;
    box-sizing: border-box;
}

.wt-featured-carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.wt-featured-carousel__track {
    display: flex;
    gap: 18px;
    width: max-content;
    transition: transform 0.45s ease;
    will-change: transform;
}

.wt-featured-card {
    flex: 0 0 var(--wt-featured-card-width, calc((1120px - 116px - 90px) / 6));
    width: var(--wt-featured-card-width, calc((1120px - 116px - 90px) / 6));
    height: 342px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    background: #111111;
    border: 1px solid #303030;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.wt-featured-card:hover {
    border-color: #b51218;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.wt-featured-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #181818;
    line-height: 0;
}

.wt-featured-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.wt-featured-card:hover .wt-featured-card__image img {
    transform: scale(1.035);
}

.wt-featured-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px;
}

.wt-featured-card__category {
    height: 31.2px;
    min-height: 31.2px;
    margin-bottom: 4px;
    overflow: hidden;

    color: #b51218;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wt-featured-card__category a {
    color: inherit;
    text-decoration: none;
}

.wt-featured-card__title {
    margin: 0 0 7px;
    overflow: hidden;

    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

.wt-featured-card__title a {
    display: -webkit-box;
    max-height: 2.6em;
    overflow: hidden;

    color: #ffffff;
    text-decoration: none;
    line-height: 1.3;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wt-featured-card__title a:hover,
.wt-featured-card__title a:focus {
    color: #b51218;
}

.wt-featured-card__price {
    margin-top: auto;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.wt-featured-card__price del {
    opacity: 0.55;
    font-weight: 400;
}

.wt-featured-carousel__controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    margin: 0;
}

.wt-featured-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 54px;
    padding: 0;
    border: 1px solid #444444;
    background: rgba(17,17,17,0.92);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.wt-featured-carousel__arrow:hover,
.wt-featured-carousel__arrow:focus {
    border-color: #b51218;
    background: #b51218;
    color: #ffffff;
}

.wt-featured-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.wt-featured-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.wt-featured-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #555555;

    cursor: pointer;
}

.wt-featured-carousel__dot.is-active {
    background: #b51218;
    transform: scale(1.25);
}

@media (max-width: 900px) {

    .wt-featured-card {
        flex-basis: var(--wt-featured-card-width, calc((100vw - 102px) / 3));
        width: var(--wt-featured-card-width, calc((100vw - 102px) / 3));
    }
}

@media (max-width: 600px) {

    .wt-featured-carousel__track {
        gap: 12px;
    }

    .wt-featured-card {
        flex-basis: var(--wt-featured-card-width, calc((100vw - 72px) / 2));
        width: var(--wt-featured-card-width, calc((100vw - 72px) / 2));
    }

    .wt-featured-card__body {
        padding: 11px;
    }

    .wt-featured-card__title {
        font-size: 0.82rem;
    }

    .wt-featured-card__price {
        font-size: 0.88rem;
    }

    .wt-featured-carousel__controls {
        margin-top: 16px;
    }
}
