/*
============================
Project: Contractor Mart
Description: Custom overrides for the Contractor Mart storefront
============================
*/

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --cm-primary: #fd6b02;
  --cm-primary-dark: #d45700;
  --cm-secondary: #185be1;
  --cm-secondary-dark: #1146af;
  --cm-sand: #ffe1cc;
  --cm-surface: #f4f8ff;
  --cm-text: #10203a;
  --cm-muted: #5f6b76;
  --cm-border: rgba(24, 91, 225, 0.14);
  --cm-header-height: 80px;
  --cm-mobile-header-height: 68px;
  --cm-z-site-header: 1200;
  --cm-z-page-sticky: 90;
  --cm-z-fab: 1100;
  --cm-z-mobile-chrome: 1190;
  --cm-z-modal-backdrop: 1210;
  --cm-z-modal: 1220;
  --cm-z-overlay: 10000;
  --cm-z-mobile-drawer: 10050;
}

body {
  color: var(--cm-text);
  background: #fffdf8;
}

.contractor-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contractor-logo-image {
  display: block;
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.contractor-logo-image-header {
  max-height: 40px;
}

.header-area.header-area1 .site-logo {
  max-width: none;
  flex: 0 0 auto;
}

.header-area.header-area1 .site-logo a {
  display: inline-flex;
  align-items: center;
}

.header-area.header-area1 .header-elements {
  min-height: 80px;
}

.contractor-logo-image-footer {
  max-height: 66px;
}

.contractor-preloader-icon {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.contractor-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cm-secondary) 0%, var(--cm-primary) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(24, 91, 225, 0.22);
}

.contractor-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.contractor-logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--cm-secondary);
  letter-spacing: -0.4px;
}

.contractor-logo-tag {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-primary);
}

.header-area.header-area1 .header-elements .main-menu-ex ul li a:hover,
.header-area.header-area1 .main-menu-ex.main-menu-ex1 li.dropdown-menu-parrent:hover a.main1,
.header-area.header-area1 .main-menu-ex.main-menu-ex1 li.has-dropdown:hover a.main1 {
  color: var(--cm-primary);
}

.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu::after,
.header-area.header-area1 .header-elements .main-menu-ex ul li ul::after {
  background-color: var(--cm-secondary);
}

.header-area.header-area1 .header-elements .main-menu-ex ul li ul li:hover > a,
.header-area.header-area1 .header-elements .main-menu-ex ul li ul li a:hover,
.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu li:hover > a,
.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu li a:hover {
  color: var(--cm-primary) !important;
}

.header-area.header-area1 .header-elements .main-menu-ex ul li ul li a:hover::after,
.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu li a:hover::after {
  background-color: var(--cm-primary) !important;
}

.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu .homemenu-thumb .text:hover,
.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu .homemenu-thumb .homemenu-btn .header-btn1,
.header-area.header-area1 .header-elements .main-menu-ex ul li .tp-submenu .homemenu-thumb .homemenu-btn .header-btn1:hover {
  background-color: var(--cm-secondary);
  color: #fff;
}

.header-area.header-area1 .header-elements .main-menu-ex ul li ul:hover > a::after {
  background: var(--cm-secondary);
}

.theme-btn1 {
  background-color: var(--cm-secondary);
}

.theme-btn1::before {
  background-color: var(--cm-secondary);
}

.theme-btn1::after {
  background-color: #000;
}

.theme-btn1:hover {
  color: #fff;
  background-color: #000;
}

.header-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 0px;
  padding: 10px 16px;
  border: 1px solid var(--cm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--cm-secondary-dark);
  font-weight: 600;
  font-size: 14px;
}

.header-contact-pill i {
  color: var(--cm-primary);
}

.header-icon-actions,
.contractor-mobile-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header1-buttons {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.header-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cm-border);
  background: #fff;
  color: var(--cm-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.header-icon-btn:hover {
  background: #fff;
  color: var(--cm-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 91, 225, 0.1);
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -1px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cm-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  padding-top: 1px;
  display: inline-flex !important;
}

.header1-buttons .header-icon-actions {
  gap: 10px;
}

.header-area.header-area1 .header-elements .header1-buttons .search-open-btn.header-icon-btn {
  width: 42px;
  height: 42px;
  margin-right: 0;
  border: 1px solid var(--cm-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cm-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-area.header-area1 .header-elements .header1-buttons .search-open-btn.header-icon-btn::after {
  display: none;
}

.search__popup .search__logo .contractor-logo-title,
.mobile-logo .contractor-logo-title,
.logo-m .contractor-logo-title,
.footer1 .contractor-logo-title {
  color: #fff;
}

.search__popup .search__logo .contractor-logo-tag,
.mobile-logo .contractor-logo-tag,
.logo-m .contractor-logo-tag {
  color: #ffd59f;
}

.mobile-header-elements .contractor-logo-title,
.mobile-sidebar .contractor-logo-title {
  color: var(--cm-secondary);
}

.mobile-header-elements .contractor-logo-tag,
.mobile-sidebar .contractor-logo-tag {
  color: var(--cm-primary);
}

.search__popup .contractor-logo-image {
  max-height: 64px;
}

.mobile-header-elements .contractor-logo-image {
  max-height: 56px;
}

.mobile-sidebar .logo-m {
  width: auto;
  max-width: 220px;
}

.mobile-sidebar .contractor-logo-image {
  max-height: 88px;
}

.mobile-header .mobile-header-elements {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-header .mobile-nav-icon {
  order: 1;
  flex: 0 0 auto;
}

.mobile-header .mobile-logo {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mobile-header-actions {
  order: 3;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-header-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cm-border);
  background: #fff;
  color: var(--cm-secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.mobile-header-icon:hover {
  background: var(--cm-secondary);
  color: #fff;
}

.mobile-header .mobile-header-icon .header-cart-badge,
.mobile-header .header-cart-btn .header-cart-badge {
  top: -5px;
  right: -3px;
}

.contractor-mobile-actions {
  margin-top: 8px;
}

.footer1 .contractor-logo-image {
  max-height: 70px;
}

/* Fixed site header (position: sticky is unreliable with overflow-x on body) */
@media (min-width: 992px) {
  body {
    padding-top: var(--cm-header-height);
  }

  body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--cm-z-site-header);
    background: #fff;
  }

  #header.header-area.header-area1 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1;
    background: #fff;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
  }

  #header.header-area.header-area1.sticky {
    box-shadow: rgba(0, 0, 0, 0.08) 0 8px 24px;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: var(--cm-mobile-header-height);
  }

  .mobile-header,
  .mobile-header.mobile-header-main,
  .mobile-header.mobile-header2 {
    z-index: var(--cm-z-site-header) !important;
  }
}

.contractor-hero .hero1-bg {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 35, 74, 0.94) 0%, rgba(24, 91, 225, 0.86) 52%, rgba(253, 107, 2, 0.76) 100%),
    url("assets/img/bg/hero1-bg.jpg") center/cover no-repeat;
}

