/* AFCMall v1.3.13 — Logo/Product Media Recovery */

.brand,
.site-header .brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    flex: 0 0 auto;
}

.brand > img,
.site-header .brand > img,
.brand .afc-cp-protected-image,
.site-header .brand .afc-cp-protected-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(220px, 42vw) !important;
    max-height: 48px !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.brand .afc-cp-image-watermark-wrap,
.site-header .brand .afc-cp-image-watermark-wrap {
    display: inline-flex !important;
    width: auto !important;
    max-width: min(220px, 42vw) !important;
    height: auto !important;
    align-items: center;
    overflow: visible !important;
    line-height: 0;
}

.brand .afc-cp-image-watermark-wrap > img,
.site-header .brand .afc-cp-image-watermark-wrap > img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 48px !important;
    aspect-ratio: auto !important;
}

.afc-cp-image-watermark-wrap {
    min-width: 0;
    max-width: 100%;
}

.card > .afc-cp-image-watermark-wrap,
.card .afc-cp-image-watermark-wrap.is-card-image,
.thumb .afc-cp-image-watermark-wrap,
.afc-cp-image-watermark-wrap.is-product-image {
    display: block !important;
    width: 100% !important;
    height: auto;
}

.card .afc-cp-image-watermark-wrap > img,
.thumb .afc-cp-image-watermark-wrap > img,
.afc-cp-image-watermark-wrap.is-product-image > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.card .afc-cp-image-watermark-wrap > img {
    margin-bottom: 0 !important;
}

.card img[src*="/uploads/products/"],
.thumb img[src*="/uploads/products/"],
.product-detail img[src*="/uploads/products/"],
.pp-page img[src*="/uploads/products/"] {
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
    object-position: center !important;
}

img[loading="lazy"] {
    color: transparent;
}

@media (max-width: 640px) {
    .brand > img,
    .site-header .brand > img,
    .brand .afc-cp-protected-image,
    .site-header .brand .afc-cp-protected-image {
        max-width: min(175px, 46vw) !important;
        max-height: 42px !important;
    }

    .brand .afc-cp-image-watermark-wrap,
    .site-header .brand .afc-cp-image-watermark-wrap {
        max-width: min(175px, 46vw) !important;
    }
}
