@import url("../../assets/css/product-detail.css");

.yhm-product-design,
.yhm-product-design * {
    box-sizing: border-box
}

.yhm-product-design.kt-product-detail {
    padding-bottom: 0
}

.yhm-product-design {
    font-family: Inter, system-ui, sans-serif;
    color: #121212;
    background: #fff
}

.yhm-design-hero {
    position: relative;
    min-height: 500px;
    height: 500px;
    background: #fff
}

.yhm-design-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    width: min(1600px, calc(100% - 80px));
    height: 100%;
    margin: 0 auto;
    padding: 45px 0
}

.yhm-design-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0
}

.yhm-design-hero__image img {
    display: block;
    width: 100%;
    height: 410px;
    object-fit: contain
}

.yhm-design-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    width: auto !important;
    min-width: 0
}

.yhm-design-hero__copy>div {
    white-space: normal !important
}

.yhm-design-hero__copy [data-pencil-name="DX360 Category"] {
    color: #dd2425;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px
}

.yhm-design-hero__copy [data-pencil-name="DX360 Title"] {
    color: #121212;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1
}

.yhm-design-hero__copy [data-pencil-name="DX360 Tagline"] {
    color: #121212;
    font-size: 16px;
    line-height: 26px
}

.yhm-design-hero__copy [data-pencil-name="DX360 Product Introduction"],
.yhm-design-hero__copy [data-pencil-name="DX360 Chassis Introduction"] {
    color: #121212;
    font-size: 16px;
    line-height: 21px
}

.yhm-design-actions {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: 100%;
    max-width: none;
    height: 44px;
    margin-top: 8px
}

.yhm-design-actions a {
    display: flex;
    flex: 1 1 0;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #dd2425;
    color: #fff;
    text-decoration: none
}

.yhm-design-actions a span {
    color: #fff;
    font-size: 15px;
    font-weight: 700
}

.yhm-design-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
    width: 100%;
    height: 50px
}

.yhm-design-breadcrumb__text {
    width: min(1600px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 18px;
    color: #121212;
    font-size: 12px
}

.yhm-design-breadcrumb__text a {
    color: inherit
}

.yhm-design-metrics {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-width: none;
    min-height: 188px;
    padding: 34px 160px;
    align-items: flex-start;
    background: #17191c
}

.yhm-design-metric {
    flex: 1 1 0;
    min-width: 0;
    height: 120px;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #3a3d40
}

.yhm-design-metric--last {
    border-right: 0
}

.yhm-design-metric>div:first-child {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1
}

.yhm-design-metric>div:last-child {
    color: #aeb3b7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2
}

.yhm-design-selling {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: none;
    padding: 100px 160px;
    background: #fff
}

.yhm-design-section-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.yhm-design-section-head h2 {
    margin: 6px 0 0
}

.yhm-design-section-head>a:not(.yhm-design-brochure) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 44px;
    padding: 13px 20px;
    border-radius: 8px;
    background: #dd2425;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap
}

.yhm-design-section-head>a:not(.yhm-design-brochure) span {
    margin-left: 4px;
    color: inherit
}

.yhm-design-selling__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%
}

.yhm-design-selling__item {
    position: relative;
    min-height: 180px;
    padding: 16px 16px 20px;
    border: 1px solid #d9dde0;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.yhm-design-selling__item>span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #dd2425
}

.yhm-design-selling__item p {
    margin: 0;
    color: #121212;
    font-size: 16px;
    line-height: 1.47
}

.yhm-design-selling__icon {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #dd2425;
    font-weight: 700
}

.yhm-design-selling__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain
}

.yhm-design-brochure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #dd2425;
    border-radius: 8px;
    color: #dd2425;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap
}

.yhm-design-brochure svg {
    width: 18px;
    height: 18px;
    flex: none
}

.yhm-design-selling h2 {
    color: #121212;
    font-size: 36px;
    line-height: 1.1
}

.yhm-design-selling .yhm-design-section-head h2 {
    margin: 0
}

.yhm-design-specs h2 {
    color: #121212;
    font-size: 36px;
    line-height: 1.1
}

.yhm-design-specs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: none;
    padding: 100px 160px;
    background: #f4f5f6
}

.yhm-design-specs__table {
    width: 100%;
    border: 1px solid #d9dde0
}

.yhm-design-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    align-items: center;
    padding: 0 18px;
    background: #f4f5f6;
    color: #121212;
    font-size: 16px
}

.yhm-design-spec-row--alt {
    background: #fff
}

.yhm-design-spec-row strong {
    color: #121212;
    font-weight: 400;
    text-align: right
}

.yhm-design-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: none;
    padding: 100px 160px;
    background: #fff
}

.yhm-design-details__content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 30px;
    width: 100%;
    min-height: 400px
}

.yhm-design-details__image {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e3e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden
}

.yhm-design-details__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.yhm-design-details__panel {
    padding: 30px 34px;
    background: #f7f8f9;
    border: 1px solid #e0e3e5;
    border-radius: 8px
}

.yhm-design-details__panel h3 {
    margin: 0;
    font-size: 36px
}

.yhm-design-details__panel>span {
    display: block;
    width: 54px;
    height: 3px;
    margin: 18px 0;
    background: #dd2425
}

.yhm-design-details__panel h4 {
    margin: 18px 0 6px;
    font-size: 16px
}

.yhm-design-details__panel p {
    margin: 0;
    color: #121212;
    font-size: 16px;
    line-height: 1.5
}

.yhm-design-cases {
    display: flex;
    flex-direction: column;
    max-width: none;
    padding: 100px 160px;
    background: #f4f5f6
}

.yhm-design-cases h2,
.yhm-design-related h2 {
    margin: 0 0 14px;
    font-size: 36px
}

