/* InFront Quick Browse — breadcrumb button + category product modal (see js/quickbrowse.js) */

/* ---------- Breadcrumb button ---------- */
.breadcrumb .breadcrumb__after {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ift-qb-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: 600 14px/1 inherit;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.ift-qb-trigger svg { flex: 0 0 auto; color: #5f9400; }
.ift-qb-trigger:hover,
.ift-qb-trigger:focus-visible {
  border-color: #8cd400;
  background: #f7fcec;
  box-shadow: 0 2px 8px rgba(95, 148, 0, .18);
  transform: translateY(-1px);
  outline: none;
}
@media (max-width: 575.98px) {
  #wrapper .breadcrumb.breadcrumb--modern .breadcrumb__after:has(.ift-qb-trigger) {
    display: flex !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 6px 0 0;
  }
  #wrapper .breadcrumb.breadcrumb--modern .breadcrumb__after:has(.ift-qb-trigger) #iqitproductsnav { display: none !important; }
  .ift-qb-trigger { height: 38px; padding: 0 12px 0 10px; font-size: 13px; border-radius: 8px; }
}

/* ---------- Modal ---------- */
.ift-qb-open,
.ift-qb-open body { overflow: hidden !important; }

.ift-qb {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
}
.ift-qb[hidden] { display: none; }
.ift-qb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .18s ease;
}
.ift-qb__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  height: min(900px, 94vh);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .5), 0 0 0 1px rgba(148, 163, 184, .25);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.ift-qb.is-visible .ift-qb__backdrop { opacity: 1; }
.ift-qb.is-visible .ift-qb__panel { opacity: 1; transform: none; }

.ift-qb svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ift-qb__bar,
.ift-qb__tools,
.ift-qb__chips { flex-shrink: 0; }