.contractor-hero .hero1-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 159, 0.28), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(17, 70, 175, 0.18) 100%);
  pointer-events: none;
}

.contractor-hero .main-heading1,
.contractor-hero .contractor-hero-panel {
  position: relative;
  z-index: 1;
}

.contractor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.contractor-hero .main-heading1 h1 {
  max-width: 680px;
}

.contractor-hero .main-heading1 p {
  max-width: 620px;
}

.contractor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.contractor-hero-link {
  color: #fff;
  font-weight: 700;
}

.contractor-hero-link i {
  margin-left: 6px;
}

.contractor-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contractor-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.contractor-highlight i {
  color: #ffd0ae;
}

.contractor-hero-panel {
  margin-left: 28px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 50px rgba(24, 91, 225, 0.18);
}

.contractor-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.contractor-panel-top h4 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--cm-secondary-dark);
}

.contractor-panel-top p {
  margin-top: 10px;
  color: var(--cm-muted);
}

.contractor-badge {
  min-width: 90px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--cm-sand);
  color: var(--cm-secondary-dark);
  text-align: center;
}

.contractor-badge strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.contractor-badge span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contractor-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contractor-product-card {
  padding: 18px;
  border: 1px solid var(--cm-border);
  border-radius: 18px;
  background: var(--cm-surface);
}

.contractor-product-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cm-primary);
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(24, 91, 225, 0.08);
}

.contractor-product-card h5 {
  margin-top: 16px;
  font-size: 18px;
  color: var(--cm-secondary-dark);
}

.contractor-product-card p {
  margin-top: 8px;
  color: var(--cm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.contractor-panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contractor-mini-stat {
  flex: 1 1 140px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--cm-border);
}

.contractor-mini-stat strong {
  display: block;
  font-size: 20px;
  color: var(--cm-secondary-dark);
}

.contractor-mini-stat span {
  display: block;
  margin-top: 6px;
  color: var(--cm-muted);
  font-size: 13px;
}

.contractor-hero-home {
  padding: 0;
}

.contractor-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  touch-action: pan-y;
}

.contractor-hero-slider.swiper,
.contractor-hero-slider.swiper-container {
  overflow: hidden;
}

.contractor-hero-slider .swiper-wrapper {
  display: flex !important;
  width: 100% !important;
  height: 100%;
  box-sizing: border-box;
}

.contractor-hero-slider .swiper-slide {
  width: 100% !important;
  min-width: 100% !important;
  flex: 0 0 100% !important;
  flex-shrink: 0;
  height: auto;
  overflow: hidden;
}

.contractor-hero-slider .swiper-slide {
  pointer-events: none;
}

.contractor-hero-slider .swiper-slide-active {
  pointer-events: auto;
}

.contractor-hero-slide {
  position: relative;
  min-height: min(800px, 41.6667vw);
  padding: 0;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.contractor-hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* transform: scale(1.08); */
  transition: transform 1.4s ease, filter 1.2s ease;
  backface-visibility: hidden;
  will-change: transform;
}

/* .contractor-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
} */

.contractor-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 60px 0 60px;
}

.contractor-hero-subtitle,
.contractor-hero-content h1,
.contractor-hero-content p,
.contractor-hero-actions .theme-btn1 {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.9s ease;
}

.contractor-hero-content h1 {
  transition-delay: 0.12s;
}

.contractor-hero-content p {
  transition-delay: 0.24s;
}

.contractor-hero-actions .theme-btn1 {
  transition-delay: 0.36s;
}

.contractor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contractor-hero-slider .swiper-slide-active .contractor-hero-bg-image {
  transform: scale(1.01);
}

.contractor-hero-slider .swiper-slide-active .contractor-hero-subtitle,
.contractor-hero-slider .swiper-slide-active .contractor-hero-content h1,
.contractor-hero-slider .swiper-slide-active .contractor-hero-content p,
.contractor-hero-slider .swiper-slide-active .contractor-hero-actions .theme-btn1 {
  opacity: 1;
  transform: translateY(0);
}

.contractor-hero-subtitle {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgb(229, 225, 225);
  color: var(--cm-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contractor-hero-content h1 {
  color: var(--cm-secondary);
  font-size: 58px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.contractor-hero-content p {
  margin-top: 20px;
  color: #000;
  font-size: 18px;
  line-height: 1.7;
  max-width: 500px;
}

.contractor-hero-pagination {
  position: absolute;
  top: 50%;
  right: 36px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.contractor-hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.46);
  opacity: 1;
}

.contractor-hero-pagination .swiper-pagination-bullet-active {
  background: var(--cm-primary);
}

.contractor-value-strip {
  padding: 20px 0 20px;
  background: transparent;
}

.contractor-value-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px;
  margin-top: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.contractor-value-slider {
  overflow: visible;
}

.contractor-value-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  min-height: auto;
  border-right: none;
  width: auto !important;
  min-width: 0 !important;
  flex: initial !important;
}

.contractor-value-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #000;
  font-size: 33px;
  border: none;
  line-height: 1;
  margin-top: 4px;
}

.contractor-value-text h3 {
  margin: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
  letter-spacing: -0.03em;
}

.contractor-value-text p {
  margin: 6px 0 0;
  color: #7b8194;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Plus Jakarta Sans", "Figtree", sans-serif;
  font-weight: 500;
}

.footer1 {
  margin-top: 1px;
  padding: 72px 0 28px;
  background: #000;
}

.footer1 .row:first-child {
  align-items: flex-start;
}

.footer1 .coppyrihgt1 {
  margin-top: 26px;
}

.footer1 .heading1 p,
.footer1 .footer-list1 ul li a,
.footer1 .footer-contact-list1 .text a,
.footer1 .coppyrihgt,
.footer1 .conditions a {
  color: rgba(255, 255, 255, 0.78);
}

.footer1 .coppyrihgt1 .coppyrihgt-border p,
.footer1 .coppyrihgt1 .coppyrihgt-border .coppyrihgt {
  color: #fff;
}

.footer1 .footer-list1 ul li a:hover,
.footer1 .footer-contact-list1 .text a:hover,
.footer1 .conditions a:hover {
  color: #fff;
}

