.endo-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform .28s ease;
}

.endo-product-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-3px);
}

.endo-product-card.is-featured {
    border: 0;
}

.endo-product-card.is-marketplace-focus {
    transform: translateY(-4px);
}

.endo-product-card.is-marketplace-focus .endo-product-card-image-link {
    outline: 3px solid rgba(0, 61, 196, 0.24);
    outline-offset: 6px;
    box-shadow:
        0 18px 46px rgba(0, 61, 196, 0.14);
}

.endo-product-card.is-marketplace-focus .endo-product-card-title a {
    color: var(--blue);
}

/* Media */

.endo-product-card-media {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
}

.endo-product-card-image-link {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.16 / 1;
    border-radius: 26px;
    background:
        radial-gradient(circle at 86% 16%,
            rgba(228, 45, 150, .08),
            transparent 38%),
        radial-gradient(circle at 12% 88%,
            rgba(0, 61, 196, .08),
            transparent 42%),
        #dedede;
}

.endo-product-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        filter .4s ease,
        transform .5s cubic-bezier(.2, .7, .2, 1);
}

.endo-product-card:hover .endo-product-card-image {
    transform: scale(1.025);
}

.endo-product-card-placeholder {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 26px;
    color: rgba(0, 61, 196, .24);
    background: rgba(255, 255, 255, .46);
    box-shadow: none;
}

.endo-product-card-placeholder .material-symbols-outlined {
    font-size: 38px;
}

/* Badges */

.endo-product-card-badges {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: calc(100% - 34px);
    pointer-events: none;
}

.endo-product-card-badge {
    display: none;
}

.endo-product-card-badge.is-featured {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--pink);
    box-shadow: none;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: none;
}

.endo-product-card-badge.is-featured {
    background: var(--blue);
    color: #fff;
}

.endo-product-card-badge.is-new {
    background: var(--pink);
    color: #fff;
}

.endo-product-card-badge.is-wallet-friendly {
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
}

/* Content */

.endo-product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 17px 12px 0;
}

.endo-product-card-title {
    order: 1;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.endo-product-card-title a {
    display: -webkit-box;
    overflow: hidden;
    transition: color .2s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.endo-product-card-title a:hover {
    color: var(--blue);
}

.endo-product-card-partner {
    order: 2;
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-height: 17px;
    margin: 2px 0 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.endo-product-card-brand {
    overflow: hidden;
    max-width: 100%;
    color: var(--blue);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-product-card-excerpt {
    display: none;
}

/* Footer */

.endo-product-card-footer {
    order: 4;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 0;
}

.endo-product-card-price {
    display: flex;
    overflow: hidden;
    flex-direction: row;
    gap: 5px;
    align-items: baseline;
    min-width: 0;
}

.endo-product-card-price>span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-product-card-price strong {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-product-card-action {
    display: none;
}

/* Keyboard interaction */

.endo-product-card:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.endo-product-card-image-link:focus-visible,
.endo-product-card-title a:focus-visible {
    outline: 3px solid rgba(0, 61, 196, .18);
    outline-offset: 4px;
}

/* Responsive */

@media (max-width: 1080px) {
    .endo-product-card-image-link {
        aspect-ratio: 1.1 / 1;
    }

    .endo-product-card-content {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 920px) {
    .endo-product-card-image-link {
        aspect-ratio: 1.2 / 1;
    }

    .endo-product-card-title {
        font-size: 15px;
    }

    .endo-product-card-partner {
        font-size: 12px;
    }

    .endo-product-card-price strong {
        font-size: 15px;
    }
}

@media (max-width: 680px) {
    .endo-product-card {
        border-radius: 0;
    }

    .endo-product-card-image-link {
        aspect-ratio: 1.18 / 1;
        border-radius: 24px;
    }

    .endo-product-card-badges {
        top: 16px;
        left: 16px;
    }

    .endo-product-card-content {
        padding: 16px 8px 0;
    }

    .endo-product-card-title {
        font-size: 16px;
    }

    .endo-product-card-partner {
        margin-top: 3px;
        font-size: 13px;
    }

    .endo-product-card-footer {
        margin-top: 9px;
    }

    .endo-product-card-price strong {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .endo-product-card-image-link {
        aspect-ratio: 1 / 1;
    }
}

@media (hover: none) {
    .endo-product-card:hover {
        transform: none;
    }

    .endo-product-card:hover .endo-product-card-image {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .endo-product-card,
    .endo-product-card-image,
    .endo-product-card-title a {
        transition-duration: .01ms;
    }

    .endo-product-card.is-marketplace-focus {
        transform: none;
    }
}