.mt-products-stage,
.mt-product-detail-stage {
    padding-bottom: 72px;
}

.mt-products-stage > h1,
.mt-product-detail > h1 {
    margin-bottom: 34px;
}

.mt-products-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-product-card {
    border: 1px solid #cfdce2;
    border-radius: 6px;
    margin: 0;
    overflow: hidden;
}

.mt-product-card-link {
    color: #333;
    display: block;
    height: 100%;
    text-decoration: none;
}

.mt-product-card-link:hover {
    opacity: 1;
}

.mt-product-card-image {
    aspect-ratio: 4 / 3;
    background: #f4f7f8;
    margin: 0;
    overflow: hidden;
}

.mt-product-card-image img {
    display: block;
    height: 100%;
    object-fit: contain;
    transition: transform 180ms ease;
    width: 100%;
}

.mt-product-card-link:hover .mt-product-card-image img {
    transform: scale(1.025);
}

.mt-product-card-body {
    border-top: 4px solid #2e95d0;
    padding: 24px 26px 26px;
}

.mt-product-card-body h2 {
    color: #1479ae;
    font-size: 2.2rem;
    line-height: 1.45;
    margin: 0 0 14px;
}

.mt-product-card-body p {
    color: #444;
    font-size: 1.5rem;
    line-height: 1.8;
    margin: 0 0 20px;
}

.mt-product-card-body .mt-product-price,
.mt-product-price {
    color: #222;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 18px;
}

.mt-product-price small {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
}

.mt-product-detail-price {
    border-left: 5px solid #ffc300;
    padding-left: 14px;
}

.mt-product-card-body span {
    background: url("static/wp/wp-content/themes/mado-telier/images/common/arrow_blue.svg") no-repeat 0 0.62em;
    background-size: 8px auto;
    color: #1479ae;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.55;
    padding-left: 18px;
}

.mt-products-empty,
.mt-product-lineup-empty {
    color: #666;
    font-size: 1.5rem;
    line-height: 1.8;
}

.mt-product-list-back {
    font-size: 1.4rem;
    margin: 0 0 22px;
}

.mt-product-list-back a,
.mt-product-family-back a {
    color: #1479ae;
    text-decoration: underline;
}

.mt-product-hero {
    align-items: start;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
}

.mt-product-media,
.mt-product-content {
    min-width: 0;
}

.mt-product-main-image {
    aspect-ratio: 4 / 3;
    background: #f4f7f8;
    margin: 0;
    overflow: hidden;
}