.footer1 .heading1 h3,
.footer1 .footer-list1 h3,
.footer1 .footer-contact-list1 h3 {
  color: #fff;
}

.footer1 .footer-social1 ul li a {
  color: #fff;
  border-color: rgba(24, 91, 225, 0.35);
}

.footer1 .footer-social1 ul li a:hover {
  background: var(--cm-primary);
  border-color: var(--cm-secondary);
  background: var(--cm-secondary);
  color: #fff;
}

.footer1 .footer-contact-list1 .footer-contact-box1 .icon,
.mobile-sidebar .contact-box .icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer1 .footer-contact-list1 .footer-contact-box1 .icon img,
.mobile-sidebar .contact-box .icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer1 .footer-contact-list1 .footer-contact-box1 .icon img[src$="footer1-icon2.svg"],
.mobile-sidebar .contact-box .icon img[src$="footer1-icon2.svg"] {
  transform: scale(1.15);
  transform-origin: center;
}

.footer1 .footer-contact-list1 .footer-contact-box1 .icon img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(95%) saturate(3017%) hue-rotate(3deg) brightness(103%) contrast(98%);
}

.footer1 .conditions,
.footer1 .conditions span {
  color: rgba(255, 255, 255, 0.78);
}

.footer1 .conditions a {
  color: #fff;
  font-weight: 600;
}

.progress-wrap::after,
.progress-wrap::before {
  color: var(--cm-primary);
}

.progress-wrap svg.progress-circle path {
  stroke: var(--cm-primary);
}

@media (max-width: 991px) {
  .header-contact-pill {
    display: none;
  }

  .contractor-hero-home {
    padding-top: 0;
  }

  .contractor-hero-slide {
    min-height: 560px;
  }

  .contractor-hero-content h1 {
    font-size: 48px;
  }

  .contractor-hero-pagination {
    right: 24px;
  }

  .contractor-hero .hero1-bg {
    padding: 60px 0;
  }

  .contractor-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  .contractor-hero-panel {
    margin-left: 0;
    margin-top: 30px;
  }

  .footer1 {
    margin-top: 1px;
    padding: 56px 0 24px;
  }
}

@media (max-width: 767px) {
  .contractor-logo-mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .contractor-logo-image {
    max-height: 50px;
  }

  .contractor-logo-image-footer {
    max-height: 58px;
  }

  .mobile-header-elements .contractor-logo-image {
    max-height: 56px;
  }

  .mobile-sidebar .logo-m {
    max-width: 200px;
  }

  .mobile-sidebar .contractor-logo-image {
    max-height: 80px;
  }

  .mobile-header-actions {
    gap: 6px;
  }

  .mobile-header-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .contractor-logo-title {
    font-size: 21px;
  }

  .contractor-hero-home {
    padding-top: 0;
  }

  .contractor-hero-slide {
    min-height: 460px;
    align-items: flex-end;
  }

  .contractor-hero-slider {
    touch-action: pan-y pinch-zoom;
  }

  .contractor-hero-content {
    max-width: 100%;
    padding: 60px 0 10px;
  }

  .contractor-hero-bg-image {
    transform: scale(1.02);
    transition: transform 0.7s ease;
  }

  .contractor-hero-slider .swiper-slide-active .contractor-hero-bg-image {
    transform: scale(1);
  }

  .contractor-hero-subtitle,
  .contractor-hero-content h1,
  .contractor-hero-content p,
  .contractor-hero-actions .theme-btn1 {
    transition: opacity 0.4s ease, transform 0.45s ease;
    transform: translateY(12px);
  }

  .contractor-hero-subtitle {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .contractor-hero-content h1 {
    font-size: 26px;
    line-height: 1.1;
    padding-right: 120px;
  }

  .contractor-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    padding-right: 140px;
  }

  .contractor-hero-pagination {
    right: 16px;
    gap: 10px;
  }

  .contractor-value-grid {
    display: flex !important;
    gap: 0;
    margin-top: 0;
  }

  .contractor-value-slider {
    overflow: hidden;
  }

  .contractor-value-item {
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0;
  }

  .contractor-value-icon {
    font-size: 28px;
  }

  .contractor-value-text h3 {
    font-size: 17px;
  }

  .contractor-value-text p {
    font-size: 13px;
  }

  .contractor-product-grid {
    grid-template-columns: 1fr;
  }

  .contractor-panel-top {
    flex-direction: column;
  }

  .footer1 {
    margin-top: 1px;
    padding: 44px 0 20px;
  }
}


/* Contractor Mart Category Grid */
.contractor-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px; /* Slightly reduced gap for 6 items */
}

/* Tablet: 3 per row */
@media (max-width: 1199px) {
    .contractor-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 per row */
@media (max-width: 767px) {
    .contractor-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .blog2-meets-single .heading-area a {
        font-size: 14px;
    }
}

/* Ensure the cards take up full height inside the grid */
.contractor-category-grid .blog2-meets-single {
    margin: 0;
    height: 100%;
}



/* Contractor Mart - How It Works Section */
.contractor-process-area {
    background-color: #ffffff;
}

.contractor-process-row {
    z-index: 1;
}

/* Optional: Adds a dotted connecting line behind the cards on desktop */
@media (min-width: 992px) {
    .contractor-process-row::before {
        content: '';
        position: absolute;
        top: 65px;
        left: 10%;
        right: 10%;
        height: 2px;
        border-top: 2px dashed #e5e7eb;
        z-index: -1;
    }
}

.contractor-process-card {
    position: relative;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.contractor-process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.process-step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 80px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.151); /* Subtle watermark effect */
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.contractor-process-card:hover .process-step-number {
    color: rgba(0, 0, 0, 0.06);
    transform: scale(1.1) translate(-5px, 5px);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--cm-primary); /* Dark professional color */
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contractor-process-card:hover .process-icon {
    background: var(--cm-primary);
    color: #ffffff;
}

.process-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cm-dark);
}

.process-content p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}


/* Contractor Mart - Featured Brands Slider */
.brand-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0;
}

.brand-logo-box {
    text-align: center;
    padding: 10px 20px;
    /* opacity: 0.4;
    filter: grayscale(100%); */
    transition: all 0.4s ease;
    cursor: pointer;
}

.brand-logo-box:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.25);
}

.brand-logo-box img {
    max-height: 60px; /* Keeps all logos a uniform height */
    width: auto;
    margin: 0 auto;
}

/* This makes the Swiper slider move continuously without pausing between slides */
.contractor-brand-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}


/* Contractor Mart - CTA Bulk Quote Section */
.contractor-cta-area {
    overflow: hidden;
}

