/* Hand Made storefront vendor showcase. */
[data-content-type="row"]:has(.hm-vendor-list) > [data-element="inner"] {
    margin-bottom: 60px;
    padding: 0;
}

[data-content-type="row"]:has(.hm-vendor-list) > [data-element="inner"] > .elementor__heading {
    margin-bottom: 30px;
    text-align: center;
}

.hm-vendor-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.hm-vendor-list.slick-slider {
    display: block;
}

.hm-vendor-list .slick-list {
    margin-right: -4px;
    margin-left: -4px;
}

.hm-vendor-list .slick-slide {
    padding-right: 4px;
    padding-left: 4px;
}

.hm-vendor-list .slick-slide > div {
    line-height: 0;
}

.hm-vendor-list .slick-slide > div + div {
    margin-top: 8px;
}

.hm-vendor-list .slick-dots {
    margin-top: 22px;
}

.hm-vendor-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 1;
    color: #fff;
    background: transparent;
    text-decoration: none !important;
    isolation: isolate;
}

.hm-vendor-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 15, .78) 100%);
    content: "";
    opacity: .82;
    transition: opacity .3s ease;
}

.hm-vendor-card::after {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 14px;
    left: 16px;
    height: 1px;
    background: #fff;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.hm-vendor-card:hover::before,
.hm-vendor-card:focus-visible::before {
    opacity: 1;
}

.hm-vendor-card:hover::after,
.hm-vendor-card:focus-visible::after {
    transform: scaleX(1);
}

.hm-vendor-card:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.hm-vendor-card__avatar {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background: transparent;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.hm-vendor-card__avatar picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.hm-vendor-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .65, .3, 1);
}

.hm-vendor-card:hover .hm-vendor-card__avatar img,
.hm-vendor-card:focus-visible .hm-vendor-card__avatar img {
    transform: scale(1.08);
}

.hm-vendor-card__initial {
    display: flex;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 68px);
    font-weight: 400;
    color: #fff;
    background: #343f38;
    align-items: center;
    justify-content: center;
    transition: transform .45s cubic-bezier(.2, .65, .3, 1);
}

.hm-vendor-card:hover .hm-vendor-card__initial,
.hm-vendor-card:focus-visible .hm-vendor-card__initial {
    transform: scale(1.08);
}

.hm-vendor-card__name {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 39px;
    left: 16px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-vendor-card__action {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 21px;
    left: 16px;
    display: flex;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .82);
    text-transform: uppercase;
    align-items: center;
    gap: 6px;
}

.hm-vendor-card__action > span {
    font-size: 12px;
    transition: transform .3s ease;
}

.hm-vendor-card:hover .hm-vendor-card__action > span,
.hm-vendor-card:focus-visible .hm-vendor-card__action > span {
    transform: translateX(3px);
}

@media (max-width: 1199px) {
    .hm-vendor-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hm-vendor-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    [data-content-type="row"]:has(.hm-vendor-list) > [data-element="inner"] {
        margin-bottom: 40px;
    }

    [data-content-type="row"]:has(.hm-vendor-list) > [data-element="inner"] > .elementor__heading {
        margin-bottom: 24px;
    }

    .hm-vendor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hm-vendor-card__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hm-vendor-card__initial {
        width: 68%;
        height: 68%;
    }

    .hm-vendor-card__name {
        right: 12px;
        bottom: 32px;
        left: 12px;
        font-size: 13px;
    }

    .hm-vendor-card__action {
        right: 12px;
        bottom: 17px;
        left: 12px;
        font-size: 8px;
    }

    .hm-vendor-card::after {
        right: 12px;
        bottom: 10px;
        left: 12px;
    }

    .hm-vendor-card__initial {
        font-size: clamp(40px, 12vw, 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-vendor-card::before,
    .hm-vendor-card::after,
    .hm-vendor-card__avatar img,
    .hm-vendor-card__initial,
    .hm-vendor-card__action > span {
        transition: none;
    }
}
