/* Skechers.fr / skechers.com PLP product card */

.product--skechers.skx-card {
    --skx-fg: #111111;
    --skx-muted: #434343;
    --skx-subtle: #767676;
    --skx-border: #e3e3e3;
    --skx-bg: #ffffff;
    --skx-sale: #990000;
    --skx-accent: #0063ba;
    --skx-media-bg: #f8f8f8;

    background: var(--skx-bg);
    border: none;
    border-radius: 0;
    color: var(--skx-fg);
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 0.875rem;
    height: 100%;
    line-height: 1.4;
    overflow: visible;
    position: relative;
}

html.diamond-theme-surface-dark .product--skechers.skx-card {
    --skx-fg: #f5f5f5;
    --skx-muted: #c8c8cc;
    --skx-subtle: #9a9aa3;
    --skx-border: #2a2a2e;
    --skx-bg: transparent;
    --skx-media-bg: #1a1a1a;
}

.product--skechers .product__header,
.product--skechers .product__body,
.product--skechers .product__content,
.product--skechers .product__details,
.product--skechers .product__info {
    all: unset;
}

.skx-card__media {
    aspect-ratio: 1 / 1;
    background: var(--skx-media-bg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    position: relative;
}

.skx-card__media-link {
    display: block;
    height: 100%;
    position: relative;
    width: 100%;
}

.skx-card__img {
    display: block;
    height: 100%;
    inset: 0;
    margin: 0 auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: absolute;
    transition: opacity 0.25s ease;
    width: 100%;
}

.skx-card__img--primary {
    opacity: 1;
    z-index: 1;
}

.skx-card__img--alt {
    opacity: 0;
    z-index: 2;
}

.skx-card[data-hover-alt="true"] .skx-card__media-link:hover .skx-card__img--primary,
.skx-card[data-hover-alt="true"] .skx-card__media-link:focus-visible .skx-card__img--primary {
    opacity: 0;
}

.skx-card[data-hover-alt="true"] .skx-card__media-link:hover .skx-card__img--alt,
.skx-card[data-hover-alt="true"] .skx-card__media-link:focus-visible .skx-card__img--alt {
    opacity: 1;
}

.skx-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 3;
}

.skx-card__badges .product__badge,
.skx-card__badges .badge,
.skx-card__badges span {
    background: var(--skx-bg);
    border: none;
    border-radius: 2px;
    color: var(--skx-fg);
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.2rem 0.45rem;
    text-transform: uppercase;
}

.skx-card__more-colors {
    align-self: center;
    color: var(--skx-subtle);
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    padding-inline: 0.25rem;
}

.product--skechers__swatches.skx-card__swatches {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.product--skechers__swatches.skx-card__swatches::-webkit-scrollbar {
    display: none;
}

.product--skechers__swatch.skx-card__swatch {
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    padding: 0;
    width: 2.5rem;
}

.product--skechers__swatch.skx-card__swatch img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product--skechers__swatch.skx-card__swatch:hover,
.product--skechers__swatch.skx-card__swatch.is-active,
.product--skechers__swatch.skx-card__swatch:focus-visible {
    border: none;
    box-shadow: none;
    outline: none;
}

.skx-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
}

.skx-card__name {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

.skx-card__name a {
    color: var(--skx-fg);
    text-decoration: none;
}

.skx-card__name a:hover {
    color: var(--skx-accent);
    text-decoration: underline;
}

.skx-card__category {
    color: var(--skx-subtle);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    text-decoration: none;
}

a.skx-card__category:hover,
a.skx-card__category:focus-visible {
    color: var(--skx-accent);
    text-decoration: underline;
}

.skx-card__price-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.15rem;
}

.skx-card__price {
    line-height: 1.2;
}

.skx-card__price--regular {
    color: var(--skx-fg);
    font-size: 0.9375rem;
    font-weight: 700;
}

.skx-card__price--sale {
    color: var(--skx-sale);
    font-size: 0.9375rem;
    font-weight: 700;
}

.skx-card__price--was {
    color: var(--skx-subtle);
    font-size: 0.8125rem;
    font-weight: 400;
    text-decoration: line-through;
}

.skx-card__price--sale + .skx-card__price--was {
    order: -1;
}

.product--skechers__actions.skx-card__actions {
    margin-top: 0.65rem;
}

.product--skechers__add-to-cart.skx-card__quick-add {
    background: var(--skx-fg);
    border: 1px solid var(--skx-fg);
    border-radius: 2px;
    color: var(--skx-bg);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
    width: 100%;
}

.product--skechers__add-to-cart.skx-card__quick-add:hover {
    background: var(--skx-accent);
    border-color: var(--skx-accent);
    color: #fff;
}

@media (max-width: 767px) {
    .product--skechers__swatch.skx-card__swatch {
        flex-basis: 2rem;
        height: 2rem;
        width: 2rem;
    }

    .skx-card__name {
        font-size: 0.8125rem;
    }
}