.cta-benefits li {
    font-size: 16px;
    font-weight: 500;
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .contractor-cta-area h2 {
        font-size: 32px !important;
    }
    .cta-benefits {
        flex-direction: column;
        gap: 15px !important;
    }
}


/* =========================================
   Contractor Mart - Editorial About Company
   ========================================= */

.contractor-company-story {
    background-color: #ffffff;
}

/* Full Width Image Banner */
.company-banner-img {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.company-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sticky Sidebar Facts */
.company-quick-facts {
    top: 120px; /* Adjust based on your header height */
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.fact-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.fact-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #fd6b02; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fact-text h6 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.fact-text p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

/* Rich Text / Story Area */
.company-rich-text {
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
}

.company-rich-text .lead-paragraph {
    font-size: 22px;
    font-weight: 500;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 24px;
}

.company-rich-text p {
    margin-bottom: 20px;
}

/* Modern Quote Block */
.editorial-quote {
    position: relative;
    padding: 30px 40px;
    margin: 40px 0;
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid #0d6efd;
    border-radius: 0 12px 12px 0;
}

.editorial-quote .quote-icon {
    position: absolute;
    top: 20px;
    left: 15px;
    font-size: 40px;
    color: rgba(13, 110, 253, 0.1);
    z-index: 0;
}

.editorial-quote p {
    position: relative;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .company-banner-img {
        height: 350px;
    }
}
@media (max-width: 767px) {
    .company-banner-img {
        height: 250px;
    }
    .company-rich-text .lead-paragraph {
        font-size: 18px;
    }
    .editorial-quote {
        padding: 20px;
    }
}


/* =========================================
   Contractor Mart - Testimonial Section
   ========================================= */

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #fd6b02;
    transform: translateY(-5px);
}

.testimonial-card .quote-icon {
    font-size: 50px;
    color: rgba(13, 110, 253, 0.08);
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: -1;
}

.testimonial-card .stars i {
    color: #f59e0b; /* Golden Yellow */
    font-size: 14px;
    margin-right: 2px;
}

.testimonial-card .review-text {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    font-style: italic;
    min-height: 110px; /* Keeps cards aligned even if text length varies */
}

/* Swiper Custom Pagination Dots */
.testimonial-pagination .swiper-pagination-bullet {
    background: #0d6efd;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 8px;
}

/* Fix to prevent top border from clipping on hover */
.contractor-testimonial-slider {
    padding-top: 10px;
}


/* =========================================
   Contractor Mart - Home Page About Snippet
   ========================================= */

.home-about-image .experience-badge {
    position: absolute;
    bottom: -30px;
    right: 0px;
    border: 1px solid #f3f4f6;
    z-index: 2;
    min-width: 160px;
    animation: float-y 4s ease-in-out infinite; /* Reusing the float animation we made earlier */
}

.home-about-image img {
    width: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Adjustments for tablets and mobile */
@media (max-width: 991px) {
    .home-about-image .experience-badge {
        right: 20px;
        bottom: -20px;
    }
}

@media (max-width: 575px) {
    .home-about-image .experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 15px !important;
        min-width: 130px;
        animation: none; /* Disable floating on small screens to prevent overflow */
    }
}

/* =========================================
   Contractor Mart - Cart Page
   ========================================= */

/* Image & Item Styling */
.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ef4444; /* Soft Red */
    font-size: 18px;
    padding: 5px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    color: #b91c1c; /* Darker Red */
    transform: scale(1.1);
}

.cart-item {
    transition: background 0.3s ease;
}

.cart-item:hover {
    background-color: #fdfdfd;
}

.cart-item-title {
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .cart-item-title-row {
        align-items: flex-start;
    }
    .cart-remove-btn--mobile {
        margin-top: 2px;
        padding: 6px;
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .cart-rfq-details {
        min-width: 0;
    }
}

/* Custom Quantity Selector */
.qty-counter {
    height: 40px;
    overflow: hidden;
    border-color: #e5e7eb !important;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    color: #4b5563;
    width: 35px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.qty-input {
    width: 55px;
    height: 100%;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 600;
    color: #111827;
    background: transparent;
    -moz-appearance: textfield; /* Hides default arrows in Firefox */
}

/* Hides default arrows in Chrome/Safari */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Order Summary Box */
.cart-summary-box {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .cart-summary-box {
        margin-top: 30px;
        padding: 25px;
    }
}

.cart-rfq-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 13px;
    line-height: 1.4;
}
.cart-rfq-meta-label {
    color: #6b7280;
    min-width: 7.5rem;
}
.cart-rfq-meta-value {
    color: #111827;
    font-weight: 600;
}
.cart-rfq-type-badge {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.cart-rfq-includes li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 0.5rem;
}
.order-item-list .checkout-rfq-line:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================
   Contractor Mart - Checkout Page
   ========================================= */

.single-input label {
    font-size: 14px;
    display: block;
}

/* Give inputs full width, padding, and modern borders */
.single-input input, 
.single-input textarea {
    width: 100%;
    display: block; /* Forces inputs to stack (fixes the double address issue) */
    padding: 14px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

/* Specific fix for textareas */
.single-input textarea {
    resize: vertical; /* Allows resizing only up and down */
    min-height: 120px;
}

/* Beautiful focus state when user clicks on an input */
.single-input input:focus, 
.single-input textarea:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Right Side Summary Box */
.checkout-summary-box {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.order-item-list span {
    font-size: 15px;
}

/* Payment Methods Styling */
.payment-methods-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.custom-radio .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.custom-radio .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.custom-radio .form-check-label {
    cursor: pointer;
    font-size: 15px;
}

.payment-desc {
    padding-left: 28px;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .checkout-summary-box {
        margin-top: 40px;
        padding: 25px;
    }
}



/* =========================================
   Contractor Mart - User Profile Dashboard
   ========================================= */

/* Sidebar Navigation Styling */
.dashboard-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.dashboard-nav .nav-link {
    color: #4b5563;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.dashboard-nav button.nav-link {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}

.dashboard-nav button.nav-link.active {
    background: #0d6efd;
}

.dashboard-nav .nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.dashboard-nav .nav-link:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Active State for Tabs */
.dashboard-nav .nav-link.active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.dashboard-nav .text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* Main Content Area */
.dashboard-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    min-height: 500px;
}

/* Dashboard tab panes (server-driven ?tab= links, no Bootstrap JS) */
.dashboard-content > .tab-pane {
    display: none;
}

.dashboard-content > .tab-pane.active {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px;
}

.dashboard-table td {
    padding: 15px;
    vertical-align: middle;
}

/* Cards (Quotes & Addresses) */
.quote-card, .address-card {
    background: #fdfdfd;
    transition: all 0.3s ease;
}

.quote-card:hover, .address-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #0d6efd !important;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .dashboard-content {
        padding: 25px;
        /* margin-top: 30px; */
    }
}

@media (max-width: 767px) {
    .dashboard-nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
    }
    .dashboard-nav .nav-link {
        display: inline-flex;
        margin-right: 10px;
        margin-bottom: 0;
    }
    .quote-card .btn {
        width: 100%;
        margin-top: 5px;
    }
}


