.mc-home {
    background: #ffffff;
}

.mc-home-section {
    max-width: var(--mc-content-width) !important;
    margin: 0 auto;
    padding: 50px var(--mc-page-gutter);
}

.mc-home-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 38px;
    color: #24272c;
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.mc-home-heading::before,
.mc-home-heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #dcdfe3;
}

.mc-category-entry {
    padding-top: 30px;
    padding-bottom: 30px;
}

.mc-category-entry__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 1025px) {
    .mc-category-entry .mc-home-heading {
        margin-bottom: 40px;
    }

    .mc-home-section.mc-category-entry > .mc-category-entry__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 1400px !important;
        margin: 0 auto;
    }

    .mc-category-tile {
        width: calc(100% - 10px);
    }

    .mc-category-tile__link {
        width: 100%;
        min-height: 0 !important;
        aspect-ratio: 3 / 2;
    }
}

.mc-category-tile {
    margin: 0;
    overflow: hidden;
    background: #edf0f2;
}

.mc-category-tile__link {
    position: relative;
    display: block;
    min-height: 318px;
    overflow: hidden;
    color: #ffffff;
}

.mc-category-tile__media,
.mc-category-tile__shade,
.mc-category-tile__title,
.mc-category-tile__button {
    position: absolute;
}

.mc-category-tile__media {
    inset: 0;
    background:
        radial-gradient(circle at 62% 42%, rgba(70, 94, 112, 0.24) 0 18%, transparent 19%),
        linear-gradient(135deg, #dfe6eb 0%, #f7f8f9 54%, #cbd3da 100%);
    transform: scale(1);
    transition: transform 260ms ease;
}

.mc-category-tile__image,
.mc-category-tile__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.mc-category-tile__image {
    object-fit: cover;
}

.mc-category-tile__placeholder {
    background: inherit;
}

.mc-category-tile--caps .mc-category-tile__media {
    background:
        radial-gradient(circle at 58% 46%, rgba(142, 38, 38, 0.42) 0 20%, transparent 21%),
        linear-gradient(135deg, #d8e1e8 0%, #f4f6f7 52%, #b8c4cf 100%);
}

.mc-category-tile--hats .mc-category-tile__media {
    background:
        radial-gradient(circle at 48% 45%, rgba(202, 190, 153, 0.58) 0 24%, transparent 25%),
        linear-gradient(135deg, #dce4e9 0%, #f7f7f3 52%, #c7d0d8 100%);
}

.mc-category-tile--beanies .mc-category-tile__media {
    background:
        radial-gradient(circle at 66% 38%, rgba(73, 82, 83, 0.52) 0 22%, transparent 23%),
        linear-gradient(135deg, #eef2f3 0%, #f8f8f8 52%, #ccd4d9 100%);
}

.mc-category-tile__shade {
    inset: 0;
    background: rgba(255, 255, 255, 0.24);
}

.mc-category-tile__title,
.mc-category-tile__button {
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.mc-category-tile__title {
    top: 36%;
    color: #1c6aa7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 4.2vw, 64px);
    line-height: 1;
}

.mc-category-tile__button {
    top: calc(36% + 68px);
    min-width: 112px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #ffffff;
    font-size: 18px;
    line-height: 1.15;
    text-align: center;
}

.mc-category-tile__link:hover .mc-category-tile__media,
.mc-category-tile__link:focus-visible .mc-category-tile__media {
    transform: scale(1.045);
}

/* The original category artwork already contains its title and CTA. */
.mc-category-tile--legacy .mc-category-tile__shade,
.mc-category-tile--legacy .mc-category-tile__title,
.mc-category-tile--legacy .mc-category-tile__button {
    display: none;
}

.mc-why__grid,
.mc-product-showcase__grid,
.mc-brands__list,
.mc-certifications__grid,
.mc-factory-strength__stats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-why__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.mc-why__subtitle {
    margin: -24px 0 38px;
    color: #8b9199;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.mc-why__grid li {
    min-height: 230px;
    padding: 30px 24px;
    border: 1px solid #e7e9ec;
    border-top-width: 0;
    border-left-width: 0;
    background: #ffffff;
    box-shadow: none;
    text-align: center;
}

.mc-why__grid li:nth-child(4n + 1) {
    border-left-width: 1px;
}

.mc-why__grid li:nth-child(-n + 4) {
    border-top-width: 1px;
}

.mc-why__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border: 1px solid #3f7ad9;
    border-radius: 50%;
    color: #3f7ad9 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1 !important;
}

.mc-why__grid strong {
    display: block;
    margin-bottom: 12px;
    color: #20242a;
    font-size: 21px;
    line-height: 1.2;
}

.mc-why__grid span,
.mc-factory-strength__content p,
.mc-oem article p,
.mc-home-cta p {
    color: #68717c;
    font-size: 16px;
    line-height: 1.65;
}

.mc-factory-strength__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
    gap: 42px;
    align-items: stretch;
}

.mc-factory-strength__media {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg, rgba(35, 45, 55, 0.08) 0 1px, transparent 1px 68px),
        linear-gradient(135deg, #e6eaee 0%, #f7f8f9 48%, #dce2e7 100%);
}

.mc-factory-strength__image,
.mc-factory-strength__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.mc-factory-strength__image {
    object-fit: cover;
}

.mc-factory-strength__video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    background: #111111;
}

.mc-factory-strength__placeholder {
    background: inherit;
}

.mc-factory-strength__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
    border: 0;
    background: #ffffff;
}

.mc-factory-strength__title {
    margin: 0 0 12px;
    color: #24272c;
    font-size: clamp(28px, 2.4vw, 36px);
    line-height: 1.12;
    text-transform: uppercase;
}

.mc-factory-strength__eyebrow {
    order: -1;
    margin: 0 0 8px !important;
    color: #8b9199 !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.mc-factory-strength__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid #e5e7ea;
}

.mc-factory-strength__stats li {
    padding: 18px 14px 0 0;
    background: transparent;
}

.mc-factory-strength__stats strong {
    display: block;
    color: #3f7ad9;
    font-size: 28px;
    line-height: 1;
}

.mc-factory-strength__stats span {
    display: block;
    margin-top: 8px;
    color: #4d5660;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-factory-strength__promise {
    color: #24272c !important;
    font-weight: 700;
}

.mc-factory-strength__action {
    margin: 26px 0 0 !important;
}

.mc-factory-strength__action a {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #3f7ad9;
    color: #3f7ad9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-product-showcase__subtitle {
    margin: -20px 0 36px;
    color: #68717c;
    font-size: 16px;
    text-align: center;
}

.mc-product-showcase__tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    margin: 0 0 38px;
}

