/*
 * MM Enterprises V2 — shared media fit corrections.
 * Keeps uploaded logos and category artwork proportional on every breakpoint.
 */
.mobile-drawer__head .mobile-drawer-logo {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(104, 180, 255, .38);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 119, 255, .18);
}

.mobile-drawer__head .mobile-drawer-logo img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 2px;
    border-radius: inherit;
    object-fit: contain;
    object-position: center;
}

.category-art--uploaded,
.app-category > span,
.mobile-category-grid a > span,
.category-list-image {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    isolation: isolate;
}

.category-art--uploaded img,
.app-category > span img,
.mobile-category-grid a > span img,
.category-list-image img {
    width: auto !important;
    height: auto !important;
    max-width: 78% !important;
    max-height: 76% !important;
    display: block;
    margin: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    clip-path: none !important;
    filter: drop-shadow(0 5px 7px rgba(12, 32, 52, .13));
}

.category-library-icon {
    width: 68% !important;
    height: 68% !important;
    display: grid !important;
    place-items: center !important;
    margin: auto !important;
    border-radius: 22% !important;
    background: radial-gradient(circle at 34% 26%, #fff 0 8%, #eaf4ff 40%, #dcecff 100%) !important;
    color: #087cff !important;
    font-size: clamp(30px, 3.2vw, 52px) !important;
    line-height: 1 !important;
    box-shadow: 0 7px 18px rgba(8, 124, 255, .13) !important;
}

.app-category .category-library-icon,
.mobile-category-grid .category-library-icon {
    width: 74% !important;
    height: 74% !important;
    font-size: 30px !important;
}

.brand-card,
.brand-scroller a,
.mobile-brand-grid a,
.brand-list-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.brand-card img,
.brand-scroller img,
.mobile-brand-grid img,
.brand-list-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 46px !important;
    display: block;
    margin: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* Brand marks need enough visual weight without stretching wide logos. */
.brand-scroller img {
    max-width: 88% !important;
    max-height: 40px !important;
}

.mobile-brand-grid img {
    max-width: 90% !important;
    max-height: 52px !important;
}

.brand-list-logo img {
    max-width: 90% !important;
    max-height: 54px !important;
}

/* Uploaded customer photos must never use their intrinsic dimensions. */
.customer-head-photo,
.customer-photo img,
.account-avatar.has-photo img,
.profile-photo-preview,
.mobile-customer-photo,
.drawer-avatar img,
.account-profile > span img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Shared footer Android CTA appears on the homepage and every catalogue page. */
.footer-app-download {
    width: min(230px, 100%);
    min-height: 58px;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 17px !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(86, 227, 150, .35);
    border-radius: 13px;
    background: linear-gradient(135deg, #0b7540, #10a75a);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(5, 112, 58, .24);
}
.footer-app-download svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-app-download span,.footer-app-download small,.footer-app-download strong,.footer-app-download em { display: block; min-width: 0; }
.footer-app-download small { color: #c5f5d9; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.footer-app-download strong { margin-top: 2px; font-size: 11px !important; }
.footer-app-download em { margin-top: 2px; color: #d8f6e5; font-size: 7px; font-style: normal; line-height: 1.3; }

@media (max-width: 520px) {
    .mobile-drawer__head .mobile-drawer-logo { width: 43px; height: 43px; }
    .category-art--uploaded img,
    .app-category > span img,
    .mobile-category-grid a > span img,
    .category-list-image img {
        max-width: 74% !important;
        max-height: 72% !important;
    }

    .category-library-icon {
        width: 70% !important;
        height: 70% !important;
        font-size: 27px !important;
    }

    .brand-card img,
    .brand-scroller img,
    .mobile-brand-grid img,
    .brand-list-logo img {
        max-width: 90% !important;
        max-height: 40px !important;
    }

    .mobile-brand-grid img,
    .brand-list-logo img {
        max-height: 48px !important;
    }
}
/* Dynamic homepage section headings: title first, subtitle below, both centered. */
.homepage-custom-section .homepage-section-head{position:relative;display:flex;align-items:center;justify-content:center}
.homepage-custom-section .homepage-section-title{display:grid;justify-items:center;gap:6px;width:100%;text-align:center}
.homepage-custom-section .homepage-section-title h2{margin:0;line-height:1.18}
.homepage-custom-section .homepage-section-title h2 em{color:#087cff;font-style:normal}
.homepage-custom-section .homepage-section-title small{display:block;margin:0;color:#64748b;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.homepage-custom-section .homepage-section-head>a{position:absolute;right:0}
@media(max-width:520px){.homepage-custom-section .homepage-section-head{justify-content:center}.homepage-custom-section .homepage-section-title{justify-items:center;text-align:center}.homepage-custom-section .homepage-section-head>a{display:none}}
.spin-nav-link{color:#ffd34d!important}.floating-spin{position:fixed;z-index:9200;right:22px;bottom:250px;display:flex;align-items:center;gap:9px;padding:10px 14px;border:2px solid #ffe071;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#ec4899);box-shadow:0 13px 28px rgba(107,54,203,.36);color:#fff!important;text-decoration:none;font-size:11px;font-weight:900}.floating-spin span{font-size:23px}.floating-spin small{display:block;font-size:8px;font-weight:600;opacity:.85}@media(max-width:700px){.floating-spin{right:14px;bottom:215px;width:55px;height:55px;padding:0;justify-content:center}.floating-spin span{font-size:26px}.floating-spin div{display:none}}
