/*
 * ToolsEngg Home Page 1.0.0
 * Presentation-only restyle of two home-page modules: the message strip (e.g. "Worldwide Shipping Done Through - DHL Express",
 * "We Provide 100% TE Purchase Protection ...") and the Bestsellers / New Arrivals / Specials / Fast Selling product tabs.
 * No links, products, prices, carousel or cart behaviour is changed. Scoped to html.route-common-home.
 */

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

/* ---------- Message strip ---------- */
html.route-common-home .module-testimonials .module-body { padding: 0; }
html.route-common-home .module-testimonials .swiper { padding-bottom: 0; }
html.route-common-home .module-testimonials .block-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 56px !important;
  border: 1px solid var(--te-mint-line);
  border-radius: 14px;
  background: var(--te-mint) !important;
  box-shadow: 0 10px 24px -20px rgba(15, 138, 90, .55);
}
html.route-common-home .module-testimonials .block-content {
  color: var(--te-green-ink) !important;
  font-family: var(--te-font) !important;
  font-size: 14.5px !important;
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.45;
  text-align: center;
}
html.route-common-home .module-testimonials .block-content .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: #d3eee0;
  color: var(--te-green-deep);
  font-size: 13px;
  vertical-align: middle;
}
html.route-common-home .module-testimonials .block-content .fa::before { line-height: 1; }
html.route-common-home .module-testimonials .swiper-pagination { bottom: 5px; }
html.route-common-home .module-testimonials .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 3px; background: #a9d9c0; opacity: 1; }
html.route-common-home .module-testimonials .swiper-pagination-bullet-active { width: 16px; border-radius: 6px; background: var(--te-green); }