.mc-product-showcase__tabs .wp-block-button__link {
    min-width: 218px;
    padding: 18px 26px;
    border: 1px solid #e4e6e8;
    border-radius: 0;
    background: #f0f1f2;
    color: #20242a;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.mc-product-showcase__tabs .is-active .wp-block-button__link {
    background: #ffffff;
}

.mc-product-showcase__tabs .wp-block-button__link:focus-visible {
    outline: 3px solid #3b82d0;
    outline-offset: 2px;
}

.mc-product-showcase__panel[hidden] {
    display: none;
}

.mc-product-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mc-product-showcase__grid li {
    min-width: 0;
    border: 1px solid #e6e8eb;
    background: #ffffff;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.mc-product-showcase__grid li:hover,
.mc-product-showcase__grid li:focus-within {
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
    transform: translateY(-4px);
}

.mc-product-showcase__grid a {
    display: flex;
    flex-direction: column;
    min-height: 382px;
}

.mc-product-showcase__image {
    display: block;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 52% 58%, rgba(37, 45, 53, 0.14) 0 11%, transparent 12%),
        radial-gradient(ellipse at 50% 47%, rgba(68, 129, 218, 0.36) 0 20%, transparent 21%),
        linear-gradient(135deg, #fbfbfb 0%, #f1f3f5 100%);
    transition: transform 220ms ease;
}

.mc-product-showcase__image-img,
.mc-product-showcase__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.mc-product-showcase__image-img {
    object-fit: contain;
    padding: 18px;
}

.mc-product-showcase__image-placeholder {
    position: relative;
    background: inherit;
}

.mc-product-showcase__image-placeholder::before {
    position: absolute;
    left: 22%;
    top: 36%;
    width: 56%;
    height: 30%;
    border-radius: 50% 50% 40% 40%;
    background: rgba(71, 129, 217, 0.22);
    box-shadow: 22px 16px 0 rgba(35, 45, 55, 0.08);
    content: "";
}

.mc-product-showcase__grid li:hover .mc-product-showcase__image,
.mc-product-showcase__grid li:focus-within .mc-product-showcase__image {
    transform: scale(1.025);
}

.mc-product-showcase__grid strong {
    display: -webkit-box;
    min-height: 68px;
    margin: 18px 18px 12px;
    overflow: hidden;
    color: #252a31;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mc-product-showcase__grid span:last-child {
    display: block;
    margin: auto 18px 0;
    padding: 14px 0;
    border-top: 1px solid #eceef0;
    color: #4d545c;
    font-size: 13px;
    text-align: center;
}

.mc-product-showcase__grid span:last-child::before {
    content: "\2630";
    margin-right: 3px;
    font-size: 12px;
}

.mc-home-collections__grid,
.mc-home-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-home-collections__card,
.mc-home-blog__card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6e8eb;
    background: #ffffff;
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.mc-home-collections__card:hover,
.mc-home-collections__card:focus-within,
.mc-home-blog__card:hover,
.mc-home-blog__card:focus-within {
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
    transform: translateY(-4px);
}

.mc-home-collections__card > a {
    display: block;
    height: 100%;
    color: #252a31;
}

.mc-home-collections__media,
.mc-home-blog__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f5 0%, #f8f9fa 55%, #dfe5ea 100%);
}