/* =========================================
   Contractor Mart - Products Shop Page
   ========================================= */

/* Sidebar Styling */
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.sidebar-search input:focus {
    box-shadow: none;
    border: 1px solid #0d6efd !important;
}

.sidebar-category-list li {
    margin-bottom: 12px;
}

.sidebar-category-list a {
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-category-list a:hover, 
.sidebar-category-list a.active {
    color: #0d6efd;
    padding-left: 5px;
}

.sidebar-category-list span {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #6b7280;
}

/* Custom Checkboxes for Brands */
.custom-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    border-color: #d1d5db;
}

.custom-checkbox .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.custom-checkbox .form-check-label {
    cursor: pointer;
    font-size: 15px;
    color: #4b5563;
    margin-left: 8px;
}

/* Product Cards */
.product-card {
    transition: all 0.4s ease;
    border-color: #f3f4f6 !important;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: #e5e7eb !important;
    transform: translateY(-5px);
}

.product-img-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 160px;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.mix-blend-multiply {
    mix-blend-mode: multiply; /* Removes white backgrounds from product images nicely */
}

.product-content h5 {
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-content h5 {
    color: #0d6efd !important;
}

/* Custom Pagination */
.custom-pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link,
.custom-pagination .page-link:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.custom-pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f8f9fa;
}

/* =========================================
   Contractor Mart - Shop Fixes & Mobile CSS
   ========================================= */

/* Desktop sizing for products */
.product-content h5 { 
    font-size: 18px; 
}

/* Limit the width of mobile shop filter/category drawers */
@media (max-width: 991.98px) {
    #sidebarFilters.offcanvas-start,
    #sidebarCategories.offcanvas-start {
        width: 80% !important;
        max-width: 80vw;
        z-index: var(--cm-z-mobile-drawer) !important;
    }

    #sidebarFilters.offcanvas.show,
    #sidebarCategories.offcanvas.show {
        z-index: var(--cm-z-mobile-drawer) !important;
    }

    #sidebarFilters .offcanvas-body,
    #sidebarCategories .offcanvas-body {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
}

/* Backdrop for offcanvas panels — above bottom nav, below drawer */
@media (max-width: 991.98px) {
    .offcanvas-backdrop {
        z-index: calc(var(--cm-z-mobile-drawer) - 10) !important;
    }
}

/* Mobile formatting for 2-column Product Grid */
@media (max-width: 767px) {
    /* Adjust image height for half-screen cards */
    .product-img-wrapper { 
        height: 140px !important; 
    }
    .product-img-wrapper img { 
        max-height: 100px !important; 
    }
    
    /* Shrink padding and text so it fits beautifully */
    .product-content { 
        padding: 12px !important; 
    }
    .product-content .badge { 
        font-size: 10px !important; 
        padding: 4px 6px !important; 
        margin-bottom: 8px !important; 
    }
    .product-content h5 { 
        font-size: 13px !important; 
        margin-bottom: 12px !important; 
    }
    
    /* Perfect mobile button height */
    .product-card .theme-btn1 { 
        padding: 8px 0 !important; 
        font-size: 11px !important; 
    }
}



/* =========================================
   Contractor Mart - Product Detail & Size Selector
   ========================================= */

/* Size Selector Rows */
.b2b-size-row {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

/* Selected State */
.b2b-size-row.selected {
    border: 1.5px solid #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

/* Custom Checkbox Style */
.custom-select-box {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-select-box i {
    color: white;
    font-size: 11px;
    opacity: 0;
}

/* Show checkmark when row is selected */
.b2b-size-row.selected .custom-select-box {
    background: #0d6efd;
}

.b2b-size-row.selected .custom-select-box i {
    opacity: 1;
}

/* Input Fields with inner text */
.input-with-unit input {
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding-right: 55px; /* Leave space for unit text */
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    box-shadow: none;
}

.input-with-unit input:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

/* Hide number arrows */
.input-with-unit input::-webkit-outer-spin-button,
.input-with-unit input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-with-unit input[type=number] {
    -moz-appearance: textfield;
}

.input-with-unit .unit-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
}

/* Product detail — per-variant unit converter */
.pd-converter-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.pd-converter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pd-converter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
}
.pd-converter-card--selected,
.pd-converter-card--focus {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}
.pd-converter-card--selected {
    border-width: 1.5px;
    background: #fff;
}
.pd-converter-fields {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    max-width: none;
}
.pd-converter-field-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.pd-converter-field {
    position: relative;
    width: 100%;
}
.pd-converter-qty {
    height: 42px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding-left: 12px;
    padding-right: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-converter-qty:focus {
    border-color: #0d6efd;
    box-shadow: none;
}
.pd-converter-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    pointer-events: none;
}
.pd-converter-or {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: lowercase;
    color: #9ca3af;
    margin: 0;
    padding: 0 0.1rem;
    align-self: center;
}
.pd-converter-title {
    font-size: 0.95rem;
    flex: 0 0 auto;
    width: 8.5rem;
    min-width: 5rem;
    max-width: 12rem;
}
.pd-converter-check {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}
.pd-converter-check .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}
.pd-converter-meta {
    width: 100%;
    margin-top: 0.5rem;
    padding-left: 0;
}
@media (max-width: 575.98px) {
    .pd-converter-row {
        flex-wrap: wrap;
    }
    .pd-converter-fields {
        flex-wrap: wrap;
        flex: 1 1 100%;
        justify-content: stretch;
    }
    .pd-converter-field-wrap {
        flex: 1 1 calc(50% - 1.5rem);
    }
    .pd-converter-title {
        width: auto;
        max-width: none;
        flex: 1 1 auto;
    }
}