/* ---------- Product tabs ---------- */
html.route-common-home .module-products .tab-container > .nav-tabs {
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid var(--te-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -26px rgba(42, 49, 56, .5);
}
html.route-common-home .module-products .tab-container > .nav-tabs > li { margin: 0; border: 0 !important; background: none !important; flex: 1 1 auto; }
html.route-common-home .module-products .tab-container > .nav-tabs > li > a,
html.route-common-home .module-products .tab-container > .nav-tabs > li.active > a,
html.route-common-home .module-products .tab-container > .nav-tabs > li > a:hover {
  justify-content: center;
  height: 44px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--te-ink) !important;
  font-family: var(--te-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  transition: background-color .06s linear, color .06s linear;
}
html.route-common-home .module-products .tab-container > .nav-tabs > li > a:hover { background: var(--te-soft) !important; }
html.route-common-home .module-products .tab-container > .nav-tabs > li.active > a,
html.route-common-home .module-products .tab-container > .nav-tabs > li.active > a:hover {
  background: var(--te-mint) !important;
  color: var(--te-green-deep) !important;
  box-shadow: inset 0 0 0 1px var(--te-mint-line);
}
html.route-common-home .module-products .tab-container > .nav-tabs > li > a::before,
html.route-common-home .module-products .tab-container > .nav-tabs > li > a::after,
html.route-common-home .module-products .tab-container > .nav-tabs > li::before,
html.route-common-home .module-products .tab-container > .nav-tabs > li::after { display: none !important; }

/* ---------- Product cards ---------- */
html.route-common-home .module-products .swiper-wrapper { align-items: stretch; }
html.route-common-home .module-products .swiper-slide,
html.route-common-home .module-products .product-layout { height: auto; }
html.route-common-home .module-products .swiper-slide > .product-layout, html.route-common-home .module-products .swiper-slide > .product-thumb { height: 100%; }
html.route-common-home .module-products .product-layout { display: flex; }
html.route-common-home .module-products .product-thumb {
  align-self: stretch;
  width: 100%;
  border: 1px solid var(--te-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 49, 56, .04);
  overflow: hidden;
  transition: border-color .12s ease, box-shadow .12s ease;
}
html.route-common-home .module-products .product-thumb:hover { border-color: #cdd9e5; box-shadow: 0 22px 36px -26px rgba(42, 49, 56, .5); }
html.route-common-home .module-products .product-thumb .image { padding: 8px; background: #fff; }
html.route-common-home .module-products .product-thumb .image img { border-radius: 10px; }
html.route-common-home .module-products .product-thumb .product-labels .product-label-default b {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(42, 49, 56, .45);
}
/* Offer countdowns are not shown on listings, as on the product page. */
html.route-common-home .module-products .product-thumb .countdown { display: none !important; }
html.route-common-home .module-products .product-thumb .caption {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  padding: 4px 14px 14px;
  font-family: var(--te-font);
  text-align: left;
}
html.route-common-home .module-products .product-thumb .stats { flex-wrap: wrap; gap: 6px; justify-content: flex-start; margin: 0 0 8px; padding: 0; border: 0; }
html.route-common-home .module-products .product-thumb .stats > span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--te-soft);
  color: var(--te-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}
html.route-common-home .module-products .product-thumb .stats > span span,
html.route-common-home .module-products .product-thumb .stats a { color: inherit !important; font-size: inherit; font-family: var(--te-font); }
html.route-common-home .module-products .product-thumb .name { flex: 1 1 auto; justify-content: flex-start; align-items: flex-start; margin: 0 0 10px; }
html.route-common-home .module-products .product-thumb .name a { width: 100%; }
html.route-common-home .module-products .product-thumb .name a {
  height: auto;
  color: var(--te-ink);
  font-family: var(--te-font);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}
html.route-common-home .module-products .product-thumb .name a:hover { color: var(--te-green-deep); }
html.route-common-home .module-products .product-thumb .price { margin: 0 0 12px; text-align: left; }
html.route-common-home .module-products .product-thumb .price > div { justify-content: flex-start; flex-wrap: wrap; gap: 2px 8px; }
html.route-common-home .module-products .product-thumb .price-new,
html.route-common-home .module-products .product-thumb .price-normal { color: var(--te-ink) !important; font-family: var(--te-font); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
html.route-common-home .module-products .product-thumb .price-old { color: #7d8c9b !important; font-size: 12.5px; font-weight: 400; }
html.route-common-home .module-products .product-thumb .buttons-wrapper { margin: 0; }
html.route-common-home .module-products .product-thumb .button-group { justify-content: flex-start; }
html.route-common-home .module-products .product-thumb .cart-group { display: flex; align-items: stretch; width: 100%; gap: 8px; }
html.route-common-home .module-products .product-thumb .cart-group { --te-ctl-h: 40px; }
html.route-common-home .module-products .product-thumb .cart-group .stepper {
  position: relative;
  display: flex;
  flex: 0 0 64px;
  box-sizing: border-box;
  width: 64px;
  height: var(--te-ctl-h) !important;
  margin: 0 !important;
  border: 1.5px solid #ccd6e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
html.route-common-home .module-products .product-thumb .cart-group .stepper input.form-control {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 22px 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--te-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
html.route-common-home .module-products .product-thumb .cart-group .stepper > span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 22px;
  height: auto !important;
  border-left: 1px solid #dfe6ee;
  background: #f1f5f9 !important;
}
html.route-common-home .module-products .product-thumb .cart-group .stepper > span > i {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #52606d !important;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
html.route-common-home .module-products .product-thumb .cart-group .stepper > span > i:first-child { border-bottom: 1px solid #dfe6ee !important; }
html.route-common-home .module-products .product-thumb .cart-group .stepper > span > i:hover { background: var(--te-green-soft, #eaf7f0) !important; color: var(--te-green-deep) !important; }
html.route-common-home .module-products .product-thumb .btn-cart.btn {
  flex: 1 1 auto;
  box-sizing: border-box;
  height: var(--te-ctl-h) !important;
  min-height: var(--te-ctl-h);
  margin: 0 !important;
  padding: 0 12px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--te-green-deep) !important;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .06s linear;
}
html.route-common-home .module-products .product-thumb .btn-cart.btn:hover { background: #0b7048 !important; }
html.route-common-home .module-products .product-thumb .extra-group { margin: 10px 0 0; padding: 0 !important; border: 0 !important; }
html.route-common-home .module-products .product-thumb .extra-group > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; width: 100%; margin: 0 !important; padding: 0 !important; justify-content: stretch !important; }
html.route-common-home .module-products .product-thumb .extra-group .btn-extra.btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  box-sizing: border-box;
  height: auto !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 6px !important;
  min-width: 0;
  white-space: nowrap;
  border: 1.5px solid #ccd6e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--te-ink) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background-color .06s linear, border-color .06s linear, color .06s linear;
}
html.route-common-home .module-products .product-thumb .extra-group .btn-extra.btn:hover,
html.route-common-home .module-products .product-thumb .extra-group .btn-extra.btn:focus-visible { border-color: var(--te-blue) !important; background: var(--te-blue) !important; color: #fff !important; }
html.route-common-home .module-products .product-thumb .extra-group .btn-extra.btn .btn-text { display: block !important; color: inherit !important; text-transform: uppercase !important; }
html.route-common-home .module-products .product-thumb .extra-group .btn-extra.btn::before { display: none !important; }

/* Carousel arrows and dots */
html.route-common-home .module-products .swiper-button-prev,
html.route-common-home .module-products .swiper-button-next { width: 40px; height: 40px; border-radius: 50%; background: #fff !important; color: var(--te-green-deep) !important; box-shadow: 0 8px 20px -10px rgba(42, 49, 56, .5); }
html.route-common-home .module-products .swiper-pagination-bullet { width: 7px; height: 7px; background: #b7c5bd; opacity: 1; }
html.route-common-home .module-products .swiper-pagination-bullet-active { width: 18px; border-radius: 7px; background: var(--te-green); }

@media (max-width: 767px) {
  html.route-common-home .module-testimonials .block-body { padding: 10px 40px !important; }
  html.route-common-home .module-testimonials .block-content { font-size: 13px !important; }
  html.route-common-home .module-products .tab-container > .nav-tabs { flex-wrap: wrap; gap: 6px; padding: 5px; }
  html.route-common-home .module-products .tab-container > .nav-tabs > li { flex: 1 1 calc(50% - 6px); }
  html.route-common-home .module-products .tab-container > .nav-tabs > li > a { height: 40px; padding: 0 8px !important; font-size: 11.5px !important; letter-spacing: .05em !important; text-align: center; }
  html.route-common-home .module-products .product-thumb .caption { padding: 2px 10px 12px; }
  html.route-common-home .module-products .product-thumb .cart-group { flex-wrap: wrap; }
  html.route-common-home .module-products .product-thumb .cart-group .stepper { flex: 1 0 100%; width: 100%; }
  html.route-common-home .module-products .product-thumb .cart-group .btn-cart.btn { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) { html.route-common-home * { transition: none !important; } }