.mc-home-collections__image,
.mc-home-collections__placeholder,
.mc-home-blog__image,
.mc-home-blog__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.mc-home-collections__image,
.mc-home-blog__image {
    object-fit: cover;
    transition: transform 260ms ease;
}

.mc-home-collections__card:hover .mc-home-collections__image,
.mc-home-collections__card:focus-within .mc-home-collections__image,
.mc-home-blog__card:hover .mc-home-blog__image,
.mc-home-blog__card:focus-within .mc-home-blog__image {
    transform: scale(1.035);
}

.mc-home-collections__placeholder {
    background:
        radial-gradient(ellipse at 52% 52%, rgba(63, 122, 217, 0.2) 0 22%, transparent 23%),
        linear-gradient(135deg, #edf1f4 0%, #fafafa 100%);
}

.mc-home-collections__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
}

.mc-home-collections__content strong {
    font-size: 19px;
    line-height: 1.25;
}

.mc-home-collections__content span {
    flex: 0 0 auto;
    color: #7b838c;
    font-size: 12px;
    text-transform: uppercase;
}

.mc-home-collections__subtitle {
    margin: -24px 0 38px;
    color: #8b9199;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.mc-home-collections__grid--legacy {
    gap: 0;
}

.mc-home-collections__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mc-home-collections__legacy-card {
    border: 0;
}

.mc-home-collections__legacy-card > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 470px;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.mc-home-collections__grid--two .mc-home-collections__legacy-card > a {
    min-height: 430px;
}

.mc-home-collections__legacy-card .mc-home-collections__media,
.mc-home-collections__shade {
    position: absolute;
    inset: 0;
}

.mc-home-collections__legacy-card .mc-home-collections__media {
    aspect-ratio: auto;
}

.mc-home-collections__legacy-card .mc-home-collections__image {
    object-fit: cover;
    filter: saturate(0.82);
}

.mc-home-collections__shade {
    z-index: 1;
    background: rgba(22, 28, 34, 0.44);
    transition: background 220ms ease;
}

.mc-home-collections__legacy-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
}

.mc-home-collections__legacy-content strong {
    color: #ffffff;
    font-size: clamp(27px, 2.35vw, 38px);
    font-weight: 500;
    line-height: 1.26;
}

.mc-home-collections__legacy-content > span:not(.mc-home-collections__button) {
    margin-top: 10px;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 0.1em;
    line-height: 1.65;
}