/* Product detail — B2B configurator (legacy pills/qty) */
.pd-pill-btn {
    border-radius: 999px !important;
    padding: 0.45rem 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-check:checked + .pd-pill-btn.btn-outline-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
}
.btn-check:checked + .pd-pill-btn.btn-outline-secondary {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.pd-qty-control {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pd-qty-btn {
    border: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    line-height: 1;
}
.pd-qty-input {
    border: none;
    width: 88px;
    height: 44px;
    font-weight: 600;
    box-shadow: none !important;
}
.pd-summary-card,
.pd-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.pd-summary-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1.5rem;
    align-items: baseline;
}
.pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.pd-spec-row:last-child {
    border-bottom: none;
}
.pd-spec-key {
    color: #64748b;
    font-size: 0.9rem;
}
.pd-spec-val {
    font-weight: 600;
    text-align: right;
    color: #0f172a;
}
#pdBrandGrid.pd-spec-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    background: #f8fafc;
}
.pd-brand-tile {
    position: relative;
    box-sizing: border-box;
    height: 100px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-brand-tile:hover {
    border-color: #cbd5e1;
}
.pd-brand-tile--selected {
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.12);
}
.pd-brand-tile:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.pd-brand-tile-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #0d6efd;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}
.pd-brand-tile--selected .pd-brand-tile-check {
    display: flex;
}
.pd-brand-tile-img {
    width: 160px;
    height: 80px;
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.pd-brand-tile--fallback {
    background: #fff;
}
.pd-brand-tile-initial {
    font-size: 1.75rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575.98px) {
    #pdBrandGrid.pd-spec-card {
        gap: 0.5rem;
        padding: 1rem !important;
    }
}

/* Water Infrastructure product detail */
.pd-water-spec-summary .pd-water-summary-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.pd-water-spec-summary .pd-water-summary-row:last-child {
    border-bottom: none;
}
.pd-water-summary-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.pd-water-summary-value {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}
.pd-water-values-list li {
    margin-bottom: 0.15rem;
}
.pd-water-values-inline {
    word-break: break-word;
}
.pd-water-spec-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pd-water-spec-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-water-spec-card:hover {
    border-color: #cbd5e1;
}
.pd-water-spec-card--selected {
    border: 2px solid #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.12);
}
.pd-water-spec-card:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.pd-water-spec-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    position: relative;
}
.pd-water-spec-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    line-height: 1;
}
.pd-water-spec-check i {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.pd-water-spec-card--selected .pd-water-spec-check {
    border-color: #0d6efd;
    background: #0d6efd;
}
.pd-water-spec-card--selected .pd-water-spec-check i {
    opacity: 1;
    transform: scale(1);
}
.pd-water-spec-card--selected .pd-water-spec-radio {
    border-color: #0d6efd;
}
.pd-water-spec-card--selected .pd-water-spec-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #0d6efd;
}
.pd-water-single-qty-row {
    max-width: 420px;
}
.pd-water-quotation-note,
.pd-quotation-note {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.pd-water-quotation-icon,
.pd-quotation-note-icon {
    color: #0d6efd;
    font-size: 1.25rem;
    line-height: 1.2;
}
.pd-water-spec-title {
    font-size: 1.05rem;
}
.pd-water-spec-input-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 100%;
}
.pd-water-spec-input-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 8px;
}
.pd-water-spec-unit {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
}
@media (max-width: 575.98px) {
    .pd-water-spec-card {
        padding: 0.85rem 1rem;
    }
    .pd-water-spec-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .pd-water-spec-unit {
        justify-content: center;
        padding: 0.5rem;
    }
}

.pd-conversion-live {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    line-height: 1.6;
}
@media (max-width: 575.98px) {
    .pd-spec-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .pd-spec-val {
        text-align: left;
    }
    .pd-summary-grid {
        grid-template-columns: 1fr;
    }
    .pd-summary-grid .text-end {
        text-align: left !important;
    }
}

/* Dynamic width for inputs */
@media (min-width: 768px) {
    .input-with-unit input {
        width: 130px;
    }
}



/* =========================================
   Contractor Mart - Category Image Borders
   ========================================= */

/* Add a subtle black/grey border to all category images */
.contractor-category-grid .blog2-meets-single .image {
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    padding:10px;
}

/* Make the border turn blue to blend seamlessly with the hover glow */
/* .contractor-category-grid .blog2-meets-single:hover .image {
    border-color: #0d6efd !important;
} */


/* =========================================
   Contractor Mart - Edge-Aligned Sticky Action Buttons
   ========================================= */

.floating-action-wrapper {
    position: fixed;
    top: 50%; /* Centers it vertically on the screen */
    right: 0; /* Snaps it flush to the right edge */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: var(--cm-z-fab);
}

.fab-btn {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Very slight rounding only on the left side */
    border-radius: 6px 0 0 6px; 
}

/* Stack them seamlessly with no gap */
.floating-action-wrapper .fab-btn:first-child {
    border-radius: 6px 0 0 0;
}
.floating-action-wrapper .fab-btn:last-child {
    border-radius: 0 0 0 6px;
}

/* Match the exact colors from your screenshot */
.fab-whatsapp {
    background-color: #25D366; 
}

.fab-call {
    background-color: #56a5ec; /* Lighter blue to match your screenshot */
}

/* Premium Hover Effect: Slides out slightly to the left */
.fab-btn:hover {
    width: 60px;
    color: #ffffff;
    background-color: #111827; /* Turns dark to match the tooltip */
}

/* Tooltip Styling */
.fab-tooltip {
    position: absolute;
    right: 100%; /* Positions tooltip exactly to the left of the button */
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    background-color: #111827;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-right: 10px; /* Space between tooltip and button */
}

/* Tooltip Arrow */
.fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #111827;
}

/* Show Tooltip on Hover */
.fab-btn:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .fab-btn:hover {
        width: 45px; /* Disables slide-out on mobile */
    }
    .fab-tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}











@media (max-width: 767px) {
  .theme-btn1 {
    font-size: 12px;
    padding: 10px 10px;
  }
  .heading2 .sub-titile {
    font-size: 16px;
  }
  .heading2 h2 {
    font-size: 24px;
  }
  .contractor-hero-subtitle {
    padding: 5px 10px;
  }
  .contractor-hero-actions {
    margin-top: 8px;
    gap: 8px;
  }

  .contractor-hero-actions .theme-btn1 {
    margin-top: 0;
  }
  .contractor-hero-content p {
    margin-top: 6px;
  }
  .mb-16{
    margin-bottom: 0px;
  }
  .mt-30, .my-30 {
    margin-top: 15px;
  }
}






/* =========================================
   Contractor Mart - Mobile Hero Adjustments
   ========================================= */

