/*
 * ToolsEngg Home Sections 1.0.0
 * Presentation-only polish for the rest of the home page: section dividers, category tiles, banners,
 * section titles, brand strip, contact form and slider dots. No links, images or behaviour change.
 * Scoped to html.route-common-home.
 */

html.route-common-home {
  --te-hs-ink: #2a3138;
  --te-hs-muted: #5d6e80;
  --te-hs-line: #e4eaf1;
  --te-hs-green: #1fa971;
  --te-hs-green-deep: #0f8a5a;
  --te-hs-mint: #eaf7f0;
  --te-hs-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Speed: the long, static category lists are not drawn until they are near the screen ---------- */
html.route-common-home .grid-row-top-4 { content-visibility: auto; contain-intrinsic-size: auto 2100px; }

/* ---------- Dividers: the red / blue mail-stripe becomes a fine green line ---------- */
html.route-common-home .grid-row-top-5,
html.route-common-home .grid-row-top-6 {
  background-image: linear-gradient(90deg, transparent 0, #bfe6d3 20%, var(--te-hs-green) 50%, #bfe6d3 80%, transparent 100%) !important;
  background-size: 100% 2px !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
}

/* ---------- Product tabs background: plain soft mint-grey instead of the paper texture ---------- */
html.route-common-home .grid-row-top-9 { background: linear-gradient(180deg, #f5f9f7 0, #edf3f0 100%) !important; }

/* ---------- Hero slider dots ---------- */
html.route-common-home .module-master_slider .ms-bullet { width: 26px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .7); transition: width .15s ease, background-color .15s linear; }
html.route-common-home .module-master_slider .ms-bullet-selected { width: 40px; background: var(--te-hs-green); }

/* ---------- Category picture tiles ---------- */
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item { padding: 8px; }
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item > a { position: relative; display: block; box-sizing: border-box; overflow: hidden; isolation: isolate; border: 1px solid #d5e0ea; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px -16px rgba(16, 38, 63, .45); transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item > a img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item > a:hover { border-color: var(--te-hs-green); box-shadow: 0 18px 34px -16px rgba(15, 138, 90, .55); transform: translateY(-3px); }
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item > a:hover img { transform: scale(1.04); }
html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item > a::before { background: rgba(9, 70, 48, .5) !important; }

/* ---------- Wide banners: one rounded, consistent frame ---------- */
html.route-common-home .module-banners-325 { box-sizing: border-box; max-width: 1400px; margin: 22px auto; padding: 0 20px; }
html.route-common-home [class*="grid-row-top-"] .module-banners:not(.module-banners-132):not(.module-banners-311) .module-item > a,
html.route-common-home [class*="grid-row-content-top"] .module-banners .module-item > a { display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 12px 30px -18px rgba(16, 38, 63, .5); transition: box-shadow .16s ease, transform .16s ease; }
html.route-common-home [class*="grid-row-top-"] .module-banners:not(.module-banners-132):not(.module-banners-311) .module-item > a img,
html.route-common-home [class*="grid-row-content-top"] .module-banners .module-item > a img { display: block; width: 100%; height: auto; border-radius: 18px; }
html.route-common-home [class*="grid-row-top-"] .module-banners:not(.module-banners-132):not(.module-banners-311) .module-item > a:hover,
html.route-common-home [class*="grid-row-content-top"] .module-banners .module-item > a:hover { box-shadow: 0 20px 38px -18px rgba(15, 138, 90, .5); transform: translateY(-2px); }

/* ---------- Section titles: centred with a green accent ---------- */
html.route-common-home [class*="grid-row-content-top"] .module-title,
html.route-common-home .module-manufacturers .module-title {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 14px;
  color: var(--te-hs-ink) !important;
  font-family: var(--te-hs-font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center !important;
  text-transform: uppercase;
}
html.route-common-home [class*="grid-row-content-top"] .module-title::after,
html.route-common-home .module-manufacturers .module-title::after {
  content: "" !important;
  position: absolute;
  left: 50% !important;
  bottom: 0;
  width: 46px;
  height: 3px;
  margin: 0 0 0 -23px !important;
  border: 0 !important;
  border-radius: 3px;
  background: var(--te-hs-green) !important;
}
html.route-common-home .module-form-20 .module-title { text-align: left !important; font-size: 17px; }
html.route-common-home .module-form-20 .module-title::after { left: 0 !important; margin-left: 0 !important; }

/* ---------- Contact form ---------- */
html.route-common-home .module-form-20 { box-sizing: border-box; padding: 26px 26px 22px; border: 1px solid var(--te-hs-line); border-radius: 20px; background: #fff; box-shadow: 0 16px 36px -24px rgba(16, 38, 63, .4); }
html.route-common-home .module-form-20 .form-control,
html.route-common-home .module-form-20 select.form-control,
html.route-common-home .module-form-20 textarea.form-control {
  border: 1.5px solid #d3dde8 !important;
  border-radius: 10px !important;
  background: #fff;
  box-shadow: none !important;
  color: var(--te-hs-ink);
  transition: border-color .08s linear, box-shadow .08s linear;
}
html.route-common-home .module-form-20 .form-control:focus { border-color: var(--te-hs-green) !important; box-shadow: 0 0 0 4px rgba(31, 169, 113, .16) !important; }
html.route-common-home .module-form-20 .control-label,
html.route-common-home .module-form-20 label { color: var(--te-hs-ink); font-weight: 600; }
html.route-common-home .module-form-20 .upload-btn { border: 0 !important; border-radius: 10px !important; background: var(--te-hs-ink) !important; font-weight: 700; letter-spacing: .04em; }
html.route-common-home .module-form-20 .upload-btn:hover { background: var(--te-hs-green-deep) !important; }
html.route-common-home .module-form-20 .btn-primary {
  min-height: 46px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--te-hs-green-deep) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  transition: background-color .08s linear;
}
html.route-common-home .module-form-20 .btn-primary:hover { background: #0b7048 !important; }
html.route-common-home .module-banners-270 > .module-body { margin: 30px 0 0 !important; }
html.route-common-home .module-banners-270 .module-item { padding: 0 !important; width: 100%; max-width: none; }

/* ---------- Form and shipping column: equal height, bottoms flush ---------- */
@media (min-width: 768px) {
  html.route-common-home .grid-row-content-top-2 > .grid-cols { align-items: stretch; }
  html.route-common-home .grid-row-content-top-2 .grid-col { display: flex; flex-direction: column; }
  html.route-common-home .grid-row-content-top-2 .grid-col > .grid-items { flex: 1 1 auto; flex-direction: column; }
  html.route-common-home .grid-row-content-top-2 .grid-col-content-top-2-2 { box-sizing: border-box; padding-left: 28px; }
  html.route-common-home .grid-row-content-top-2 .grid-col-content-top-2-1 > .grid-items > .grid-item:first-child { flex: 1 1 auto; display: flex; }
  html.route-common-home .grid-row-content-top-2 .module-form-20 { flex: 1 1 auto; }
  html.route-common-home .grid-row-content-top-2 .grid-col-content-top-2-2 > .grid-items > .grid-item { flex: 1 1 auto; display: flex; flex-direction: column; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 { flex: 1 1 auto; display: flex; flex-direction: column; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 > .module-body { flex: 1 1 auto; flex-direction: column; justify-content: space-between; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 > .module-body > .module-item { width: 100%; max-width: none; height: auto !important; flex: 0 0 auto; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 > .module-body { justify-content: flex-start; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 > .module-body > .module-item-1 { flex: 1 1 auto; display: flex; flex-direction: column; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 .module-item-1 .block-body,
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 .module-item-1 .block-wrapper { flex: 1 1 auto; height: auto !important; }
  html.route-common-home .grid-row-content-top-2 .module-blocks-292 .module-item-1 .block-content { flex: 1 1 auto; display: flex; flex-direction: column; height: auto !important; }
  html.route-common-home .grid-row-content-top-2 .video-section-wrapper { flex: 1 1 auto; min-height: 315px; margin-bottom: 24px; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 14px 32px -18px rgba(16, 38, 63, .55); }
  html.route-common-home .grid-row-content-top-2 .video-section-wrapper .video-iframe { width: 100% !important; height: 100% !important; min-height: 315px; border: 0; }
@media (min-width: 1300px) {
  html.route-common-home .grid-row-content-top-2 .video-section-wrapper { position: relative; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
  html.route-common-home .grid-row-content-top-2 .video-section-wrapper .video-iframe { position: absolute; top: 0; left: 50%; width: auto !important; max-width: 100%; height: 100% !important; min-height: 0; aspect-ratio: 16 / 9; transform: translateX(-50%); border-radius: 16px; background: #000; box-shadow: 0 14px 32px -18px rgba(16, 38, 63, .55); }
}
  html.route-common-home .grid-row-content-top-2 .shipping-container { flex: 0 0 auto; margin-top: 0; margin-bottom: 0; }
}

/* ---------- Tablet / phone shipping column: the Secure Checkout picture keeps its own proportions and never covers the text above it ---------- */
html.route-common-home .module-blocks-336 .module-item-5,
html.route-common-home .module-blocks-336 .module-item-5 .block-body,
html.route-common-home .module-blocks-336 .module-item-5 .block-header { height: auto !important; min-height: 0; }
html.route-common-home .module-blocks-336 .module-item-5 { margin-top: 16px; }
html.route-common-home .module-blocks-336 .module-item-5 .block-header { display: flex; justify-content: center; }
html.route-common-home .module-blocks-336 .module-item-5 .block-image { width: auto !important; max-width: 100%; height: auto !important; }

/* ---------- Brand strip ---------- */
html.route-common-home .module-manufacturers .swiper-slide img { transition: transform .15s ease; }
html.route-common-home .module-manufacturers .swiper-slide a:hover img { transform: scale(1.06); }
html.route-common-home .module-manufacturers .swiper-pagination-bullet { width: 7px; height: 7px; background: #b7c5bd; opacity: 1; }
html.route-common-home .module-manufacturers .swiper-pagination-bullet-active { width: 18px; border-radius: 7px; background: var(--te-hs-green); }

@media (max-width: 767px) {
  html.route-common-home :is(.module-banners-132, .module-banners-311) .module-item { padding: 5px; }
  html.route-common-home .module-banners-325 { margin: 14px auto; padding: 0 12px; }
  html.route-common-home .module-form-20 { padding: 18px 16px; border-radius: 16px; }
  html.route-common-home [class*="grid-row-content-top"] .module-title,
  html.route-common-home .module-manufacturers .module-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html.route-common-home * { transition: none !important; } }
