/* DM product pages: bordered technical overview, range comparison and resources. */
body.theme-doncenmotor.catalog-product-view {
    --dm-product-border: #d5d9e1;
    --dm-product-muted: #f3f4f8;
    --dm-product-accent: var(--dm-brand);
    background: #fff;
    
}
body.theme-doncenmotor.catalog-product-view .breadcrumbs.sg-breadcrumb {
    background: var(--dm-product-muted);
    border: 0;
}
body.theme-doncenmotor.catalog-product-view .sg-breadcrumb__list {
    max-width: 1140px;
    margin-inline: auto;
}
body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product {
    display: block;
    background: #fff;
    border: 1px solid var(--dm-product-border);
    border-radius: 8px;
    margin: 80px auto 44px;
    padding: 0;
    max-width: 1140px;
    width: calc(100% - 48px);
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity {
    padding: 22px 24px 26px;
    margin: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity__title {
    color: inherit;
    font-family: inherit;
    font-size: clamp(32px, 4.1vw, 54px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.14;
    padding: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    border-block: 1px solid var(--dm-product-border);
    margin: 0;
    padding: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary > div {
    display: block;
    border: 0;
    border-inline-end: 1px solid var(--dm-product-border);
    padding: 16px 24px;
    min-width: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary > div:last-child {
    border-inline-end: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary dt {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary dd {
    font-size: 16px;
    line-height: 1.5;
    margin: 5px 0 0;
    color: inherit;
    overflow-wrap: anywhere;
}
.dm-product__overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .gallery-placeholder {
    position: relative;
    top: auto;
    align-self: center;
    min-width: 0;
    margin: 0;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .product-info-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    float: none;
    width: 100%;
    padding: 32px;
    border-inline-start: 1px solid var(--dm-product-border);
    min-width: 0;
    align-self: stretch;
}
body.theme-doncenmotor.catalog-product-view .dm-product .gallery-placeholder .fotorama__stage,
body.theme-doncenmotor.catalog-product-view .dm-product .gallery-placeholder__image {
    border: 0;
    border-radius: 0;
    aspect-ratio: 1.22;
    background: #fff;
}
body.theme-doncenmotor.catalog-product-view .dm-product .gallery-placeholder .fotorama__thumb-border {
    border-color: var(--dm-product-accent);
}
.dm-product-intro__sku,
.dm-product-range__sku {
    display: block;
    color: #929eac;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
}
.dm-product-intro__dimensions {
    color: var(--dm-product-accent);
    font-size: 18px;
    line-height: 1.5;
    margin: 4px 0 0;
}
.dm-product-intro__description {
    font-size: 18px;
    line-height: 1.5;
    margin: 38px 0;
}
.dm-product-intro__description p:last-child { margin-bottom: 0; }
.dm-product-intro__enquiry {
    color: inherit;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 28px;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0 0 20px;
}
.dm-product .sg-product-actions__item:last-child { order: -1; }
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions .storefront-commerce-action__button--secondary {
    background: var(--dm-product-accent);
    border: 1px solid var(--dm-product-accent);
    border-radius:var(--dm-button-radius);
    color: #fff;
    font-size: 16px;
    min-height: 46px;
    padding: 10px 22px;
    margin: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions .storefront-commerce-action__button--secondary:hover {
    background: var(--dm-brand-hover);
    border-color: var(--dm-brand-hover);
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions .storefront-commerce-action__button:not(.storefront-commerce-action__button--secondary) {
    color: inherit;
    background: transparent;
    border: 0;
    min-height: 44px;
    padding: 0;
    text-decoration: underline;
}
/* Keep the established selector as the source for configuration and gallery sync. */
.dm-product:has(.dm-product-range) .dichen-product-specs--variants > .dichen-product-specs__variants { display: none; }
body.theme-doncenmotor.catalog-product-view .dm-product .dichen-product-specs__compatible-card,
body.theme-doncenmotor.catalog-product-view .dm-product .dichen-product-specs__compatible-summary {
    border-radius: 4px;
    box-shadow: none;
}
.dm-product-range {
    border-top: 1px solid var(--dm-product-border);
    border-radius: 0 0 8px 8px;
}
.dm-product-range__table { width: 100%; border-collapse: collapse; margin: 0; min-width: 0; }
.dm-product-range__table th,
.dm-product-range__table td { font-size: 13px; line-height: 1.3; text-align: left; vertical-align: middle; }
.dm-product-range__table thead th { background: var(--dm-product-muted); padding: 13px 16px; font-weight: 700; }
.dm-product-range__table tbody th { width: 22%; padding: 14px 16px 14px 32px; position: relative; }
.dm-product-range__table tbody th::before { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; left: 12px; top: 25px; background: #4e4b5d; }
.dm-product-range__table tbody tr { border-top: 1px solid var(--dm-product-border); }
.dm-product-range__table tbody strong { display: block; font-weight: 700; }
.dm-product-range__table td { padding: 16px 0; font-weight: 400; }
.dm-product-range__table td span { display: block; padding: 12px 16px; background: var(--dm-product-muted); white-space: nowrap; }
.dm-product-range__table td:nth-child(2) span { border-radius: 6px 0 0 6px; }
.dm-product-range__table td:last-child { padding-right: 30px; }
.dm-product-range__table td:last-child span { border-radius: 0 6px 6px 0; }
body.theme-doncenmotor.catalog-product-view .dm-product-range__select {
    background: transparent; border: 0; box-shadow: none; color: inherit; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 400; margin: 3px 0 0; min-height: 24px; padding: 0; text-align: left;
}
body.theme-doncenmotor.catalog-product-view .dm-product-range__select:hover { color: var(--dm-product-accent); text-decoration: underline; }
.dm-product-range__table .is-selected th::before { background: var(--dm-product-accent); }
.dm-product-range__table .is-selected td span { background: #fceeea; }
.dm-product-resources {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
    max-width: 1140px;
    width: calc(100% - 48px);
    margin: 0 auto 80px;
    align-items: start;
}
.dm-product-resources--no-downloads { grid-template-columns: minmax(0, 1fr); }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details {
    display: block; width: 100%; max-width: none; margin: 0; min-width: 0; grid-column: auto;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tabs {
    background: #fff; border-top: 0; border-bottom: 1px solid var(--dm-product-border); position: static;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab {
    flex: 1; color: inherit; font-size: 20px; padding: 10px 16px 12px; font-weight: 600;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab.is-active::after {
    background: var(--dm-product-accent); border-radius: 6px 6px 0 0; height: 6px; left: 50%; right: auto; width: 134px; max-width: 80%; transform: translateX(-50%); bottom: 0;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__content {
    padding: 0; max-width: none; border-radius: 0; color: inherit;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__panels { margin-top: 32px; }
.dm-product-resources .sg-product-specs__table-wrap { border: 1px solid var(--dm-product-border); border-radius: 7px; overflow: hidden; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table tr { background: #fff; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table th,
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table td {
    border-bottom: 1px solid var(--dm-product-border); padding: 8px 16px; font-size: 13px; line-height: 1.3; color: inherit; overflow-wrap: anywhere;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table tr:last-child > * { border-bottom: 0; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table th { background: var(--dm-product-muted); border-right: 1px solid var(--dm-product-border); width: 55%; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-specs__table td { width: 45%; }
.dm-product-downloads { min-width: 0; scroll-margin-top: 100px; }
.dm-product-downloads h2 { color: inherit; font-size: 20px; font-weight: 600; margin: 10px 0 24px; line-height: 1.4; }
.dm-product-downloads__table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--dm-product-border); border-radius: 7px; overflow: hidden; table-layout: fixed; }
.dm-product-downloads__table td { padding: 10px 16px; border-bottom: 1px solid var(--dm-product-border); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.dm-product-downloads__table td + td { border-left: 1px solid var(--dm-product-border); }
.dm-product-downloads__table tr:last-child td { border-bottom: 0; }
.dm-product-downloads__table a { color: var(--dm-product-accent); text-decoration: none; }
.dm-product-downloads__table a:hover { text-decoration: underline; }
.dm-product :focus-visible,
.dm-product-resources :focus-visible { outline: 2px solid var(--dm-product-accent); outline-offset: 3px; }
/* Reference breakpoints: compact <768, tablet cards <1024, desktop >=1024.
   Card and table markup share the same variant payload and selection handler. */
.dm-product-range__table { display: none; }
.dm-product-range__cards { display: block; }
.dm-product-range__card {
    padding: 24px 8px;
    border-top: 1px solid var(--dm-product-border);
}
.dm-product-range__card:first-child { border-top: 0; }
.dm-product-range__card-heading {
    position: relative;
    margin: 0 8px 16px;
    padding-left: 16px;
}
.dm-product-range__card-heading::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4e4b5d;
    left: 0;
    top: 12px;
}
.dm-product-range__card-heading h2 {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.dm-product-range__card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    background: var(--dm-product-muted);
    border-radius: 8px;
    margin: 0 0 16px;
    padding: 8px 16px;
}
.dm-product-range__card-specs > div {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}
.dm-product-range__card-specs dt {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.dm-product-range__card-specs dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.dm-product-range__card-actions { padding-inline: 8px; }
body.theme-doncenmotor.catalog-product-view .dm-product-range__card-actions .dm-product-range__select {
    min-height: 44px;
    margin: -8px 0;
}
.dm-product-range__card.is-selected .dm-product-range__card-heading::before { background: var(--dm-product-accent); }
.dm-product-range__card.is-selected .dm-product-range__card-specs { background: #fceeea; }

/* Below 576px the reference uses 16px gutters; from 576px it uses 40px. */
body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product {
    width: calc(100% - 32px);
    max-width: 1140px;
    margin-block: 40px;
}
.dm-product-resources {
    width: calc(100% - 32px);
    max-width: 1140px;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity { padding: 16px; }
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity__title {
    font-size: clamp(32px, calc(23.5797px + 2.25141vw), 56px);
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    border-top: 0;
    padding: 0 16px 16px;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary > div {
    flex: 0 0 auto;
    max-width: 100%;
    border: 0;
    padding: 0;
}
.dm-product__overview { grid-template-columns: minmax(0, 1fr); }
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .gallery-placeholder { padding: 20px; }
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .product-info-main {
    border-left: 0;
    border-top: 1px solid var(--dm-product-border);
    padding: 16px;
}
.dm-product-intro__description { margin: 24px 0; }
.dm-product-intro__enquiry { font-size: clamp(19px, calc(18.6492px + .09381vw), 20px); }
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
/* The reference retains tabs on mobile, rather than changing to accordions. */
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tabs {
    display: flex;
    flex-wrap: wrap;
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab {
    display: block;
    position: relative;
    text-align: center;
    text-decoration: none;
    font-size: clamp(19px, calc(18.6492px + .09381vw), 20px);
    padding-inline: 8px;
    white-space: normal;
    min-width: 0;
}
.dm-product-resources .sg-product-details__section { border: 0; display: block; }
.dm-product-resources .sg-product-details__section > summary { display: none; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__panels { margin-top: 32px; }
.dm-product-downloads h2 { margin-top: 0; }
@media (min-width: 576px) {
    body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product,
    .dm-product-resources { width: calc(100% - 80px); }
}
@media (min-width: 768px) {
    body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity { padding: 24px; }
    body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary {
        border-top: 1px solid var(--dm-product-border);
        border-bottom: 0;
        gap: 0;
        padding: 0;
    }
    body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary > div {
        flex: 1 0 0;
        min-width: min-content;
        padding: 16px 24px;
        border-bottom: 1px solid var(--dm-product-border);
    }
    body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-summary > div:not(:last-child) { border-right: 1px solid var(--dm-product-border); }
    body.theme-doncenmotor.catalog-product-view .dm-product__overview > .product-info-main { padding: 24px; }
    body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-actions { flex-direction: row; align-items: center; }
    .dm-product-range__card-specs { gap: 0; border-top: 1px solid var(--dm-product-border); }
    .dm-product-range__card-specs > div {
        flex: 1 0 0;
        min-width: min-content;
        padding: 16px 24px;
        border-bottom: 1px solid var(--dm-product-border);
    }
    .dm-product-range__card-specs > div:not(:last-child) { border-right: 1px solid var(--dm-product-border); }
    .dm-product-range__card-specs dt { white-space: nowrap; }
    .dm-product-resources { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
    .dm-product-downloads h2 { margin-top: 10px; }
}
@media (min-width: 1024px) {
    .dm-product-range__table { display: table; }
    .dm-product-range__cards { display: none; }
    body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product { margin-top: 64px; }
    .dm-product__overview { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    body.theme-doncenmotor.catalog-product-view .dm-product__overview > .product-info-main {
        border-top: 0;
        border-left: 1px solid var(--dm-product-border);
        padding: 32px;
    }
    .dm-product-intro__description { margin: 40px 0; }
    .dm-product-resources { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
}
@media (min-width: 1200px) {
    body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product,
    .dm-product-resources { width: calc(100% - 160px); }
    body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product { margin-top: 80px; }
    .dm-product__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dm-product-resources--no-downloads { grid-template-columns: minmax(0, 1fr); }

/* DM configuration design: shared 1140px shell, gallery and visible component choices. */
body.theme-doncenmotor.catalog-product-view {
    --dm-product-accent: var(--dm-brand);
    --dm-product-muted: #f4f6f8;
    --dm-product-border: #dce2e7;
}
body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product {
    width: calc(100% - 64px); max-width: 1140px; border: 0; margin: 40px auto 32px;
}
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity { padding: 0 0 30px; }
body.theme-doncenmotor.catalog-product-view .dm-product .sg-product-identity__title {
    font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.15;
}
.dm-product__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .gallery-placeholder {
    padding: 0; align-self: start; border: 1px solid var(--dm-product-border); border-radius: 12px; overflow: hidden;
}
body.theme-doncenmotor.catalog-product-view .dm-product__overview > .product-info-main {
    padding: 0; border: 0; gap: 20px;
}
body.theme-doncenmotor.catalog-product-view .dm-product .gallery-placeholder .fotorama__stage,
body.theme-doncenmotor.catalog-product-view .dm-product .gallery-placeholder__image { aspect-ratio: 3 / 2; }
.dm-product-intro__enquiry { display: none; }
.dm-product-intro__description { font-size: 14px; line-height: 1.7; color: #71808c; }
.dm-product-intro__dimensions { font-size: 12px; line-height: 1.7; }
.dm-product:has(.dm-configurator) .dm-product-intro__description { display: none; }
.dm-configurator { border: 1px solid var(--dm-product-border); border-radius: 12px; overflow: hidden; }
.dm-native-bundle[hidden] { display: none !important; }
.dm-component { padding: 24px; min-width: 0; }
.dm-component + .dm-component { border-top: 1px solid var(--dm-product-border); }
.dm-component__heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dm-component__heading img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; }
.dm-eyebrow { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #71808c; margin-bottom: 6px; }
.dm-component__heading h2 { font-size: 20px; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.dm-component__label { font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.dm-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dm-options--ratios { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.theme-doncenmotor .dm-option {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; min-width: 0; width: 100%; height: auto; white-space: normal; margin: 0;
    padding: 18px 12px 14px; background: #fff; border: 1px solid var(--dm-product-border);
    border-radius:var(--dm-button-radius); color: inherit; font: inherit; box-shadow: none; text-align: left; cursor: pointer;
}
body.theme-doncenmotor .dm-option:hover { border-color: #97a4af; background: #fafbfc; }
body.theme-doncenmotor .dm-option[aria-pressed="true"] { border-color: var(--dm-product-accent); box-shadow: inset 0 0 0 1px var(--dm-product-accent); background: #fff6f8; }
.dm-option[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 3px; right: 7px; font-size: 12px; color: var(--dm-product-accent); }
.dm-option__value { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.dm-option__value:nth-child(2) { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.dm-option__sku { font-size: 10px; color: #71808c; overflow-wrap: anywhere; }
.dm-options--ratios .dm-option { align-items: center; padding: 16px 6px 12px; text-align: center; }
.dm-options--ratios .dm-option__value { font-size: 17px; font-weight: 700; }
body.theme-doncenmotor .dm-option:disabled { opacity: .45; cursor: not-allowed; }
.dm-component__current { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: #71808c; overflow-wrap: anywhere; }
.dm-product-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; border-radius: 12px; background: var(--dm-product-muted); margin: 28px 0; padding: 26px; }
.dm-product-output__heading { grid-column: 1 / -1; color: #71808c; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); border: 0; padding: 0; min-width: 0; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary > div { padding: 0 16px 0 0; border: 0; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary dt { font-size: 11px; color: #71808c; font-weight: 400; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary dd { font-size: 20px; font-weight: 700; margin-top: 8px; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-actions { margin: 0; flex-direction: column; gap: 10px; align-items: stretch; }
body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-actions a { text-align: center; }
.dm-detail-nav, .dm-product-resources, .dm-product-drawing { width: calc(100% - 64px); max-width: 1140px; margin-inline: auto; }
.dm-detail-nav { display: flex; flex-wrap: wrap; gap: 32px; padding: 22px 0; margin-bottom: 40px; border-bottom: 1px solid var(--dm-product-border); }
.dm-detail-nav a { font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; }
.dm-detail-nav a:hover { color: var(--dm-product-accent); }
.dm-product-resources { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tabs { justify-content: flex-start; gap: 24px; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab { font-size: 24px; padding: 0 0 16px; }
.dm-product-downloads { padding: 24px; border: 1px solid var(--dm-product-border); border-radius: 8px; }
.dm-product-downloads h2 { font-size: 22px; margin-top: 0; }
.dm-spec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
body.theme-doncenmotor .dm-spec-tabs button { margin: 0; padding: 10px 14px; font-size: 12px; border: 1px solid var(--dm-product-border); border-radius:var(--dm-button-radius); background: white; color: inherit; box-shadow: none; }
body.theme-doncenmotor .dm-spec-tabs button[aria-selected="true"] { background: var(--dm-text-color); color: #fff; border-color: var(--dm-text-color); }
#dm-spec-component[hidden], #dm-spec-combined[hidden] { display: none !important; }
.dm-product-drawing { margin-block: 48px; padding: 0; }
.dm-product-drawing > h2 { font-size: 26px; margin-bottom: 24px; }
.dm-product-drawing .dichen-product-documents { border: 1px solid var(--dm-product-border); border-radius: 8px; padding: 24px; }
body.theme-doncenmotor.catalog-product-view .sg-cta { width: calc(100% - 64px); max-width: 1140px; margin: 48px auto; background: transparent; color: inherit; padding: 0; }
body.theme-doncenmotor.catalog-product-view .sg-cta__inner { width: 100%; max-width: none; padding: 70px 50px; }
body.theme-doncenmotor.catalog-product-view .sg-cta__copy { margin: 0; }
.dm-option:focus-visible, .dm-spec-tabs button:focus-visible { outline: 3px solid var(--dm-brand); outline-offset: 3px; }
#sg-product-details, #downloads, #dm-product-drawing { scroll-margin-top: 100px; }
@media (min-width: 1440px) { .dm-options--ratios { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1100px) {
    .dm-options:not(.dm-options--ratios) { grid-template-columns: 1fr; }
    .dm-options:not(.dm-options--ratios) .dm-option { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
    .dm-component { padding: 20px; }
}
@media (max-width: 1023px) {
    .dm-product-output { grid-template-columns: 1fr; }
    body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-actions { flex-direction: row; align-items: center; gap: 24px; }
    .dm-product-resources { gap: 24px; }
}
@media (max-width: 767px) {
    body.theme-doncenmotor.catalog-product-view .sg-product-hero.dm-product,
    .dm-detail-nav, .dm-product-resources, .dm-product-drawing,
    body.theme-doncenmotor.catalog-product-view .sg-cta { width: calc(100% - 32px); }
    .dm-product__overview, .dm-product-resources { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .dm-component { padding: 22px 18px; }
    .dm-options:not(.dm-options--ratios) { grid-template-columns: 1fr; }
    .dm-options:not(.dm-options--ratios) .dm-option { display: grid; grid-template-columns: .6fr 1fr .6fr; gap: 8px; }
    .dm-option__sku { grid-column: 1 / -1; }
    .dm-product-output { padding: 22px; }
    body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    body.theme-doncenmotor.catalog-product-view .dm-product-output .sg-product-summary dd { font-size: 21px; }
    .dm-detail-nav { gap: 24px; margin-bottom: 28px; }
    .dm-detail-nav a { font-size: 12px; }
    body.theme-doncenmotor.catalog-product-view .sg-cta__inner { padding: 40px 20px; }
}
/* Keep the ratio itself readable; the selected SKU is shown beneath the group. */
.dm-options--ratios .dm-option__sku { display: none; }
.dm-options--ratios .dm-option__value { white-space: nowrap; font-size: 15px; }
.dm-product-intro__dimensions { color: #71808c; }
@media (max-width: 767px) {
    .dm-options--ratios { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
    .dm-options--ratios .dm-option { min-height: 52px; }
}
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab { flex: 0 1 auto; text-align: left; }
body.theme-doncenmotor.catalog-product-view .dm-product-resources .sg-product-details__tab.is-active::after { left: 0; transform: none; width: 100%; max-width: 100%; height: 3px; border-radius: 0; }
.dm-product-resources--no-downloads { grid-template-columns: minmax(0, 1fr); }
#dm-spec-component { border: 1px solid var(--dm-product-border); border-radius: 7px; overflow: hidden; }
.dm-config-download { display: block; color: var(--dm-product-accent); font-size: 12px; line-height: 1.6; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dm-product-border); }
/* Bundle results express the selected calculation, separate from ordinary key data. */
.dm-product-output:has(.dm-output-calculation) { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding: 30px; }
.dm-product-output:has(.dm-output-calculation) > .dm-product-output__heading { display: none; }
.dm-output-calculation { display: grid; grid-template-columns: .9fr 1.1fr 1.6fr; gap: 20px 28px; align-items: center; min-width: 0; }
.dm-output-calculation__intro h2 { font-size: 23px; line-height: 1.2; margin: 0 0 10px; }
.dm-output-calculation__live { display: flex; align-items: center; gap: 6px; color: #537564; font-size: 11px; line-height: 1.5; }
.dm-output-calculation__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4b9570; flex: none; }
.dm-output-calculation__speed > span { font-size: 12px; color: #71808c; }
.dm-output-calculation__speed strong { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; margin-top: 8px; overflow-wrap: anywhere; }
.dm-output-calculation__metrics { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; margin: 0; min-width: 0; }
.dm-output-calculation__metrics dt { font-size: 11px; font-weight: 400; color: #71808c; margin: 0 0 8px; }
.dm-output-calculation__metrics dd { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.dm-output-calculation__context { grid-column: 1 / -1; border-top: 1px solid var(--dm-product-border); padding-top: 16px; color: #71808c; font-size: 12px; line-height: 1.7; }
.dm-output-calculation__context p { margin: 0; }
.dm-output-calculation__context [data-dm-output-equation] { color: inherit; margin-top: 4px; }
@media(max-width: 1199px) {
    .dm-output-calculation { grid-template-columns: 1fr 1.2fr; }
    .dm-output-calculation__metrics { grid-column: 1 / -1; }
}
@media(max-width: 767px) {
    .dm-product-output:has(.dm-output-calculation) { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
    .dm-output-calculation { gap: 24px 14px; }
    .dm-output-calculation__intro h2 { font-size: 21px; }
    .dm-output-calculation__speed strong { font-size: 32px; }
    .dm-output-calculation__metrics dd { font-size: 17px; }
}

/* Keep file, preview and download aligned across all resource rows. */
.dm-product-downloads__table .dm-download-name-col { width: 50%; }
.dm-product-downloads__table .dm-download-preview-col { width: 14%; }
.dm-product-downloads__table .dm-download-action-col { width: 36%; }
