/* PGS / Engineering. Brand values come from the existing design settings. */
body[data-shop-template="precision"] {
    --p-brand:var(--color-primary,#0054a6);
    --p-accent:var(--color-secondary,#ff6b00);
    --p-ink:#192b38;
    --p-muted:#5b6870;
    --p-line:#dce2e5;
    --p-paper:#f3f5f5;
    --ink:var(--p-ink);
    --ink-2:#394a55;
    --ink-3:var(--p-muted);
    --blue-700:var(--p-brand);
    --orange:var(--p-accent);
    --radius-lg:8px;
    --radius-md:5px;
    --radius-sm:4px;
    background:#fff;
    color:var(--p-ink);
    font-family:Inter,Arial,sans-serif;
    font-size:16px;
    line-height:1.55;
}
[data-shop-template="precision"] * {
    box-sizing:border-box;
}
[data-shop-template="precision"] .container {
    max-width:1440px;
    padding-left:40px;
    padding-right:40px;
}
[data-shop-template="precision"] .shop-main {
    padding:32px 0 72px;
    min-height:45vh;
}
[data-shop-template="precision"] a {
    text-underline-offset:4px;
}
[data-shop-template="precision"] :focus-visible {
    outline:3px solid var(--p-brand);
    outline-offset:4px;
}
[data-shop-template="precision"] button,[data-shop-template="precision"] input,[data-shop-template="precision"] select {
    font:inherit;
}
[data-shop-template="precision"] button {
    cursor:pointer;
}
[data-shop-template="precision"] button:disabled {
    opacity:.5;
    cursor:wait;
}
.p-sr {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
}
.p-skip {
    position:fixed;
    top:-100px;
    left:16px;
    z-index:10000;
    background:#fff;
    padding:16px;
    color:#192b38;
}
.p-skip:focus {
    top:12px;
}
.p-preview {
    background:#ffe4ba;
    color:#34281c;
    text-align:center;
    padding:10px;
    font-size:14px;
}
.p-preview a {
    margin-left:20px;
    text-decoration:underline;
    color:inherit;
}
.p-utility {
    border-bottom:1px solid var(--p-line);
    font-size:12px;
    letter-spacing:.025em;
    color:var(--p-muted);
}
.p-utility>.container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:34px;
}
.p-utility a {
    color:inherit;
}
.p-header {
    background:#fff;
    border-bottom:1px solid var(--p-line);
}
.p-header-main {
    display:grid;
    grid-template-columns:230px 1fr auto;
    gap:32px;
    align-items:center;
    padding-top:24px;
    padding-bottom:24px;
}
.p-header .shop-logo img {
    max-width:210px;
    max-height:58px;
    object-fit:contain;
}
.p-header .shop-logo__mark {
    background:var(--p-accent);
}
.p-header .shop-logo__name {
    color:var(--p-brand);
}
.p-search {
    display:flex;
    border:1px solid #a8b6be;
    background:var(--p-paper);
    min-width:0;
    border-radius:4px;
    overflow:hidden;
}
.p-search input {
    width:100%;
    min-width:0;
    border:0;
    background:transparent;
    padding:14px 18px;
    outline-offset:-3px;
}
.p-search button {
    border:0;
    background:transparent;
    color:var(--p-brand);
    font-weight:650;
    white-space:nowrap;
    padding:10px 18px;
}
.p-header-actions {
    display:flex;
    align-items:center;
    gap:22px;
}
.p-header-actions>a {
    color:var(--p-ink);
    font-size:14px;
    padding:12px 0;
}
.p-header-actions .cart-btn {
    min-height:44px;
    border:0;
    background:var(--p-paper);
    color:var(--p-ink);
}
.p-nav {
    display:flex;
    align-items:center;
    gap:30px;
    font-size:14px;
}
.p-nav>a {
    min-height:52px;
    display:flex;
    align-items:center;
    color:var(--p-ink);
}
.p-nav .p-catalog-link {
    background:var(--p-brand);
    color:white;
    padding:0 24px;
    font-weight:600;
    border-radius:4px 4px 0 0;
}
.p-nav-help {
    margin-left:auto;
}
.p-nav-help .contact-modal-wrap>button {
    min-height:44px!important;
}
.p-eyebrow {
    display:block;
    font:500 11px/1.5 'JetBrains Mono',monospace;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--p-muted);
    margin-bottom:14px;
}
.p-hero {
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:0;
    border:1px solid var(--p-line);
    border-radius:6px;
    overflow:hidden;
}
.p-hero-copy {
    padding:52px 42px;
    background:var(--p-paper);
}
.p-hero h1 {
    font-size:clamp(34px,3.7vw,56px);
    letter-spacing:-.055em;
    line-height:1.07;
    margin:25px 0;
    color:var(--p-ink);
    font-weight:650;
}
.p-hero h1 span {
    color:var(--p-brand);
}
.p-hero-copy>p {
    max-width:430px;
    color:var(--p-muted);
    line-height:1.75;
    margin-bottom:26px;
}
.p-hero-actions {
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}
.p-button {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:48px;
    border:1px solid var(--p-brand);
    border-radius:4px;
    background:var(--p-brand);
    color:#fff;
    padding:12px 23px;
    font-weight:600;
    font-size:14px;
    text-decoration:none;
}
.p-button:hover {
    filter:brightness(.93);
    color:#fff;
}
.p-button-accent {
    background:var(--p-accent);
    border-color:var(--p-accent);
    color:#172b38;
}
.p-button-accent:hover {
    color:#172b38;
}
.p-text-button {
    background:none;
    border:0;
    border-bottom:1px solid currentColor;
    color:var(--p-brand);
    padding:10px 0;
    min-height:44px;
    font-size:14px!important;
    text-align:left;
}
.p-hero-steps {
    display:flex;
    gap:20px;
    margin-top:40px;
    padding-top:22px;
    border-top:1px solid #d5dde0;
    font-size:11px;
    color:var(--p-muted);
}
.p-hero-steps b {
    display:block;
    font-family:'JetBrains Mono',monospace;
    color:var(--p-brand);
    margin-bottom:4px;
}
.p-hero-product {
    padding:26px 30px 0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-width:0;
    background:radial-gradient(ellipse at center,#fff 35%,#edf1f2 100%);
}
.p-hero-product>a:not(.p-hero-caption) {
    display:flex;
    flex:1;
    align-items:center;
    justify-content:center;
}
.p-hero-product img {
    width:100%;
    height:300px;
    object-fit:contain;
    mix-blend-mode:multiply;
}
.p-hero-caption {
    border-top:1px solid var(--p-line);
    padding:18px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--p-ink);
    gap:24px;
}
.p-hero-caption small {
    display:block;
    font:11px 'JetBrains Mono',monospace;
    color:var(--p-muted);
    margin-bottom:6px;
}
.p-hero-caption strong {
    font-size:16px;
}
.p-hero-caption>span:last-child {
    color:var(--p-brand);
    font-size:26px;
}
.p-hero-type {
    font-size:clamp(30px,4vw,60px);
    font-weight:800;
    letter-spacing:-.06em;
    color:var(--p-brand);
    line-height:1.05;
    padding:44px 0;
}
.p-hero-type span {
    color:#879aa7;
}
.p-section {
    margin-top:64px;
}
.p-section-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:24px;
    margin-bottom:26px;
}
.p-section-heading h2,.p-help h2 {
    font-size:clamp(25px,2.4vw,34px);
    line-height:1.18;
    letter-spacing:-.035em;
    font-weight:650;
    margin:0;
}
.p-section-heading h1 {
    font-size:clamp(30px,3vw,42px);
    line-height:1.15;
    letter-spacing:-.04em;
    margin:0;
}
.p-section-heading>a {
    font-size:14px;
    color:var(--p-brand);
    white-space:nowrap;
    padding:10px 0;
}
.p-section-heading .p-eyebrow {
    margin-bottom:10px;
}
.p-category-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    border-top:1px solid var(--p-line);
    border-left:1px solid var(--p-line);
}
.p-category {
    position:relative;
    min-height:190px;
    padding:24px 26px;
    border-right:1px solid var(--p-line);
    border-bottom:1px solid var(--p-line);
    color:var(--p-ink);
    transition:background .15s;
}
.p-category:hover {
    background:var(--p-paper);
    color:var(--p-brand);
}
.p-category-number {
    font:11px 'JetBrains Mono',monospace;
    color:var(--p-muted);
}
.p-category h3 {
    font-size:18px;
    line-height:1.3;
    letter-spacing:-.025em;
    margin:22px 20px 10px 0;
}
.p-category p {
    font-size:12px;
    line-height:1.6;
    color:var(--p-muted);
    padding-right:16px;
}
.p-category-arrow {
    position:absolute;
    right:22px;
    bottom:22px;
    font-size:22px;
    color:var(--p-brand);
}
.p-product-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.p-tile {
    min-width:0;
    border:1px solid var(--p-line);
    border-radius:5px;
    overflow:hidden;
    background:white;
    display:flex;
    flex-direction:column;
    transition:border-color .15s;
}
.p-tile:hover {
    border-color:var(--p-brand);
}
.p-tile-image {
    height:215px;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--p-paper);
    padding:24px;
}
.p-tile-image img {
    width:100%;
    height:100%;
    object-fit:contain;
    mix-blend-mode:multiply;
}
.p-image-arrow {
    position:absolute;
    right:14px;
    top:10px;
    color:var(--p-brand);
}
.p-no-photo {
    color:var(--p-muted);
    font-size:13px;
}
.p-tile-body {
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}
.p-sku {
    display:block;
    font:11px/1.5 'JetBrains Mono',monospace;
    color:var(--p-muted);
    overflow-wrap:anywhere;
}
.p-tile h3 {
    font-size:16px;
    font-weight:600;
    line-height:1.4;
    margin:9px 0 15px;
}
.p-tile h3 a {
    color:var(--p-ink);
}
.p-stock {
    font-size:12px;
    color:#26624c;
    margin-top:auto;
}
.p-stock:before {
    content:'';
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
    margin-right:7px;
}
.p-stock-out {
    color:var(--p-muted);
}
.p-tile-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-top:1px solid var(--p-line);
    padding-top:16px;
    margin-top:16px;
    flex-wrap:wrap;
}
.p-tile-bottom strong {
    font-size:21px;
    font-weight:650;
}
.p-tile-link {
    color:var(--p-brand);
    font-size:12px;
    min-height:44px;
    display:flex;
    align-items:center;
}
.p-breadcrumb {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    font-size:12px;
    color:var(--p-muted);
    margin-bottom:28px;
}
.p-breadcrumb a {
    color:inherit;
}
.p-catalog-layout {
    display:grid;
    grid-template-columns:240px 1fr;
    gap:32px;
}
.p-filters details {
    border:1px solid var(--p-line);
    padding:18px;
}
.p-filters summary {
    font-weight:650;
    cursor:pointer;
    padding-bottom:16px;
    font-size:14px;
    min-height:44px;
}
.p-filters nav {
    display:flex;
    flex-direction:column;
    margin-bottom:22px;
}
.p-filters nav a {
    padding:12px 8px;
    font-size:13px;
    color:var(--p-ink);
    border-bottom:1px solid var(--p-line);
}
.p-filters nav a.is-active {
    color:var(--p-brand);
    background:var(--p-paper);
    font-weight:650;
}
.p-filter-fields {
    display:flex;
    flex-direction:column;
    gap:12px;
    font-size:13px;
}
.p-filter-fields input:not([type=checkbox]) {
    width:100%;
    min-width:0;
    border:1px solid #b9c3c9;
    border-radius:3px;
    min-height:44px;
    padding:10px;
    font-size:16px;
}
.p-price-inputs {
    display:flex;
    gap:8px;
}
.p-check {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:44px;
    font-size:14px;
    cursor:pointer;
}
.p-check input {
    width:18px;
    height:18px;
    accent-color:var(--p-brand);
    flex-shrink:0;
}
.p-filter-help {
    padding:24px 18px;
    background:var(--p-paper);
    margin-top:20px;
    font-size:14px;
}
.p-filter-help p {
    color:var(--p-muted);
    margin:10px 0;
}
.p-results {
    min-width:0;
}
.p-results .p-product-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.p-catalog-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
    font-size:12px;
    color:var(--p-muted);
}
.p-sort {
    display:flex;
    align-items:center;
    gap:8px;
}
.p-sort select {
    min-height:44px;
    border:1px solid var(--p-line);
    padding:8px;
    color:var(--p-ink);
    background:#fff;
    max-width:180px;
}
.p-subcategories {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:20px;
}
.p-subcategories a {
    border:1px solid var(--p-line);
    padding:10px 14px;
    color:var(--p-brand);
    font-size:12px;
    min-height:44px;
}
.p-empty {
    grid-column:1/-1;
    background:var(--p-paper);
    padding:40px;
}
.p-pagination {
    margin-top:28px;
}
.p-help {
    background:var(--p-brand);
    color:#fff;
    padding:46px 0;
}
.p-help-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}
.p-help .p-eyebrow {
    color:#fff;
    opacity:.75;
}
.p-help p {
    font-size:14px;
    opacity:.85;
    margin:14px 0 0;
}
.p-help .p-button {
    flex-shrink:0;
}
.p-footer {
    background:#f0f3f4;
    padding:48px 0 0;
}
.p-footer-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:40px;
}
.p-footer-logo {
    max-width:180px;
    max-height:60px;
    object-fit:contain;
}
.p-footer-grid>div {
    display:flex;
    flex-direction:column;
    align-items:start;
    gap:12px;
    font-size:13px;
}
.p-footer-grid strong {
    font-size:28px;
    color:var(--p-brand);
}
.p-footer-grid p {
    color:var(--p-muted);
    line-height:1.8;
}
.p-footer-grid a {
    color:var(--p-ink);
    min-height:32px;
}
.p-footer .p-eyebrow {
    margin-bottom:6px;
}
.p-footer-bottom {
    border-top:1px solid #d4dde1;
    margin-top:36px;
    display:flex;
    justify-content:space-between;
    padding:20px 0;
    font-size:11px;
    color:var(--p-muted);
}
.p-footer-bottom a {
    color:inherit;
}
@media(min-width:1600px) {
    .p-hero-copy {
        padding:60px;
    }
    .p-hero-product img {
        height:340px;
    }
}
@media(max-width:1100px) {
    [data-shop-template="precision"] .container {
        padding-left:24px;
        padding-right:24px;
    }
    .p-header-main {
        grid-template-columns:180px 1fr auto;
        gap:20px;
    }
    .p-header .shop-logo img {
        max-width:170px;
    }
    .p-hero-copy {
        padding:34px 28px;
    }
    .p-hero-steps {
        gap:14px;
    }
    .p-product-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .p-category-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .p-results .p-product-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .p-catalog-layout {
        grid-template-columns:220px 1fr;
        gap:24px;
    }
    .p-tile-image {
        height:190px;
    }
    .p-nav {
        gap:22px;
    }
    .p-hero-product img {
        height:260px;
    }
}
@media(max-width:760px) {
    [data-shop-template="precision"] .container {
        padding-left:18px;
        padding-right:18px;
    }
    [data-shop-template="precision"] .shop-main {
        padding-top:22px;
        padding-bottom:44px;
    }
    .p-utility>.container>span {
        font-size:10px;
    }
    .p-utility a {
        display:none;
    }
    .p-header-main {
        grid-template-columns:1fr auto;
        padding-top:18px;
        padding-bottom:16px;
        gap:16px;
    }
    .p-search {
        grid-column:1/-1;
        grid-row:2;
    }
    .p-search input {
        padding:12px;
    }
    .p-search button {
        padding:10px 14px;
    }
    .p-header-actions {
        gap:16px;
    }
    .p-header-actions .cart-btn {
        display:flex!important;
    }
    .p-header .shop-logo img {
        max-height:42px;
        max-width:165px;
    }
    .p-header .shop-logo__name {
        font-size:23px;
    }
    .p-header-actions>a {
        font-size:12px;
    }
    .p-nav {
        gap:20px;
        overflow-x:auto;
        white-space:nowrap;
        scrollbar-width:thin;
    }
    .p-nav .p-catalog-link {
        padding:0 16px;
    }
    .p-nav>a {
        font-size:12px;
        flex-shrink:0;
    }
    .p-nav-help {
        margin-left:0;
    }
    .p-nav-help .contact-modal-wrap {
        display:block!important;
    }
    .p-hero {
        grid-template-columns:1fr;
    }
    .p-hero-copy {
        padding:30px 24px;
    }
    .p-hero h1 {
        font-size:40px;
        max-width:450px;
        margin:20px 0;
    }
    .p-hero-copy>p {
        font-size:14px;
    }
    .p-hero-actions {
        gap:12px;
    }
    .p-hero-actions .p-button {
        width:100%;
    }
    .p-hero-steps {
        margin-top:26px;
        font-size:10px;
        justify-content:space-between;
    }
    .p-hero-product {
        padding:20px 24px 0;
    }
    .p-hero-product img {
        height:220px;
    }
    .p-hero-product>.p-eyebrow {
        margin-bottom:0;
    }
    .p-hero-caption strong {
        font-size:14px;
    }
    .p-section {
        margin-top:42px;
    }
    .p-section-heading {
        gap:14px;
        align-items:start;
        flex-wrap:wrap;
        margin-bottom:20px;
    }
    .p-section-heading h2 {
        font-size:26px;
    }
    .p-eyebrow {
        font-size:10px;
    }
    .p-category {
        padding:20px 18px;
        min-height:170px;
    }
    .p-category h3 {
        font-size:16px;
        margin-top:18px;
    }
    .p-category p {
        font-size:11px;
    }
    .p-product-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .p-tile-image {
        height:160px;
        padding:18px;
    }
    .p-tile-body {
        padding:14px;
    }
    .p-tile h3 {
        font-size:14px;
    }
    .p-tile-bottom {
        gap:0;
    }
    .p-tile-bottom strong {
        font-size:19px;
    }
    .p-tile-link {
        font-size:11px;
    }
    .p-catalog-layout {
        grid-template-columns:1fr;
        gap:24px;
    }
    .p-filter-help {
        display:none;
    }
    .p-filter-fields {
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .p-filter-fields>label:first-child {
        grid-column:1/-1;
    }
    .p-filter-fields>input {
        grid-column:1/-1;
    }
    .p-filter-fields>span {
        grid-column:1/-1;
    }
    .p-price-inputs {
        grid-column:1/-1;
    }
    .p-filters nav {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:0 10px;
    }
    .p-catalog-toolbar {
        flex-wrap:wrap;
        gap:8px;
    }
    .p-sort select {
        font-size:16px;
    }
    .p-help {
        padding:32px 0;
    }
    .p-help-inner {
        flex-direction:column;
        align-items:start;
        gap:24px;
    }
    .p-help h2 {
        font-size:28px;
    }
    .p-footer-grid {
        grid-template-columns:1fr 1fr;
        gap:30px 20px;
    }
    .p-footer-bottom {
        gap:16px;
        flex-wrap:wrap;
    }
    .p-preview {
        font-size:12px;
    }
    .p-preview a {
        display:block;
        margin:4px 0;
    }
    .p-pagination {
        overflow:auto;
    }
}
@media(prefers-reduced-motion:reduce) {
    [data-shop-template="precision"] *,[data-shop-template="precision"] *:before,[data-shop-template="precision"] *:after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important;
    }
}
/* Keep fixed purchase controls relative to the viewport, not the page animation. */
[data-shop-template="precision"] .shop-main.page-transition {
    animation: none;
    transform: none;
}