.mc-home-collections__button {
    margin-top: 28px;
    padding: 10px 13px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-home-collections__legacy-card:hover .mc-home-collections__shade,
.mc-home-collections__legacy-card:focus-within .mc-home-collections__shade {
    background: rgba(22, 28, 34, 0.3);
}

.mc-home-section__action {
    margin: 28px 0 0;
    text-align: center;
}

.mc-home-section__action a {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #3f7ad9;
    color: #3f7ad9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-home-section__empty {
    margin: 0;
    color: #68717c;
    text-align: center;
}

.mc-oem {
    background: #ffffff;
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
}

.mc-oem__subtitle,
.mc-brands__subtitle,
.mc-certifications__subtitle {
    margin: -24px 0 38px;
    color: #8b9199;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.mc-oem__banner {
    display: block;
    overflow: hidden;
    background: #20242a;
}

.mc-oem__banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 220ms ease, transform 280ms ease;
}

.mc-oem__banner:hover img,
.mc-oem__banner:focus-visible img {
    opacity: 0.92;
    transform: scale(1.012);
}

.mc-brands__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e6e8eb;
    border-left: 1px solid #e6e8eb;
}

.mc-brands__list li {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid #e6e8eb;
    border-bottom: 1px solid #e6e8eb;
    background: #ffffff;
    color: #7a828b;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.mc-brands__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 42px;
    border: 1px solid #dfe3e7;
    color: #b0b6bd;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.mc-brands__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mc-brands__logo {
    display: block;
    width: 100%;
    max-width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.mc-brands__legacy {
    margin: 0;
    padding: 22px 0;
    overflow: hidden;
    background: #ffffff;
}

.mc-brands__legacy img {
    display: block;
    width: 100%;
    height: auto;
}

.mc-certifications__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e6e8eb;
    border-left: 1px solid #e6e8eb;
}

.mc-why .mc-certifications__subtitle {
    margin: 32px 0 20px;
}

.mc-certifications__grid li {
    min-height: 118px;
    padding: 20px 18px;
    border: 0;
    border-right: 1px solid #e6e8eb;
    border-bottom: 1px solid #e6e8eb;
    background: #ffffff;
    text-align: center;
}

.mc-certifications__image,
.mc-certifications__placeholder {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
}

.mc-certifications__image {
    object-fit: contain;
}

.mc-certifications__placeholder {
    border: 1px solid #e4e7ea;
    background: linear-gradient(135deg, #f7f8f9 0%, #eef1f3 100%);
}

.mc-certifications__grid strong {
    display: block;
    margin-bottom: 8px;
    color: #20242a;
    font-size: 22px;
    line-height: 1;
}

.mc-certifications__grid span {
    color: #68717c;
    font-size: 13px;
    line-height: 1.4;
}

.mc-certifications__link {
    display: inline-block;
    margin-top: 12px;
    color: #3f7ad9;
    font-size: 13px;
    font-weight: 800;
}

.mc-home-blog {
    background: #f7f8f9;
    box-shadow: 0 0 0 100vmax #f7f8f9;
    clip-path: inset(0 -100vmax);
}

.mc-home-blog__card {
    display: flex;
    flex-direction: column;
}

.mc-home-blog__grid--legacy .mc-home-blog__card {
    min-height: 520px;
}

.mc-home-blog__grid--legacy .mc-home-blog__body {
    min-height: 190px;
}

.mc-home-blog__placeholder {
    display: grid;
    place-items: center;
    color: #9aa2aa;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mc-home-blog__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.mc-home-blog__body time {
    color: #7d858e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mc-home-blog__body h3 {
    margin: 9px 0 10px;
    color: #252a31;
    font-size: 19px;
    line-height: 1.35;
}

.mc-home-blog__body h3 a {
    color: inherit;
}

.mc-home-blog__body p {
    margin: 0 0 18px;
    color: #68717c;
    font-size: 14px;
    line-height: 1.65;
}

.mc-home-blog__more {
    align-self: flex-start;
    margin-top: auto;
    color: #3f7ad9;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.mc-home-cta {
    position: relative;
    overflow: hidden;
    max-width: none !important;
    padding-top: 44px;
    padding-bottom: 44px;
    background: #f4f6f8;
    color: #24272c;
    text-align: center;
}

.mc-home-cta__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
}