@media (max-width: 767px) {
    /* 1. Force the container to match your 1000x600 image exactly */
    .contractor-hero-slide {
        min-height: unset !important; /* Removes the tall forced height */
        height: auto !important;
        aspect-ratio: 10 / 8 !important; /* Matches 1000x800 ratio */
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        display: flex;
        align-items: center;
    }

    /* 2. Since the container perfectly matches the image ratio, 'cover' will show the full 100% of the image */
    .contractor-hero-bg-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* 3. Because the banner is now much shorter (landscape), we must shrink the text to fit cleanly inside */
    .contractor-hero-content h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .contractor-hero-subtitle {
        font-size: 8px !important;
        margin-bottom: 8px !important;
        display: inline-block;
    }

    .contractor-hero-content p {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
        /* Optional: Limits paragraph to 2 lines so it doesn't overflow */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 4. Shrink the buttons so they stay side-by-side inside the image */
    .contractor-hero-actions {
        margin-top: 10px;
        gap: 5px;
    }

    .contractor-hero-actions .theme-btn1 {
        padding: 8px 8px !important;
        font-size: 12px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}













/* =========================================
   Contractor Mart - Mobile Bottom Navigation
   ========================================= */

/* Hide on desktop by default */
.contractor-bottom-nav {
    display: none !important; /* Forces it to hide on all large screens */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--cm-z-mobile-chrome);
    overflow: visible !important;
    align-items: center;
}

/* Show ONLY on mobile screens (767px and below) */
@media (max-width: 767px) {
    .contractor-bottom-nav {
        display: flex !important; /* Turns the menu on for mobile */
    }
}

.c-nav-list {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: space-between;
}

.c-nav-list li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Nav Text & Icons - Updated to Premium Slate Gray */
.c-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280; /* Premium Slate Gray */
    transition: all 0.2s ease;
}

.c-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #4b5563; /* Slightly darker slate for the outlined icon */
    transition: all 0.2s ease;
}

.c-nav-item span {
    font-size: 10px;
    font-weight: 600; /* Reduced from 700 to look cleaner and more modern */
    line-height: 1;
}

/* Add a smooth blue color when tapped/hovered */
.c-nav-item:hover i,
.c-nav-item:hover span {
    color: #0d6efd;
}

.c-nav-item:active i {
    transform: scale(0.9); /* Tiny click animation */
}

/* Pop-out RFQ Button */
.c-rfq-wrapper {
    position: relative;
}

.c-nav-rfq {
    position: absolute;
    bottom: 15px; /* This pushes the button out of the bar perfectly */
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    background-color: #ff5722;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 10;
}

.c-nav-rfq i {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 2px;
}

.c-nav-rfq span {
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

/* Add padding to body so the footer isn't hidden behind the bar */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px !important;
    }
}



/* =========================================
   Contractor Mart - Go To Top Button Fix (Mobile)
   ========================================= */

@media (max-width: 767px) {
    .progress-wrap {
        bottom: 85px !important; /* Pushes it safely above the 65px bottom nav */
        right: 15px !important;  /* Tucks it a bit closer to the screen edge */
        width: 40px !important;  /* Slightly shrinks it for mobile */
        height: 40px !important;
    }
    .progress-wrap::before {
      width: 40px;
      line-height: 42px;
    }

    /* Centers the arrow inside the newly shrunken button */
    .progress-wrap::after {
        line-height: 40px !important;
        font-size: 16px !important;
        width:40px;
    }
}


/* =========================================
   Contractor Mart - Supplier Registration
   ========================================= */

/* Supplier Benefits Sidebar */
.benefit-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    flex-shrink: 0;
}

/* Custom Select Dropdowns to match Text Inputs */
/* Custom Select Dropdowns to match Text Inputs */
.custom-form-select {
    width: 100%;
    display: block !important; /* Forces the select to show, overriding nice-select's hidden state */
    padding: 14px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px 10px;
}

.custom-form-select:focus {
    background-color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Hide nice-select if template tries to override our custom select */
.custom-form-select + .nice-select {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .registration-form-wrap {
        padding: 20px !important;
        margin-top: 30px;
    }
}


/* =========================================
   Contractor Mart - Supplier Success Page
   ========================================= */

.supplier-success-page {
    background-color: #f8f9fa; /* Keeps the outer area light */
}

.success-card {
    position: relative;
    z-index: 1;
}

/* Big Green Pulsing Checkmark */
.success-icon-wrap {
    width: 90px;
    height: 90px;
    background-color: #25D366; /* Trust-building Green */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.15);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* What Happens Next - Step Styling */
.whats-next-box {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: #0d6efd;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .success-card {
        padding: 30px 20px !important;
    }
    .success-icon-wrap {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    .success-card h2 {
        font-size: 24px;
    }
}


/* =========================================
   Contractor Mart - Z-Index Hierarchy Fix
   ========================================= */

/* Mobile drawer & search stay above the site header */
.mobile-sidebar,
.mobile-sidebar.mobile-sidebar2 {
    z-index: var(--cm-z-mobile-drawer) !important;
}

#sidebarFilters.offcanvas,
#sidebarCategories.offcanvas {
    z-index: var(--cm-z-mobile-drawer) !important;
}

.search__popup {
    z-index: var(--cm-z-overlay) !important;
}

/* Bootstrap sticky columns (default z-index 1020) must sit below fixed header */
.sticky-top,
.sticky-sm-top,
.sticky-md-top,
.sticky-lg-top,
.sticky-xl-top,
.sticky-xxl-top,
.product-image-gallery.sticky-lg-top,
.cart-summary-box.sticky-lg-top,
.checkout-summary-box.sticky-lg-top,
.dashboard-sidebar.sticky-lg-top,
.supplier-benefits-box.sticky-lg-top,
.company-quick-facts.sticky-lg-top {
    z-index: var(--cm-z-page-sticky) !important;
}

.contractor-bottom-nav {
    z-index: var(--cm-z-mobile-chrome) !important;
}

.floating-action-wrapper {
    z-index: var(--cm-z-fab) !important;
}



/* =========================================
   Contractor Mart - Main Categories Page
   ========================================= */

.main-category-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-color: #e5e7eb !important;
}

/* Hover Effect on the entire card */
.main-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #0d6efd !important; /* Turns the outer border blue */
}

/* Image Wrapper */
.cat-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    mix-blend-mode: multiply; /* Helps template images blend nicely into light background */
}

.main-category-card:hover .cat-img-wrap img {
    transform: scale(1.08); /* Slight smooth zoom */
}

/* Color transition for the 'Explore ->' text */
.hover-blue {
    transition: color 0.3s ease;
}

.main-category-card:hover .hover-blue {
    color: #0d6efd !important;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .cat-img-wrap {
        height: 180px; /* Slightly shorter images on mobile */
    }
    .main-category-card .cat-content {
        padding: 20px !important;
    }
}










/* =========================================
   Contractor Mart - Product Gallery
   ========================================= */

