/* =========================================================
   Infome "Add to Quote" cart system
   ========================================================= */

/* =========================================================
   Fix: product ribbon (FEATURED/TRENDING/NEW) overlapping
   the title text when a product image fails to load — the
   image container now has a fixed height + hidden overflow
   so a broken image's alt text can't push into the ribbon.
   ========================================================= */
.product-card {
  position: relative;
}

.product-card .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  overflow: hidden;
}

.product-card > .position-absolute.top-0.start-0 {
  z-index: 2;
}

/* ---- Add to Quote button (used on product cards / product page) ---- */
.js-add-to-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid #e2262a;
  background: #fff;
  color: #e2262a;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.js-add-to-quote:hover {
  background: #fdeceb;
}

.js-add-to-quote.is-added {
  background: #1fa34a;
  border-color: #1fa34a;
  color: #fff;
}

.js-add-to-quote.is-added:hover {
  background: #188a3d;
}

.js-add-to-quote i,
.js-add-to-quote .qbtn-icon {
  font-size: 14px;
}

/* Inline (non full-width) variant, e.g. single product page */
.js-add-to-quote.qbtn-inline {
  width: auto;
}

/* ---- Nav + quote icon wrapper: keeps a small, fixed gap between the end
   of the nav (Contact Us) and the quote icon, instead of relying on the
   outer container's justify-content:space-between, which was stretching
   that particular gap much wider than the others. ---- */
.nav-quote-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---- Quote cart icon (navbar) ---- */
.quote-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #f3c9c9;
  background: #fdeceb;
  cursor: pointer;
  margin-inline-start: 0;
  color: #e2262a;
  font-size: 18px;
  flex-shrink: 0;
}

.quote-cart-icon-wrap:hover {
  border-color: #e2262a;
  background: #fbdcda;
  color: #e2262a;
}

/* ---- Mobile: quote icon before the hamburger, and a bit smaller ----
   .navbar goes off-canvas (position:fixed) below 992px (see main.css),
   so re-ordering here only affects the icon + hamburger in the top bar. */
@media (max-width: 991px) {
  .mobile-nav-toggle.mobile-nav-show,
  .mobile-nav-toggle.mobile-nav-hide {
    order: 3;
  }
  .nav-quote-wrap {
    order: 2;
  }
  .quote-cart-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .quote-cart-badge {
    top: -4px;
    right: -4px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 3px;
  }
}

.quote-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e2262a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  padding: 0 4px;
}

.quote-cart-badge.d-none {
  display: none !important;
}

/* ---- Dropdown ---- */
.quote-cart-dropdown {
  position: fixed;
  top: 70px;
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  padding: 18px;
  z-index: 3500;
  display: none;
}

[dir="rtl"] .quote-cart-dropdown {
  right: auto;
  left: 16px;
}

.quote-cart-dropdown.show {
  display: block;
}

.quote-cart-dropdown h6 {
  font-weight: 700;
  margin-bottom: 12px;
}

.quote-cart-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.quote-cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
}

.quote-cart-dropdown-item:last-child {
  border-bottom: none;
}

.quote-cart-dropdown-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}

.quote-cart-dropdown-item .qc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-cart-dropdown-item .qc-remove {
  border: none;
  background: transparent;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.quote-cart-dropdown-item .qc-remove:hover {
  color: #e2262a;
}

.quote-cart-dropdown-empty {
  text-align: center;
  color: #888;
  padding: 20px 0;
  font-size: 14px;
}

.quote-cart-dropdown .btn-view-quote {
  display: block;
  width: 100%;
  background: #e2262a;
  color: #fff;
  border: none;
  font-size:12px;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.quote-cart-dropdown .btn-view-quote:hover {
  background: #c31e22;
  color: #fff;
}

/* ---- Toast ---- */
.quote-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: #1fa34a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 3000;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Quote Cart Page ---- */
.quote-cart-page-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.quote-cart-page-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  flex-shrink: 0;
}

.quote-cart-page-item .qcp-name {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  color: #222;
}

.quote-cart-page-item .qcp-remove {
  border: none;
  background: transparent;
  color: #e2262a;
  font-size: 18px;
  cursor: pointer;
}

.quote-cart-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #888;
}

.quote-cart-empty-state i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 14px;
  display: block;
}