.mc-home-cta__title,
.mc-home-cta p,
.mc-home-cta__actions {
    position: relative;
    z-index: 1;
}

.mc-home-cta__title {
    margin: 0 0 18px;
    color: #24272c;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.mc-home-cta p {
    max-width: 720px;
    margin: 0 auto 20px;
    color: #68717c;
}

.mc-home-cta__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.mc-home-cta__actions .wp-block-button__link {
    min-width: 170px;
    padding: 13px 26px;
    border: 1px solid #3f7ad9;
    border-radius: 999px;
    background: #3f7ad9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mc-home-cta__actions .is-style-outline .wp-block-button__link {
    border-color: #d6dbe1;
    background: transparent;
    color: #24272c;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mc-home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .mc-category-entry__grid,
    .mc-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-factory-strength__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mc-factory-strength__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-product-showcase__grid,
    .mc-certifications__grid,
    .mc-home-collections__grid,
    .mc-home-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-brands__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mc-home-collections__legacy-card > a {
        min-height: 390px;
    }
}

@media (max-width: 767px) {
    .mc-home-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .mc-home-heading {
        gap: 10px;
        margin-bottom: 28px;
        font-size: 28px;
    }

    .mc-category-entry__grid,
    .mc-why__grid,
    .mc-factory-strength__inner,
    .mc-factory-strength__stats,
    .mc-product-showcase__grid,
    .mc-brands__list,
    .mc-certifications__grid,
    .mc-home-collections__grid,
    .mc-home-blog__grid {
        grid-template-columns: 1fr;
    }

    .mc-category-tile__link {
        min-height: 230px;
    }

    .mc-factory-strength__media {
        min-height: 260px;
    }

    .mc-factory-strength__content {
        padding: 28px 22px;
    }

    .mc-factory-strength__stats {
        grid-template-columns: 1fr;
    }

    .mc-product-showcase__tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mc-product-showcase__tabs .wp-block-button,
    .mc-product-showcase__tabs .wp-block-button__link {
        width: 100%;
    }

    .mc-product-showcase__tabs .wp-block-button__link {
        min-width: 0;
        padding: 15px 18px;
        font-size: 16px;
    }

    .mc-product-showcase__grid a {
        min-height: 0;
    }

    .mc-home-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mc-home-cta__actions .wp-block-button__link {
        width: 100%;
    }

    .mc-home-collections__legacy-card > a {
        min-height: 360px;
    }

    .mc-home-blog__grid--legacy .mc-home-blog__card {
        min-height: 0;
    }
}

/* Homepage product tiles follow the original site's image-only grid. */
.mc-product-showcase__tabs {
    margin-bottom: 38px;
}

.mc-product-showcase__tabs .wp-block-button {
    margin: 0;
}

.mc-product-showcase__tabs .wp-block-button__link {
    min-width: 0;
    padding: 14px 55px;
    border-color: #eaeaea;
    background: #f1f2f2;
    color: #1f2328;
    font-size: 20px;
    font-weight: 600;
    line-height: 34.6px;
}

.mc-product-showcase__tabs .is-active .wp-block-button__link {
    background: #ffffff;
}

.mc-home-section.mc-product-showcase > .mc-product-showcase__panel {
    max-width: 1410px !important;
    margin: 0 auto;
}

.mc-product-showcase__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.mc-product-showcase__grid li {
    padding: 5px;
    border: 0;
    background: transparent;
    transition: none;
}

.mc-product-showcase__grid li:hover,
.mc-product-showcase__grid li:focus-within {
    box-shadow: none;
    transform: none;
}

.mc-product-showcase__grid a {
    display: block;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #ebeaea;
    background: #ffffff;
}

.mc-product-showcase__image {
    position: relative;
    width: 100%;
    transform: none !important;
}

.mc-product-showcase__image-img {
    padding: 0;
    object-fit: cover;
}

.mc-product-showcase__image-main,
.mc-product-showcase__image-hover {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease-in-out;
}

.mc-product-showcase__image-main {
    z-index: 1;
    opacity: 1;
}