#zoomImage {
    transition: opacity 0.2s ease-in-out;
}

.product-image-gallery .thumb {
    transition: all 0.3s ease;
    border: 2px solid transparent !important; /* Thicker border for better visibility */
}

.product-image-gallery .thumb:hover {
    border-color: #d1d5db !important;
}

/* Blue highlight for the currently selected thumbnail */
.product-image-gallery .thumb.active {
    border-color: #0d6efd !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
}











/* =========================================
   Contractor Mart - Category View More Button
   ========================================= */

/* Desktop default styling */
.view-more-cat-btn {
    padding: 12px 24px;
    font-size: 15px;
}

/* Mobile & Tablet Overrides */
@media (max-width: 991px) {
    /* Pull the column out of the normal flow and anchor it to top right */
    .mobile-view-more-wrap {
        position: absolute;
        top: 0;
        right: 12px; /* Aligns perfectly with the screen padding */
        width: auto;
        margin-top: 0 !important;
        padding: 0;
    }
    
    /* Shrink the button significantly so it fits cleanly next to the subtitle */
    .view-more-cat-btn {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }
}







/* Mobile Adjustments for 2-column layout */
@media (max-width: 767px) {
    .cat-img-wrap {
        height: 120px !important; /* Shorter images so they don't look stretched */
    }
    .main-category-card .cat-content {
        padding: 15px !important;
    }
    .main-category-card h4 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    .main-category-card p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        /* Limits description to 3 lines so cards stay equal height */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cat-action-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        padding-top: 12px !important;
        margin-top: 15px !important;
    }
    .cat-action-row .badge {
        font-size: 10px !important;
    }
    .cat-action-row .hover-blue {
        font-size: 13px !important;
    }
}








/* =========================================
   Contractor Mart - Sub-Categories Accordion
   ========================================= */

.custom-category-accordion .accordion-button {
    background-color: #f8f9fa;
    color: #111827;
    border-radius: 8px !important;
    padding: 15px 20px;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* Fixes bottom margin on accordion items */
.custom-category-accordion .accordion-item {
    background: transparent;
}

/* Style when Accordion is expanded */
.custom-category-accordion .accordion-button:not(.collapsed) {
    background-color: #0d6efd;
    color: #ffffff;
}

/* Change the default Bootstrap chevron color to white when expanded */
.custom-category-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Sub-category list styling */
.sub-cat-list li {
    margin-bottom: 12px;
}

.sub-cat-list li:last-child {
    margin-bottom: 0;
}

.sub-cat-list a {
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.sub-cat-list a:hover,
.sub-cat-list a.active {
    color: #0d6efd;
    transform: translateX(5px); /* Gentle slide-right effect on hover */
}






/* =========================================
   Contractor Mart - Product Grid Pricing Box
   ========================================= */

.b2b-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b2b-price-box .price-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.b2b-price-box .price-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.b2b-price-box .unit {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Ensure the title pushes the price box down securely */
.product-content h5 {
    font-size: 17px;
    line-height: 1.3;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .product-content h5 {
        font-size: 13px !important;
        margin-bottom: auto !important; /* Forces uniform pushing */
        padding-bottom: 10px !important;
    }
    
    .b2b-price-box {
        padding: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .b2b-price-box .price-label {
        font-size: 9px !important;
    }
    
    .b2b-price-box .price-value {
        font-size: 14px !important;
    }
    
    .b2b-price-box .unit {
        font-size: 11px !important;
    }
}


/* Only Upload BOQ button */
.upload-boq-btn::before {
    background: #fd6b02 !important;   /* Your desired color */
    /* border-color: #fd6b02 !important; */
}

/* Bootstrap modals must sit above fixed site header (1200) */
.modal-backdrop {
  z-index: var(--cm-z-modal-backdrop) !important;
}

.modal {
  z-index: var(--cm-z-modal) !important;
}

/* BOQ upload modal (homepage) */
.cm-boq-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.cm-boq-modal__header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.5rem 1.75rem;
}

.cm-boq-modal__header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.cm-boq-modal__eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}

.cm-boq-modal__header .modal-title {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.cm-boq-modal__body {
    padding: 1.75rem;
}

.cm-boq-modal__lead {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 1.25rem;
}

.cm-boq-modal .single-input label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.cm-boq-file-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.cm-boq-file-drop {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}

.cm-boq-file-drop.is-dragover,
.cm-boq-file-drop.is-file-selected {
    border-color: #fd6b02;
    background: #fff7ed;
}

.cm-boq-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.cm-boq-file-drop__inner {
    padding: 1.75rem 1rem;
    text-align: center;
    pointer-events: none;
}

.cm-boq-file-drop__icon {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.cm-boq-file-drop__hint {
    font-size: 13px;
    color: #94a3b8;
}

.cm-boq-file-drop__name {
    margin-top: 0.75rem;
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.cm-boq-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.cm-boq-modal__actions--split {
    justify-content: space-between;
    align-items: center;
}

.cm-boq-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 6px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cm-boq-btn-cancel:hover,
.cm-boq-btn-cancel:focus {
    background: #f8fafc;
    border-color: #64748b;
    color: #475569;
}

.cm-boq-success .cm-boq-modal__actions--split {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cm-boq-success {
    text-align: center;
    padding: 1rem 0.5rem 0.5rem;
}

.cm-boq-success__icon {
    font-size: 3.5rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.cm-boq-success h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cm-boq-success p {
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

.cm-boq-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cm-boq-spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

@keyframes cm-boq-spin {
    to { transform: rotate(360deg); }
}

.contact-map-embed {
    width: 100%;
    max-width: 100%;
    line-height: 0;
}

.contact-map-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 450px;
    border: 0;
}





/* =========================================
   Contractor Mart - Legal Pages (Terms)
   ========================================= */

/* Content Typography */
.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563; /* Slate grey for easy reading */
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

/* Custom Bullet List for Legal Pages */
.legal-content .custom-list {
    padding-left: 0;
    list-style: none;
}

.legal-content .custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.legal-content .custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    /* Bulletproof SVG of a blue right-chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%230d6efd' d='M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.legal-content .custom-list li strong {
    color: #111827;
}

/* Sticky Sidebar Navigation */
.legal-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.legal-nav li {
    margin-bottom: 10px;
}

.legal-nav li:last-child {
    margin-bottom: 0;
}

/* Static Table of Contents Styling (No Links) */
.legal-nav .legal-nav-item {
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 5px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .legal-content h3 {
        font-size: 20px;
    }
    .legal-content p, .legal-content .custom-list li {
        font-size: 15px;
    }
}