/* Shared product presentation. Technical tables retain their data and responsive rules. */
@font-face{font-family:'Huisen Product Display';src:url('fonts/BarlowSemiCondensed-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
body.huisen-product-standard{
 --hps-display:'Huisen Product Display',Arial,'Microsoft YaHei','Yu Gothic','Malgun Gothic',sans-serif;
 --hps-columns:6;--hps-row-gap:24px;--hps-column-gap:18px;--hps-card-title:19px;
 --hps-heading:clamp(36px,3.5vw,52px);--hps-body:17px;--hps-gutter:48px;
 --huisen-catalog-display:var(--hps-display);--huisen-catalog-card:var(--hps-card-title);
}
body.huisen-product-standard #main :is(h1,h2,h3){font-family:var(--hps-display);font-weight:600;letter-spacing:0;hyphens:none}
body.huisen-product-standard #main :is(.huisen-toolholders-breadcrumb,.huisen-turning-breadcrumb,.em-breadcrumb,.ud-breadcrumb,.ed-breadcrumb,.mh-breadcrumb,.mi-breadcrumb,.cr-breadcrumb,.sp-breadcrumb,.swh-breadcrumb,.scb-breadcrumb,.gi-breadcrumb,.ti-breadcrumb,.breadcrumb,.cn-breadcrumb){font-size:13px;line-height:1.5;gap:5px 9px}

/* Category frames and type. Short rows use empty grid tracks, never stretched cards. */
body.huisen-product-catalog #main{--huisen-product-columns:var(--hps-columns);--huisen-product-row-gap:var(--hps-row-gap);--huisen-product-column-gap:var(--hps-column-gap)}
body.huisen-product-catalog #main :is(.huisen-toolholders-inner,.huisen-turning-inner,.em-wrap,.ud-wrap,.gi-wrap,.swh-wrap,.scb-wrap,.container){width:min(1400px,calc(100% - 2 * var(--hps-gutter)));max-width:none;margin-inline:auto;padding-inline:0;box-sizing:border-box}
body.huisen-product-catalog #main .huisen-turning-ranges{width:100%;max-width:none}
body.huisen-product-catalog #main h1{font-size:var(--hps-heading);line-height:1.12;letter-spacing:-.015em;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-catalog #main h2{font-size:28px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-catalog #main h3{font-size:20px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-catalog #main :is(.huisen-turning-range-heading,.huisen-toolholders-range-heading,.em-family-group,.em-series-about)>h2{font-size:28px;line-height:1.3}
body.huisen-product-catalog #main :is(.huisen-toolholders-intro>p,.huisen-turning-body,.threading-catalog-intro,.huisen-threading-holders-intro,.huisen-specialist-category-intro,.em-heading>p,.ud-heading>p,.huisen-toolholder-selection-intro,.huisen-spindle-detail-heading>p){font-size:var(--hps-body);line-height:1.75}
body.huisen-product-catalog #main :is(.huisen-toolholders-grid,.huisen-specialist-grid,.huisen-grooving-grid,.huisen-threading-grid,.huisen-end-mill-categories-grid,.huisen-turning-holder-category-grid,.huisen-spindle-holders-grid,.huisen-turning-grid,.em-grid,.ud-grid,.swh-grid,.swhx-series,.swhx-categories,.gi-grid,.threading-grid){display:grid;grid-template-columns:repeat(var(--hps-columns),minmax(0,1fr));gap:var(--hps-row-gap) var(--hps-column-gap);grid-auto-rows:1fr;align-items:stretch}
body.huisen-product-catalog #main :is(.huisen-toolholder,.huisen-specialist-card,.huisen-grooving-card,.huisen-threading-card,.huisen-end-mill-category,.huisen-turning-family,.huisen-turning-holder-product,.huisen-spindle-holder-product,.huisen-spindle-holder,.em-card,.ud-card,.swh-card,.swhx-card,.gi-card,.threading-card){display:flex;flex-direction:column;min-width:0;height:100%;padding:0;border:0;border-radius:0;background:var(--huisen-surface,#F3F3F2);color:var(--huisen-gray,#383635);text-decoration:none}
body.huisen-product-catalog #main :is(.huisen-toolholder-entry,.huisen-specialist-card-link,.huisen-grooving-card-link,.huisen-threading-card-link,.huisen-end-mill-category-link,.huisen-morse-taper-spade-category-link,.huisen-side-lock-spade-category-link,.scb-category-link){display:flex;flex:1;flex-direction:column;min-width:0;text-decoration:none;color:inherit}
body.huisen-product-catalog #main :is(.huisen-toolholder-photo,.huisen-specialist-photo,.huisen-grooving-photo,.huisen-threading-photo,.huisen-end-mill-category-photo,.huisen-turning-family-photo,.huisen-turning-holder-product-photo,.huisen-spindle-holder-product-photo,.huisen-spindle-holder-photo,.em-card-image,.ud-card-image,.swh-card-photo,.swhx-card-photo,.threading-card-image){display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1.35;flex:0 0 auto;margin:0;padding:0;background:var(--huisen-ground,#fff);overflow:hidden;box-sizing:border-box}
body.huisen-product-catalog #main :is(.huisen-toolholder-photo,.huisen-specialist-photo,.huisen-grooving-photo,.huisen-threading-photo,.huisen-end-mill-category-photo,.huisen-turning-family-photo,.huisen-turning-holder-product-photo,.huisen-spindle-holder-product-photo,.huisen-spindle-holder-photo,.em-card-image,.ud-card-image,.swh-card-photo,.swhx-card-photo,.threading-card-image)>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;padding:4px;box-sizing:border-box}
/* Multi-image insert/profile compositions retain their original internal arrangement. */
body.huisen-product-catalog #main .ti-catalog-products img{width:50%;height:100%;padding:12px}
body.huisen-product-catalog #main .ti-catalog-products img:only-child{width:100%}
body.huisen-product-catalog #main .ti-catalog-products:has(img:nth-child(3)) img{width:33.333%;padding:7px}
body.huisen-product-catalog #main :is(.huisen-toolholder-copy,.huisen-specialist-copy,.huisen-grooving-copy,.huisen-threading-copy,.huisen-end-mill-category-copy,.huisen-turning-family-copy,.huisen-turning-holder-product-copy,.huisen-spindle-holder-product-copy,.huisen-spindle-holder-copy,.em-card-title,.ud-card-title){display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;gap:0;min-height:66px;height:auto;padding:12px 6px;margin:0;border-top:1px solid var(--huisen-floor,#D9DAD9);background:var(--huisen-surface,#F3F3F2);text-align:center;box-sizing:border-box}
body.huisen-product-catalog #main :is(.huisen-toolholder,.huisen-specialist-card,.huisen-grooving-card,.huisen-threading-card,.huisen-end-mill-category,.huisen-turning-family,.huisen-turning-holder-product,.huisen-spindle-holder-product,.huisen-spindle-holder,.em-card,.ud-card,.swh-card,.swhx-card,.gi-card,.threading-card) :is(h2,h3,h4){display:block;font-family:var(--hps-display);font-size:var(--hps-card-title);font-weight:600;line-height:1.35;letter-spacing:0;max-width:100%;margin:0;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;text-align:center}
body.huisen-product-catalog #main .huisen-turning-family-title-link{display:inline;gap:0;font:inherit;color:inherit;text-decoration:none}
body.huisen-product-catalog #main .huisen-turning-family-title-link>svg{display:none}
body.huisen-product-catalog #main .huisen-turning-family-title-link::before{content:none}
body.huisen-product-catalog #main :is(.huisen-turning-family h3,.em-card h2,.em-card h3,.ud-card h2,.ud-card h3)::after{content:"";display:inline-block;width:18px;height:18px;margin-inline-start:10px;vertical-align:-3px;background-color:var(--huisen-accent,#E86516);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
/* Legacy cards without separate image/title wrappers follow the same geometry. */
body.huisen-product-catalog #main .gi-card>img{width:100%;height:auto;aspect-ratio:1.35;object-fit:contain;padding:18px;background:var(--huisen-ground,#fff);box-sizing:border-box}
body.huisen-product-catalog #main :is(.gi-card,.swh-card,.swhx-card,.threading-card)>h2{display:flex;align-items:center;justify-content:center;flex:1;min-height:66px;width:100%;padding:12px 6px;margin:0;border-top:1px solid var(--huisen-floor,#D9DAD9);box-sizing:border-box}
body.huisen-product-catalog #main .gi-card>h2{flex-wrap:nowrap;gap:8px}
body.huisen-product-catalog #main .gi-card-label{display:block;min-width:0;line-height:inherit}
body.huisen-product-catalog #main .gi-card-model{white-space:nowrap}
body.huisen-product-catalog #main .gi-card>h2::after{flex:0 0 18px;margin-inline-start:0}
body.huisen-product-catalog #main .swhx-card img{transform:none}
body.huisen-product-catalog #main .swhx-card h2 span{font-size:18px;line-height:1}

/* Detail headings and prose use one hierarchy; selection tables keep their approved layout. */
body.huisen-product-detail-view #main h1{font-size:40px;line-height:1.2;letter-spacing:-.015em;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-detail-view #main h2{font-size:28px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-detail-view #main h3{font-size:20px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
body.huisen-product-detail-view #main .swhx-group-insert{font-size:20px!important;font-weight:600!important}
body.huisen-product-detail-view #main p:not(table p):not(dialog p):not([role=status]){font-size:16px;line-height:1.8}
body.huisen-product-detail-view #main :is(.em-section-head,.ud-section-head,.ed-section-head,.mh-section-head,.mi-section-head){align-items:baseline}

@media(max-width:1100px){body.huisen-product-standard{--hps-gutter:32px;--hps-row-gap:22px;--hps-column-gap:16px}}
@media(max-width:900px){body.huisen-product-standard{--hps-columns:3}}
@media(max-width:600px){
 body.huisen-product-standard{--hps-columns:2;--hps-gutter:20px;--hps-row-gap:20px;--hps-column-gap:12px;--hps-card-title:17px;--hps-heading:36px;--hps-body:16px}
 body.huisen-product-standard #main :is(.huisen-toolholders-breadcrumb,.huisen-turning-breadcrumb,.em-breadcrumb,.ud-breadcrumb,.ed-breadcrumb,.mh-breadcrumb,.mi-breadcrumb,.cr-breadcrumb,.sp-breadcrumb,.swh-breadcrumb,.scb-breadcrumb,.gi-breadcrumb,.ti-breadcrumb,.breadcrumb,.cn-breadcrumb){font-size:12px}
 body.huisen-product-catalog #main h2{font-size:24px}
 body.huisen-product-catalog #main h3{font-size:18px}
 body.huisen-product-catalog #main :is(.huisen-toolholder,.huisen-specialist-card,.huisen-grooving-card,.huisen-threading-card,.huisen-end-mill-category,.huisen-turning-family,.huisen-turning-holder-product,.huisen-spindle-holder-product,.huisen-spindle-holder,.em-card,.ud-card,.swh-card,.swhx-card,.gi-card,.threading-card) :is(h2,h3,h4){font-size:var(--hps-card-title);line-height:1.35}
 body.huisen-product-catalog #main :is(.huisen-turning-range-heading,.huisen-toolholders-range-heading,.em-family-group,.em-series-about)>h2{font-size:24px}
 body.huisen-product-detail-view #main h1{font-size:30px}
 body.huisen-product-detail-view #main h2{font-size:24px}
 body.huisen-product-detail-view #main h3{font-size:18px}
 body.huisen-product-detail-view #main .swhx-group-insert{font-size:18px!important}
}

/* Keep imported catalog-card headings on the same type scale as other model cards. */
body.huisen-product-catalog #main :is(.subcategory-card h2,.product-card h3,.swi-card h2){font-family:var(--hps-display);font-size:var(--hps-card-title);font-weight:600;line-height:1.35;letter-spacing:0}

/* Preserve the approved three-column layout for the scene-category template. */
body.huisen-product-catalog #main .huisen-turning-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 28px}
body.huisen-product-catalog #main .huisen-turning-grid .huisen-turning-family-photo{aspect-ratio:1200/680}
body.huisen-product-catalog #main .huisen-turning-grid .huisen-turning-family-photo>img{object-fit:cover;padding:0}
@media(max-width:1100px){body.huisen-product-catalog #main .huisen-turning-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 26px}}
@media(max-width:600px){body.huisen-product-catalog #main .huisen-turning-grid{grid-template-columns:1fr;gap:30px}}

/* Existing catalogue descriptions remain compact across language editions. */
body.huisen-product-catalog #main .huisen-specialist-card-intro{font-size:14px;line-height:1.75;font-weight:400;letter-spacing:normal;margin:12px 0 0;overflow-wrap:anywhere}
body.huisen-product-catalog #main .mt-card-intro{padding:0 12px 16px;margin-top:0;color:#636362;text-align:left}

/* Align category captions independently of the number of description lines. */
body.huisen-product-catalog #main :is(.huisen-toolholder-copy,.huisen-specialist-copy,.huisen-grooving-copy,.huisen-threading-copy,.huisen-end-mill-category-copy,.huisen-turning-family-copy,.huisen-turning-holder-product-copy,.huisen-spindle-holder-product-copy,.huisen-spindle-holder-copy):has(.huisen-specialist-card-intro){justify-content:flex-start}
body.huisen-product-catalog #main .huisen-end-mill-category-copy>h2{font-size:var(--hps-card-title);line-height:1.35;font-weight:600;margin:0}
body.huisen-product-standard #main .hsi-spec-code{display:inline-block;font:inherit;color:inherit;line-height:1.6;overflow-wrap:anywhere}
/* Remove the old action-column sizing from the last remaining data column. */
body.huisen-product-standard #main table[data-hsi-no-action-column] :is(th,td):last-child{width:auto;min-width:0}
@media(max-width:960px){
 body.huisen-product-standard #main table[data-hsi-no-action-column] tbody td:last-child{grid-column:auto;justify-content:space-between}
 body.huisen-product-standard #main table[data-hsi-no-action-column] tbody td[data-label]:last-child::before{content:attr(data-label)}
}

/* Ordering codes are plain text; keep former selection styling off them. */
body.huisen-product-standard #main table .hsi-spec-code{border:0;text-decoration:none;box-shadow:none;background:transparent;cursor:inherit}
