/* Tersus quote store. Loaded on shop pages only, from the HikaShop template overrides.
   Layout idea: a technical supply catalog for remediation engineers. */
:root {
  --green: #1f722f; --green-deep: #15532a; --green-tint: #eaf3ec;
  --ink: #223034; --slate: #3e5154; --muted: #647478;
  --line: #dfe4e3; --mist: #f5f7f6; --stage: #eff2f1; --white: #fff; --note: #7a5a12; --note-tint: #fbf5e6;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --r: 3px; --wrap: 1240px;
}

.tersus-shop {
  color: var(--slate); font: 400 16px/1.6 var(--font);
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--green); text-decoration: none; }
  a:hover { color: var(--green-deep); text-decoration: underline; }
  h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 900; text-transform: none; font-family: var(--font); }
  h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
  h2 { font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.005em; }
  h3 { font-size: 18px; font-weight: 700; }
  p { margin: 0; }
  :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .full { width: 100vw; margin-left: calc(50% - 50vw); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green-tint); color: var(--green-deep); }
.btn.onDark { background: #fff; border-color: #fff; color: var(--green-deep); }
.btn.onDark:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-deep); }
.btn.block { width: 100%; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.num { font-variant-numeric: tabular-nums; }

/* shop bar */
.shopbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.shopbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 700; }
.quote-btn { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--green); border-radius: var(--r); background: #fff; color: var(--green); font: 700 14px/1 var(--font); cursor: pointer; }
.quote-btn:hover { background: var(--green-tint); }
.quote-btn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; }