.mc-product-showcase__image-hover {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .mc-product-showcase__card--has-hover > a:hover .mc-product-showcase__image-main,
    .mc-product-showcase__card--has-hover > a:focus .mc-product-showcase__image-main {
        opacity: 0;
    }

    .mc-product-showcase__card--has-hover > a:hover .mc-product-showcase__image-hover,
    .mc-product-showcase__card--has-hover > a:focus .mc-product-showcase__image-hover {
        opacity: 1;
    }
}

.mc-product-showcase__grid strong,
.mc-product-showcase__grid a > span:last-child {
    display: none;
}

@media (max-width: 1024px) {
    .mc-product-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mc-product-showcase__tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .mc-product-showcase__tabs .wp-block-button,
    .mc-product-showcase__tabs .wp-block-button__link {
        width: auto;
        flex: 0 0 auto;
    }

    .mc-product-showcase__tabs .wp-block-button__link {
        padding-right: 28px;
        padding-left: 28px;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .mc-product-showcase__grid {
        grid-template-columns: 1fr;
    }
}
.mc-home-heading,
.mc-factory-strength__title {
    color: #333333;
    font-family: var(--mc-font-heading);
    font-size: 38px;
    font-weight: 700;
    line-height: 47.88px;
}

/* Legacy typography and spacing, measured from the public MasterCap site. */
@media (min-width: 1025px) {
    .mc-home-section {
        width: min(calc(100% - 60px), var(--mc-content-width));
        max-width: var(--mc-content-width) !important;
        padding-right: 0;
        padding-left: 0;
    }

    .mc-home-section > * {
        max-width: none !important;
    }
}

.mc-product-showcase__subtitle,
.mc-oem__subtitle,
.mc-brands__subtitle,
.mc-why__subtitle,
.mc-factory-strength__eyebrow,
.mc-home-blog__subtitle {
    margin: -28px 0 38px !important;
    color: #747474 !important;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    letter-spacing: normal !important;
    line-height: 30px !important;
    text-align: center;
    text-transform: none !important;
}

.mc-product-showcase {
    padding-bottom: 58px;
}

.mc-product-showcase__subtitle {
    margin-bottom: 45px !important;
}

.mc-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 8vw, 116px);
    row-gap: 18px;
    box-sizing: border-box;
    padding: 0 42px;
}

.mc-why__grid li {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 104px;
    padding: 10px 28px 10px 0;
    border: 0 !important;
    text-align: left;
}

.mc-why__icon {
    grid-row: 1 / span 2;
    align-self: center;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border: 0;
    background: #333333;
    color: #ffffff !important;
}

.mc-why__icon svg {
    display: block;
    width: 72px;
    height: 72px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mc-why__grid strong {
    align-self: end;
    margin: 0;
    color: #333333;
    font-size: 18px;
    font-weight: 700;
    line-height: 33.66px;
}

.mc-why__grid li > span:last-child {
    align-self: start;
    color: #747474;
    font-size: 14px;
    line-height: 26.18px;
}

.mc-factory-strength__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    padding: 0 42px;
}

.mc-factory-strength__content {
    justify-content: flex-start;
    padding: 0;
}

.mc-factory-strength__content p {
    margin: 0 0 20px;
    color: #747474;
    font-size: 15px;
    line-height: 28.05px;
}

.mc-factory-strength__promise {
    color: #747474 !important;
    font-weight: 400;
    text-transform: uppercase;
}

.mc-factory-strength__action a {
    min-width: 131px;
    padding: 12px 24px;
    border-color: #427ed1;
    background: #427ed1;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 16px;
    text-align: center;
}

.mc-home-blog__subtitle + .mc-home-blog__grid,
.mc-home-blog__subtitle + .mc-home-section__empty {
    margin-top: 0;
}

@media (max-width: 767px) {
    .mc-why__grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 0;
    }

    .mc-why__grid li {
        grid-template-columns: 104px minmax(0, 1fr);
        padding-right: 0;
    }

    .mc-why__icon {
        width: 84px;
        height: 84px;
    }

    .mc-why__icon svg {
        width: 63px;
        height: 63px;
    }

    .mc-factory-strength__inner {
        padding: 0;
    }
}
