/* Original visual system is provided by styles.min.css / style.css.
   These rules only accommodate the new catalogue and verified-price functions. */
#feedback-form .form-field:nth-child(2), #product-form .form-field:nth-child(2) { display:none; }
.g-recaptcha.field-error + .message { color:#ed5565; }
#header a.header-title { text-decoration:none; }
#header .header-contacts small { font-size:11px; }
#logo .img-logo { height:125px; object-fit:contain; }
.purchase-header-search { display:flex; margin:0 0 24px; border-bottom:1px solid #f70; }
.purchase-header-search input { min-width:0; width:100%; border:0; background:#fff; padding:10px 0; font:inherit; }
.purchase-header-search button { border:0; padding:8px; background:#fff; color:#2b4667; }
/* Sidebar catalogue. The top-level panel floats on desktop; products stay in the panel. */
.purchase-tree {
    --ink: #263f56;
    --muted: #51697b;
    --line: #dce3e8;
    --accent: #a54b13;
    position: relative;
    z-index: 20;
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}
.purchase-tree h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 17px 16px 14px;
    border-bottom: 1px solid var(--line);
    font: bold 18px/1.25 'exo_2regular', Arial, sans-serif;
    color: var(--ink);
    text-transform: none;
}
.purchase-tree h2 svg { flex: none; color: var(--accent); }
.purchase-tree ul { margin: 0; padding: 0; list-style: none; }
.purchase-tree .catalogue-groups { padding: 6px; }
.purchase-tree summary, .purchase-tree a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--ink);
    font-size: inherit;
    list-style: none;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.purchase-tree summary { cursor: pointer; }
.purchase-tree summary::-webkit-details-marker { display: none; }
.purchase-tree summary::after {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    margin: 0 3px 2px auto;
    border: solid #597083;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(-45deg);
}
.purchase-tree .catalogue-group > summary {
    min-height: 46px;
    padding-inline: 10px;
    font-size: 15px;
}
.purchase-tree .catalogue-group > summary::after { margin-left: 0; }
.purchase-tree .catalogue-count {
    margin-left: auto;
    padding: 2px 6px;
    min-width: 24px;
    border-radius: 5px;
    background: #eff3f5;
    color: var(--muted);
    text-align: center;
    font: 12px/1.45 Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}
.purchase-tree summary:hover, .purchase-tree a:hover { background: #f0f4f6; color: #18344c; }
.purchase-tree .catalogue-group:has(a[aria-current="page"]) > summary { box-shadow: inset 3px 0 #de792e; }
.purchase-tree .catalogue-group[open] > summary {
    background: #fff1e4;
    color: #78380c;
}
.purchase-tree .catalogue-group[open] > summary .catalogue-count { background: #ffe4c8; color: #7f421c; }
.purchase-tree details[open] > summary::after { transform: rotate(45deg); border-color: currentColor; }
.purchase-tree a:focus-visible, .purchase-tree summary:focus-visible { outline: 2px solid #337297; outline-offset: -2px; }
.purchase-tree .catalogue-panel { padding: 6px; background: #fff; }
.purchase-tree .catalogue-panel-heading { margin: 0 4px 5px; padding: 9px 6px 10px; border-bottom: 1px solid var(--line); }
.purchase-tree .catalogue-panel-heading strong { display: block; font-size: 18px; line-height: 1.25; }
.purchase-tree .catalogue-kicker { display: block; margin-bottom: 4px; color: var(--muted); font: bold 10px/1.4 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.purchase-tree a.catalogue-overview { color: #335e7b; font-weight: bold; }
.purchase-tree a.catalogue-overview::after { content: '→'; margin-left: 1px; }
.purchase-tree .catalogue-panel-heading a { display: inline-flex; min-height: 32px; margin: 3px 0 -3px -5px; padding: 3px 5px; font-size: 13px; }
.purchase-tree .catalogue-material > summary::after { transform: rotate(45deg); }
.purchase-tree .catalogue-material[open] > summary { background: #edf2f5; font-weight: bold; }
.purchase-tree .catalogue-material[open] > summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.purchase-tree .catalogue-products { margin: 4px 5px 8px 14px; padding-left: 6px; border-left: 2px solid #dce5eb; }
.purchase-tree .catalogue-products a { min-height: 34px; padding: 6px 8px; font-size: 13px; }
.purchase-tree a[aria-current="page"] { color: var(--accent); font-weight: bold; }
@media (min-width: 981px) {
    .purchase-tree[data-flyouts] .catalogue-panel {
        position: fixed;
        z-index: 25;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 8px 28px rgba(34, 55, 73, .14);
        scrollbar-width: thin;
    }
}
@media (max-width: 980px) {
    .purchase-tree { margin-bottom: 16px; }
    .purchase-tree .catalogue-panel { padding-inline: 3px; margin: 2px 3px 6px 12px; border-left: 2px solid #e1e7eb; }
    .purchase-tree .catalogue-panel-heading { padding: 1px 0 6px; margin-left: 8px; }
    .purchase-tree .catalogue-kicker, .purchase-tree .catalogue-panel-heading strong { display: none; }
    .purchase-tree .catalogue-leaf, .purchase-tree .catalogue-material > summary, .purchase-tree .catalogue-products a { min-height: 42px; }
}
.united-list a:focus-visible { outline:2px solid #f70; outline-offset:2px; }
.purchase-element-image { display:block; width:100%; height:100%; object-fit:contain; }
.purchase-sidebar-material .purchase-element-image { height:220px; }
.purchase-sidebar-material .main-title { margin-bottom:20px; }
.purchase-product-grid .item-title,.purchase-metal-grid .item-title { overflow-wrap:anywhere; }
.purchase-metal-grid .item-thumb { width:100%; height:145px; }
.purchase-price { display:inline-block; font-weight:400; }
.purchase-price small,.purchase-grade { display:block; font-size:11px; line-height:1.5; font-weight:normal; }
.purchase-metal-grid .purchase-price { display:block; margin-top:8px; }
.purchase-grade { margin-top:5px; color:#555; }
.purchase-image-note,.purchase-rate-note { font-size:12px; line-height:1.6; color:#666; }
.purchase-image-note { margin-top:18px; }
.purchase-product-popup { position:relative; max-width:720px; margin:30px auto; padding:35px; background:#fff; }
.mfp-fade.mfp-bg,.mfp-fade.mfp-wrap .mfp-content { opacity:0; transition:opacity .2s ease; }
.mfp-fade.mfp-bg.mfp-ready { opacity:.8; }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity:1; }
.mfp-fade.mfp-bg.mfp-removing,.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity:0; }
#header .menu-toggler:focus-visible { outline:2px solid #f70; outline-offset:4px; }
.purchase-product-popup .title-l { padding-right:25px; }
.purchase-product-popup p,.purchase-product-popup ul { margin:15px 0; line-height:1.7; }
.purchase-product-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(155px, 21%, 200px);
    gap: clamp(18px, 3vw, 38px);
    align-items: start;
}
.purchase-product-figure { margin: 0; }
.purchase-product-figure .purchase-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: contain;
}
.purchase-product-figure .purchase-image-note { display: block; margin: 6px 0 0; text-align: center; }
@media (max-width: 760px) {
    .purchase-product-overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .purchase-product-figure {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .purchase-product-figure .purchase-product-image { width: 96px; flex: none; }
    .purchase-product-figure .purchase-image-note { margin: 0; max-width: 26ch; text-align: start; }
}
.purchase-product-price { border-bottom:1px solid #f70; padding-bottom:16px; }
.purchase-product-popup .purchase-price small { font-size:12px; }
.purchase-product-popup .purchase-price,.purchase-product-price .purchase-price { display:block; margin-top:5px; }
.purchase-contact-button { display:inline-block; padding:12px 30px; background:#2b4667; color:#fff!important; text-transform:uppercase; }
.purchase-contact-button:hover { background:#f70; }
.purchase-table-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
}
.purchase-table-links a { border-bottom: 1px solid #f70; }
.purchase-price-tables > p { margin: 4px 0; line-height: 1.4; }
.purchase-price-columns { margin-top: 18px; }
.purchase-price-section {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    break-inside: avoid;
    margin: 0 0 20px;
    scroll-margin-top: calc(var(--purchase-header-height, 160px) + 12px);
}
.purchase-price-section h2 {
    margin: 0 0 7px;
    padding-left: 9px;
    border-left: 3px solid #f70;
    color: #263f56;
    text-align: left;
    font: bold 17px/1.25 'exo_2regular', Arial, sans-serif;
}
.purchase-price-table {
    width: 100%;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.35;
}
.purchase-price-table th, .purchase-price-table td {
    padding: 6px 9px;
    border-color: #d6dee5;
    vertical-align: middle;
    overflow-wrap: break-word;
}
.purchase-price-table th {
    font-size: 12px;
    text-transform: none;
}
.purchase-price-table th:first-child { width: 61%; text-align: left; }
.purchase-price-table th:last-child, .purchase-price-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.purchase-price-table td .purchase-price { max-width: 100%; }
@media (min-width: 981px) {
    .purchase-price-columns { column-count: 2; column-gap: 20px; }
}
.purchase-contact-table { width:100%; border-collapse:collapse; margin-bottom:30px; }
.purchase-contact-table caption { text-align:left; font-size:20px; margin-bottom:15px; }
.purchase-contact-table td,.purchase-contact-table th { padding:15px; border:1px solid #ccc; text-align:left; }
.purchase-contact-table th { background:#eee; width:25%; }
.purchase-contact-table small { display:block; }
.purchase-contact-table td { overflow-wrap:anywhere; }
.purchase-contact-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; }
.purchase-sitemap section { scroll-margin-top:175px; }
.purchase-sitemap section ul { list-style:none; padding:0; }
.purchase-sitemap section li { padding:9px 0; border-bottom:1px solid #ddd; }
.purchase-sitemap .purchase-category-links { display:flex; flex-wrap:wrap; gap:14px; }
@media screen and (max-width:1140px) {
    #logo .img-logo { height:110px; }
    #header .header-contacts .phone { font-size:17px; }
}
@media screen and (max-width:980px) {
    #logo .img-logo { height:80px; }
    #content .aside { display:block; min-width:100%; max-width:100%; margin:0 0 25px; order:1; }
    #content .main { order:2; min-width:0; }
    .purchase-header-search { max-width:400px; margin-bottom:10px; }
    .purchase-sidebar-measures { display:none; }
    .purchase-sidebar-material { max-width:220px; margin:20px auto!important; }
    .purchase-sidebar-material .purchase-element-image { height:150px; }
}
@media screen and (max-width:600px) {
    #header .header-contacts .phone { font-size:16px; }
    #header .header-contacts .email { font-size:11px; }
    .purchase-metal-grid .item-thumb { height:120px; }
    .purchase-product-popup { padding:28px 20px; margin:15px auto; }
    .purchase-contact-table th,.purchase-contact-table td { display:block; width:auto; padding:12px; }
}
@media (prefers-reduced-motion:reduce) {
    #header,.united-list .item:before,.united-list .item:after,#header-menu .link:before,.mfp-fade.mfp-bg,.mfp-fade.mfp-wrap .mfp-content { transition:none!important; }
}


/* The masthead and navigation share content margins; the rules belong to the full-width band. */
.header-wrapper { height:var(--purchase-header-height,150px); }
#header::before, #header::after, #header-menu::before, #header-menu::after { display:none; }
#header .purchase-masthead {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto auto;
    grid-template-areas:"brand search actions contacts";
    gap:clamp(18px,2.1vw,32px);
    align-items:center;
    padding-block:16px;
    z-index:3;
}
.purchase-brand { grid-area:brand; display:flex; gap:14px; align-items:center; min-width:0; }
#header #logo { flex:none; width:clamp(62px,5.6vw,80px); }
#header #logo .img-logo { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
#header .header-title {
    display:block; margin:0; color:#243e59; text-align:left; font-size:clamp(16px,1.5vw,21px);
    line-height:1.2; font-weight:bold; white-space:normal;
}
#header .purchase-header-search {
    grid-area:search; display:flex; min-width:0; width:100%; max-width:none; margin:0;
    border:1px solid #afbdcb; border-radius:4px; background:#f8fafc;
}
#header .purchase-header-search:focus-within { border-color:#527397; outline:2px solid #c3d3e4; outline-offset:1px; }
#header .purchase-header-search input { flex:1; min-width:0; height:44px; padding:0 14px; border-radius:4px 0 0 4px; background:transparent; color:#243e59; font-size:15px; }
#header .purchase-header-search input:focus { outline:none; }
#header .purchase-header-search button { display:grid; place-items:center; width:46px; padding:0; border-left:1px solid #c6d2de; border-radius:0 3px 3px 0; }
#header .purchase-header-search button:hover { background:#eef3f7; }
#header .user-actions { grid-area:actions; position:relative; justify-self:end; align-items:center; padding:0; }
#header .user-actions::before { display:none; }
#header .lng-switcher { margin:0; }
#header .lng-switcher .current, #header-lng a { display:flex; align-items:center; gap:7px; }
#header .flag-icon { flex:none; width:34px; height:22px; margin:0; background-origin:content-box; box-sizing:border-box; }
#header .flag-en { background: url("../img/flags/us.svg") center / 100% 100% no-repeat; }
#header .lng-switcher .lng-list { z-index:10; top:calc(100% + 9px); right:0; left:auto; min-width:96px; padding:12px; }
#header .header-contacts { grid-area:contacts; justify-self:end; margin:0; padding:0 0 0 clamp(14px,1.5vw,24px); border-left:1px solid #dce3e9; text-align:right; }
.purchase-phone-line { display:flex; align-items:baseline; justify-content:flex-end; flex-wrap:wrap; gap:2px 8px; }
#header .header-contacts .phone { color:#243e59; font-size:18px; line-height:1.3; font-weight:bold; white-space:nowrap; }
#header .header-contacts small { color:#526477; font-size:11px; white-space:nowrap; }
#header .header-contacts .email { display:block; margin-top:2px; color:#394b5d; font-size:14px; }
.purchase-quick-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:3px 15px; margin-top:6px; font-size:13px; }
/* Desktop rules follow the menu width and extend to opposite viewport edges. */
@media (min-width:980.01px) {
    .purchase-nav-band {
        padding-block:2px;
        background:linear-gradient(#f70,#f70) top right / 50% 2px no-repeat,
                   linear-gradient(#f70,#f70) bottom left / 50% 2px no-repeat;
    }
    #header-menu::after, #header-menu::before {
        display:block; content:""; position:absolute; left:0; width:100%; height:2px;
        background:#f70; pointer-events:none;
    }
    #header-menu::after { top:-2px; bottom:auto; }
    #header-menu::before { top:auto; bottom:-2px; }
}
#header-menu { height:auto; font-size:clamp(14px,1.22vw,17px); }
#header-menu nav { display:flex; align-items:center; justify-content:space-between; gap:6px 14px; padding:10px 0; }
#header-menu .menu-item { margin:0; padding:6px 0; }
#header-menu .menu-item::after { display:none; }

@media (max-width:980px) {
    .hide-header #header { top:0; }
    #header .purchase-masthead {
        grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand actions" "search contacts";
        gap:9px 20px; padding-block:10px;
    }
    #header #logo { width:44px; }
    #header .header-title { font-size:18px; }
    #header .user-actions { display:flex; gap:20px; }
    #header .menu-toggler { margin:0; }
    #header .header-contacts { padding-left:0; border:0; }
    #header .header-contacts .phone { font-size:16px; }
    .purchase-quick-nav { margin-top:3px; }
    .purchase-nav-band { border-bottom:2px solid #f70; }
    #header-menu,.hide-header #header-menu {
        top:var(--purchase-header-height,150px); padding-top:0; width:min(340px,100vw);
        height:calc(100dvh - var(--purchase-header-height,150px)); z-index:5; transition:none;
    }
    #header-menu nav { display:block; height:100%; padding:14px 24px 24px; box-sizing:border-box; overflow-y:auto; border-bottom:2px solid #f70; box-shadow:0 8px 15px rgba(0,0,0,.1); }
    #header-menu .menu-item { display:block; padding:12px 0; }
    #header-menu .link { display:block; white-space:normal; }
}
@media (max-width:600px) {
    #header .purchase-masthead { grid-template-areas:"brand actions" "search search" "contacts contacts"; gap:9px 12px; }
    .purchase-brand { gap:7px; }
    #header #logo { width:39px; }
    #header .header-title { font-size:16px; }
    #header .user-actions { gap:14px; }
    #header .menu-toggler { width:26px; }
    #header .purchase-header-search input { height:41px; }
    #header .header-contacts { width:100%; display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; gap:12px; }
    .purchase-contact-details { flex:none; }
    .purchase-phone-line { flex-direction:column; align-items:flex-end; gap:0; }
    #header .header-contacts .phone { font-size:15px; }
    #header .header-contacts .email { margin:0; font-size:12px; }
    .purchase-quick-nav { justify-content:flex-start; text-align:left; margin:0; gap:3px 10px; font-size:12px; }
}
@media (max-width:420px) {
    #header .purchase-quick-nav { display:grid; gap:0; line-height:1.55; }
}

.purchase-product-grid .purchase-price { display:block; margin-top:10px; }
.purchase-product-grid .item-title { min-height:42px; }
.purchase-periodic { min-width:700px; }
.purchase-periodic .row > .item:first-child { min-width:68px; width:68px; flex-shrink:0; }
.purchase-periodic .label { letter-spacing:0; }
.purchase-periodic .label-group { padding-right:15px; }
.purchase-periodic .label-group::after { right:0; margin:0; top:5px; }
.purchase-periodic .label-period { margin-top:5px; padding-bottom:12px; }
.purchase-periodic .label-period::before { top:auto; bottom:0; margin-top:0; }
#footer { padding-top:22px; padding-bottom:22px; margin-top:35px; border-top:2px solid #9dc0ff; }
#footer:before,#footer:after { display:none; }
#footer .page-unit { padding-bottom:0; }
#footer .copyright { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; }
#footer .copyright li { margin:0; }
/* Original contact-form layout; reserve the message area only after submission. */
#enquiry { scroll-margin-top: calc(var(--purchase-header-height, 160px) + 12px); }
.purchase-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.purchase-form-response:not(:empty) { margin-top:12px; text-align:center; color:#285b38; }
.purchase-form-response.is-error { color:#a02424; }
#enquiry button:disabled { opacity:.6; cursor:wait; }
@media (max-width:600px) {
    #footer .copyright li:first-child { width:100%; }
    #footer .copyright li:nth-child(2):before { display:none; }
}


@media (max-width:600px) { #header .header-contacts small { white-space:nowrap; } }

/* The selected masthead keeps the information links directly below the search. */
#header:not([data-preview]) .purchase-masthead {
    grid-template-areas: "brand search actions contacts" "brand quick . contacts";
    row-gap: 4px;
}
#header:not([data-preview]) .purchase-quick-nav {
    grid-area: quick;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2px clamp(12px, 1.6vw, 24px);
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}
#header:not([data-preview]) .purchase-quick-nav a { padding-block: 3px; }
#header .header-contacts .email a { color: inherit; }
@media (max-width: 980px) {
    #header:not([data-preview]) .purchase-masthead {
        grid-template-areas: "brand actions" "search contacts" "quick contacts";
    }
}
@media (max-width: 600px) {
    #header:not([data-preview]) .purchase-masthead {
        grid-template-areas: "brand actions" "contacts contacts" "search search" "quick quick";
    }
    #header:not([data-preview]) .purchase-contact-details {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px 12px;
    }
    #header:not([data-preview]) .header-contacts { justify-content: flex-end; }
    #header:not([data-preview]) .purchase-phone-line {
        flex-direction: row;
        align-items: baseline;
        gap: 0 5px;
    }
    #header:not([data-preview]) .purchase-quick-nav { font-size: 16px; gap: 2px 15px; }
}