.mt-product-main-image img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.mt-product-gallery {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.mt-product-gallery li {
    aspect-ratio: 4 / 3;
    background: #f4f7f8;
    margin: 0;
    overflow: hidden;
}

.mt-product-gallery img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mt-product-description {
    color: #333;
    font-size: 1.6rem;
    line-height: 1.9;
}

.mt-product-description p {
    margin: 0 0 18px;
}

.mt-product-actions {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
}

.mt-product-actions p {
    display: flex;
    margin: 0;
    min-width: 0;
}

.mt-product-actions p > a {
    height: 100%;
    width: 100%;
}

.mt-product-cases a,
.mt-product-contact a,
.mt-product-catalog {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.45;
    min-height: 54px;
    padding: 14px 18px;
    text-align: center;
}

.mt-product-cases a {
    background: #176d9e;
    color: #fff;
}

.mt-product-contact a {
    background: #ffc300;
    color: #333;
}

.mt-product-lineups {
    border-top: 4px solid #2e95d0;
    margin-top: 64px;
    padding-top: 38px;
}

.mt-product-lineups > h2 {
    color: #1479ae;
    font-size: 2.8rem;
    line-height: 1.4;
    margin: 0 0 28px;
}

.mt-product-family-nav {
    border-bottom: 1px solid #cfdce2;
    margin: 0 0 40px;
}

.mt-product-family-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-product-family-nav li {
    margin: 0;
}

.mt-product-family-nav a {
    background: #eef5f8;
    border: 1px solid #cfdce2;
    border-bottom: 0;
    color: #1479ae;
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: 46px;
    padding: 13px 18px;
}

.mt-product-family + .mt-product-family {
    border-top: 2px solid #9db7c3;
    margin-top: 54px;
    padding-top: 48px;
}

.mt-product-family-header {
    align-items: center;
    background: #f1f5f6;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 34px;
    padding: 22px 24px;
}

.mt-product-family-header h3 {
    color: #222;
    font-size: 2.2rem;
    line-height: 1.4;
    margin: 0 0 4px;
}

.mt-product-family-header p {
    color: #666;
    font-size: 1.3rem;
    margin: 0;
}

.mt-product-catalog {
    background: #fff;
    border: 1px solid #2e95d0;
    color: #1479ae;
    flex: 0 0 260px;
    min-height: 48px;
}

.mt-product-lineup-group + .mt-product-lineup-group {
    margin-top: 42px;
}

.mt-product-lineup-group > h4 {
    border-left: 5px solid #ffc300;
    color: #333;
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 5px 0 5px 14px;
}

.mt-product-lineup-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-product-lineup-grid li {
    border: 1px solid #d5dfe3;
    border-radius: 4px;
    margin: 0;
    overflow: hidden;
}

.mt-product-lineup-grid figure {
    margin: 0;
}

.mt-product-lineup-grid img {
    aspect-ratio: 4 / 3;
    background: #f5f7f8;
    display: block;
    object-fit: contain;
    width: 100%;
}

.mt-product-lineup-grid figcaption {
    border-top: 1px solid #e1e7ea;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.55;
    min-height: 64px;
    padding: 11px 12px;
}

.mt-product-lineup-all {
    border-bottom: 1px solid #cfdce2;
    border-top: 1px solid #cfdce2;
    margin-top: 18px;
}

.mt-product-lineup-all summary {
    color: #1479ae;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 16px 4px;
}

.mt-product-lineup-all ul {
    display: grid;
    gap: 0 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0 4px 18px;
}

.mt-product-lineup-all li {
    border-top: 1px solid #e4eaed;
    color: #444;
    font-size: 1.3rem;
    line-height: 1.55;
    margin: 0;
    padding: 9px 2px;
}

.mt-product-family-back {
    font-size: 1.3rem;
    margin: 28px 0 0;
    text-align: right;
}

@media screen and (max-width: 880px) {
    .mt-products-stage,
    .mt-product-detail-stage {
        padding-bottom: 48px;
    }

    .mt-products-stage > h1,
    .mt-product-detail > h1 {
        margin-bottom: 24px;
    }

    .mt-products-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .mt-product-card-body {
        padding: 20px;
    }

    .mt-product-card-body h2 {
        font-size: 1.9rem;
    }

    .mt-product-card-body p,
    .mt-product-card-body span {
        font-size: 1.4rem;
    }

    .mt-product-hero {
        gap: 26px;
        grid-template-columns: 1fr;
    }

    .mt-product-description {
        font-size: 1.5rem;
    }

    .mt-product-actions {
        grid-template-columns: 1fr;
    }

    .mt-product-cases a,
    .mt-product-contact a,
    .mt-product-catalog {
        font-size: 1.4rem;
    }

    .mt-product-lineups {
        margin-top: 46px;
        padding-top: 28px;
    }

    .mt-product-lineups > h2 {
        font-size: 2.2rem;
    }

    .mt-product-family-nav ul {
        display: grid;
        gap: 1px;
        grid-template-columns: 1fr;
    }

    .mt-product-family-nav a {
        border-bottom: 1px solid #cfdce2;
        min-height: 0;
    }

    .mt-product-family-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .mt-product-family-header h3 {
        font-size: 1.9rem;
    }

    .mt-product-catalog {
        flex-basis: auto;
        width: 100%;
    }

    .mt-product-lineup-grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-product-lineup-grid figcaption {
        font-size: 1.2rem;
        min-height: 58px;
        padding: 9px;
    }

    .mt-product-lineup-all ul {
        grid-template-columns: 1fr;
    }
}
