/* ==========================================================================
   Salgómetál – main stylesheet
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700-italic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff") format("woff"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
	--black: #000;
	--graphite: #16181c;
	--graphite-2: #23262b;
	--steel-800: #2a2e34;
	--steel-700: #3a3f46;
	--steel-600: #5a6068;
	--steel-500: #5c626b;
	--steel-400: #9aa1aa;
	--steel-300: #c5cad0;
	--steel-200: #e1e4e8;
	--steel-100: #eceef0;
	--surface: #f5f6f7;
	--white: #fff;
	--ink: #121417;
	--on-dark: #e6e8eb;
	--on-dark-2: #b8bec6;
	--accent: #c2410c;
	--accent-hover: #9a3412;
	--accent-bright: #f2711c;
	--accent-soft: #fff1e8;
	--accent-text: #9a3412;
	--ok: #15803d;
	--err: #b91c1c;

	--font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--radius: 4px;
	--radius-lg: 6px;
	--wrap: 1280px;
	--gutter: 24px;
	--shadow: 0 24px 60px rgba(0, 0, 0, .35);
	--shadow-sm: 0 6px 20px rgba(18, 20, 23, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
svg.sm-ui, svg.sm-icon { flex: none; vertical-align: middle; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sm-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.sm-skip:focus { left: 8px; }
.sm-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sm-mono { font-family: var(--font-mono); font-size: .88em; font-feature-settings: "zero" 0; }
.sm-main { min-height: 50vh; }

.sm-h1, .sm-h2, .sm-h3, .sm-hero__title, .sm-band__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; line-height: 1; margin: 0; }
.sm-h1 { font-size: clamp(36px, 4.5vw, 52px); }
.sm-h2 { font-size: clamp(32px, 3.6vw, 44px); }
.sm-h3 { font-size: 24px; }
.sm-lead { font-size: 19px; color: var(--steel-700); max-width: 760px; }
.sm-eyebrow { display: inline-block; margin: 0 0 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #f59e5b; text-decoration: none; }
.sm-eyebrow--dark { color: var(--steel-500); margin-bottom: 8px; letter-spacing: 1px; font-size: 12px; }
.sm-eyebrow--dark:hover { color: var(--accent); }
.sm-link { font-weight: 600; text-decoration: none; }
.sm-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.sm-btn, .woocommerce a.button, .woocommerce button.button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius);
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.sm-btn--accent, #place_order { background: var(--accent); color: #fff; }
.sm-btn--accent:hover, #place_order:hover { background: var(--accent-hover); color: #fff; }
.sm-btn--dark { background: var(--ink); color: #fff; }
.sm-btn--dark:hover { background: var(--steel-800); color: #fff; }
.sm-btn--outline, .woocommerce a.button, .woocommerce button.button { background: #fff; color: var(--ink); border-color: var(--steel-300); }
.sm-btn--outline:hover, .woocommerce a.button:hover { border-color: var(--ink); color: var(--ink); }
.sm-btn--ghost { background: transparent; color: #fff; border-color: var(--steel-600); }
.sm-btn--ghost:hover { border-color: #fff; color: #fff; }
.sm-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.sm-btn--block { width: 100%; }
.sm-btn--icon { width: 44px; padding: 0; }
.sm-btn[disabled], .sm-btn.is-loading { opacity: .6; pointer-events: none; }
.sm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.sm-iconbtn:hover { background: rgba(127, 127, 127, .14); }

/* ---------- Header ---------- */
.sm-header { background: var(--black); color: var(--on-dark); position: relative; z-index: 50; }
.sm-topbar { border-bottom: 1px solid var(--graphite-2); font-size: 13px; color: var(--steel-400); }
.sm-topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.sm-topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sm-topbar a, .sm-topbar span { color: var(--steel-400); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sm-topbar a:hover { color: #fff; }
.sm-header__main { display: flex; align-items: center; gap: 16px 32px; padding-block: 18px; }
.sm-header__menu { display: none; color: #fff; }
.sm-header__logo { display: block; line-height: 0; flex: none; }
.sm-logo { height: 50px; width: auto; }
.sm-search { flex: 1 1 380px; display: flex; min-width: 0; }
.sm-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--steel-700); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--graphite); color: #fff; font-size: 15px; }
.sm-search input::placeholder { color: var(--steel-400); }
.sm-search button { width: 56px; height: 48px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sm-search button:hover { background: var(--accent-hover); }
.sm-quote-btn { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1px solid var(--steel-700); border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; flex: none; }
.sm-quote-btn:hover { border-color: #fff; color: #fff; }
.sm-quote-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sm-quote-count[data-count="0"] { background: var(--steel-700); }
.sm-quote-count.is-bump { animation: sm-bump .4s ease; }
@keyframes sm-bump { 50% { transform: scale(1.35); } }

.sm-nav { background: var(--graphite); border-top: 1px solid var(--graphite-2); }
.sm-nav__in { display: flex; align-items: stretch; flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .6px; text-transform: uppercase; }
.sm-nav__menu { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; }
.sm-nav__menu a { display: block; padding: 14px 16px; color: var(--on-dark); text-decoration: none; }
.sm-nav__menu a:hover, .sm-nav__menu .current-menu-item > a { color: #fff; box-shadow: inset 0 -3px 0 var(--accent-bright); }
.sm-mega__toggle { display: flex; align-items: center; gap: 8px; height: 100%; padding: 14px 18px; border: 0; background: var(--accent); color: #fff; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.sm-mega__toggle[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.sm-mega__toggle:hover { background: var(--accent-hover); }
.sm-mega__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--graphite); border-top: 1px solid var(--graphite-2); box-shadow: var(--shadow); padding-block: 24px 28px; }
.sm-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.sm-mega__item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius); color: var(--on-dark); text-decoration: none; font-family: var(--font); font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0; }
.sm-mega__item svg { color: var(--accent-bright); }
.sm-mega__item:hover { background: var(--graphite-2); color: #fff; }
.sm-mega__all { grid-column: 1 / -1; justify-self: start; margin-top: 10px; color: #f59e5b; font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Drawer (mobile menu) */
.sm-drawer { position: fixed; inset: 0; z-index: 200; }
.sm-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sm-drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--black); color: var(--on-dark); overflow-y: auto; padding: 12px 16px 32px; }
.sm-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #fff; }
.sm-logo--sm { height: 34px; }
.sm-drawer__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 20px; margin: 16px 0 6px; color: var(--steel-400); }
.sm-drawer__cats, .sm-drawer__menu { list-style: none; margin: 0; padding: 0; }
.sm-drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--graphite-2); }
.sm-drawer__cats svg { color: var(--accent-bright); }
.sm-drawer__menu { margin-top: 18px; }
.sm-drawer__menu a { display: block; padding: 12px 6px; color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; font-weight: 600; }
.sm-drawer__contact { margin-top: 20px; display: grid; gap: 10px; }
.sm-drawer__contact a { color: var(--on-dark-2); text-decoration: none; display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.sm-hero {
	color: var(--on-dark);
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px),
		linear-gradient(180deg, var(--black) 0%, var(--graphite) 100%);
	position: relative; overflow: hidden;
}
.sm-hero[style*="--sm-hero-img"]::before { content: ""; position: absolute; inset: 0; background: var(--sm-hero-img) center / cover no-repeat; opacity: .28; }
.sm-hero__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 80px; }
.sm-hero__copy { flex: 999 1 520px; min-width: 0; }
.sm-hero__title { font-style: italic; font-size: clamp(54px, 7vw, 92px); line-height: .95; }
.sm-steel { background: linear-gradient(180deg, #fff 0%, #d2d6db 55%, #9399a1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.sm-hot { color: var(--accent-bright); }
.sm-hero__text { margin: 24px 0 0; max-width: 580px; font-size: 19px; color: var(--on-dark-2); }
.sm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sm-finder { flex: 1 1 340px; max-width: 440px; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.sm-finder__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; }

/* ---------- Steps ---------- */
.sm-steps { background: #fff; border-bottom: 1px solid var(--steel-200); }
.sm-steps__list { list-style: none; margin: 0 auto; padding-block: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sm-steps__list li { display: flex; gap: 16px; align-items: flex-start; }
.sm-steps__list strong { display: block; font-size: 17px; }
.sm-steps__list span:not(.sm-steps__n) { display: block; font-size: 15px; color: var(--steel-500); margin-top: 2px; }
.sm-steps__n { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 40px; line-height: 1; color: var(--accent); }

/* ---------- Sections ---------- */
.sm-section { padding-block: 64px; }
.sm-section + .sm-section { padding-top: 16px; }
.sm-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }

/* Tiles */
.sm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.sm-tile { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sm-tile svg { color: var(--accent); }
.sm-tile:hover { color: var(--ink); border-color: var(--steel-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.sm-tile__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.sm-tile__desc { font-size: 15px; color: var(--steel-500); margin-top: -6px; }

/* Product cards */
.sm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sm-card { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.sm-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f1f2f4 0%, #dadde1 100%); color: var(--steel-700); }
.sm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sm-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sm-card__cat { font-size: 12px; color: var(--steel-500); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.sm-card__title { margin: 0; font-size: 18px; line-height: 1.25; }
.sm-card__title a { color: var(--ink); text-decoration: none; }
.sm-card__title a:hover { color: var(--accent); }
.sm-card__spec { font-family: var(--font-mono); font-size: 13px; color: var(--steel-500); }
.sm-card__add { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sm-price-note { font-size: 14px; font-weight: 600; color: var(--steel-700); }

/* Stats */
.sm-stats { background: var(--graphite); color: #fff; }
.sm-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-block: 44px; }
.sm-stat { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--steel-700); padding-left: 20px; }
.sm-stat__n { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 56px; line-height: 1; background: linear-gradient(180deg, #fff 0%, #c9cdd2 60%, #8e949b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-stat__l { color: var(--on-dark-2); font-size: 16px; }

/* About */
.sm-about { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.sm-about__text { flex: 1 1 520px; }
.sm-about__text p { font-size: 18px; color: var(--steel-700); }
.sm-about__text .sm-h2 { margin-bottom: 18px; }
.sm-about__media { flex: 1 1 420px; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; }
.sm-about__media img { width: 100%; height: 100%; object-fit: cover; }
.sm-ph { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--steel-500); font-size: 14px; background: repeating-linear-gradient(45deg, var(--steel-100) 0 10px, #f2f3f5 10px 20px); }

/* Services */
.sm-services { background: #fff; border-block: 1px solid var(--steel-200); }
.sm-section.sm-services { padding-block: 64px; }
.sm-services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.sm-service svg { color: var(--accent); }
.sm-service h3 { margin: 14px 0 6px; font-size: 19px; }
.sm-service p { margin: 0; color: var(--steel-500); font-size: 16px; }

/* References */
.sm-refs .sm-h2 { margin-bottom: 14px; }
.sm-refs__list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sm-refs__list li { padding: 12px 18px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius); font-weight: 600; }

/* Band */
.sm-band { background: var(--graphite); color: var(--on-dark); }
.sm-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 52px; }
.sm-band__title { font-style: italic; font-size: clamp(32px, 4vw, 42px); color: #fff; }
.sm-band p { margin: 10px 0 0; font-size: 18px; color: var(--on-dark-2); max-width: 640px; }

/* ---------- Forms ---------- */
.woocommerce form .form-row { position: relative; }
.sm-field, .woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sm-field label, .woocommerce form .form-row > label { font-size: 14px; font-weight: 600; }
.sm-field input, .sm-field select, .sm-field textarea, .sm-finder select, .sm-finder input,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 16px;
}
.sm-field textarea, .woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus, .woocommerce form .form-row .input-text:focus { border-color: var(--ink); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(194, 65, 12, .18); }
.sm-form { display: grid; gap: 16px; }
.sm-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sm-form__hint { margin: 0; padding: 12px 14px; background: var(--steel-100); border-radius: var(--radius); font-size: 15px; color: var(--steel-700); }
.req, .woocommerce .required { color: var(--accent); text-decoration: none; border: 0; }
.sm-check { display: block; font-size: 15px; margin: 0; }
.sm-check label, label.sm-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 3px 0 0; flex: none; }
.sm-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sm-file label { flex-direction: row; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--steel-300); border-radius: var(--radius-lg); background: #fff; cursor: pointer; color: var(--ink); }
.sm-file label svg { color: var(--accent); }
.sm-file label span { display: flex; flex-direction: column; }
.sm-file small { font-weight: 400; color: var(--steel-500); }
.sm-file input { font-size: 14px; }

.sm-notice { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.sm-notice--ok { background: #e7f6ec; color: #14532d; }
.sm-notice--err { background: #fdecec; color: #7f1d1d; }

/* Contact layout */
.sm-contact-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sm-contact-layout__form { flex: 3 1 480px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 28px; }
.sm-contact-layout__form .sm-h3 { margin-bottom: 18px; }
.sm-contact-layout__info { flex: 2 1 320px; display: grid; gap: 20px; }
.sm-contact-layout__info .sm-h3 { margin-bottom: 0; }
.sm-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sm-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.sm-contact-list li > svg { color: var(--accent); margin-top: 2px; }
.sm-contact-list a { color: inherit; text-decoration: none; }
.sm-contact-list a:hover { color: var(--accent); }
.sm-hours-row { display: flex; justify-content: space-between; gap: 16px; min-width: 220px; }
.sm-company-data { font-size: 14px; color: var(--steel-500); line-height: 1.6; }

/* Map */
.sm-map { border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(45deg, var(--steel-100) 0 10px, #f2f3f5 10px 20px); min-height: 280px; display: flex; }
.sm-map iframe { width: 100%; min-height: 320px; border: 0; }
.sm-map__ph { margin: auto; text-align: center; padding: 24px; color: var(--steel-700); }
.sm-map__ph > svg { color: var(--accent); }
.sm-map__addr { font-weight: 700; margin: 8px 0 14px; }
.sm-map__note { font-size: 13px; color: var(--steel-500); margin: 12px 0 0; }

/* ---------- Page head, breadcrumb, pills ---------- */
.sm-pagehead { background: #fff; border-bottom: 1px solid var(--steel-200); padding-block: 22px 26px; }
.sm-pagehead--slim { padding-block: 22px 24px; }
.sm-pagehead--slim .sm-h1 { margin-top: 10px; }
.sm-crumbs { font-size: 14px; color: var(--steel-500); display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sm-crumbs a { color: var(--steel-500); }
.sm-crumbs a:hover { color: var(--accent); }
.sm-pagehead__row { display: flex; gap: 20px; align-items: center; margin-top: 12px; }
.sm-pagehead__icon { color: var(--accent); }
.sm-pagehead__desc { color: var(--steel-500); margin-top: 8px; }
.sm-pagehead__desc p { margin: 0; }
.sm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sm-pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--steel-300); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.sm-pill:hover { border-color: var(--ink); color: var(--ink); }
.sm-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Catalog ---------- */
.sm-notices:empty { display: none; }
.sm-notices { padding-top: 20px; }
.sm-catalog { display: flex; gap: 28px; align-items: flex-start; padding-block: 28px 64px; }
.sm-catalog__aside { flex: 0 0 280px; position: sticky; top: 16px; }
.sm-catalog__main { flex: 1 1 auto; min-width: 0; }

.sm-filters__panel { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); }
.sm-filters__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--steel-200); }
.sm-filters__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; margin-right: auto; }
.sm-filters__clear { font-weight: 600; font-size: 14px; }
.sm-filters__close, .sm-filters__backdrop { display: none; }
.sm-filters__body { max-height: calc(100vh - 200px); overflow-y: auto; }
.sm-fgroup { border: 0; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--steel-200); min-width: 0; }
.sm-fgroup legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.sm-chips { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
.sm-chip { position: relative; cursor: pointer; }
.sm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 11px; border: 1px solid var(--steel-300); border-radius: var(--radius); font-size: 14px; background: #fff; }
.sm-chips--mono .sm-chip span { font-family: var(--font-mono); font-size: 13px; }
.sm-chip:hover span { border-color: var(--ink); }
.sm-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.sm-chip input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.sm-filters__foot { padding: 14px 18px; }
.js .sm-filters__foot { display: none; }

.sm-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sm-toolbar__left, .sm-toolbar__right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-toolbar__count { margin-right: 6px; }
.sm-toolbar__filters { display: none; }
.sm-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; }
.sm-fchip:hover { color: var(--ink); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { height: 44px; padding: 0 10px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; font-size: 15px; }
.sm-viewtoggle { display: flex; border: 1px solid var(--steel-300); border-radius: var(--radius); overflow: hidden; }
.sm-viewtoggle a { width: 44px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; }
.sm-viewtoggle a.is-active { background: var(--ink); color: #fff; }

.sm-table-wrap { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); overflow-x: auto; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sm-table th { background: var(--steel-100); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--steel-700); padding: 12px; white-space: nowrap; }
.sm-table td { padding: 10px 12px; border-top: 1px solid var(--steel-200); vertical-align: middle; }
.sm-table tbody tr:hover { background: #fafbfb; }
.sm-table th:first-child, .sm-table td:first-child { padding-left: 16px; }
.sm-table__name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sm-table__name a:hover { color: var(--accent); }
.sm-table__attr { white-space: nowrap; }
.sm-table__mobilespec { display: none; }
.sm-sku { display: block; font-size: 13px; color: var(--steel-500); margin: 2px 0 0; }
.sm-add--row { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.sm-add--row .sm-qty-input { width: 68px; height: 40px; padding: 0 8px; border: 1px solid var(--steel-300); border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; }
.sm-add--row select { height: 40px; padding: 0 6px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; font-size: 14px; }
.sm-add--row .sm-btn--icon { height: 40px; }
.sm-add.is-added .sm-btn--accent { background: var(--ok); }
.sm-unit { font-size: 14px; color: var(--steel-700); min-width: 32px; }
.sm-footnote { font-size: 13px; color: var(--steel-500); margin: 12px 0 0; }

.sm-empty { text-align: center; max-width: 620px; margin: 32px auto; padding: 40px 24px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); }
.sm-empty > svg { color: var(--accent); }
.sm-empty .sm-h3, .sm-empty .sm-h2 { margin: 12px 0 8px; }
.sm-empty p { color: var(--steel-700); }
.sm-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sm-404 { font-size: 64px; font-weight: 500; color: var(--accent); }

.woocommerce-pagination { margin-top: 24px; }
.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.woocommerce-pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Single product ---------- */
.sm-product { padding-block: 24px 72px; }
.sm-product__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 20px; }
.sm-product__gallery { flex: 1 1 460px; min-width: 0; display: grid; gap: 12px; }
.sm-product__figure { margin: 0; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); aspect-ratio: 1 / .82; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sm-product__figure img { width: 100%; height: 100%; object-fit: contain; }
.sm-product__figure--drawing { flex-direction: column; gap: 16px; color: var(--ink); background-color: #fff; background-image: linear-gradient(var(--steel-100) 1px, transparent 1px), linear-gradient(90deg, var(--steel-100) 1px, transparent 1px); background-size: 24px 24px; }
.sm-product__figure--drawing svg { color: var(--ink); width: 46%; height: auto; stroke-width: 1.6; }
.sm-product__figure--drawing figcaption { font-size: 22px; color: var(--accent); }
.sm-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sm-thumb { padding: 0; border: 1px solid var(--steel-200); border-radius: var(--radius); background: #fff; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.sm-thumb.is-active { border: 2px solid var(--accent); }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-product__info { flex: 1 1 420px; min-width: 0; display: grid; gap: 20px; }
.sm-product__title { font-size: clamp(36px, 4vw, 52px); }
.sm-product__info .sm-sku { margin-top: 8px; font-size: 14px; }
.sm-product__short p { margin: 0; color: var(--steel-700); }
.sm-axis__label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.sm-axis__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-opt { min-width: 64px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: 14px; }
.sm-opt:hover { border-color: var(--ink); color: var(--ink); }
.sm-opt.is-active { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.sm-buybox { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 16px; }
.sm-buybox__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sm-stepper { display: flex; border: 1px solid var(--steel-300); border-radius: var(--radius); overflow: hidden; }
.sm-stepper__btn { width: 44px; height: 48px; border: 0; background: var(--steel-100); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.sm-stepper__btn:hover { background: var(--steel-200); }
.sm-stepper input { width: 80px; height: 48px; border: 0; text-align: center; font-family: var(--font-mono); font-size: 17px; -moz-appearance: textfield; }
.sm-stepper input::-webkit-outer-spin-button, .sm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sm-unit-select { height: 48px; padding: 0 12px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; font-size: 15px; }
.sm-estimate { color: var(--steel-700); }
.sm-buybox__info { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: var(--steel-100); border-radius: var(--radius); font-size: 14px; color: var(--steel-700); }
.sm-product__bottom { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; align-items: flex-start; }
.sm-product__details { flex: 999 1 560px; min-width: 0; }
.sm-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--steel-200); }
.sm-tabs button { padding: 14px 18px; border: 0; background: none; font-weight: 700; font-size: 16px; color: var(--steel-500); cursor: pointer; margin-bottom: -2px; }
.sm-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.sm-tabpanel { padding-top: 8px; }
.sm-specs { width: 100%; border-collapse: collapse; background: #fff; }
.sm-specs th, .sm-specs td { padding: 13px 16px; border-bottom: 1px solid var(--steel-200); text-align: left; }
.sm-specs th { width: 40%; font-weight: 600; color: var(--steel-700); }
.sm-related { flex: 1 1 300px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 22px; }
.sm-related .sm-h3 { margin-bottom: 10px; }
.sm-related ul { list-style: none; margin: 0; padding: 0; }
.sm-related a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--steel-200); color: var(--ink); text-decoration: none; font-size: 15px; }
.sm-related a:hover { color: var(--accent); }
.sm-related a .sm-mono { color: var(--steel-500); white-space: nowrap; }

/* ---------- Quote list / checkout ---------- */
.sm-page { padding-block: 32px 72px; }
.sm-page--wc { padding-top: 24px; }
.sm-steps-inline { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 24px; font-weight: 600; font-size: 15px; color: var(--steel-500); }
.sm-steps-inline span { display: inline-flex; align-items: center; gap: 10px; }
.sm-steps-inline b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--steel-300); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.sm-steps-inline .is-current { color: var(--ink); }
.sm-steps-inline .is-current b { background: var(--accent); border-color: var(--accent); color: #fff; }
.sm-steps-inline .is-done { color: var(--ink); }
.sm-steps-inline .is-done b { background: var(--ink); border-color: var(--ink); color: #fff; }

.sm-quote__box { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); }
.sm-quote__box--pad { padding: 24px; }
.sm-quote__box--pad .sm-h3 { margin-bottom: 16px; }
.sm-quote__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--steel-200); }
.sm-qline { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 110px 44px; gap: 14px 20px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--steel-200); }
.sm-qline__thumb { width: 64px; height: 64px; border-radius: var(--radius); background: linear-gradient(160deg, #f1f2f4 0%, #dadde1 100%); display: flex; align-items: center; justify-content: center; color: var(--steel-700); overflow: hidden; }
.sm-qline__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sm-qline__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sm-qline__name { color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.sm-qline__spec { color: var(--steel-500); font-size: 13px; }
.sm-qline__note { margin-top: 6px; width: 100%; max-width: 380px; height: 38px; padding: 0 10px; border: 1px solid var(--steel-300); border-radius: var(--radius); font-size: 14px; }
.sm-qline__qty { display: flex; gap: 6px; align-items: center; }
.sm-qline__qty .sm-qty-input { width: 76px; height: 44px; padding: 0 8px; border: 1px solid var(--steel-300); border-radius: var(--radius); font-family: var(--font-mono); font-size: 15px; }
.sm-qline__qty select { height: 44px; padding: 0 8px; border: 1px solid var(--steel-300); border-radius: var(--radius); background: #fff; }
.sm-qline__kg { text-align: right; font-size: 14px; }
.sm-qline__remove { border: 1px solid var(--steel-200); color: var(--steel-500); }
.sm-qline__remove:hover { color: var(--err); border-color: var(--err); }
.sm-badge { align-self: flex-start; display: inline-block; padding: 2px 8px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.sm-quote__total { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--steel-100); font-weight: 700; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.sm-quote__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }

.sm-checkout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.sm-checkout__list { flex: 999 1 520px; min-width: 0; display: grid; gap: 16px; }
.sm-checkout__form { flex: 1 1 400px; min-width: 0; }
.sm-review { width: 100%; border-collapse: collapse; }
.sm-review td, .sm-review th { padding: 14px 20px; border-bottom: 1px solid var(--steel-200); vertical-align: top; text-align: left; }
.sm-review__name { display: flex; flex-direction: column; gap: 3px; }
.sm-review__name .sm-mono { color: var(--steel-500); font-size: 13px; }
.sm-review__name em { color: var(--steel-700); font-size: 14px; }
.sm-review__qty { text-align: right !important; white-space: nowrap; }
.sm-review__qty small { display: block; color: var(--steel-500); }
.sm-review tfoot th, .sm-review tfoot td { background: var(--steel-100); border-bottom: 0; font-weight: 700; }
.sm-review tfoot td { text-align: right; }

.sm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sm-fields .form-row { grid-column: 1 / -1; }
.sm-fields .form-row-first { grid-column: 1; }
.sm-fields .form-row-last { grid-column: 2; }
.sm-fields .sm-hidden-field { display: none !important; }
.woocommerce form .form-row .optional { color: var(--steel-500); font-weight: 400; }
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--err); }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row.sm-segmented .woocommerce-input-wrapper, .woocommerce form .form-row.sm-radio-list .woocommerce-input-wrapper { display: grid; gap: 8px; }
.woocommerce form .form-row.sm-segmented .woocommerce-input-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-segmented label.radio { text-align: center; line-height: 1.2; }
.sm-segmented label.radio .required, .sm-radio-list label.radio .required, .sm-segmented label.radio abbr, .sm-radio-list label.radio abbr { display: none; }
.sm-segmented > label:first-child, .sm-radio-list > label:first-child { margin-bottom: 2px; }
.sm-segmented input.input-radio, .sm-radio-list input.input-radio { position: absolute; opacity: 0; }
.sm-segmented label.radio, .sm-radio-list label.radio { display: flex !important; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--steel-300); border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; margin: 0; }
.sm-segmented label.radio { justify-content: center; }
.sm-radio-list label.radio::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--steel-300); flex: none; }
.sm-segmented input.input-radio:checked + label.radio, .sm-radio-list input.input-radio:checked + label.radio { border: 2px solid var(--ink); padding: 7px 13px; }
.sm-radio-list input.input-radio:checked + label.radio::before { border: 5px solid var(--accent); }
.sm-segmented input.input-radio:focus-visible + label.radio, .sm-radio-list input.input-radio:focus-visible + label.radio { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.sm-consent label.checkbox, .woocommerce-form__label-for-checkbox { display: block !important; position: relative; padding-left: 28px; font-weight: 400 !important; font-size: 15px !important; line-height: 1.45; }
.sm-consent label.checkbox input, .woocommerce-form__label-for-checkbox input { position: absolute; left: 0; top: 0; margin-top: 2px; }
.is-magan .sm-company-only, .is-atvetel .sm-delivery-only { display: none !important; }

#order_review { margin-top: 18px; }
.woocommerce-checkout-payment .wc_payment_methods { display: none; }
.woocommerce-checkout-payment .form-row.place-order { display: grid; gap: 14px; padding: 0; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text { display: none; }
.woocommerce-terms-and-conditions-wrapper .validate-required { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: 17px; font-weight: 700; }

.sm-upload { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 16px; }
.sm-upload__drop { display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed var(--steel-300); border-radius: var(--radius); cursor: pointer; }
.sm-upload__drop svg { color: var(--accent); }
.sm-upload__drop span { display: flex; flex-direction: column; }
.sm-upload__drop small { color: var(--steel-500); }
.sm-upload.is-drag .sm-upload__drop { border-color: var(--accent); background: var(--accent-soft); }
.sm-upload__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-upload__input:focus-visible + .sm-upload__list, .sm-upload__drop:focus-within { outline: 3px solid var(--accent-bright); }
.sm-upload__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sm-upload__list:empty { display: none; }
.sm-upload__list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; background: var(--steel-100); border-radius: var(--radius); font-size: 14px; }
.sm-upload__list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sm-upload__msg { margin: 8px 0 0; font-size: 14px; color: var(--err); }
.sm-upload__msg:empty { display: none; }

.sm-thanks__box { background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: 32px; max-width: 880px; }
.sm-thanks__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: var(--ok); align-items: center; justify-content: center; margin-bottom: 16px; }
.sm-thanks .sm-h2 { margin-bottom: 12px; }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--steel-200); border-left-width: 1px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-weight: 500;
}
.woocommerce-message { background: #e7f6ec; border-color: #bfe5cc; color: #14532d; }
.woocommerce-error { background: #fdecec; border-color: #f5c2c2; color: #7f1d1d; display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; min-height: 38px; }

/* ---------- Prose (pages) ---------- */
.sm-prose { font-size: 18px; }
.sm-prose > * { max-width: 820px; }
.sm-prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; margin: 36px 0 10px; }
.sm-prose h3 { font-size: 21px; margin: 28px 0 8px; }
.sm-prose ul { padding-left: 1.2em; }
.sm-prose li { margin: 6px 0; }
.sm-prose .sm-contact-layout { max-width: none; }
.sm-callout { padding: 16px 18px; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent-text); }

/* ---------- Footer ---------- */
.sm-footer { background: var(--black); color: var(--steel-400); font-size: 15px; margin-top: 0; }
.sm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px 36px; }
.sm-logo--footer { height: auto; width: 250px; margin-bottom: 16px; }
.sm-footer__brand p { margin: 0; line-height: 1.7; font-size: 14px; }
.sm-footer__brand strong { color: var(--on-dark); }
.sm-footer__title { margin: 0 0 12px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.sm-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-footer a { color: var(--steel-300); text-decoration: none; }
.sm-footer a:hover { color: #fff; }
.sm-footer .sm-contact-list li > svg { color: var(--accent-bright); }
.sm-footer .sm-hours-row { min-width: 0; }
.sm-footer__bottom { border-top: 1px solid var(--graphite-2); padding-block: 18px; font-size: 13px; }

/* Mobile quote bar + toast */
.sm-mobilebar { display: none; }
.sm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-weight: 600; max-width: calc(100vw - 32px); }
.sm-toast a { color: #f59e5b; }
.sm-toast.is-error { background: var(--err); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.sm-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	.sm-catalog { display: block; }
	.sm-catalog__aside { position: static; }
	.sm-toolbar__filters { display: inline-flex; }
	.sm-filters { position: fixed; inset: 0; z-index: 210; display: none; }
	.sm-filters.is-open { display: block; }
	.sm-filters__backdrop { display: block; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
	.sm-filters__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; border: 0; }
	.sm-filters__close { display: inline-flex; }
	.sm-filters__body { flex: 1; max-height: none; }
	.js .sm-filters__foot { display: block; border-top: 1px solid var(--steel-200); }
}

@media (max-width: 860px) {
	.sm-topbar__note { display: none; }
	.sm-header__main { flex-wrap: wrap; gap: 12px; padding-block: 10px 14px; }
	.sm-header__menu { display: inline-flex; margin-left: -10px; }
	.sm-header__logo { flex: 1; }
	.sm-logo { height: 36px; }
	.sm-search { order: 3; flex-basis: 100%; }
	.sm-quote-btn { padding: 0 12px; border: 0; }
	.sm-quote-btn__label { display: none; }
	.sm-nav { display: none; }
	.sm-hero__in { padding-block: 40px 44px; gap: 32px; }
	.sm-hero__cta .sm-btn { flex: 1 1 100%; }
	.sm-finder { max-width: none; }
	.sm-section { padding-block: 44px; }
	.sm-qline { grid-template-columns: 48px minmax(0, 1fr) 44px; }
	.sm-qline__thumb { width: 48px; height: 48px; }
	.sm-qline__qty { grid-column: 2; }
	.sm-qline__kg { grid-column: 2; text-align: left; }
	.sm-qline__remove { grid-row: 1; grid-column: 3; }
	.sm-mobilebar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; height: 56px; padding: 0 18px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--radius-lg); text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
	.sm-mobilebar:hover { color: #fff; }
	.sm-mobilebar.is-empty, .woocommerce-cart .sm-mobilebar, .woocommerce-checkout .sm-mobilebar { display: none; }
	.sm-mobilebar .sm-quote-count { background: transparent; min-width: 0; padding: 0; font-size: inherit; }
	.sm-mobilebar__go { color: #f59e5b; }
	body:has(.sm-mobilebar:not(.is-empty)) .sm-footer__bottom { padding-bottom: 86px; }
	.sm-toast { bottom: 80px; }
}

@media (max-width: 680px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.sm-topbar__contact span { display: none; }
	.sm-footer__grid { grid-template-columns: 1fr; }
	.sm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sm-tile { padding: 16px; gap: 10px; }
	.sm-tile svg { width: 40px; height: 40px; }
	.sm-tile__name { font-size: 19px; }
	.sm-tile__desc { display: none; }
	.sm-stat__n { font-size: 44px; }
	.sm-fields { grid-template-columns: 1fr; }
	.sm-fields .form-row-first, .sm-fields .form-row-last { grid-column: 1; }
	.sm-contact-layout__form { padding: 18px; }
	/* Table → stacked rows */
	.sm-table thead { display: none; }
	.sm-table, .sm-table tbody, .sm-table tr { display: block; }
	.sm-table tr { padding: 14px 16px; border-top: 1px solid var(--steel-200); }
	.sm-table tr:first-child { border-top: 0; }
	.sm-table td { display: none; padding: 0; border: 0; }
	.sm-table td.sm-table__name, .sm-table td.sm-table__qty { display: block; }
	.sm-table td:first-child { padding-left: 0; }
	.sm-table__mobilespec { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--steel-500); margin-top: 4px; }
	.sm-table__qty { margin-top: 10px; }
	.sm-add--row { justify-content: flex-start; }
	.sm-add--row .sm-qty-input { flex: 1; max-width: 120px; height: 44px; }
	.sm-add--row select, .sm-add--row .sm-btn--icon { height: 44px; }
	.sm-add--row .sm-btn--icon { margin-left: auto; width: 52px; }
	.sm-toolbar__right { width: 100%; }
	.sm-toolbar__right .woocommerce-ordering { flex: 1; }
	.sm-toolbar__right .woocommerce-ordering select { width: 100%; }
	.sm-product__figure--drawing svg { width: 56%; }
	.sm-thanks__box { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.sm-header, .sm-footer, .sm-mobilebar, .sm-filters, .sm-toolbar, .sm-add { display: none !important; }
	body { background: #fff; }
}

/* Common values above the product table */
.sm-common { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 12px; font-size: 14px; color: var(--steel-500); }
.sm-common__item { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius); color: var(--ink); }
.sm-common__k { color: var(--steel-500); font-size: 13px; }
.sm-table__name { min-width: 230px; }

/* ---------- Category notes ("Tudnivalók") ---------- */
.sm-pagehead__row { flex-wrap: wrap; align-items: flex-start; }
.sm-pagehead__text { flex: 1 1 420px; min-width: 0; }
.sm-pagehead__icon { margin-top: 4px; }
.sm-notes { flex: 0 1 440px; margin-left: auto; padding: 16px 20px; background: var(--surface); border: 1px solid var(--steel-200); border-radius: var(--radius-lg); }
.sm-notes__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .4px; }
.sm-notes__title svg { color: var(--accent); }
.sm-notes__list { margin: 0; padding-left: 1.15em; font-size: 15px; color: var(--steel-700); display: grid; gap: 4px; }
.sm-notes__list li::marker { color: var(--accent); }

/* ---------- Discount note + custom item ---------- */
.sm-discount { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.sm-custom { margin-top: 20px; padding: 20px 22px; background: #fff; border: 1px dashed var(--steel-300); border-radius: var(--radius-lg); }
.sm-custom__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.sm-custom__head > svg { color: var(--accent); margin-top: 3px; }
.sm-custom__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .4px; }
.sm-custom__sub { margin: 2px 0 0; font-size: 15px; color: var(--steel-500); }
.sm-custom__form { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px auto; gap: 12px; align-items: end; }
.sm-custom__form .sm-field { margin: 0; }
.sm-custom__go { margin: 0; }
.sm-custom__go .sm-btn { min-height: 46px; }
.sm-custom--cart { margin-top: 28px; }
.sm-custom--empty { max-width: 860px; margin: 0 auto 32px; }
.sm-custom.is-added, .sm-custom__form.is-added .sm-btn--dark { background: var(--ok); }

/* ---------- Requester type, tax number, reverse VAT ---------- */
#billing_company_field .optional, #billing_sm_tax_field .optional { display: none; }
.sm-req-ceg { display: none; }
.is-ceg .sm-req-ceg { display: inline; }
.sm-rvat { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--steel-100); border-radius: var(--radius); font-size: 14px; color: var(--steel-700); line-height: 1.45; }
.sm-rvat p { margin: 0; }
.sm-rvat svg { color: var(--accent); margin-top: 1px; }
.is-magan .sm-rvat { display: none !important; }

@media (max-width: 860px) {
	.sm-notes { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 680px) {
	.woocommerce form .form-row.sm-segmented .woocommerce-input-wrapper { grid-template-columns: 1fr; }
	.sm-custom { padding: 16px; }
	.sm-custom__form { grid-template-columns: 1fr 1fr; }
	.sm-custom__desc, .sm-custom__go { grid-column: 1 / -1; }
	.sm-custom__go .sm-btn { width: 100%; }
}
@media (max-width: 680px) {
	.sm-pagehead__row { gap: 14px; }
	.sm-pagehead__icon svg { width: 40px; height: 40px; }
	.sm-pagehead__text { flex: 1 1 200px; }
}