/* shop home */
.hero { background: var(--ink); color: #dfe7e6; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; margin: 10px 0 16px; }
.hero .eyebrow { color: #9fd3ab; }
.hero p { max-width: 52ch; font-size: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn.ghost { border-color: #8fa39f; color: #fff; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero img { width: 100%; border-radius: var(--r); }
.steps-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 26px 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.steps b { color: var(--ink); }
.steps span { font-size: 14.5px; line-height: 1.45; }
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { display: grid; grid-template-rows: 150px auto; border: 1px solid var(--line); border-radius: var(--r); color: var(--slate); transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--green); box-shadow: 0 6px 16px rgba(34, 48, 52, .08); color: var(--slate); text-decoration: none; }
.cat .pic { display: grid; place-items: center; padding: 14px; background: var(--stage); }
.cat .pic img { max-height: 122px; object-fit: contain; mix-blend-mode: multiply; }
.cat .txt { padding: 14px 16px 16px; }
.cat h3 { margin-bottom: 4px; font-size: 16.5px; }
.cat p { font-size: 14px; line-height: 1.45; }
.cat.all { display: flex; flex-direction: column; justify-content: center; padding: 20px; background: var(--green); border-color: var(--green); color: #fff; }
.cat.all h3 { color: #fff; }
.help-band { background: var(--green-deep); color: #dcefe1; }
.help-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.help-band h2 { color: #fff; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts h3 { margin-bottom: 4px; }
.facts p { font-size: 15px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9c6c2; box-shadow: 0 6px 16px rgba(34, 48, 52, .08); }
.card .pic { display: grid; place-items: center; height: 200px; padding: 16px; background: var(--stage); }
.card .pic img { max-height: 168px; object-fit: contain; mix-blend-mode: multiply; }
.card .body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.card h3 { font-size: 16.5px; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card .sum { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); color: var(--slate); font-size: 12.5px; line-height: 1.5; }
.chip.sds { border-color: #bcd9c3; background: var(--green-tint); color: var(--green-deep); font-weight: 700; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.price { color: var(--ink); font-size: 20px; font-weight: 900; }
.price small { color: var(--muted); font-size: 13px; font-weight: 400; }
.price.ask { font-size: 16px; font-weight: 700; color: var(--note); }
.card .btn { min-height: 42px; }

/* category */
.page-title { padding: 34px 0 30px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-title h1 { margin-top: 4px; }
.page-title .intro { max-width: 78ch; margin-top: 12px; }
.page-title .intro.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--green); font: 700 14px var(--font); cursor: pointer; margin-top: 8px; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 56px; }
.rail h2 { margin-bottom: 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rail ul { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rail li { border-bottom: 1px solid var(--line); }
.rail li a { display: block; padding: 10px 12px; color: var(--slate); font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; }
.rail li a:hover { background: var(--mist); text-decoration: none; }
.rail li a[aria-current] { border-left-color: var(--green); background: var(--green-tint); color: var(--green-deep); font-weight: 700; }
.help { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); font-size: 14.5px; line-height: 1.5; }
.help b { display: block; color: var(--ink); margin-bottom: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; font-size: 14.5px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; }
select, input, textarea { font: 400 15px/1.4 var(--font); color: var(--ink); }
select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.estimate-note { display: flex; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--r); background: var(--note-tint); color: var(--note); font-size: 14px; line-height: 1.45; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 48px; padding-top: 32px; padding-bottom: 44px; }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery .main { display: grid; place-items: center; height: 460px; padding: 28px; border-radius: var(--r); background: var(--stage); }
.gallery .main img { max-height: 400px; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--stage); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.buy h1 { margin: 6px 0 8px; font-size: clamp(27px, 3vw, 38px); }
.buy .sku { color: var(--muted); font-size: 14px; }
.buy .lead { margin: 14px 0 20px; font-size: 17px; }
.opt-label { margin-bottom: 8px; color: var(--ink); font-weight: 700; font-size: 15px; }
.opts { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.opt input { accent-color: var(--green); width: 17px; height: 17px; margin: 0 10px 0 0; flex: none; }
.opt span { display: flex; align-items: center; }
.opt:has(input:checked) { border: 2px solid var(--green); padding: 7px 13px; background: var(--green-tint); }
.opt em { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; }
.total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.total-row small { display: block; color: var(--muted); font-size: 13px; }
.buy-actions { display: grid; grid-template-columns: 124px 1fr; gap: 10px; }
.stepper { display: grid; grid-template-columns: 38px 1fr 38px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stepper button { border: 0; background: var(--mist); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper input { width: 100%; min-width: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fine { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.quick { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14.5px; }
.tabs { position: sticky; top: 58px; z-index: 10; display: flex; gap: 24px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); }
.tabs a { flex: none; padding: 12px 2px; border-bottom: 3px solid transparent; color: var(--slate); font-weight: 700; font-size: 15px; }
.tabs a:hover { color: var(--green); text-decoration: none; }
.tabs a.on { border-bottom-color: var(--green); color: var(--green-deep); }
.detail { display: grid; gap: 36px; padding: 32px 0 52px; }
.detail section { scroll-margin-top: 118px; }
.detail h2 { margin-bottom: 14px; font-size: 22px; }
.prose { max-width: 82ch; }
.prose h3 { margin: 22px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 7px 10px; border: 1px solid var(--line); text-align: left; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.docs a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-size: 15px; }
.docs a:hover { border-color: var(--green); text-decoration: none; }
.docs i { flex: none; padding: 2px 6px; border-radius: 2px; background: var(--green-tint); color: var(--green-deep); font: 700 11px var(--font); }

/* quote page */
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; padding-top: 24px; padding-bottom: 60px; }
.q-card { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.q-card > h2 { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--mist); font-size: 18px; }
.q-card > h2 i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font: 700 13px var(--font); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) 118px 112px 28px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { display: grid; place-items: center; width: 76px; height: 76px; padding: 6px; background: var(--stage); border-radius: var(--r); }
.line .thumb img { max-height: 62px; object-fit: contain; mix-blend-mode: multiply; }
.line b { display: block; color: var(--ink); line-height: 1.3; }
.line small { color: var(--muted); font-size: 13.5px; }
.line .amt { text-align: right; font-weight: 700; color: var(--ink); }
.line .amt.ask { color: var(--note); font-size: 13.5px; }
.line .x { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.line .stepper { height: 38px; grid-template-columns: 30px 1fr 30px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 14px; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; height: 44px; padding: 8px 12px; border: 1px solid #c9d1cf; border-radius: var(--r); background: #fff; }
.field textarea { height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.summary { position: sticky; top: 76px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); }
.summary h2 { margin-bottom: 14px; font-size: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; font-size: 15px; }
.summary dd { margin: 0; text-align: right; }
.summary .tot { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 900; font-size: 18px; }
.summary .tbq { color: var(--note); }
.summary ol { margin: 14px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.empty { padding: 44px 20px; text-align: center; }
.empty p { margin-bottom: 14px; }

/* thank you */
.ty { max-width: 860px; margin: 0 auto; padding: 44px 24px 64px; }
.ty-head { padding: 26px 28px; border-left: 4px solid var(--green); background: var(--green-tint); }
.ty-head h1 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 36px); }
.ty-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 28px; padding: 0; list-style: none; }
.ty-meta li { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--muted); }
.ty-meta b { display: block; color: var(--ink); font-size: 18px; }
.ty h2 { margin: 30px 0 12px; font-size: 21px; }
.ty .steps { grid-template-columns: 1fr; gap: 14px; padding: 0; }
.ty table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ty th { padding: 8px 10px; border-bottom: 2px solid var(--ink); color: var(--ink); text-align: left; font-size: 13px; }
.ty td { padding: 10px; border-bottom: 1px solid var(--line); }
.ty .r { text-align: right; }
.ty .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 1190; background: rgba(34, 48, 52, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; z-index: 1200; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
&.open .scrim { opacity: 1; pointer-events: auto; }
&.open .drawer { transform: none; visibility: visible; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 19px; }
.drawer header button { width: 34px; height: 34px; border: 0; background: none; font-size: 22px; color: var(--slate); cursor: pointer; }
.drawer .added { display: none; padding: 8px 20px; background: var(--green-tint); color: var(--green-deep); font-size: 14px; font-weight: 700; }
.drawer .added.show { display: block; }
.drawer .items { flex: 1; overflow-y: auto; }
.d-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; }
.d-line .thumb { display: grid; place-items: center; width: 60px; height: 60px; padding: 4px; background: var(--stage); }
.d-line .thumb img { max-height: 50px; object-fit: contain; mix-blend-mode: multiply; }
.d-line b { display: block; color: var(--ink); }
.d-line small { color: var(--muted); }
.drawer footer { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.drawer footer .row { display: flex; justify-content: space-between; color: var(--ink); font-weight: 900; font-size: 17px; }
.drawer footer .fine { margin: 0; }

@media (max-width: 1080px) {
  .grid, .cats { grid-template-columns: repeat(3, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .q-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .pdp { gap: 28px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero .wrap, .pdp, .q-layout, .layout { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .hero img { order: -1; }
  .steps, .facts { grid-template-columns: 1fr; gap: 14px; }
  .help-band .wrap { grid-template-columns: 1fr; }
  .grid, .grid.three, .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 36px 0; }
  .layout { gap: 18px; padding-top: 18px; padding-bottom: 36px; }
  .rail ul { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 0; padding-bottom: 6px; border: 0; scrollbar-width: none; }
  .rail li { flex: none; border: 0; }
  .rail li a { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r); white-space: nowrap; font-size: 14px; }
  .rail li a[aria-current] { border-color: var(--green); }
  .rail h2, .rail .help { display: none; }
  .gallery .main { height: 320px; }
  .gallery .main img { max-height: 270px; }
  .summary { position: static; }
  .tabs { top: 58px; }
}
@media (max-width: 560px) {
  .grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .pic { height: 150px; }
  .card .pic img { max-height: 124px; }
  .card .sum { display: none; }
  .card .body { padding: 12px; }
  .line { grid-template-columns: 60px minmax(0, 1fr) 28px; gap: 8px 12px; padding: 12px 14px; }
  .line .thumb { width: 60px; height: 60px; }
  .line .stepper { grid-column: 1 / 3; width: 124px; }
  .line .amt { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; justify-self: end; }
  .line .x { grid-column: 3; grid-row: 1; }
  .form { grid-template-columns: 1fr; padding: 16px; }
  .ty-meta { grid-template-columns: 1fr; }
  .crumbs { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
}

/* page frame: the shop controls its own width and spacing */
html:has(.tersus-shop) { overflow-x: clip; }
body:has(.tersus-shop) #tm-main { padding-top: 0; padding-bottom: 0; }
body:has(.tersus-shop) #tm-main > .uk-container { max-width: none; padding-left: 0; padding-right: 0; }
.tersus-shop .full { width: 100%; margin-left: 0; }
#system-message-container:empty { display: none; }

/* HikaShop blocks inside the new layout */
.tersus-shop {
  [id^="hikashop_products_switcher_"] > .hk-row-fluid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; width: 100%; }
  .ts-featured [id^="hikashop_products_switcher_"] > .hk-row-fluid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [id^="hikashop_products_switcher_"] > .hk-row-fluid::before, [id^="hikashop_products_switcher_"] > .hk-row-fluid::after { display: none; }
  [id^="hikashop_products_switcher_"] > .hk-row-fluid > .hikashop_product { grid-column: auto; width: auto; min-width: 0; max-width: none; flex: none; float: none; margin: 0; padding: 0; }
  .hikashop_container, .hikashop_subcontainer { height: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .hikashop_category_information, .hikashop_products_listing { margin: 0; }
  .hikashop_submodules, .hikashop_category_description, .hikashop_products_pagination:empty { display: none; }
  .card .hikacart, .card form, .card a.hikabtn { width: 100%; }
  .card .hikabtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; border: 1px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font: 700 15px/1 var(--font); }
  .card .hikabtn:hover { background: var(--green-deep); color: #fff; text-decoration: none; }
  .card a.hikabtn { background: transparent; color: var(--green); }
  .card a.hikabtn:hover { background: var(--green-tint); color: var(--green-deep); }
  .ts-hidden { display: none; }
  .hikashop_alt_hide { display: none; }
  .card, .card .body, .card .price-line, .card .hikabtn { text-align: left; }
  .card .body { align-items: stretch; }
  .card .hikabtn { text-align: center; text-transform: none; }
  .btn, .quote-btn, .hikabtn { text-transform: none; letter-spacing: 0; }
  /* gallery */
  .hikashop_product_main_image_thumb { height: auto !important; width: 100%; display: grid; place-items: center; }
  .hikashop_product_main_image, .hikashop_product_main_image_subdiv { width: 100%; height: auto; }
  .hikashop_global_image_div { width: 100%; }
  .hikashop_main_image_div { display: grid; place-items: center; height: 460px; padding: 28px; border-radius: var(--r); background: var(--stage); }
  .hikashop_main_image_div img { max-height: 400px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
  .hikashop_small_image_div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .hikashop_small_image_div a { display: grid; place-items: center; width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--stage); }
  .hikashop_small_image_div a.hikashop_active_thumbnail, .hikashop_small_image_div a:has(.hikashop_active_thumbnail) { border: 2px solid var(--green); }
  .hikashop_small_image_div img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
  .hikashop_slide_prev, .hikashop_slide_next { display: none; }
  /* add to quote */
  .hikashop_product_quantity_main { margin: 0; }
  .hikashop_quantity_form { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: stretch; }
  .hikashop_product_quantity_input_div_default_main { display: flex; align-items: center; gap: 6px; }
  .hikashop_product_quantity_div { display: flex; flex-direction: column; gap: 2px; }
  .hikashop_product_quantity_main .hikashop_product_stock_count:empty { display: none; }
  .hikashop_product_quantity_main .hikabtn.hikacart, .hikashop_product_quantity_main button.hikacart { width: 100%; min-height: 46px; text-transform: none; border: 1px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font: 700 15px/1 var(--font); }
  .hikashop_product_quantity_main .hikacart:hover { background: var(--green-deep); }
  .hikashop_quantity_form input[type="text"], .hikashop_product_quantity_main input[type="text"], .hikashop_product_quantity_main input[type="number"] { width: 56px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); text-align: center; font: 400 15px var(--font); }
  .hikashop_product_quantity_field_change { display: inline-grid; place-items: center; min-width: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--mist); color: var(--ink); font-size: 13px; line-height: 20px; }
  .hikashop_product_quantity_field_change:hover { text-decoration: none; background: var(--green-tint); }
  /* drawer holds the HikaShop cart module */
  .hikashop_cart_module { padding: 8px 20px; }
  .hikashop_cart_module table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
  .hikashop_cart_module th { display: none; }
  .hikashop_cart_module td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .hikashop_cart_module tfoot td, .hikashop_cart_module_product_total_title { font-weight: 900; color: var(--ink); }
  .hikashop_cart_module .hikashop_cart_proceed_to_checkout, .hikashop_cart_module .hikabtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 14px; border: 1px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font: 700 15px/1 var(--font); }
  .hikashop_cart_module .hikashop_product_quantity_field_change { width: auto; min-height: 0; margin: 0; background: var(--mist); color: var(--ink); }
  .hikashop_cart_module .hikashop_cart_module_product_delete_value a, .hikashop_cart_module .hikashop_no_print { color: var(--muted); }
  .hikashop_cart_module input[type="text"], .hikashop_cart_module input[type="number"] { width: 44px; height: 32px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); }
  .drawer .items { padding-bottom: 8px; }
  /* quote page */
  .q-layout { padding-left: 0; padding-right: 0; }
  .q-main { min-width: 0; counter-reset: qstep; }
  .q-main .hikashop_checkout_cart, .q-main .hikashop_checkout_login, .q-main .hikashop_checkout_address { margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
  .q-main table { width: 100%; }
  .hikashop_cart_title, .q-main th { color: var(--muted); font-size: 13px; font-weight: 700; background: none; }
  .hikashop_cart_product_image_value { width: 90px; }
  .hikashop_cart_product_image_thumb img, .hikashop_product_checkout_cart_image { width: 72px; height: 72px; max-width: 72px; object-fit: contain; mix-blend-mode: multiply; }
  .q-main td, .q-main th { border-color: var(--line); }
  .q-main tr { background: none !important; }
  .q-main .tersus-quote-note { padding: 12px 14px; margin-bottom: 22px; border-radius: var(--r); background: var(--note-tint); color: var(--note); font-size: 14.5px; }
  .hk-container-fluid:has(> div > #hikashop_checkout_login_form) > div:has(> #hikashop_checkout_login_form) { display: none; }
  .hk-container-fluid:has(> div > #hikashop_checkout_login_form) > div:not(:has(> #hikashop_checkout_login_form)) { width: 100%; max-width: none; flex: 0 0 100%; float: none; }
  .q-main h1, .q-main h2 { font-size: 20px; margin-bottom: 12px; color: var(--ink); }
  .q-main h3, .q-main .hikashop_checkout_address legend { font-size: 18px; }
  .q-main input[type="text"], .q-main input[type="email"], .q-main input[type="tel"], .q-main select, .q-main textarea { width: 100%; max-width: none; min-height: 44px; padding: 8px 12px; border: 1px solid #c9d1cf; border-radius: var(--r); background: #fff; font: 400 15px var(--font); color: var(--ink); }
  .q-main textarea { min-height: 96px; }
  .q-main input.hikashop_product_quantity_field { width: 56px; min-height: 38px; padding: 4px; text-align: center; }
  .q-main input:focus, .q-main select:focus, .q-main textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
  .q-main .hkform-group { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
  .q-main .hkform-group > label, .q-main .hkform-group > .hkc-sm-4 { width: 100%; max-width: none; flex: 0 0 100%; text-align: left; color: var(--ink); font-size: 14px; font-weight: 700; }
  .q-main .hkform-group > .hkc-sm-8 { width: 100%; max-width: none; flex: 0 0 100%; padding: 0; }
  #hikashop_register_form_button, [id^="hikashop_checkout_payment_"], #hikashop_checkout > .hikashop_checkout_buttons, .hikashop_checkout_buttons, .q-main .buttons_left { display: none; }
  /* thank-you page */
  .hikashop_thankyou { max-width: 860px; margin: 0 auto; padding: 36px 24px 64px; --hkty-accent: var(--green); --hkty-radius: var(--r); }
  .hikashop_thankyou_header { padding: 26px 28px; border-left: 4px solid var(--green); background: var(--green-tint); text-align: left; }
  .hikashop_thankyou_title { font-size: clamp(27px, 3vw, 36px); }
  .hikashop_thankyou_mark, .hikashop_thankyou_status { display: none; }
  .hikashop_thankyou_steps li::before { background: var(--green); }
  .hikashop_thankyou_card_title, .hikashop_thankyou_payment h2 { color: var(--ink); text-transform: none; }
  .hikashop_thankyou_payment { display: none; }
  .hikashop_thankyou_address + .hikashop_thankyou_address { display: none; }
  #hikashop_thankyou a.hikabtn-primary[href*="/order/show"] { display: none; }
  #hikashop_thankyou .hikabtn { min-height: 44px; padding: 0 20px; border: 1px solid var(--green); border-radius: var(--r); background: transparent; color: var(--green); font: 700 15px/42px var(--font); }
  #hikashop_thankyou .hikabtn-primary { background: var(--green); color: #fff; }
  @media (max-width: 1080px) { [id^="hikashop_products_switcher_"] > .hk-row-fluid, .ts-featured [id^="hikashop_products_switcher_"] > .hk-row-fluid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 860px) { [id^="hikashop_products_switcher_"] > .hk-row-fluid, .ts-featured [id^="hikashop_products_switcher_"] > .hk-row-fluid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .hikashop_main_image_div { height: 320px; } .hikashop_main_image_div img { max-height: 270px; } .hikashop_cart_product_image_value { display: none; } }
}
@media print { #tm-header, .tm-header, .tm-header-mobile, #tm-footer, .tm-bottom, .tm-footer, .tersus-shop .shopbar, .tersus-shop .scrim, .tersus-shop .drawer, #hikashop_thankyou .hikabtn { display: none !important; } }

/* small refinements found in testing */
.tersus-shop {
  .hikashop_thankyou_meta { justify-content: flex-start; margin-left: 0; padding-left: 0; }
  .hikashop_cart_module td { font-size: 14px; }
  .hikashop_cart_module .hikashop_cart_module_product_price_value, .hikashop_cart_module td:nth-last-child(2) { padding-left: 10px; white-space: nowrap; text-align: right; }
  .hikashop_cart_module .hikashop_product_quantity_input_div_default_main { display: flex; align-items: center; gap: 4px; }
  @media (max-width: 860px) {
    .q-main .hikashop_cart_total_value { padding-left: 150px !important; }
  }
}

/* mockup details: related products, numbered quote sections, quantity control */
.tersus-shop {
  .ts-related { background: var(--mist); }
  .ts-related .hikabtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; border: 1px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font: 700 15px/1 var(--font); text-transform: none; cursor: pointer; }
  .ts-related a.hikabtn { background: transparent; color: var(--green); }
  .ts-related a.hikabtn:hover { background: var(--green-tint); color: var(--green-deep); text-decoration: none; }
  .ts-related .hikabtn:not(a):hover { background: var(--green-deep); }
  .q-main .hikashop_checkout_cart, .q-main .hikashop_checkout_login, .q-main .hikashop_checkout_address { position: relative; padding-top: 70px; }
  .q-main .hikashop_checkout_cart::before, .q-main .hikashop_checkout_login::before, .q-main .hikashop_checkout_address::before { position: absolute; top: 0; left: 0; right: 0; height: 52px; padding: 13px 20px 0 56px; border-bottom: 1px solid var(--line); background: var(--mist); color: var(--ink); font: 900 18px/26px var(--font); }
  .q-main .hikashop_checkout_cart::after, .q-main .hikashop_checkout_login::after, .q-main .hikashop_checkout_address::after { position: absolute; top: 13px; left: 20px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font: 700 13px var(--font); }
  .q-main .hikashop_checkout_cart::before { content: "Your quote list"; }
  .q-main .hikashop_checkout_cart::after { content: "1"; }
  .q-main .hikashop_checkout_login::before { content: "Contact and shipping details"; }
  .q-main .hikashop_checkout_login::after { content: "2"; }
  .q-main .hikashop_checkout_address::before { content: "Shipping address"; }
  .q-main .hikashop_checkout_address::after { content: "3"; }
  .q-main .hikashop_checkout_address:not(:has(a)) { display: none; }
  .q-main .hikashop_checkout_address legend { display: none; }
  .q-main .hikashop_checkout_login > h1, .q-main .hikashop_checkout_login h2, .q-main .hikashop_checkout_login legend { display: none; }
  .hikashop_product_quantity_main .hikashop_product_quantity_input_div_default_main { display: grid; grid-template-columns: 34px 46px 34px; height: 46px; gap: 0; }
  .hikashop_product_quantity_main .hikashop_product_quantity_div { display: contents; }
  .hikashop_product_quantity_main .hikashop_product_quantity_field { grid-column: 2; grid-row: 1; width: 100%; height: 46px; border-radius: 0; border-left: 0; border-right: 0; }
  .hikashop_product_quantity_main .hikashop_product_quantity_field_change { height: 46px; min-width: 0; font-size: 16px; }
  .hikashop_product_quantity_main .hikashop_product_quantity_field_change_minus { grid-column: 1; grid-row: 1; }
  .hikashop_product_quantity_main .hikashop_product_quantity_field_change_plus { grid-column: 3; grid-row: 1; }
  .hikashop_quantity_form { grid-template-columns: 114px minmax(0, 1fr); }
  .hikashop_cart_module img { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; background: var(--stage); }
}
.tersus-shop {
  .hikashop_product_quantity_main .hikashop_product_quantity_change_div_plus_default { grid-column: 3; grid-row: 1; }
  .hikashop_product_quantity_main .hikashop_product_quantity_change_div_minus_default { grid-column: 1; grid-row: 1; }
  .hikashop_product_quantity_main .hikashop_product_quantity_field_change { display: grid; width: 100%; box-sizing: border-box; }
}
