/* Product Center and product family pages */
.ny_banner_bj.ks-directory-hero {
    height: auto;
    padding-block: clamp(25px, 2.4vw, 38px);
    border-bottom: 1px solid #d9e7f0;
    background: radial-gradient(ellipse at 85% 10%, #d7eafa, transparent 56%),
        linear-gradient(105deg, #f7fbfe 4%, #edf6fc 58%, #e2eff9 100%);
}
.ny_banner_bj.ks-directory-hero::before,
.ks-directory-hero .ny_banner::after {
    content: none;
}
.ks-directory-hero .ny_banner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}
.ks-directory-hero .ny_banner .ny_banner_wz a { color: #3d5970; }
.ks-directory-hero .ny_banner .ny_banner_wz a:hover { color: #006d72; }
.ks-directory-hero .ny_banner .ny_banner_wz li::after { color: #59758a; }
.ks-directory-hero .ny_banner .ny_banner_wz li:last-child a { color: #006d72; font-weight: 600; }
.ks-directory-hero .ny_banner_bt {
    margin-top: clamp(20px, 2.2vw, 35px);
    color: #10345c;
    font-size: clamp(2.25rem, 1.8rem + 1.45vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}
.ks-directory-hero .ny_banner_wb {
    max-width: 48ch;
    margin-top: 13px;
    color: #34536c;
    font-size: clamp(1rem, .94rem + .3vw, 1.1875rem);
    line-height: 1.5;
}
.ks-directory-hero-visual {
    position: relative;
    width: min(100%, 748px);
    aspect-ratio: 2.37;
    justify-self: end;
    overflow: clip;
}
.ks-directory-hero-visual::before {
    content: "";
    position: absolute;
    inset: auto 1% 3% 0;
    height: 14%;
    background: radial-gradient(ellipse, #244a6b28, transparent 71%);
}
.ks-directory-hero-visual img {
    position: absolute;
    max-width: none;
    height: auto;
}
.ks-directory-hero-products-left {
    /* Align the left group from the original 1920 × 500 catalog photo. */
    top: -14%;
    left: -106%;
    width: 210.5%;
    clip-path: url("product-center-hero-clip.svg#product-group-left");
}
.ks-directory-hero-products-uprights {
    /* Place these units at floor level once the source stand is clipped out. */
    top: 2%;
    clip-path: url("product-center-hero-clip.svg#product-group-uprights");
}
.ks-directory-hero-products-right {
    top: 0;
    right: 0;
    width: 54%;
    clip-path: url("product-center-hero-clip.svg#product-group");
}
@media (max-width: 700px) {
    .ks-directory-hero .ny_banner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ks-directory-hero .ny_banner_bt { margin-top: 16px; }
    .ks-directory-hero-visual {
        justify-self: start;
    }
}
.ks-catalog-center {
    --ks-ink: #0e2233;
    --ks-teal: #007e7c;
    --ks-accent: #00a3a1;
    --ks-muted: #526675;
    --ks-line: #dce5e9;
    --ks-panel: #f4f7f8;
    background: #fff;
    color: var(--ks-ink);
}
.ks-catalog-center [hidden] { display: none !important; }
.ks-catalog-center :focus-visible { outline: 3px solid var(--ks-accent); outline-offset: 3px; }
.ks-catalog-center .ks-directory { padding-block: 30px 64px; }
.ks-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.ks-groups a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--ks-line);
    border-radius: 8px;
    background: var(--ks-panel);
    color: var(--ks-ink);
    line-height: 1.35;
}
.ks-groups a:hover, .ks-groups a[aria-current] { border-color: var(--ks-teal); }
.ks-groups a[aria-current] { background: var(--ks-teal); color: #fff; }
.ks-groups strong { font-size: 1.05rem; }
.ks-groups span { font-size: .88rem; }
.ks-catalog-center a.ks-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 8px 15px;
    border: 1px solid var(--ks-teal);
    border-radius: 5px;
    background: var(--ks-teal);
    color: #fff;
    font: inherit;
    font-weight: 600;
}
.ks-catalog-center a.ks-action:hover { background: #006b69; }
.ks-catalog-status { margin-top: 14px; color: var(--ks-muted); font-size: .9rem; overflow-wrap: anywhere; }
.ks-catalog-status:empty { display: none; }
.ks-collection { margin-top: 34px; scroll-margin-top: 125px; }
.ks-catalog-center h2.ks-section-title {
    margin: 0 0 14px;
    color: var(--ks-ink);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}
.ks-product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ks-product-list > li {
    min-width: 0;
    border: 1px solid var(--ks-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.ks-product-list > li:focus-within, .ks-product-list > li:hover { border-color: var(--ks-teal); }
.ks-product-list > li > a { display: block; height: 100%; color: var(--ks-ink); }
.ks-product-list > li > a:focus-visible { outline-offset: -4px; }
.ks-product-image {
    display: grid;
    place-items: center;
    height: clamp(130px, 16vw, 225px);
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--ks-line);
}
.ks-product-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
}
.ks-card-text { padding: 15px 17px 18px; }
.ks-card-title { display: block; margin: 0 0 4px; font-size: 1rem; line-height: 1.33; font-weight: 700; }
.ks-product-list a:hover .ks-card-title { color: var(--ks-teal); }
.ks-card-text p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ks-muted); }
.ks-catalog-center .ks-family-hero {
    min-height: 0;
    height: auto;
    padding-block: 30px 38px;
    background: var(--ks-ink);
}
.ks-family-hero .ny_banner_bt { margin-top: 15px; }
.ks-family-hero .ny_banner_wb { max-width: 70ch; }
.ks-catalog-center .ks-family-content { padding-block: 34px 56px; }
.ks-catalog-center .ks-family-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}
.ks-family-links a, .ks-related a { color: var(--ks-teal); text-decoration: underline; text-underline-offset: 3px; }
.ks-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: start;
    gap: clamp(20px, 5vw, 70px);
}
.ks-detail-photo {
    min-width: 0;
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: clamp(16px, 3vw, 36px);
    border: 1px solid var(--ks-line);
    border-radius: 8px;
    margin: 0;
    background: #fff;
}
.ks-detail-photo img { display: block; width: 100%; max-height: 460px; object-fit: contain; }
.ks-detail-copy { font-size: 1rem; line-height: 1.6; }
.ks-detail-text-only { max-width: 700px; }
.ks-detail-copy p { margin: 0 0 16px; }
.ks-facts {
    display: grid;
    gap: 0;
    margin: 18px 0 24px;
    border-top: 1px solid var(--ks-line);
}
.ks-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 8px 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ks-line);
}
.ks-facts dt { color: var(--ks-muted); }
.ks-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ks-related { margin-top: 35px; padding-top: 24px; border-top: 1px solid var(--ks-line); }
.ks-related ul { padding-left: 19px; }
.ks-related li { list-style: disc; margin-bottom: 8px; }
@media (max-width: 930px) {
    .ks-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    body:has(.ks-directory) #contact_footer .db { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body:has(.ks-directory) #contact_footer .db_dh { min-width: 0; width: auto; }
    .ks-groups { grid-template-columns: 1fr; gap: 8px; }
    .ks-groups a { padding: 12px 15px; }
    .ks-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ks-card-text { padding: 11px 12px 13px; }
    .ks-summary { grid-template-columns: 1fr; }
    .ks-detail-photo { min-height: 220px; }
}
@media (max-width: 360px) {
    .ks-product-image { height: 112px; padding: 9px; }
}