.yhm-design-cases__grid,
.yhm-design-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%
}

.yhm-design-cases__grid article {
    overflow: hidden;
    border-radius: 8px;
    background: #fff
}

.yhm-design-cases__grid article>a {
    display: block;
    color: inherit
}

.yhm-design-cases__grid img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover
}

.yhm-design-cases__grid article>div,
.yhm-design-cases__grid article>a>div {
    padding: 16px 20px
}

.yhm-design-cases__grid h3 {
    margin: 0 0 6px;
    font-size: 18px
}

.yhm-design-cases__grid p {
    margin: 0 0 8px;
    color: #121212;
    font-size: 16px
}

.yhm-design-cases__grid span {
    color: #dd2425;
    font-size: 16px;
    font-weight: 700
}

.yhm-design-related {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-width: none;
    padding: 90px 160px;
    background: #fff
}

.yhm-design-related>div>p {
    margin: 0;
    color: #121212;
    font-size: 14px
}

.yhm-design-related__grid {
    margin-top: 28px
}

.yhm-design-related__grid article {
    overflow: hidden;
    border: 1px solid #e0e3e5;
    border-radius: 8px;
    background: #fff
}

.yhm-design-related__grid a {
    display: block;
    color: inherit
}

.yhm-design-related__grid img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain
}

.yhm-design-related__grid article>a>div {
    position: relative;
    padding: 18px 22px 22px
}

.yhm-design-related__grid article>a:hover,
.yhm-design-related__grid article>a:focus-visible {
    color: #dd2425
}

.yhm-design-related__grid small {
    color: #dd2425;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px
}

.yhm-design-related__grid h3 {
    margin: 8px 0 0;
    font-size: 22px
}

.yhm-design-related__grid p {
    margin: 6px 0 0;
    color: #121212;
    font-size: 13px;
    line-height: 1.4
}

.yhm-design-related__more {
    display: block;
    margin-top: 16px;
    color: #dd2425;
    font-size: 16px;
    font-weight: 600
}

@media(max-width:900px) {
    .yhm-design-hero {
        min-height: 0;
        height: auto
    }

    .yhm-design-hero__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
        padding: 70px 24px 40px
    }

    .yhm-design-hero__image,
    .yhm-design-hero__copy {
        width: 100% !important;
        height: auto;
        min-height: 0
    }

    .yhm-design-hero__image img {
        height: auto;
        max-height: 360px
    }

    .yhm-design-breadcrumb__text {
        padding: 14px 24px 0
    }

    .yhm-design-metrics,
    .yhm-design-selling,
    .yhm-design-specs,
    .yhm-design-details,
    .yhm-design-cases,
    .yhm-design-related {
        padding-right: 24px !important;
        padding-left: 24px !important
    }

    .yhm-design-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0
    }

    .yhm-design-metric {
        padding: 20px;
        border-bottom: 1px solid #3a3d40
    }

    .yhm-design-selling__grid,
    .yhm-design-cases__grid,
    .yhm-design-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .yhm-design-details__content {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .yhm-design-actions {
        width: 100%;
        max-width: none;
        flex-direction: column;
        height: auto;
        gap: 10px
    }

    .yhm-design-actions a {
        width: 100%;
        flex: none
    }

    .yhm-design-section-head {
        align-items: flex-start;
        flex-direction: column
    }

    .yhm-design-selling__grid,
    .yhm-design-cases__grid,
    .yhm-design-related__grid {
        grid-template-columns: 1fr
    }

    .yhm-design-spec-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px
    }

    .yhm-design-spec-row strong {
        text-align: left
    }
}
@media (min-width: 701px) {
    .yhm-design-breadcrumb__text { font-size: 16px; }
}

/* Match the hero's centered content width on wide desktop screens. */
@media (min-width: 1921px) {
    .yhm-design-metrics,
    .yhm-design-selling,
    .yhm-design-specs,
    .yhm-design-details,
    .yhm-design-cases,
    .yhm-design-related {
        padding-left: max(160px, calc((100% - 1600px) / 2));
        padding-right: max(160px, calc((100% - 1600px) / 2));
    }
}

.yhm-design-hero__image { position: relative; }
.yhm-product-gallery { position: absolute; inset: auto 0 0; z-index: 1; background: #fff; border: 1px solid #e0e3e5; border-radius: 8px; }
.yhm-product-gallery summary { padding: 10px 16px; color: #dd2425; font-weight: 700; cursor: pointer; }
.yhm-product-gallery[open] { top: 0; display: flex; flex-direction: column; }
.yhm-product-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: calc(100% - 44px); }
.yhm-product-gallery__track figure { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; scroll-snap-align: start; }
body .yhm-product-gallery__track img { width: 100%; height: calc(100% - 30px); object-fit: contain; }
.yhm-product-gallery figcaption { text-align: center; font-size: 14px; line-height: 30px; }
@media (min-width: 768px) and (max-width: 1024px) {
    body.single-product .yhm-design-hero__inner { width: calc(100% - 80px); margin-inline: auto; padding-inline: 0; }
    body.single-product .yhm-product-design :is(.yhm-design-metrics, .yhm-design-selling, .yhm-design-specs, .yhm-design-details, .yhm-design-cases, .yhm-design-related) { padding-inline: 40px !important; }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  body.single-product .yhm-design-hero__copy [data-pencil-name='DX360 Title'] { font-size: 38px !important; }
  body.single-product .yhm-design-cases__grid h3 { font-size: 22px !important; }
}

.yhm-design-cases__grid p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

@media (max-width: 767px) {
  body.single-product .yhm-design-metric > div:first-child { font-size: 22px !important; }
  body.single-product .yhm-design-selling .yhm-design-section-head > a,
  body.single-product .yhm-design-brochure { font-size: 14px !important; }
}
