/* ==========================================================================
   Southwest Tool & Supply - theme layer (Mediajaw 2026 restyle)
   Loaded LAST in layouts/default.ctp so it overrides bootstrap, main.css
   and the module sheets (mod_catalog, neo_cart, bshorizontal, bbb).
   Styling only - no markup the cart/CMS depends on is changed.
   ========================================================================== */

:root {
  --ink: #15181b;
  --steel: #22282d;
  --steel-2: #2e353b;
  --steel-3: #3c444b;
  --orange: #e4541b;
  --orange-d: #c2410e;
  --amber: #f5b120;
  --paper: #f4f2ee;
  --card: #ffffff;
  --line: #e2dfd8;
  --text: #22272b;
  --muted: #6b7278;
  --ok: #2e7d32;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(21,24,27,.06), 0 4px 14px rgba(21,24,27,.06);
  --shadow-up: 0 2px 4px rgba(21,24,27,.08), 0 12px 28px rgba(21,24,27,.14);
  --head-font: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body-font: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
}
a { color: var(--orange-d); }
a:hover, a:focus { color: var(--orange); }
h1, h2, h3, h4, h5 {
  font-family: var(--head-font);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
img { max-width: 100%; height: auto; }

#mainskip { display: block; position: absolute; left: -9999px; top: 0; z-index: 1000; }
#mainskip:focus { left: 10px; top: 10px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 4px; font-weight: 700; }

#tmpl-back { background: var(--paper); }

/* ---------- top utility bar ---------- */
#tmpl-topbar {
  background: var(--ink);
  color: #b9bfc4;
  font-size: 14px;
  line-height: 1.3;
}
#tmpl-topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
#tmpl-topbar .tb-tag {
  font-family: var(--head-font);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
  font-weight: 600;
}
#tmpl-topbar .tb-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
#tmpl-topbar .fa { color: var(--orange); margin-right: 6px; }

/* ---------- header ---------- */
#tmpl-head {
  position: relative;
  background:
    linear-gradient(115deg, rgba(228,84,27,.10) 0%, rgba(228,84,27,0) 38%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px),
    var(--steel);
  color: #fff;
  border-bottom: 1px solid #000;
}
#tmpl-head .container > .row > div { margin: 0; }
#tmpl-head .head-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
#tmpl-head .logobox a { display: inline-block; }
#tmpl-head .logobox img { display: block; width: 390px; max-width: 100%; height: auto; }
#tmpl-head .head-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
#tmpl-head a { color: #fff; text-decoration: none; }
#tmpl-head .phonelink { display: flex; align-items: center; gap: 10px; line-height: 1.15; }
#tmpl-head .phonelink .fa {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--amber); font-size: 20px;
  transition: background .2s;
}
#tmpl-head .phonelink small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #aab1b7; }
#tmpl-head .phonelink strong { font-family: var(--head-font); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
#tmpl-head .phonelink:hover .fa { background: var(--orange); color: #fff; }

#tmpl-head .cartlink { padding: 0; text-align: left; }
#tmpl-head .cartlink a {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: var(--radius);
  padding: 11px 18px 11px 16px;
  background: var(--orange); color: #fff;
  font-family: var(--head-font); font-size: 19px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 3px 0 var(--orange-d);
  transition: transform .15s, box-shadow .15s, background .15s;
}
#tmpl-head .cartlink a:hover,
#tmpl-head .cartlink a:focus { background: #f0621f; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--orange-d); }
#tmpl-head .cartlink .fa { font-size: 20px; }
#tmpl-head .cartlink .count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--amber); font-size: 15px; line-height: 1;
}

/* ---------- main menu bar (menu itself: css/horizontal.css) ---------- */
/* On phones horizontal-menu.js moves .hmenu-box into #mobile-cubby-hole
   (top of the page). The cubby then wears the bar and the empty
   #tmpl-nav hides, so the menu looks the same either way. */
#tmpl-nav,
.mobile-cubby-hole:not(:empty),
#mobile-cubby-hole:not(:empty) {
  position: relative;
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}
.mobile-cubby-hole:empty,
#mobile-cubby-hole:empty { display: none; }
#tmpl-nav:not(:has(.hmenu-box)) { display: none; }
/* phones: the menu bar has its own call button, so drop the header one */
@media (max-width: 767px) {
  body:has(.hmenu-box .icons a[href^="tel:"]) #tmpl-head .phonelink { display: none; }
}


/* ---------- homepage banner ---------- */
#hptop { padding: 26px 0 0; background: var(--paper); }
#hptop .stretch-slides {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--orange);
}
#hptop .stretch-slides .overlay { display: none; }

