/*
 * Shared storefront contract for product cards.
 *
 * Product artwork comes in both portrait and landscape proportions.  Every
 * catalog keeps its own media aspect ratio, while the image is fitted inside
 * that stable box.  This keeps neighbouring cards aligned and prevents a
 * landscape mock-up from being cropped or stretching the whole row.
 *
 * The explicit white surface also gives transparent PNG/WebP files a
 * predictable appearance on category sections with tinted backgrounds.
 */

.csm-card,
.smcp-product-card,
.smcp-related-card,
.spv2-related-card,
.cmp-product-card,
.cmpo-related-card,
.ap-product-card,
.audio-product-card,
.art-product-card,
.opg-card {
    background: #fff !important;
}

.csm-img,
.smcp-product-img,
.smcp-related-media,
.spv2-related-img,
.cmp-product-media,
.cmpo-related-media,
.ap-product-image,
.audio-product-image,
.art-product-image,
.opg-img {
    background: #fff !important;
}

.csm-img > img,
.smcp-product-img > img,
.smcp-related-media > img,
.spv2-related-img > img,
.cmp-product-media > img,
.cmpo-related-media > img,
.ap-product-image > img,
.audio-product-image > img,
.art-product-image > img,
.opg-img > img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff;
}

/* Product names are a second, predictable path to the product page. */
.csm-title-link,
.smcp-title-link,
.csm-title-link:hover,
.smcp-title-link:hover,
.csm-title-link:visited,
.smcp-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.csm-title-link:hover,
.smcp-title-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.csm-title-link:focus-visible,
.smcp-title-link:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(32, 40, 56, 0.24);
    outline-offset: 3px;
}

/* Related designs use explicit physical formats, consistent across families. */
.sp-related-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    color: #526173;
    font-size: 13px;
    line-height: 1.45;
}

.sp-related-prices .sp-related-price-label,
.sp-related-prices .sp-related-price-size {
    display: block;
    color: #526173;
    font-size: 13px;
    font-weight: 400;
}

.sp-related-prices .sp-related-price-amount {
    display: block;
    color: #202838;
    font-size: 18px;
    font-weight: 700;
}

.sp-related-prices .sp-related-price-secondary {
    display: block;
    padding-top: 4px;
    border-top: 1px solid #e7ebf0;
    color: #526173;
    font-size: 12px;
    line-height: 1.5;
}

.sp-related-prices .sp-related-price-secondary b {
    font-size: inherit;
    color: inherit;
}

/* One price hierarchy for home and landing catalogs, at every viewport. */
.sp-catalog-prices,
.csm-price > .sp-catalog-prices,
.smcp-product-card .smcp-price > .sp-catalog-prices,
.audio-page .audio-product-bottom > .sp-catalog-prices {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #202838;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

.sp-catalog-prices .sp-catalog-price-primary,
.sp-catalog-prices .sp-catalog-price-secondary,
.smcp-price .sp-catalog-prices .sp-catalog-price-primary,
.smcp-price .sp-catalog-prices .sp-catalog-price-secondary {
    display: block;
    margin: 0;
    color: #202838;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.sp-catalog-prices .sp-catalog-price-label,
.smcp-price .sp-catalog-prices .sp-catalog-price-label {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.sp-catalog-prices .sp-catalog-price-amount {
    display: inline;
    color: #202838;
    font-size: 21px;
    font-weight: 800;
    line-height: inherit;
    white-space: nowrap;
}

.sp-catalog-prices .sp-catalog-price-secondary,
.smcp-price .sp-catalog-prices .sp-catalog-price-secondary {
    margin-top: 3px;
    color: #606978;
    font-size: 12px;
}

.sp-catalog-prices .sp-catalog-price-secondary .sp-catalog-price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

.sp-catalog-prices del {
    color: #606978;
    font-size: 0.75em;
    font-weight: 400;
}

.sp-catalog-prices a:hover .sp-catalog-price-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sp-catalog-prices a:focus-visible {
    outline: 3px solid rgba(32, 40, 56, 0.24);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 767.98px) {
    .sp-catalog-prices .sp-catalog-price-primary,
    .smcp-price .sp-catalog-prices .sp-catalog-price-primary {
        font-size: 12px;
    }

    .sp-catalog-prices .sp-catalog-price-amount {
        font-size: 15px;
    }

    .sp-catalog-prices .sp-catalog-price-secondary,
    .smcp-price .sp-catalog-prices .sp-catalog-price-secondary {
        font-size: 12.5px;
    }
}