/* Title bar */
.ift-qb__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  background: #0f172a;
  color: #e2e8f0;
}
.ift-qb__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
}
.ift-qb__back[hidden] { display: none; }
.ift-qb__back:hover { background: rgba(255, 255, 255, .2); }
.ift-qb__heading { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ift-qb__eyebrow {
  color: #8cd400;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ift-qb__title {
  margin: 2px 0 0;
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ift-qb__open {
  color: #cbd5e1 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.ift-qb__open:hover { color: #8cd400 !important; }
.ift-qb__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.ift-qb__close:hover { background: #dc2626; }

/* Toolbar */
.ift-qb__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #eef1f4;
}
.ift-qb__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 280px;
  margin: 0;
}
.ift-qb__search svg { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; }
.ift-qb__search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
}
.ift-qb__search input:focus {
  border-color: #8cd400;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(140, 212, 0, .2);
  outline: none;
}
.ift-qb__sort {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}
.ift-qb__stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.ift-qb__stock input { width: 16px; height: 16px; accent-color: #5f9400; }

/* Sub-category chips */
.ift-qb__chips {
  display: flex;
  gap: 8px;
  padding: 10px 20px 12px;
  overflow-x: auto;
  border-bottom: 1px solid #eef1f4;
  scrollbar-width: thin;
}
.ift-qb__chips:empty { display: none; }
@media (min-width: 768px) {
  .ift-qb__chips { flex-wrap: wrap; max-height: 142px; overflow-y: auto; }
}
.ift-qb__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  color: #1f2937 !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  transition: border-color .15s, background .15s;
}
.ift-qb__chip em {
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 11.5px;
  font-style: normal;
}
.ift-qb__chip:hover { border-color: #8cd400; background: #f7fcec; }
.ift-qb__chip.is-active { border-color: #0f172a; background: #0f172a; color: #fff !important; }
.ift-qb__chip.is-active em { background: rgba(255, 255, 255, .18); color: #fff; }
.ift-qb__chip--up { color: #475569 !important; }
.ift-qb__chips-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid #dbe2ea;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ift-qb__chip--up svg { width: 14px; height: 14px; }

/* Product grid */
.ift-qb__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 20px 24px;
  background: #f6f8fa;
  overscroll-behavior: contain;
  outline: none;
}
.ift-qb__count { margin: 0 0 12px; color: #475569; font-size: 13px; }
.ift-qb__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ift-qb__card {
  position: relative;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ift-qb__card:hover {
  border-color: #8cd400;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .35);
  transform: translateY(-2px);
}
.ift-qb__card.is-current { border: 2px solid #0f172a; }
.ift-qb__card { display: flex; flex-direction: column; }
.ift-qb__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 12px 10px;
  color: inherit !important;
  text-decoration: none !important;
}
.ift-qb__flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ift-qb__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.ift-qb__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ift-qb__brand {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ift-qb__name {
  display: -webkit-box;
  margin: 3px 0 10px;
  overflow: hidden;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ift-qb__name:has(+ .ift-qb__sku) { margin-bottom: 3px; }
.ift-qb__sku {
  display: block;
  margin: 0 0 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ift-qb__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: auto;
}
.ift-qb__price { color: #0f172a; font-size: 16px; font-weight: 800; }
.ift-qb__regular { color: #94a3b8; font-size: 12.5px; }
.ift-qb__stock-badge {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
}
.ift-qb__stock-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: currentColor;
}
.ift-qb__stock-badge.is-in { color: #3f7d00; }
.ift-qb__stock-badge.is-order { color: #b45309; }
.ift-qb__stock-badge.is-out { color: #b91c1c; }
/* Card actions */
.ift-qb__actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}
.ift-qb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a !important;
  font: 700 13px/1 inherit;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ift-qb__btn svg { width: 16px; height: 16px; }
.ift-qb__btn--cart {
  flex: 1 1 auto;
  min-width: 0;
  border-color: #8cd400;
  background: #8cd400;
}
.ift-qb__btn--cart span { overflow: hidden; text-overflow: ellipsis; }
.ift-qb__btn--cart:hover,
.ift-qb__btn--cart:focus-visible {
  border-color: #7bc000;
  background: #7bc000;
  box-shadow: 0 4px 12px -4px rgba(95, 148, 0, .6);
  outline: none;
}
a.ift-qb__btn--cart,
.ift-qb__btn--options {
  border-color: #0f172a;
  background: #fff;
}
a.ift-qb__btn--cart:hover,
a.ift-qb__btn--cart:focus-visible,
.ift-qb__btn--options:hover,
.ift-qb__btn--options:focus-visible {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff !important;
}
.ift-qb__btn--cart.is-busy { opacity: .7; cursor: progress; }
.ift-qb__btn--cart.is-added { border-color: #166534; background: #166534; color: #fff !important; }
.ift-qb__btn.is-disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8 !important;
  cursor: not-allowed;
}
.ift-qb__btn--icon { flex: 0 0 36px; width: 36px; padding: 0; color: #475569 !important; }
.ift-qb__btn--icon:hover,
.ift-qb__btn--icon:focus-visible {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff !important;
  outline: none;
}

/* Card info button */
.ift-qb__info {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dbe2ea;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #c75012;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
  cursor: help;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.ift-qb .ift-qb__info svg { width: 18px; height: 18px; }
.ift-qb__info:hover,
.ift-qb__info:focus-visible,
.ift-qb__info[aria-expanded="true"] {
  border-color: #c75012;
  background: #c75012;
  color: #fff;
  transform: scale(1.08);
  outline: none;
}

/* Product info popover (matches the footer carousel preview) */
.ift-qb-tip {
  position: fixed;
  z-index: 6;
  width: min(380px, calc(100vw - 24px));
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity .18s ease, transform .2s cubic-bezier(.4, 0, .2, 1);
}
.ift-qb-tip[hidden] { display: none; }
.ift-qb-tip.is-below { transform: translate3d(0, -6px, 0); }
.ift-qb-tip.is-visible { opacity: 1; transform: none; }
.ift-qb-tip__card {
  overflow: hidden;
  border: 1px solid #e3e6e6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fffe 0%, #fff 55%, #fffaf7 100%);
  box-shadow: 0 14px 36px rgba(199, 80, 18, .2), 0 4px 14px rgba(15, 17, 17, .1);
}
.ift-qb-tip__head { position: relative; padding: 12px 52px 10px 16px; border-bottom: 1px solid rgba(227, 230, 230, .9); }
.ift-qb-tip__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e3e6e6;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.ift-qb-tip__close:hover { background: #f3f4f6; color: #0f1111; }
.ift-qb-tip__close:focus-visible { outline: 2px solid #c75012; outline-offset: 2px; }
.ift-qb-tip__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ift-qb-tip__eyebrow {
  margin: 0 0 4px;
  color: #c75012;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ift-qb-tip__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(120deg, #0f1111 0%, #c75012 55%, #7c2d12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ift-qb-tip__body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 13px 16px 15px;
}
.ift-qb-tip__body:not(:has(.ift-qb-tip__media)) { grid-template-columns: 1fr; }
.ift-qb-tip__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid #e3e6e6;
  border-radius: 10px;
  background: #fff;
}
.ift-qb-tip__media img { width: 100%; height: 100%; object-fit: contain; }
.ift-qb-tip__meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ift-qb-tip__brand {
  margin: 0;
  color: #565959;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ift-qb-tip__ref { margin: 0; color: #6b7280; font-size: 12px; }
.ift-qb-tip__desc {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.ift-qb-tip__points {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: #374151;
  font-size: 12.5px;
  line-height: 1.4;
}
.ift-qb-tip__points li { position: relative; margin: 0 0 3px; padding-left: 14px; }
.ift-qb-tip__points li::before {
  content: "";
  position: absolute;
  top: .5em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c75012;
}
.ift-qb-tip__stock {
  align-self: flex-start;
  margin: 2px 0 0;
  padding: 3px 8px;
  border: 1px solid #86efac;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}
.ift-qb-tip__stock.is-order { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
.ift-qb-tip__stock.is-out { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.ift-qb-tip__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.ift-qb-tip__price { color: #0f172a; font-size: 17px; font-weight: 800; }
.ift-qb-tip__price-old { color: #9ca3af; font-size: 13px; font-weight: 600; }
.ift-qb-tip__cta {
  align-self: flex-start;
  margin-top: 4px;
  color: #c75012 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.ift-qb-tip__cta:hover { text-decoration: underline !important; }
.ift-qb-tip__arrow {
  position: absolute;
  bottom: -7px;
  left: var(--ift-qb-tip-arrow, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-right: 1px solid #e3e6e6;
  border-bottom: 1px solid #e3e6e6;
  background: #fff;
  transform: rotate(45deg);
}
.ift-qb-tip.is-below .ift-qb-tip__arrow {
  top: -7px;
  bottom: auto;
  border: 0;
  border-top: 1px solid #e3e6e6;
  border-left: 1px solid #e3e6e6;
  background: #f8fffe;
}

/* Combination picker */
.ift-qb__opt {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ift-qb__opt[hidden] { display: none; }
.ift-qb__opt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  transition: opacity .18s ease;
}
.ift-qb__opt-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}
.ift-qb__opt.is-visible .ift-qb__opt-backdrop { opacity: 1; }
.ift-qb__opt.is-visible .ift-qb__opt-dialog { opacity: 1; transform: none; }
.ift-qb__opt-head {
  position: relative;
  padding: 14px 56px 14px 20px;
  border-bottom: 1px solid #eef1f4;
}
.ift-qb__opt-head .ift-qb__eyebrow { color: #5f9400; }
.ift-qb__opt-title {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.ift-qb__opt-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}
.ift-qb__opt-x:hover { background: #0f172a; color: #fff; }
.ift-qb__opt-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 20px;
  overflow-y: auto;
}
.ift-qb__opt-loading { grid-column: 1 / -1; padding: 30px 0; color: #475569; text-align: center; }
.ift-qb__opt-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ift-qb__opt-media img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid #eef1f4;
  border-radius: 12px;
}
.ift-qb__opt-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ift-qb__opt-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.ift-qb__opt-group legend {
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.ift-qb__opt-group legend span { margin-left: 4px; color: #0f172a; font-weight: 600; }
.ift-qb__opt-values { display: flex; flex-wrap: wrap; gap: 6px; }
.ift-qb__opt-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font: 600 13px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ift-qb__opt-value i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .2);
}
.ift-qb__opt-value:hover { border-color: #8cd400; }
.ift-qb__opt-value.is-unavailable { color: #94a3b8; border-style: dashed; }
.ift-qb__opt-value.is-selected {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.ift-qb__opt-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f8fa;
}
.ift-qb__opt-price { display: flex; align-items: baseline; gap: 8px; }
.ift-qb__opt-price span { color: #0f172a; font-size: 22px; font-weight: 800; }
.ift-qb__opt-price s { color: #94a3b8; font-size: 14px; }
.ift-qb__opt-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ift-qb__opt-info .ift-qb__stock-badge { flex-basis: auto; }
.ift-qb__opt-ref { color: #64748b; font-size: 12px; }
.ift-qb__opt-buy { display: flex; gap: 10px; }
.ift-qb__qty {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.ift-qb__qty button {
  width: 38px;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
}
.ift-qb__qty button:hover { background: #e2e8f0; }
.ift-qb__qty input {
  width: 52px;
  border: 0;
  border-inline: 1px solid #e2e8f0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.ift-qb__qty input::-webkit-inner-spin-button,
.ift-qb__qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.ift-qb__opt-add { height: 46px; font-size: 15px; }
.ift-qb__opt-add:disabled { border-color: #e2e8f0; background: #f1f5f9; color: #94a3b8 !important; box-shadow: none; cursor: not-allowed; }
.ift-qb__opt-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ift-qb__opt-full svg { width: 15px; height: 15px; }
.ift-qb__opt-full:hover { color: #0f172a !important; }

/* Added-to-cart toast */
.ift-qb__toast {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100% - 40px));
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 40px -10px rgba(2, 6, 23, .55);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ift-qb__toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ift-qb__toast.is-error { background: #7f1d1d; }
.ift-qb__toast > svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #8cd400; color: #0f172a; }
.ift-qb__toast-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ift-qb__toast-text strong { font-size: 14px; }
.ift-qb__toast-text small {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ift-qb__toast-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #8cd400;
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
}
.ift-qb__toast-btn:hover { background: #a3e635; }

.ift-qb__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: #475569;
  text-align: center;
}

/* Loading skeleton */
.ift-qb__card--skeleton { height: 300px; padding: 12px; }
.ift-qb__card--skeleton span {
  display: block;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef1f4 0%, #f8fafc 50%, #eef1f4 100%);
  background-size: 200% 100%;
  animation: ift-qb-shimmer 1.2s infinite linear;
}
.ift-qb__card--skeleton span:nth-child(1) { height: 170px; }
.ift-qb__card--skeleton span:nth-child(2) { height: 14px; width: 80%; }
.ift-qb__card--skeleton span:nth-child(3) { height: 14px; width: 45%; }
.ift-qb__card--skeleton:hover { transform: none; box-shadow: none; border-color: #e5e9ee; }
@keyframes ift-qb-shimmer { to { background-position: -200% 0; } }

/* Mobile: full-screen sheet */
@media (max-width: 767.98px) {
  .ift-qb { padding: 0; }
  .ift-qb__panel { width: 100%; height: 100%; border-radius: 0; }
  .ift-qb__bar { padding: 10px 10px 10px 14px; }
  .ift-qb__title { font-size: 16px; }
  .ift-qb__open { display: none; }
  .ift-qb__close span { display: none; }
  .ift-qb__close { padding: 0 9px; }
  .ift-qb__tools { padding: 10px 12px 8px; gap: 8px; }
  .ift-qb__search { flex-basis: 100%; }
  .ift-qb__sort { flex: 1 1 auto; }
  .ift-qb__chips { padding: 8px 12px 10px; }
  .ift-qb__body { padding: 12px 12px 24px; }
  .ift-qb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ift-qb__link { padding: 10px; }
  .ift-qb__name { font-size: 13px; }
  .ift-qb__price { font-size: 15px; }
  .ift-qb__actions { padding: 0 10px 10px; gap: 5px; }
  .ift-qb__btn { height: 38px; font-size: 12.5px; }
  .ift-qb__btn--cart { padding: 0 6px; }
  .ift-qb__btn--icon { flex-basis: 38px; width: 38px; }
  .ift-qb__toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .ift-qb__opt { align-items: flex-end; padding: 0; }
  .ift-qb__opt-dialog { width: 100%; max-height: 92%; border-radius: 16px 16px 0 0; }
  .ift-qb__opt-body { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .ift-qb__opt-media img { max-height: 160px; width: auto; }
  .ift-qb__opt-buy { position: sticky; bottom: -14px; margin: 0 -14px -14px; padding: 12px 14px; background: #fff; border-top: 1px solid #eef1f4; }
  .ift-qb__opt-add { flex: 1 1 auto; }
}

@media (max-width: 767.98px) {
  .ift-qb__info { top: 6px; right: 6px; width: 32px; height: 32px; }
  .ift-qb-tip__body { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ift-qb__backdrop, .ift-qb__panel, .ift-qb__card, .ift-qb-trigger, .ift-qb-tip, .ift-qb__info { transition: none; }
  .ift-qb__card--skeleton span { animation: none; }
}

/* ---------- Phones: compact app-style sheet ---------- */
@media (max-width: 575.98px) {
  .ift-qb__panel { transform: translateY(24px); }
  .ift-qb__bar { gap: 10px; padding: 8px 8px 8px 14px; }
  .ift-qb__eyebrow { font-size: 10px; }
  .ift-qb__title { margin-top: 1px; font-size: 15.5px; }
  .ift-qb__close { width: 36px; height: 36px; padding: 0; justify-content: center; }

  /* Search, sort and stock on one row */
  .ift-qb__tools { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; }
  .ift-qb__search { flex: 1 1 auto; min-width: 0; }
  .ift-qb__search svg { left: 10px; width: 16px; height: 16px; }
  .ift-qb__search input { height: 38px; padding: 0 10px 0 32px; border-radius: 10px; font-size: 16px; }
  .ift-qb__search input::placeholder { font-size: 13px; }
  .ift-qb__sort {
    flex: 0 0 96px;
    width: 96px;
    height: 38px;
    padding: 0 6px 0 9px;
    border-radius: 10px;
    font-size: 13px;
  }
  .ift-qb__stock {
    position: relative;
    flex: 0 0 auto;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 0;
  }
  .ift-qb__stock input { position: absolute; opacity: 0; pointer-events: none; }
  .ift-qb__stock::after { content: "In stock"; color: #334155; font-size: 13px; font-weight: 600; }
  .ift-qb__stock:has(input:checked) { border-color: #0f172a; background: #0f172a; }
  .ift-qb__stock:has(input:checked)::after { color: #fff; }
  .ift-qb__stock:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(15, 23, 42, .2); }

  /* Scope chips: one swipeable row */
  .ift-qb__chips {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 10px 8px;
    border-bottom: 1px solid #eef1f4;
    scrollbar-width: none;
  }
  .ift-qb__chips::-webkit-scrollbar { display: none; }
  .ift-qb__chip { padding: 6px 11px; font-size: 12.5px; }
  .ift-qb__chip em { padding: 0 6px; font-size: 11px; }
  .ift-qb__chips-label { margin-left: 2px; padding-left: 8px; font-size: 10.5px; }

  /* Product cards: no gutter, cards touch the screen edge, hairline dividers (same as phone category lists) */
  .ift-qb__body { padding: 8px 0 20px; background: #fff; }
  .ift-qb__count { margin: 0 12px 8px; font-size: 12px; }
  .ift-qb__grid { gap: 0; border-top: 1px solid #e5e9ee; }
  .ift-qb__card,
  .ift-qb__card--skeleton {
    border: 0;
    border-bottom: 1px solid #e5e9ee;
    border-radius: 0;
  }
  .ift-qb__card:nth-child(odd) { border-right: 1px solid #e5e9ee; }
  .ift-qb__card.is-current { border-color: #e5e9ee; box-shadow: inset 0 0 0 2px #0f172a; }
  .ift-qb__card:hover { border-color: #e5e9ee; transform: none; box-shadow: none; }
  .ift-qb__card.is-current:hover { box-shadow: inset 0 0 0 2px #0f172a; }
  .ift-qb__link { padding: 8px 9px 6px; }
  .ift-qb__img { margin-bottom: 6px; }
  .ift-qb__brand { display: none; }
  .ift-qb__name {
    margin: 0 0 6px;
    min-height: calc(1.3em * 2);
    font-size: 12.5px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  .ift-qb__name:has(+ .ift-qb__sku) { margin-bottom: 2px; }
  .ift-qb__sku { margin-bottom: 6px; }
  .ift-qb__price { font-size: 15px; }
  .ift-qb__stock-badge { font-size: 11px; }
  .ift-qb__stock-badge::before { width: 6px; height: 6px; margin-right: 5px; }
  .ift-qb__info { top: 6px; right: 6px; width: 28px; height: 28px; box-shadow: none; }
  .ift-qb .ift-qb__info svg { width: 16px; height: 16px; }
  .ift-qb__flag { top: 6px; left: 6px; padding: 2px 6px; font-size: 10px; }
  .ift-qb__actions { gap: 5px; padding: 0 9px 9px; }
  .ift-qb__btn { height: 34px; border-radius: 9px; font-size: 12.5px; }
  .ift-qb__btn--cart,
  a.ift-qb__btn--cart,
  .ift-qb__btn--options {
    border: 1.5px solid #0f172a;
    background: #fff;
    color: #0f172a !important;
    box-shadow: none;
  }
  .ift-qb__btn--cart:active,
  .ift-qb__btn--options:active { background: #0f172a; color: #fff !important; }
  .ift-qb__btn--cart.is-added { border-color: #166534; background: #166534; color: #fff !important; }
  .ift-qb__btn--icon { flex: 0 0 34px; width: 34px; border-color: #e2e8f0; }
  .ift-qb__btn--icon svg { width: 15px; height: 15px; }
}

/* "PP" Buy now with PayPal: Add to cart 3/4, PayPal 1/4 */
.ift-qb__actions .ift-qb__btn--cart { flex: 1 1 0; }
.ift-qb__actions:has(.ift-qb__btn--pp) .ift-qb__btn--icon { display: none; }
.ift-qb__btn--pp {
  position: relative;
  flex: 0 0 25%;
  min-width: 0;
  padding: 0;
  border-color: #cbd5e1;
  background: #fff;
}
.ift-qb__btn--pp .ift-qb__pp-logo { display: block; width: 20px; height: 20px; }
.ift-qb__btn--pp:hover,
.ift-qb__btn--pp:focus-visible { border-color: #002991; background: #f5f8ff; }
.ift-qb__btn--pp:disabled { opacity: .45; cursor: not-allowed; }
.ift-qb__btn--pp.is-busy .ift-qb__pp-logo { opacity: 0; }
.ift-qb__btn--pp.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(0, 48, 135, .25);
  border-top-color: #003087;
  border-radius: 50%;
  animation: ift-qb-pp-spin .7s linear infinite;
}
@keyframes ift-qb-pp-spin { to { transform: rotate(360deg); } }
.ift-qb__opt-buy .ift-qb__opt-add { flex: 1 1 0; }
.ift-qb__opt-buy .ift-qb__opt-pp { flex: 0 0 22%; }
.ift-qb__opt-pp { height: 46px; }