/* ---------- content area ---------- */
#tmpl-content { padding: 30px 0 60px; background: var(--paper); }
#page-title {
  position: relative;
  margin: 0 0 26px; padding: 0 0 14px;
  font-family: var(--head-font);
  font-size: 40px; line-height: 1.05; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink);
}
#page-title:after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 70px; height: 4px; background: var(--orange); border-radius: 2px;
}
.marticle .content { font-size: 17px; }
.marticle .content p { margin-bottom: 14px; }

/* ---------- bootstrap components ---------- */
.btn {
  border-radius: var(--radius);
  font-family: var(--head-font); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary, .btn-success {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-success:hover, .btn-success:focus, .btn-success:active {
  background: var(--orange-d); border-color: var(--orange-d); color: #fff;
}
.btn-info {
  background: var(--steel); border-color: var(--steel); color: #fff;
}
.btn-info:hover, .btn-info:focus { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-default { background: #fff; border-color: #cfcac1; color: var(--text); }
.btn-default:hover, .btn-default:focus { background: #f0ede7; border-color: #b9b3a8; color: var(--ink); }

.form-control {
  border-radius: var(--radius); border-color: #cfcac1; box-shadow: none;
  height: 40px; font-size: 16px; color: var(--text);
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(228,84,27,.18); }
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-btn > .btn { height: 40px; }

.breadcrumb {
  background: transparent; padding: 10px 0; margin: 0;
  font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.breadcrumb > li + li:before { content: "\203A"; color: var(--orange); padding: 0 10px; font-size: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-d); }
.breadcrumb a.active { color: var(--ink); }

.pagination > li > a, .pagination > li > span {
  color: var(--text); border-color: var(--line); background: #fff;
  min-width: 42px; text-align: center; font-weight: 600;
}
.pagination > li > a:hover { background: var(--paper); color: var(--orange-d); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.pagination > .disabled > a { color: #c2bdb4; background: #fff; }
.pagination > li:first-child > a { border-radius: var(--radius) 0 0 var(--radius); }
.pagination > li:last-child > a { border-radius: 0 var(--radius) var(--radius) 0; }
.pgbox { padding: 26px 0 0; }
.pgbox .limits { margin-top: 6px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.pgbox .limits li a { padding: 2px 7px; border-radius: 4px; color: var(--muted); text-decoration: none; }
.pgbox .limits li a:hover { background: #fff; color: var(--orange-d); }
.pgbox .limits li.current a { background: var(--ink); color: #fff; }

.feedback-box { border-radius: var(--radius); }
.flash_message, #flashMessage {
  border: 0; border-left: 5px solid var(--orange); border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: var(--shadow);
}
.error-message { width: auto; border-radius: var(--radius); }

/* ==========================================================================
   CATALOG
   ========================================================================== */

/* breadcrumb + search row */
.mcatalog > .row:first-child {
  display: flex; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 22px; padding: 8px 4px;
}
.mcatalog > .row:first-child:before,
.mcatalog > .row:first-child:after { display: none; }
.mcatalog .searchbox .btn-default {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.mcatalog .searchbox .btn-default:hover { background: var(--orange); border-color: var(--orange); }
.mcatalog .searchbox .glyphicon { display: none; }
.mcatalog .searchbox .btn-default:before { content: "\f002"; font-family: FontAwesome; margin-right: 6px; font-weight: normal; }

/* category tiles */
.mcatalog .catbox { display: flex; flex-wrap: wrap; padding: 0 0 10px; }
.mcatalog .catbox:before, .mcatalog .catbox:after { display: none; }
.mcatalog .catbox > div { display: flex; margin-bottom: 22px; }
.mcatalog .catbox a,
.mcatalog .catbox a.catlink {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; min-height: 190px;
  margin: 0; padding: 22px 22px 20px;
  text-align: left; text-decoration: none;
  border: 0; border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(245,177,32,.20), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 10px),
    var(--steel);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.mcatalog .catbox a:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--orange); transform: scaleX(.25); transform-origin: left; transition: transform .25s;
}
.mcatalog .catbox a:hover, .mcatalog .catbox a:focus {
  transform: translateY(-3px); box-shadow: var(--shadow-up); color: #fff; background-color: var(--steel-2);
}
.mcatalog .catbox a:hover:after { transform: scaleX(1); }
.mcatalog .catbox .ibox { display: block; margin-bottom: auto; }
.mcatalog .catbox .ibox img { max-height: 70px; max-width: 100%; }
.mcatalog .catbox .ibox:empty:before {
  content: "\f0ad";               /* wrench - default */
  font-family: FontAwesome; font-size: 30px; line-height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: var(--amber);
}
.mcatalog .catbox a[href*="gauging"] .ibox:empty:before { content: "\f0e4"; }  /* tachometer */
.mcatalog .catbox a[href*="safety"]  .ibox:empty:before { content: "\f132"; }  /* shield */
.mcatalog .catbox a[href*="truck"]   .ibox:empty:before { content: "\f0d1"; }  /* truck */
.mcatalog .catbox a[href*="top-sell"] .ibox:empty:before { content: "\f005"; } /* star */
.mcatalog .catbox .tbox {
  display: block; margin-top: 20px;
  font-family: var(--head-font); font-size: 26px; font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: .03em;
}
.mcatalog .catbox .tbox:after {
  content: "Shop now \f105"; display: block; margin-top: 8px;
  font-family: var(--body-font), FontAwesome; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; color: var(--amber);
}

.mcatalog .catdesc {
  background: #fff; border-left: 5px solid var(--orange); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 22px; box-shadow: var(--shadow);
}

/* results toolbar (sort) */
.mcatalog .sortbox,
.mcatalog .swt-toolbar {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.mcatalog .sortbox a {
  display: inline-block; margin: 0 2px; padding: 5px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  color: var(--text); text-decoration: none;
}
.mcatalog .sortbox a:hover { border-color: var(--orange); color: var(--orange-d); }
.mcatalog .sortbox a.sort_asc,
.mcatalog .sortbox a.sort_desc,
.mcatalog .sortbox a.asc,
.mcatalog .sortbox a.desc { background: var(--ink); border-color: var(--ink); color: #fff; padding-right: 12px; }

/* product grid */
.mcatalog form { margin: 0; }
.mcatalog .gallery { margin: 0; }
.mcatalog .gallery .row {
  display: flex; flex-wrap: wrap;
  margin-left: -11px; margin-right: -11px;
}
.mcatalog .gallery .row:before, .mcatalog .gallery .row:after { display: none; }
.mcatalog .gallery .row > div {
  display: flex; flex-direction: column;
  float: none;
  padding: 0 11px; margin-bottom: 22px;
}
.mcatalog .gallery .row > div:hover { background: transparent; }
.mcatalog .gallery .card {
  position: relative;
  display: flex; flex-direction: column; flex: 1 1 auto;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mcatalog .gallery .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: #d6d0c5; }
.mcatalog .gallery .row > div .t {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 230px; padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mcatalog .gallery .row > div .t a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.mcatalog .gallery .row > div .t img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: transform .35s;
}
.mcatalog .gallery .card:hover .t img { transform: scale(1.05); }
.mcatalog .gallery .row > div .t:empty:before,
.mcatalog .gallery .row > div .t .noimg {
  content: "\f0ad"; font-family: FontAwesome; font-size: 54px; color: #ddd8cf;
}
.mcatalog .gallery .row > div .b {
  display: flex; flex-direction: column; flex: 1 1 auto;
  min-height: 0; padding: 16px 16px 18px; text-align: left;
}
.mcatalog .gallery .row > div .b h3 {
  min-height: 0; margin: 0 0 12px;
  font-size: 21px; line-height: 1.15; font-weight: 600;
}
.mcatalog .gallery .row > div .b h3 a { color: var(--ink); text-decoration: none; }
.mcatalog .gallery .row > div .b h3 a:hover { color: var(--orange-d); }

.mcatalog .gallery .pricebox { margin-top: auto; text-align: left; }
.mcatalog .gallery .pricebox > div { margin: 0; }
.mcatalog .gallery .pricebox .price {
  margin-bottom: 12px !important;
  font-family: var(--head-font); font-size: 28px; font-weight: 700; line-height: 1;
  color: var(--ink);
}
.mcatalog .gallery .pricebox .price:empty { display: none; }
.mcatalog .gallery .pricebox .addcart,
.mcatalog .view .pricebox .addcart {
  display: flex; align-items: stretch; gap: 8px; flex-wrap: nowrap;
}
.mcatalog .gallery .pricebox .addcart > *,
.mcatalog .view .pricebox .addcart > * { display: block; vertical-align: top; }
.mcatalog .gallery .pricebox .addcart input[type=hidden],
.mcatalog .view .pricebox .addcart input[type=hidden] { display: none; }
.mcatalog .gallery .pricebox .addcart .qtybox,
.mcatalog .view .pricebox .addcart .qtybox { flex: 1 1 auto; width: auto; min-width: 104px; max-width: 150px; margin: 0; }
.mcatalog .qtybox .input-group { width: 100%; }
.mcatalog .qtybox .btn { width: 34px; padding-left: 0; padding-right: 0; font-family: var(--body-font); font-size: 18px; line-height: 1; color: var(--muted); }
.mcatalog .qtybox .btn:hover { color: var(--orange-d); }
.mcatalog .qtybox .qty { text-align: center; font-weight: 600; padding-left: 4px; padding-right: 4px; }
.mcatalog .gallery .pricebox .addcart input[type=submit],
.mcatalog .view .pricebox .addcart input[type=submit] { flex: 1 1 auto; height: 40px; padding: 0 14px; font-size: 17px; }
.mcatalog .gallery .pricebox .addcart .btn-info { flex: 1 1 auto; padding: 9px 14px; font-size: 16px; }
.mcatalog .nostock {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius);
  background: #f3e3dc; color: var(--orange-d); font-weight: 700; font-size: 14px; text-transform: uppercase;
}

.mcatalog .no-results {
  font-family: var(--head-font); font-size: 34px; text-transform: uppercase;
  padding: 40px 0; color: var(--muted) !important;
}
.mcatalog .continue { margin: 6px 0 14px; }
.mcatalog .continue a { font-weight: 600; text-decoration: none; }
.mcatalog .continue a:before { content: "\f104"; font-family: FontAwesome; margin-right: 6px; }

/* product detail */
.mcatalog .view { padding-bottom: 20px; }
.mcatalog .view > .row,
.mcatalog .view > form > .row:first-of-type {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 24px; padding: 24px 9px;
}
.mcatalog .view .prime-img a { display: block; padding: 10px; }
.mcatalog .view .prime-img img { max-height: 460px; object-fit: contain; }
.mcatalog .view .details h2 { margin: 0 0 6px; font-size: 38px; line-height: 1.05; text-transform: uppercase; }
.mcatalog .view .details h3 { margin: 0 0 18px; font-family: var(--body-font); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.mcatalog .view .details h3:not(:empty):before { content: "SKU "; color: #a2a8ad; }
.mcatalog .view .desc { font-size: 17px; }
.mcatalog .view .socialbox { margin: 16px 0; }
.mcatalog .view .pricebox {
  text-align: left;
  margin-top: 16px; padding: 18px 20px;
  background: var(--paper); border-radius: var(--radius); border-left: 5px solid var(--orange);
}
.mcatalog .view .pricebox .price { font-family: var(--head-font); font-size: 40px; line-height: 1; padding: 0 0 14px; color: var(--ink); }
.mcatalog .view .pricebox .options li { display: flex; align-items: center; gap: 10px; }
.mcatalog .view .pricebox .options select,
.mcatalog .view .pricebox .options input { margin-left: 0; width: auto; min-width: 180px; height: 40px; border-radius: var(--radius); border: 1px solid #cfcac1; padding: 0 8px; }
.mcatalog .view .pricebox .addcart { max-width: 420px; }
.mcatalog .view .pricebox .addcart .qtybox { max-width: 160px; }
.mcatalog .view .other-imgs { display: flex; flex-wrap: wrap; margin: 0 -8px 20px; }
.mcatalog .view .other-imgs:before, .mcatalog .view .other-imgs:after { display: none; }
.mcatalog .view .other-imgs li { padding: 8px; }
.mcatalog .view .other-imgs li a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.mcatalog .view .other-imgs li a:hover { border-color: var(--orange); }
.mcatalog .view .suggested { border: 0; margin: 10px 0 20px; }
.mcatalog .view .suggested h4 {
  font-size: 26px; text-transform: uppercase; margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

/* ==========================================================================
   CART / CHECKOUT (neo_cart)
   ========================================================================== */
.ncart { font-size: 16px; }
.ncart-checkout-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 26px;
}
.ncart-checkout-nav li { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 15px; }
.ncart-checkout-nav li a {
  display: block; padding: 8px 16px; border-top-right-radius: 10px; border-top-left-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.ncart-checkout-nav .here { font-size: 15px; background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ncart-feedback { border-radius: var(--radius); border: 0; border-left: 5px solid #d32f2f; background: #fdecea; color: #b71c1c; }

.ncart-items {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px 20px 16px;
}
.ncart-items:not(:has(.item)) { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 18px; }
.ncart-items:not(:has(.item)):before { content: "\f07a"; display: block; margin-bottom: 8px; font-family: FontAwesome; font-size: 40px; color: #d6d0c5; }
.ncart-items:not(:has(.item)):after { content: "Your cart is empty."; }
.ncart-items .item { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ncart-items .imgbox img { border: 1px solid var(--line); border-radius: 4px; padding: 4px; background: #fff; }
.ncart-items h3 { font-size: 22px; }
.ncart-items h3 a { color: var(--ink); text-decoration: none; }
.ncart-items .sku { color: var(--muted); font-size: 14px; }
.ncart-items .rem { text-align: left; font-size: 14px; }
.ncart-items .qtybox { font-weight: 600; }
.ncart-items .qtybox .total { font-family: var(--head-font); font-size: 22px; color: var(--ink); }
.ncart-items .qtybox input[type=text] { width: 54px; height: 36px; border: 1px solid #cfcac1; border-radius: var(--radius); }
.ncart-items .totalbar { padding-top: 6px; font-size: 16px; }
.ncart-items .totalbar:last-of-type { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--ink); font-family: var(--head-font); font-size: 24px; }
.ncart-coupons { padding: 18px 0; }
.ncart-coupons input[type=text] { height: 38px; border: 1px solid #cfcac1; border-radius: var(--radius); padding: 0 10px; margin-left: 8px; }
.ncart .btnbar { margin-top: 6px; }
.ncart .btnbar .btn { padding: 10px 22px; font-size: 18px; }
.ncart .btnbar .btn-success { padding: 13px 40px; font-size: 22px; box-shadow: 0 3px 0 var(--orange-d); }
.ncart-addy-book > li, .ncart-rates .wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ncart-capform { background: var(--steel); border-radius: var(--radius); }
.ncart-capform .total { color: var(--amber); }
.ncart-capform input[type=submit] { border: 0; border-radius: var(--radius); }
.ncart-capform .yes { background: var(--orange); }
.ncart-capform .no { background: var(--steel-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#tmpl-foot .top {
  background: var(--steel);
  color: #b9bfc4;
  font-size: 16px;
  border-top: 4px solid var(--orange);
}
#tmpl-foot .top .container > .row > div { margin-top: 44px; margin-bottom: 36px; }
#tmpl-foot h4 {
  margin: 0 0 16px;
  font-size: 18px; color: #fff; text-transform: uppercase; letter-spacing: .1em;
}
#tmpl-foot h4:after { content: ""; display: block; width: 34px; height: 3px; margin-top: 8px; background: var(--orange); border-radius: 2px; }
#tmpl-foot .top a { color: #dfe3e6; text-decoration: none; }
#tmpl-foot .top a:hover { color: var(--amber); }
#tmpl-foot .foot-logo { display: block; width: 240px; max-width: 100%; margin-bottom: 14px; }
#tmpl-foot .foot-blurb { margin: 0; line-height: 1.5; }
#tmpl-foot .footmenu div { padding-bottom: 9px; }
#tmpl-foot .footmenu a:before { content: "\f105"; font-family: FontAwesome; color: var(--orange); margin-right: 8px; }
#tmpl-foot .addybox div:first-of-type { font-weight: 600; color: #fff; }
#tmpl-foot .phonebox { padding: 12px 0 6px; font-family: var(--head-font); font-size: 24px; font-weight: 600; }
#tmpl-foot .phonebox a { color: #fff; }
#tmpl-foot .email { word-break: break-word; }
#tmpl-foot .hours div { padding-bottom: 2px; }
#tmpl-foot .hours div:first-of-type { padding-bottom: 0; font-weight: 400; }
#tmpl-foot .hours strong { color: #fff; }
#tmpl-foot .ship-note {
  margin-top: 16px; padding: 10px 12px; border-radius: var(--radius);
  background: rgba(228,84,27,.12); border: 1px solid rgba(228,84,27,.35);
  color: #f3c9b5; font-size: 14px; line-height: 1.4;
}
#tmpl-foot .bottom { background: var(--ink); color: #8b9298; padding: 14px 0; }
#tmpl-foot .bottom .row { display: flex; flex-wrap: wrap; align-items: center; }
#tmpl-foot .bottom .row:before, #tmpl-foot .bottom .row:after { display: none; }
#tmpl-foot .copyright { padding: 6px 0; font-size: 13px; text-align: left; }
#tmpl-foot .mediajaw { text-align: right; }
#tmpl-foot .mediajaw img { width: 170px; opacity: .8; transition: opacity .2s; }
#tmpl-foot .mediajaw a:hover img { opacity: 1; }

/* ==========================================================================
   404
   ========================================================================== */
.swt-404 { text-align: center; padding: 20px 0 10px; }
.swt-404 .code {
  font-family: var(--head-font); font-size: 150px; line-height: .9; font-weight: 700;
  color: var(--ink); letter-spacing: .02em;
}
.swt-404 .code span { color: var(--orange); }
.swt-404 .lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 16px auto 28px; }
.swt-404 .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.swt-404 .links .btn { padding: 10px 20px; font-size: 17px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  #tmpl-head .phonelink small { display: none; }
  #tmpl-head .logobox img { width: 300px; }
  .mcatalog .view .details h2 { font-size: 32px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  #tmpl-topbar .tb-info .tb-addr,
  #tmpl-topbar .tb-info .tb-hours { display: none; }
  #tmpl-topbar .container { justify-content: center; }
  #tmpl-head .head-flex { flex-direction: column; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  #tmpl-head .logobox img { width: 280px; margin: 0 auto; }
  #tmpl-head .head-actions { width: 100%; justify-content: center; gap: 12px; }
  #tmpl-head .phonelink .fa { width: 38px; height: 38px; font-size: 18px; }
  #tmpl-head .phonelink strong { font-size: 21px; }
  #tmpl-head .cartlink a { padding: 9px 14px; font-size: 17px; }
  #page-title { font-size: 31px; }
  #tmpl-content { padding-top: 22px; }
  #hptop { padding-top: 16px; }

  .mcatalog > .row:first-child { padding: 6px 0 12px; }
  .mcatalog .breadcrumb { padding-bottom: 6px; }
  .mcatalog .catbox > div { width: 50%; float: none; margin-bottom: 14px; padding-left: 7px; padding-right: 7px; }
  .mcatalog .catbox { margin-left: -7px; margin-right: -7px; }
  .mcatalog .catbox a, .mcatalog .catbox a.catlink { min-height: 150px; padding: 16px; }
  .mcatalog .catbox .ibox:empty:before { width: 46px; height: 46px; font-size: 24px; line-height: 46px; }
  .mcatalog .catbox .tbox { font-size: 21px; margin-top: 14px; }
  .mcatalog .sortbox, .mcatalog .swt-toolbar { justify-content: flex-start; }

  .mcatalog .gallery .row { margin-left: -7px; margin-right: -7px; }
  .mcatalog .gallery .row > div { width: 50%; padding: 0 7px; margin-bottom: 14px; }
  .mcatalog .gallery .row > div .t { height: 170px; padding: 12px; }
  .mcatalog .gallery .row > div .b { padding: 12px 12px 14px; }
  .mcatalog .gallery .row > div .b h3 { font-size: 18px; }
  .mcatalog .gallery .pricebox .price { font-size: 24px; }
  .mcatalog .gallery .pricebox .addcart { flex-wrap: wrap; }
  .mcatalog .gallery .pricebox .addcart .qtybox { max-width: none; flex-basis: 100%; }
  .mcatalog .gallery .pricebox .addcart input[type=submit] { flex-basis: 100%; }

  .mcatalog .view > .row, .mcatalog .view > form > .row:first-of-type { padding: 14px 0; }
  .mcatalog .view .details h2 { font-size: 28px; margin-top: 14px; }
  .mcatalog .view .pricebox .price { font-size: 34px; }

  .ncart-items { padding: 4px 12px 12px; }
  .ncart-items .qtybox { text-align: left; }
  #tmpl-foot .top .container > .row > div { margin-top: 30px; margin-bottom: 4px; }
  #tmpl-foot .copyright, #tmpl-foot .mediajaw { text-align: center; }
  .swt-404 .code { font-size: 110px; }
}
@media (max-width: 339px) {
  .mcatalog .catbox > div,
  .mcatalog .gallery .row > div { width: 100%; }
  .mcatalog .gallery .row > div .t { height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* phones: no tagline bar - save the space */
@media (max-width: 767px) {
  #tmpl-topbar { display: none; }
}

/* ==========================================================================
   Main menu - views/menu_sets/horizontal.ctp
   Southwest Tool & Supply 2026 restyle (replaces the stock horizontal.css)
   Behaviour is the CMS's own webroot/js/horizontal-menu.js, unchanged.

   States that script sets:
     .hmenu.show          phone menu open      (Menu button)
     li.expanded          item whose submenu is open (tap; hover on desktop)
     .submenu.show        that submenu
   It tells desktop from phone by whether .hmenu-toggle is display:none,
   and on phones may move .hmenu-box into #mobile-cubby-hole - so every rule
   here is keyed on .hmenu-box, never on #horizontal-menu.
   Colors/fonts come from the custom properties in swt.css.
   No transform/filter on any ancestor of the phone panel.
   ========================================================================== */

.hmenu-box {
  position: relative;
  z-index: 900;
  text-align: left;
  color: #fff;
  background: transparent;
}
.hmenu-box ul { list-style: none; margin: 0; padding: 0; }
.hmenu-box a { cursor: pointer; text-decoration: none; }

/* caret on items that open a submenu */
.hmenu-box .submenu-toggle:after {
  content: "\f107";
  font-family: FontAwesome;
  font-weight: normal;
  margin-left: 7px;
  display: inline-block;
  transition: transform .2s;
}

/* ---------- desktop / tablet ---------- */
@media (min-width: 768px) {
  .hmenu-box .hmenu-toggle { display: none; }   /* the script reads this */
  .hmenu-box .icons { display: none; }

  /* !important beats Bootstrap's .show{display:block!important}, which the
     script leaves on .hmenu if the phone menu was open when the window widened */
  .hmenu-box .hmenu,
  .hmenu-box .hmenu.show { display: flex !important; }
  .hmenu-box .hmenu > li { position: relative; flex: 1 1 auto; }
  .hmenu-box .hmenu > li > a {
    display: block;
    padding: 14px 18px;
    text-align: center;
    color: #e9ecee;
    font-family: var(--head-font);
    font-size: 19px; font-weight: 600; line-height: 1.2;
    text-transform: uppercase; letter-spacing: .06em;
    transition: background .15s, color .15s;
  }
  .hmenu-box .hmenu > li:hover > a,
  .hmenu-box .hmenu > li:focus-within > a,
  .hmenu-box .hmenu > li.expanded > a,
  .hmenu-box .hmenu > li > a:focus {
    background: var(--orange);
    color: #fff;
    outline: none;
  }
  .hmenu-box .hmenu > li:hover > .submenu-toggle:after,
  .hmenu-box .hmenu > li.expanded > .submenu-toggle:after { transform: rotate(180deg); }

  .hmenu-box .submenu {
    position: absolute; top: 100%; left: 0;
    min-width: 260px;
    padding: 6px 0;
    background: var(--steel);
    border-top: 3px solid var(--orange);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
    opacity: 0; visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  }
  .hmenu-box .hmenu > li:last-child > .submenu { left: auto; right: 0; }
  /* :hover too, so touch tablets keep it open after a tap */
  .hmenu-box li:hover > .submenu,
  .hmenu-box li:focus-within > .submenu,
  .hmenu-box li.expanded > .submenu,
  .hmenu-box .submenu.show {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .15s, transform .15s, visibility 0s;
  }
  /* third level flies out to the side */
  .hmenu-box .submenu li { position: relative; }
  .hmenu-box .submenu .submenu { top: -9px; left: 100%; border-top: 0; border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
  .hmenu-box .submenu .submenu-toggle:after { content: "\f105"; float: right; }

  .hmenu-box .submenu a {
    display: block;
    padding: 10px 20px;
    color: #e9ecee;
    font-size: 16px; font-weight: 500; line-height: 1.3;
    border-left: 3px solid transparent;
    white-space: nowrap;
  }
  .hmenu-box .submenu a:hover,
  .hmenu-box .submenu a:focus,
  .hmenu-box .submenu li.expanded > a {
    background: var(--steel-2); color: #fff;
    border-left-color: var(--amber);
    outline: none;
  }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .hmenu-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 58px;
  }
  /* when the script moves the menu into the full-width cubby, add the gutter back */
  .mobile-cubby-hole .hmenu-box,
  #mobile-cubby-hole .hmenu-box { padding: 0 15px; }

  .hmenu-box .icons,
  .hmenu-box .icons.visible-xs-block {
    display: flex !important;
    position: static;
    gap: 6px;
  }
  .hmenu-box .icons a,
  .hmenu-box .hmenu-toggle {
    height: 42px;
    margin: 0;
    border: 0; border-radius: var(--radius);
    background: var(--steel-2); color: #fff;
    transition: background .15s;
  }
  .hmenu-box .icons a {
    width: 42px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px;
  }
  .hmenu-box .icons a .fa-phone { color: var(--amber); }
  .hmenu-box .icons a:hover,
  .hmenu-box .icons a:focus { background: var(--orange); color: #fff; }
  .hmenu-box .icons a:hover .fa,
  .hmenu-box .icons a:focus .fa { color: #fff; }

  .hmenu-box .hmenu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    margin-left: auto;
    padding: 0 14px;
    font-family: var(--head-font);
    font-size: 18px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
  }
  .hmenu-box .hmenu-toggle:hover,
  .hmenu-box .hmenu-toggle:focus { background: var(--steel-3); color: #fff; }
  /* this Bootstrap build has no glyphicon-menu-hamburger, so draw it with Font Awesome */
  .hmenu-box .hmenu-toggle .glyphicon { top: 0; width: 18px; font-size: 18px; }
  .hmenu-box .hmenu-toggle .glyphicon-menu-hamburger:before { content: "\f0c9"; font-family: FontAwesome; } /* bars */
  .hmenu-box:has(.hmenu.show) .hmenu-toggle { background: var(--orange); }
  .hmenu-box:has(.hmenu.show) .hmenu-toggle .glyphicon-menu-hamburger:before { content: "\f00d"; } /* x */

  /* the panel drops over the page, full width, under the bar */
  .hmenu-box .hmenu {
    display: none;
    position: absolute;
    top: calc(100% + 3px);              /* below the bar's orange rule */
    left: -15px; right: -15px;          /* cancel .container padding */
    z-index: 1000;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--ink);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 18px 30px rgba(0,0,0,.45);
  }
  .mobile-cubby-hole .hmenu-box .hmenu,
  #mobile-cubby-hole .hmenu-box .hmenu { left: 0; right: 0; }
  .hmenu-box .hmenu.show { display: block; }

  .hmenu-box .hmenu > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 20px;
    color: #e9ecee;
    font-family: var(--head-font);
    font-size: 19px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .hmenu-box .hmenu > li:first-child > a { border-top: 0; }
  .hmenu-box .hmenu a:hover,
  .hmenu-box .hmenu a:focus { background: var(--steel-2); color: #fff; outline: none; }
  .hmenu-box .hmenu > li.expanded > a { background: var(--orange); color: #fff; }
  .hmenu-box .submenu-toggle:after { content: "\f078"; font-size: 13px; color: var(--amber); }  /* bolder chevron on phones */
  .hmenu-box li.expanded > .submenu-toggle:after { transform: rotate(180deg); color: #fff; }

  .hmenu-box .submenu { display: none; background: var(--steel); }
  .hmenu-box .submenu.show,
  .hmenu-box li.expanded > .submenu { display: block; }
  .hmenu-box .submenu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px 12px 36px;
    color: #e9ecee;
    font-size: 16px; font-weight: 500;
    border-left: 3px solid transparent;
    border-top: 1px solid rgba(255,255,255,.04);
  }
  .hmenu-box .submenu a:hover,
  .hmenu-box .submenu a:focus { border-left-color: var(--amber); }
  .hmenu-box .submenu .submenu a { padding-left: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hmenu-box * { transition: none !important; }
}

/* ---------- header account buttons: LOG IN / PROFILE / LOG OUT ---------- */
#tmpl-head .acct { display: flex; align-items: center; gap: 8px; }
#tmpl-head .acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s, border-color .15s, color .15s;
}
#tmpl-head .acct-btn .fa { font-size: 17px; color: #f5b120; }
#tmpl-head .acct-btn:hover,
#tmpl-head .acct-btn:focus { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
/* Log out: quieter text link next to Profile */
#tmpl-head .acct-logout { padding: 0 8px; border-color: transparent; color: #b9bfc4; font-size: 16px; }
#tmpl-head .acct-logout .fa { color: inherit; }
#tmpl-head .acct-logout:hover,
#tmpl-head .acct-logout:focus { background: transparent; border-color: transparent; color: #fff; }
#tmpl-head .cartlink a { height: 44px; }
/* tablets + phones: the header row is too narrow for the full buttons */
@media (max-width: 991px) {
  /* Log out: square icon button; its label stays for screen readers */
  #tmpl-head .acct-logout { width: 44px; padding: 0; justify-content: center; border-color: rgba(255, 255, 255, .28); }
  #tmpl-head .acct-logout:hover,
  #tmpl-head .acct-logout:focus { border-color: #fff; }
  #tmpl-head .acct-logout .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* header phone number shrinks to a round tap-to-call icon */
  #tmpl-head .phonelink > span:last-child { display: none; }
}
@media (max-width: 767px) {
  #tmpl-head .head-actions { flex-wrap: wrap; gap: 8px; }
  #tmpl-head .acct-btn { height: 42px; padding: 0 13px; font-size: 17px; }
  #tmpl-head .acct-logout { width: 42px; padding: 0; }
  #tmpl-head .cartlink a { height: 42px; }
}
@media (max-width: 359px) {
  #tmpl-head .head-actions { gap: 6px; }
  #tmpl-head .acct-btn { padding: 0 10px; }
  #tmpl-head .acct-logout { padding: 0; }
  #tmpl-head .cartlink a { padding-left: 11px; padding-right: 11px; }
}