/* Products directory */
.directory-banner { background: linear-gradient(#0d0e10ed,#0d0e10ed),url("/assets/kingsquare/pattern.svg") center / cover,#0d0e10; color: white; padding: 38px 0 50px; }
.directory-banner nav { color: #bbb; text-transform: uppercase; font-size: 13px; font-weight: 650; }
.directory-banner nav a { color: #ffcd05; }
.directory-banner h1 { margin: 18px 0 0; color: white; text-transform: uppercase; font-size: clamp(34px,4vw,52px); line-height: 1.15; }
main.catalog-shop { background: #fcfcfc; padding: clamp(30px,4vw,65px) 0; }
.catalog-layout { display: grid; grid-template-columns: minmax(210px,27%) minmax(0,1fr); align-items: start; gap: clamp(28px,4vw,56px); }
.catalog-sidebar fieldset { border: 0; margin: 0; padding: 0; }
.catalog-sidebar legend, .catalog-featured h2 { font-size: 17px; font-weight: 700; color: #0d0e10; margin-bottom: 15px; }
.catalog-sidebar label { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #535353; cursor: pointer; }
.catalog-sidebar input { width: 16px; height: 16px; accent-color: #ffcd05; }
.catalog-sidebar small { margin-left: auto; border: 1px solid #ddd; border-radius: 16px; padding: 1px 10px; font-size: 12px; }
.catalog-featured { margin-top: 42px; }
.catalog-featured a { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; color: #101010; }
.catalog-featured img { width: 80px; height: 70px; object-fit: contain; background: white; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.catalog-toolbar p { text-transform: uppercase; color: #535353; font-size: 12px; letter-spacing: .03em; }
.catalog-toolbar select { padding: 9px 14px; color: #535353; border: 1px solid #ddd; border-radius: 3px; background: white; }
.catalog-shop .ks-product-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
body .catalog-shop .ks-product-list > li { background: transparent; border: 0; box-shadow: none; }
.catalog-shop .ks-product-list > li[hidden] { display: none; }
.catalog-shop .ks-product-list > li > a { display: block; padding: 0; text-align: center; }
.catalog-shop .ks-product-image { height: auto; aspect-ratio: 4/3; background: white; }
.catalog-shop .ks-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.catalog-shop .ks-card-text { padding: 16px 0 4px; }
.catalog-shop .ks-card-title { font-size: 17px; color: #0d0e10; }
.catalog-shop .ks-card-text p { font-size: 13px; color: #535353; }
.catalog-pages { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.catalog-pages button { padding: 8px 14px; background: white; border: 1px solid #ddd; cursor: pointer; }
.catalog-pages button[aria-current] { background: #ffcd05; color: #0d0e10; }
@media (max-width: 950px) { .catalog-shop .ks-product-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } }
@media (max-width: 740px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-featured { display: none; }
    .catalog-toolbar { flex-wrap: wrap; }
    .catalog-shop .ks-card-title { font-size: 15px; }
}
