/* Shared live-search presentation. Behavior remains in /js/header.js. */

@media (max-width: 1000px) {
  .close-search {
    margin-right: 10px !important;
  }

  .search-overlay .search-content {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  .search-content input {
    margin: 0 8px;
  }
}

.site-header .search-pill:focus-within {
  border-color: rgba(0, 120, 184, .5);
  box-shadow: 0 0 0 3px rgba(0, 120, 184, .1);
}

@media (max-width: 1000px) {
  .site-header .search-overlay { min-height: 70px; }
}

/* =========================================================
   2) SEARCH OVERLAY + MASK
   ========================================================= */

.search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10020;

  width: 100%;
  height: 85px;
  padding: 0 16px;

  background: transparent;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.search-overlay.open::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--search-mask-left, 0px);
  z-index: 0;

  width: var(--search-mask-width, 0px);
  height: 85px;

  background: #fff;
  pointer-events: none;
}

.search-overlay .search-content {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 85%;
  max-width: 85%;
  height: 85px;
  margin: 0 auto;

  pointer-events: none;
}

@media (min-width: 1001px) {
  /* The utility Search tile becomes the desktop close control, preserving its
     footprint and preventing two competing close actions in the header. */
  .search-overlay .close-search {
    display: none;
  }
}

/* Only the real controls should capture clicks */
.search-pill,
.search-pill *,
.close-search,
.basic-dropdown,
.basic-dropdown * {
  pointer-events: auto;
}

/* =========================================================
   3) SEARCH PILL + INPUT ACTIONS
   ========================================================= */

.search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: min(720px, 64%);
  min-width: 0;
  height: 46px;
  padding: 0 10px 0 14px;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-pill:focus-within {
  border-color: rgba(172, 36, 30, 0.42);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.03),
    0 0 0 3px rgba(172, 36, 30, 0.055);
}

.search-pill input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;
  outline: none;
  background: transparent;

  font-size: 1rem;
}

.search-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.search-divider {
  width: 1px;
  height: 22px;

  background: rgba(0, 0, 0, 0.18);
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  padding: 0;

  border: 0;
  border-radius: 8px;
  background: transparent;

  color: #111;
  cursor: pointer;
  opacity: 0.78;
}

.search-clear i {
  font-size: 18px;
  line-height: 1;
}

.search-clear:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.search-clear:active {
  background: rgba(0, 0, 0, 0.1);
}

.search-clear:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  padding: 0;

  border: 0;
  background: transparent;

  color: #111;
  cursor: pointer;
}

.search-submit i {
  font-size: 18px;
}

.close-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 999px;
  background: #efefef;

  color: #111;
  font-size: 20px;
  cursor: pointer;
}

/* =========================================================
   4) SEARCH DROPDOWN SHELL
   ========================================================= */

.basic-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 9999;

  display: flex;
  flex-direction: column;

  width: 86%;
  max-width: 1380px;
  height: 580px;

  overflow: hidden;
  transform: translateX(-50%);

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.basic-dropdown[hidden] {
  display: none !important;
}

/* =========================================================
   5) DROPDOWN GRID + COLUMNS
   ========================================================= */

.tri-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    'middle right'
    'left   left';
  gap: 12px;

  flex: 1;
  min-height: 0;
  height: auto;
  padding: 12px 12px 13px;

  box-sizing: border-box;
}

.col-left {
  grid-area: left;
}

.col-middle {
  grid-area: middle;
}

.col-right {
  grid-area: right;
}

.col {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-height: 0;
  height: auto;
}

.col-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.col-body.muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Left column body should not scroll */
.col-left .col-body {
  flex: initial;
  overflow: visible;
}

/* =========================================================
   6) SEARCH SECTION HEADERS
   ========================================================= */

.search-section-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  margin-bottom: 8px;
  padding: 8px 12px;

  border: 0;
  border-radius: 6px;

  background: #f3f4f6;
  color: #111;

  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.search-section-header--dark {
  background: #4d4e5e;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.search-section-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.16);
  color: currentColor;

  font-size: 0.7rem;
  line-height: 1;
}

.search-section-header:not(.search-section-header--dark)
  .search-section-header__icon {
  background: rgba(172, 36, 30, 0.09);
  color: var(--pw-orange);
}

.search-section-header__label {
  display: inline-block;
  line-height: 1;
}

/* Legacy fallback — keep for any older markup still using .col-title */
.col-title {
  margin-bottom: 8px;
  padding: 8px 12px;

  border: 0;
  border-radius: 4px;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.col-middle .col-title,
.col-right .col-title {
  background: #4d4e5e;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.col-left .col-title {
  background-color: #e5e7eb;
  color: #111;
  box-shadow: none;
}

/* Categories header = light gray */
.col-left .col-title {
  background-color: #e5e7eb;
  color: #111;
  box-shadow: none;
}

/* =========================================================
   7) PRODUCT RESULTS LIST
   ========================================================= */

.prod-results {
  display: block;
  flex: 1;

  min-height: 0;
  max-height: 500px;
  margin: 0;
  padding: 6px 4px 0 0;

  overflow-y: auto;
  scrollbar-gutter: stable;

  list-style: none;
}

#prodResults > .prod-item + .prod-item {
  margin-top: 8px;
}

.prod-results > li {
  align-items: flex-start;
  min-height: unset !important;
  height: auto !important;
}

/* =========================================================
   8) PRODUCT RESULT CARDS
   ========================================================= */

.prod-item {
  position: relative;

  display: block;
  padding: 0;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(172, 36, 30, 0.025),
      rgba(255, 255, 255, 0) 46%
    ),
    #fff;
  border: 1px solid rgba(64, 78, 94, 0.34);
  border-radius: 8px;

  cursor: pointer;

  transition:
    box-shadow 150ms ease,
    transform 120ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.prod-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  width: 4px;
  height: 100%;

  background: var(--pw-orange);

  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: center;

  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.prod-item:hover,
.prod-item[aria-selected='true'] {
  border-color: rgba(172, 36, 30, 0.42);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
  transform: translateY(-1px);
}

.prod-item:hover::after,
.prod-item[aria-selected='true']::after {
  opacity: 1;
  transform: scaleY(1);
}

.prod-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url('/images/pro-nav3-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;

  opacity: 0.16;
  pointer-events: none;
}

.prod-item > * {
  position: relative;
  z-index: 1;
}

.prod-link {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;
  padding: 11px 13px 11px 15px;

  color: inherit;
  text-decoration: none;
}

.prod-thumb {
  flex: 0 0 auto;

  width: 58px;
  height: 58px;
  padding: 5px;

  object-fit: contain;

  background: #fff;
  border: 1px solid rgba(64, 78, 94, 0.11);
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.045);
}

.text-wrap,
#prodResults .text-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;

  min-width: 0;
  width: 100%;
}

.prod-desc {
  margin: 0;

  color: #111;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.22;

  overflow-wrap: anywhere;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#prodResults .prod-desc {
  order: 1;
}

.prod-name {
  margin: 0;

  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.15;

  overflow-wrap: anywhere;
}

#prodResults .prod-name {
  order: 2;
}

.prod-name::before {
  content: 'SKU: ';
  color: #4d4e5e;
  font-weight: 800;
}

.prod-price {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 7px;

  background: rgba(172, 36, 30, 0.07);
  border-radius: 999px;

  color: var(--pw-orange);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.prod-card-purchase {
  display: none;
}

.prod-mobile-price {
  display: none;
}

/* =========================================================
   9) DID-YOU-MEAN BAR
   ========================================================= */

.dym-bar {
  margin: 6px 0 10px;
  padding: 8px 10px;

  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--pw-orange);
  border-radius: 4px;

  color: #374151;
  font-size: 0.9rem;
}

.dym-bar button {
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--pw-orange);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.dym-bar button:hover {
  text-decoration: underline;
}

/* =========================================================
   10) CATEGORY BAR + CATEGORY PILLS
   ========================================================= */

.basic-cats-bar {
  margin: 0 12px 10px;
  padding: 0 0 10px;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;

  overflow: hidden;
}

.basic-cats-bar[hidden] {
  display: none !important;
}

.basic-cats-bar .search-section-header {
  margin: 0 0 10px;
  border-radius: 0;

  background: #4d4e5e;
  color: #fff;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.basic-cats-bar .search-section-header .search-section-header__icon,
.basic-cats-bar
  .search-section-header:not(.search-section-header--dark)
  .search-section-header__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.basic-cats-bar .search-section-header .search-section-header__icon i {
  color: #fff;
}

#basicCats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;

  padding: 0 10px;
  overflow: visible;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: auto;
  height: auto;
  padding: 7px 11px;

  background: #fff;
  border: 1px solid rgba(64, 78, 94, 0.18);
  border-radius: 999px;
  box-shadow: none;

  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 120ms ease;
}

.cat-pill:hover {
  background: #f7f7f8;
  border-color: rgba(172, 36, 30, 0.32);
  color: #b00020;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.cat-pill:focus-visible {
  outline: 2px solid var(--pw-orange);
  outline-offset: 2px;
}

/* Hide emoji folder icon from JS for a cleaner chip */
.cat-pill .cat-ico {
  display: none;
}

.cat-pill .cat-txt {
  line-height: 1;
}

/* =========================================================
   11) PREVIEW PANEL CARD
   ========================================================= */

.pv-empty {
  padding: 22px;

  color: #777;
  text-align: center;
}

.pv-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  align-items: stretch;

  height: 100%;
  min-height: 0;
  padding: 0;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(172, 36, 30, 0.035),
      rgba(255, 255, 255, 0) 44%
    ),
    #fff;
  border: 1px solid rgba(64, 78, 94, 0.13);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

.pv-card__media {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 0;
  padding: 14px;

  background:
    radial-gradient(
      circle at center,
      rgba(172, 36, 30, 0.035),
      rgba(255, 255, 255, 0) 62%
    ),
    linear-gradient(180deg, #fff, #fafafa);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.pv-frame {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  min-height: 205px;
  max-height: 340px;
  margin: 0;

  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(64, 78, 94, 0.1);
  border-radius: 10px;
}

.pv-img {
  display: block;

  width: 100%;
  height: 100%;
  padding: 10px;

  object-fit: contain;
  object-position: center;

  transform: none;
  transition: transform 180ms ease-out;
}

.pv-frame:hover .pv-img {
  transform: scale(1.035);
}

.pv-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;

  min-width: 0;
  min-height: 0;
  padding: 22px 18px 18px;
}

.pv-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: fit-content;
  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;

  color: var(--pw-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.pv-card__eyebrow::before {
  content: '';

  display: inline-block;

  width: 18px;
  height: 3px;

  background: var(--pw-orange);
  border-radius: 999px;
}

.pv-text {
  display: flex;
  flex-direction: column;
  gap: 7px;

  min-width: 0;
}

.pv-desc {
  margin: 0;

  color: #111;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.22;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-name {
  margin: 0;

  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.pv-name::before {
  content: 'SKU: ';

  color: #4d4e5e;
  font-weight: 850;
}

.pv-card__purchase {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 2px;
  padding-top: 14px;

  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pv-msg {
  display: none;

  margin-top: 0;
  padding: 8px 10px;

  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.14);
  border-radius: 8px;

  color: #065f46;
  font-size: 0.86rem;
  font-weight: 750;
  text-align: center;
}

.pv-msg.err {
  background: rgba(176, 0, 32, 0.08);
  border-color: rgba(176, 0, 32, 0.16);

  color: #b00020;
}

/* Preview never scrolls */
.col-right .col-body,
#basicPreview {
  overflow: hidden !important;
}

#basicPreview {
  display: block !important;

  min-height: 0;
}

/* =========================================================
   12) PREVIEW TOOLBAR / QTY / ADD TO CART
   ========================================================= */

.pv-toolbar,
#basicPreview .pv-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 10px;

  width: 100%;
  margin: 0;
}

.pv-price {
  width: fit-content;
  padding: 0;

  background: transparent;
  border-radius: 0;

  color: #111;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.pv-price::before {
  content: 'Price';
  display: block;

  margin-bottom: 4px;

  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.qty-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;

  margin: 0;
}

.qty-wrap {
  display: inline-flex;
  align-items: center;

  overflow: hidden;

  background: #4d4e5e;
  border: 1px solid rgba(77, 78, 94, 0.16);
  border-radius: 8px;
}

.qty-btn {
  width: 34px;
  height: 36px;

  border: 0;
  background: #4d4e5e;

  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  transition:
    background 140ms ease,
    color 140ms ease;
}

.qty-btn:hover {
  background: var(--pw-orange);
}

.qty-input {
  width: 46px;
  height: 36px;

  border: 0;
  outline: none;
  background: #fff;

  color: #000;
  font-weight: 850;
  text-align: center;

  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin: 0;

  -webkit-appearance: none;
}

.add-cart-btn {
  height: 38px;
  padding: 0 16px;

  border: 0;
  border-radius: 8px;
  background: var(--pw-orange);
  box-shadow: 0 4px 10px rgba(172, 36, 30, 0.2);

  color: #fff;
  font-weight: 900;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 120ms ease;
}

.add-cart-btn:hover {
  background: #111;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.add-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   13) NO RESULTS / EMPTY STATES
   ========================================================= */

.no-results-item {
  list-style: none;
  cursor: default;
}

.no-results-box {
  display: grid;
  gap: 6px;

  padding: 18px 20px;

  background: #fff;
  border-left: 4px solid #ff7a1a;
  border-radius: 8px;

  color: #333;
}

.no-results-box strong {
  color: #2f3042;
  font-size: 16px;
}

.no-results-box span {
  font-size: 14px;
}

.no-results-box small {
  color: #777;
}

/* =========================================================
   14) SUGGESTIONS BAR
   ========================================================= */

#suggestMount {
  padding: 10px 12px 8px;
}

.suggest-bar {
  margin: 0;
  padding: 0 0 10px;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;

  overflow: hidden;
}

.suggest-title {
  display: flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  margin: 0 0 10px;
  padding: 8px 12px;

  background: #4d4e5e;
  color: #fff;

  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.suggest-title::before {
  content: '\f0eb';

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.16);
  color: #fff;

  font-family: 'Font Awesome 6 Free';
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.suggest-row {
  margin-top: 8px;
  padding: 0 10px;
}

.suggest-row-top {
  margin-top: 0;
}

.suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sug-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  max-width: 100%;
  padding: 7px 11px;

  background: #fff;
  border: 1px solid rgba(64, 78, 94, 0.18);
  border-radius: 999px;
  box-shadow: none;

  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 120ms ease;
}

.sug-item {
  display: inline-flex;
  align-items: center;

  max-width: 100%;
  min-width: 0;

  padding: 7px 11px;

  background: #fff;
  border: 1px solid rgba(64, 78, 94, 0.18);
  border-radius: 999px;

  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 120ms ease;
}

.sug-txt {
  flex: 1 1 auto;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sug-badge {
  flex: 0 0 auto;

  margin-left: 6px;

  padding: 0;

  background: transparent;

  color: #6b7280;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.sug-badge::before {
  content: '•';
  margin-right: 6px;
  color: rgba(172, 36, 30, 0.75);
}


/* =========================================================
   17) RESPONSIVE / MOBILE SEARCH
   ========================================================= */

@media (max-width: 1000px) {
  .search-overlay {
    height: 100%;
    min-height: 62px;
    padding: 5px 8px;

    background: #fff;
  }

  .search-overlay .search-content {
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 100%;
    height: 48px;
  }

  .search-pill {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 8px 0 12px;
  }

  .search-pill input {
    font-size: 16px;
  }

  .search-actions {
    gap: 8px;
  }

  .search-clear {
    width: 28px;
    height: 28px;
  }

  .search-submit i {
    font-size: 17px;
  }

  .close-search {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .basic-dropdown {
    left: 50%;

    width: 95% !important;

    transform: translateX(-50%);
  }

  .col-left,
  .col-right {
    display: none !important;
  }

  .tri-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .col-middle,
  .prod-link,
  .text-wrap {
    min-width: 0;
  }

  .prod-name,
  .prod-desc {
    overflow-wrap: anywhere;
  }

  .pv-toolbar {
    gap: 8px;
  }

  .qty-input {
    width: 42px;
  }

  .add-cart-btn {
    padding: 0 12px;
  }
}

/* =========================================================
   FINAL OVERRIDE - 100% WIDTH WHITE MEGA SEARCH DROPDOWN
   Added for the HKX search redesign.
   Keeps the Results + Preview behavior, but makes the dropdown
   full-width like the site mega menus and removes the dark header bars.
   ========================================================= */

@media (min-width: 1001px) {
  .basic-dropdown {
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 126px);
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 22px clamp(42px, 6vw, 96px) 28px;
    transform: none;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 0;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
  }

  .basic-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(172, 36, 30, 0.35),
      transparent
    );
    pointer-events: none;
  }

  .tri-grid {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 22px 0 0;
    grid-template-columns: minmax(460px, 0.92fr) minmax(650px, 1.08fr);
    grid-template-areas: 'middle right';
    gap: clamp(28px, 3vw, 54px);
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .col-left {
    display: none !important;
  }

  .col-middle,
  .col-right {
    min-width: 0;
  }

  .col-middle .col-title,
  .col-right .col-title,
  .search-section-header,
  .search-section-header--dark {
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    background: transparent !important;
    color: #111 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
  }

  .search-section-header__icon {
    display: none !important;
  }

  #suggestMount {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 0 20px;
  }

  .suggest-bar {
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .suggest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(28px, 4vw, 70px);
    align-items: start;
  }

  .suggest-left {
    min-width: 0;
  }

  .suggest-popular {
    min-width: 0;
    padding-left: clamp(24px, 3vw, 50px);
    border-left: 1px solid rgba(17, 24, 39, 0.1);
  }

  .suggest-title {
    display: block;
    width: auto;
    margin: 0 0 13px;
    padding: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
  }

  .suggest-title::before {
    display: none;
    content: none;
  }

  .suggest-title--cats {
    margin-top: 18px;
  }

  .suggest-row {
    margin: 0;
    padding: 0;
  }

  .suggest-list,
  #basicCats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 0;
  }

  .suggest-list--popular {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    gap: 10px 12px !important;
    max-width: 420px !important;
  }

  .suggest-list--popular .sug-item {
    justify-content: flex-start !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 40px !important;
    padding: 0 14px !important;

    overflow: hidden !important;
  }

  .suggest-list--popular .sug-txt {
    display: block !important;

    max-width: none !important;
    width: auto !important;

    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .suggest-list--popular .sug-badge {
    display: none !important;
  }
  .suggest-list--popular .sug-item {
    justify-content: flex-start;
    width: 100%;
    min-width: 150px;
    padding: 0 14px;
  }

  .suggest-list--popular .sug-txt {
    max-width: none;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .sug-item,
  .cat-pill {
    min-height: 34px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid rgba(64, 78, 94, 0.16);
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
    color: #111;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1;
  }

  .suggest-list--popular .sug-item {
    justify-content: center;
    width: 100%;
    border-radius: 8px;
    min-height: 42px;
  }

  .sug-item:first-child,
  .cat-pill:first-child {
    background: var(--pw-orange);
    border-color: var(--pw-orange);
    color: #fff;
    box-shadow: 0 8px 18px rgba(172, 36, 30, 0.18);
  }

  .suggest-list--popular .sug-item:first-child {
    background: #fff;
    border-color: rgba(64, 78, 94, 0.16);
    color: #111;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  }

  .sug-item:hover,
  .cat-pill:hover,
  .suggest-list--popular .sug-item:hover {
    background: #f8f8f9;
    border-color: rgba(172, 36, 30, 0.38);
    color: var(--pw-orange);
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
  }

  .sug-badge {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 900;
  }

  .sug-item:first-child .sug-badge {
    color: rgba(255, 255, 255, 0.82);
  }

  .basic-cats-bar {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto 20px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .basic-cats-bar .search-section-header {
    display: block;
    margin: 0 0 13px;
    padding: 0;
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  .prod-results {
    max-height: 520px;
    padding: 0 12px 0 0;
  }

  #prodResults > .prod-item + .prod-item {
    margin-top: 0;
  }

  .prod-item {
    border-radius: 8px;
    border-color: rgba(64, 78, 94, 0.16);
    background: #fff;
    box-shadow: none;
  }

  .prod-item + .prod-item {
    border-top-color: transparent;
  }

  .prod-link {
    min-height: 74px;
    padding: 10px 16px;
  }

  .prod-thumb {
    width: 58px;
    height: 48px;
    border-color: rgba(64, 78, 94, 0.08);
  }

  .prod-price {
    padding: 0;
    background: transparent;
    color: var(--pw-orange);
    font-size: 0.94rem;
  }

  .pv-card {
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .pv-card__media {
    padding: 0 30px 0 0;
    background: transparent;
    border-right: 0;
  }

  .pv-frame {
    min-height: 320px;
    max-height: none;
    border-color: rgba(64, 78, 94, 0.13);
    border-radius: 10px;
  }

  .pv-card__content {
    padding: 14px 0 0;
  }

  .pv-desc {
    font-size: 1.32rem;
  }

  .pv-price {
    color: var(--pw-orange);
    font-size: 1.5rem;
  }

  .qty-wrap {
    background: #fff;
    border-color: rgba(64, 78, 94, 0.18);
  }

  .qty-btn {
    background: #fff;
    color: #111;
    border-right: 1px solid rgba(64, 78, 94, 0.12);
  }

  .qty-btn:last-child {
    border-right: 0;
    border-left: 1px solid rgba(64, 78, 94, 0.12);
  }

  .qty-btn:hover {
    background: var(--pw-orange);
    color: #fff;
  }
}

@media (max-width: 1300px) and (min-width: 1001px) {
  .basic-dropdown {
    padding-left: 28px;
    padding-right: 28px;
  }

  .tri-grid {
    grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
    gap: 28px;
  }

  .suggest-grid {
    grid-template-columns: 1fr 360px;
    gap: 30px;
  }

  .suggest-list--popular {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
}

/* =========================================================
   FINAL PATCH - SEARCH DROPDOWN / MEGA MENU MATCH
   Matches the Kit Overview mega menu style:
   - full-width darker grid background
   - centered white card for search data
   - duplicate Categories title hidden
   - Results / Preview pulled upward
   ========================================================= */

@media (min-width: 1001px) {
  /* Full-width tray background, like the main mega menu */
  .basic-dropdown {
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: none !important;

    height: min(700px, calc(100vh - 126px)) !important;
    max-height: min(700px, calc(100vh - 126px)) !important;

    margin-left: -50vw !important;
    margin-right: -50vw !important;

    padding: 18px 0 20px !important;

    transform: none !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background-color: #f4f5f7 !important;
    background-image:
      linear-gradient(
        135deg,
        rgba(172, 36, 30, 0.035) 0%,
        rgba(255, 255, 255, 0) 34%
      ),
      repeating-linear-gradient(
        90deg,
        rgba(64, 78, 94, 0.055) 0 1px,
        transparent 1px 44px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(64, 78, 94, 0.045) 0 1px,
        transparent 1px 44px
      ) !important;
    background-repeat: no-repeat, repeat, repeat !important;
    background-position:
      0 0,
      0 0,
      0 0 !important;
    background-size:
      100% 100%,
      44px 44px,
      44px 44px !important;

    border: 0 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.1) !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.16) !important;
    border-radius: 0 0 12px 12px !important;

    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18) !important;
  }

  .basic-dropdown::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 1px !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(172, 36, 30, 0.42),
      transparent
    ) !important;
    pointer-events: none !important;
  }

  /* Centered white search card holding all data */
  .basic-dropdown::after {
    content: '' !important;
    position: absolute !important;
    top: 18px !important;
    left: 50% !important;
    width: min(1380px, calc(100vw - 72px)) !important;
    height: calc(100% - 38px) !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  #suggestMount,
  .basic-cats-bar,
  .tri-grid {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Suggestions area */
  #suggestMount {
    padding: 18px 0 8px !important;
  }

  .suggest-bar {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .suggest-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px) !important;
    gap: 42px !important;
    align-items: start !important;
  }

  .suggest-left {
    min-width: 0 !important;
  }

  .suggest-popular {
    min-width: 420px !important;
    max-width: 420px !important;

    padding-left: 34px !important;

    border-left: 1px solid rgba(17, 24, 39, 0.12) !important;
  }

  .suggest-title {
    display: block !important;
    width: auto !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
  }

  .suggest-title::before {
    display: none !important;
    content: none !important;
  }

  /* Hide JS-created duplicate Categories title.
     The real Categories title comes from .basic-cats-bar below. */
  .suggest-title--cats {
    display: none !important;
  }

  .suggest-row {
    margin: 0 !important;
    padding: 0 !important;
  }

  .suggest-row-bottom {
    display: none !important;
  }

  .suggest-list,
  #basicCats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px 11px !important;
    padding: 0 !important;
  }

  .suggest-list--popular {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(72px, 1fr)) !important;
    gap: 10px 12px !important;
  }

  .sug-item,
  .cat-pill {
    min-height: 34px !important;
    max-width: 100% !important;
    padding: 0 15px !important;

    background: #fff !important;
    border: 1px solid rgba(64, 78, 94, 0.16) !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03) !important;

    color: #111 !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;

    transition:
      background 140ms ease,
      border-color 140ms ease,
      box-shadow 140ms ease,
      color 140ms ease,
      transform 120ms ease !important;
  }

  .suggest-list--popular .sug-item {
    justify-content: center !important;
    width: 100% !important;
    border-radius: 8px !important;
    min-height: 40px !important;
  }

  .sug-item:first-child,
  .cat-pill:first-child {
    background: var(--pw-orange) !important;
    border-color: var(--pw-orange) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(172, 36, 30, 0.18) !important;
  }

  .suggest-list--popular .sug-item:first-child {
    background: #fff !important;
    border-color: rgba(64, 78, 94, 0.16) !important;
    color: #111 !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03) !important;
  }

  .sug-item:hover,
  .cat-pill:hover,
  .suggest-list--popular .sug-item:hover {
    background: #f8f8f9 !important;
    border-color: rgba(172, 36, 30, 0.38) !important;
    color: var(--pw-orange) !important;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08) !important;
    transform: translateY(-1px) !important;
  }

  .sug-ico,
  .cat-ico {
    display: none !important;
  }

  .sug-txt {
    max-width: 250px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sug-badge {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #6b7280 !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.045em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  .sug-badge::before {
    content: '•' !important;
    margin-right: 6px !important;
    color: rgba(172, 36, 30, 0.75) !important;
  }

  .sug-item:first-child .sug-badge {
    color: rgba(255, 255, 255, 0.82) !important;
  }

  /* One clean categories row */
  .basic-cats-bar {
    margin-top: 2px !important;
    margin-bottom: 10px !important;
    padding: 0 0 12px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .basic-cats-bar .search-section-header {
    display: block !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
  }

  .basic-cats-bar .search-section-header__icon {
    display: none !important;
  }

  /* Results + Preview */
  .tri-grid {
    padding: 13px 0 0 !important;
    grid-template-columns: minmax(500px, 0.95fr) minmax(560px, 1.05fr) !important;
    grid-template-areas: 'middle right' !important;
    gap: 38px !important;
    border-top: 1px solid rgba(17, 24, 39, 0.1) !important;
    box-sizing: border-box !important;
  }

  .col-left {
    display: none !important;
  }

  .col-middle,
  .col-right {
    min-width: 0 !important;
  }

  .col-middle .col-title,
  .col-right .col-title,
  .search-section-header,
  .search-section-header--dark {
    width: auto !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .search-section-header__icon {
    display: none !important;
  }

  .prod-results {
    max-height: 360px !important;
    padding: 0 12px 0 0 !important;
  }

  #prodResults > .prod-item + .prod-item {
    margin-top: 0 !important;
  }

  .prod-item {
    border-radius: 8px !important;
    border-color: rgba(64, 78, 94, 0.16) !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .prod-item::before {
    opacity: 0.06 !important;
  }

  .prod-item + .prod-item {
    border-top-color: transparent !important;
  }

  .prod-link {
    min-height: 70px !important;
    padding: 9px 16px !important;
  }

  .prod-thumb {
    width: 58px !important;
    height: 48px !important;
    border-color: rgba(64, 78, 94, 0.08) !important;
  }

  .prod-price {
    padding: 0 !important;
    background: transparent !important;
    color: var(--pw-orange) !important;
    font-size: 0.94rem !important;
  }

  .pv-card {
    grid-template-columns: minmax(245px, 0.82fr) minmax(320px, 1fr) !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .pv-card__media {
    padding: 0 28px 0 0 !important;
    background: transparent !important;
    border-right: 0 !important;
  }

  .pv-frame {
    min-height: 275px !important;
    max-height: 315px !important;
    border-color: rgba(64, 78, 94, 0.13) !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  .pv-card__content {
    padding: 13px 0 0 !important;
  }

  .pv-desc {
    font-size: 1.18rem !important;
    line-height: 1.2 !important;
  }

  .pv-price {
    color: var(--pw-orange) !important;
    font-size: 1.45rem !important;
  }

  .qty-wrap {
    background: #fff !important;
    border-color: rgba(64, 78, 94, 0.18) !important;
  }

  .qty-btn {
    background: #fff !important;
    color: #111 !important;
    border-right: 1px solid rgba(64, 78, 94, 0.12) !important;
  }

  .qty-btn:last-child {
    border-right: 0 !important;
    border-left: 1px solid rgba(64, 78, 94, 0.12) !important;
  }

  .qty-btn:hover {
    background: var(--pw-orange) !important;
    color: #fff !important;
  }
}

@media (max-width: 1500px) and (min-width: 1001px) {
  .basic-dropdown::after {
    width: min(1260px, calc(100vw - 56px)) !important;
  }

  #suggestMount,
  .basic-cats-bar,
  .tri-grid {
    max-width: 1200px !important;
  }

  .suggest-grid {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 34px !important;
  }

  .suggest-list--popular {
    grid-template-columns: repeat(2, minmax(86px, 1fr)) !important;
  }

  .tri-grid {
    grid-template-columns: minmax(460px, 0.96fr) minmax(500px, 1.04fr) !important;
    gap: 30px !important;
  }

  .pv-card {
    grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1fr) !important;
  }

  .pv-frame {
    min-height: 245px !important;
  }
}

@media (max-width: 1200px) and (min-width: 1001px) {
  .basic-dropdown::after {
    width: calc(100vw - 40px) !important;
  }

  #suggestMount,
  .basic-cats-bar,
  .tri-grid {
    max-width: calc(100vw - 78px) !important;
  }

  .tri-grid {
    grid-template-columns: minmax(390px, 0.95fr) minmax(460px, 1.05fr) !important;
  }
}

/* =========================================================
   FINAL PATCH - POPULAR PRODUCTS BUTTON WIDTH FIX
   ========================================================= */

@media (min-width: 1001px) {
  .suggest-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    gap: 34px !important;
  }

  .suggest-popular {
    min-width: 360px !important;
    max-width: 430px !important;
    padding-left: 32px !important;
  }

  .suggest-list--popular {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    gap: 11px 12px !important;
  }

  .suggest-list--popular .sug-item {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
    overflow: hidden !important;
  }

  .suggest-list--popular .sug-txt {
    display: inline-block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .suggest-list--popular .sug-badge {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1001px) {
  #suggestTop {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
    align-content: start !important;
    gap: 10px 12px !important;

    /* keeps Categories from jumping up/down */
    min-height: 78px !important;
    overflow: visible !important;
  }

  #suggestTop .sug-item {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  #suggestTop .sug-txt {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #suggestTop .sug-badge {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  #suggestTopRow {
    min-height: 78px !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   FINAL PATCH - MOBILE SEARCH USES NEW MEGA SEARCH SURFACE
   Keeps the grid tray + near-full-width white card below 1001px.
   ========================================================= */

@media (max-width: 1000px) {
  .basic-dropdown {
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    height: min(700px, calc(100vh - 72px)) !important;
    max-height: min(700px, calc(100vh - 72px)) !important;
    height: min(700px, calc(100dvh - 72px)) !important;
    max-height: min(700px, calc(100dvh - 72px)) !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 10px 0 14px !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-padding-bottom: max(
      36px,
      env(safe-area-inset-bottom, 0px)
    ) !important;
    background-color: #f4f5f7 !important;
    background-image:
      linear-gradient(
        135deg,
        rgba(172, 36, 30, 0.035) 0%,
        rgba(255, 255, 255, 0) 34%
      ),
      repeating-linear-gradient(
        90deg,
        rgba(64, 78, 94, 0.055) 0 1px,
        transparent 1px 44px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(64, 78, 94, 0.045) 0 1px,
        transparent 1px 44px
      ) !important;
    background-repeat: no-repeat, repeat, repeat !important;
    background-position:
      0 0,
      0 0,
      0 0 !important;
    background-size:
      100% 100%,
      44px 44px,
      44px 44px !important;
    border: 0 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.1) !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.16) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18) !important;
  }

  .basic-dropdown::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 1px !important;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(172, 36, 30, 0.42),
      transparent
    ) !important;
    pointer-events: none !important;
  }

  .basic-dropdown::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    width: calc(100vw - 16px) !important;
    height: calc(100% - 24px) !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12) !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  #suggestMount,
  .basic-cats-bar,
  .tri-grid {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #suggestMount {
    padding: 16px 0 8px !important;
  }

  .suggest-bar {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .suggest-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    align-items: start !important;
  }

  .suggest-left,
  .suggest-popular {
    min-width: 0 !important;
  }

  .suggest-popular {
    display: none !important;
  }

  .suggest-title,
  .basic-cats-bar .search-section-header,
  .col-middle .col-title,
  .col-right .col-title,
  .search-section-header,
  .search-section-header--dark {
    display: block !important;
    width: auto !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
  }

  .suggest-title::before,
  .search-section-header__icon,
  .basic-cats-bar .search-section-header__icon {
    display: none !important;
    content: none !important;
  }

  .suggest-title--cats,
  .suggest-row-bottom {
    display: none !important;
  }

  .suggest-row {
    margin: 0 !important;
    padding: 0 !important;
  }

  .suggest-list,
  #basicCats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px 11px !important;
    padding: 0 !important;
  }

  #suggestTop {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 9px 11px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #suggestTop .sug-item {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 4px 8px !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  .sug-item,
  .cat-pill {
    min-height: 34px !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    background: #fff !important;
    border: 1px solid rgba(64, 78, 94, 0.16) !important;
    border-radius: 999px !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03) !important;
    color: #111 !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
  }

  .sug-ico,
  .cat-ico {
    display: none !important;
  }

  .sug-txt,
  #suggestTop .sug-txt {
    display: -webkit-box !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: inherit !important;
    font-size: 0.76rem !important;
    line-height: 1.08 !important;
  }

  .sug-badge,
  #suggestTop .sug-badge {
    display: none !important;
  }

  .sug-item:first-child,
  .cat-pill:first-child {
    background: var(--pw-orange) !important;
    border-color: var(--pw-orange) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(172, 36, 30, 0.18) !important;
  }

  .sug-item:first-child .sug-badge {
    color: rgba(255, 255, 255, 0.82) !important;
  }

  .suggest-list--popular {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: none !important;
  }

  .suggest-list--popular .sug-item,
  .suggest-list--popular .sug-item:first-child {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
    background: #fff !important;
    border-color: rgba(64, 78, 94, 0.16) !important;
    border-radius: 8px !important;
    color: #111 !important;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03) !important;
    overflow: hidden !important;
  }

  .suggest-list--popular .sug-badge {
    display: none !important;
  }

  .basic-cats-bar {
    margin-top: 4px !important;
    margin-bottom: 10px !important;
    padding: 0 0 12px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .tri-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr) !important;
    grid-template-areas: 'middle right' !important;
    gap: 12px !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.1) !important;
    box-sizing: border-box !important;
  }

  .col-left {
    display: none !important;
  }

  .col-middle,
  .col-right {
    display: flex !important;
    min-width: 0 !important;
  }

  .prod-results {
    max-height: 340px !important;
    padding: 0 10px 0 0 !important;
  }

  .prod-item {
    border-color: rgba(64, 78, 94, 0.16) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .prod-item:hover,
  .prod-item[aria-selected='true'] {
    transform: none !important;
  }

  .prod-link {
    min-height: 68px !important;
    padding: 9px 12px !important;
  }

  .prod-thumb {
    width: 58px !important;
    height: 48px !important;
  }

  .prod-price {
    padding: 0 !important;
    background: transparent !important;
    color: var(--pw-orange) !important;
  }

  .pv-card {
    grid-template-columns: minmax(132px, 0.78fr) minmax(0, 1fr) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .pv-card__media {
    padding: 0 14px 0 0 !important;
    background: transparent !important;
    border-right: 0 !important;
  }

  .pv-frame {
    min-height: 210px !important;
    max-height: 260px !important;
    background: #fff !important;
    border-color: rgba(64, 78, 94, 0.13) !important;
    border-radius: 10px !important;
  }

  .pv-card__content {
    padding: 10px 0 0 !important;
  }

  .pv-desc {
    font-size: 1rem !important;
  }

  .pv-price {
    color: var(--pw-orange) !important;
    font-size: 1.2rem !important;
  }
}

@media (max-width: 760px) {
  .suggest-grid,
  .tri-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
  }

  .basic-cats-bar {
    display: none !important;
  }

  .suggest-popular {
    display: none !important;
  }

  #suggestTop {
    gap: 8px !important;
    padding-top: 2px !important;
  }

  #suggestTop .sug-item {
    justify-content: center !important;
    min-height: 42px !important;
    padding: 4px 7px !important;
    text-align: center !important;
  }

  #suggestTop .sug-txt {
    display: -webkit-box !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    color: inherit !important;
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
  }

  #suggestTop .sug-badge {
    display: none !important;
  }

  .tri-grid {
    gap: 14px !important;
    grid-template-areas: 'middle' !important;
  }

  .col-middle {
    display: flex !important;
    grid-area: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .search-preview-panel,
  .col-right {
    display: none !important;
  }

  .prod-results {
    max-height: 420px !important;
    padding: 0 9px 0 0 !important;
  }

  .prod-item {
    position: relative !important;
    min-height: 136px !important;
    overflow: hidden !important;
  }

  .prod-item[aria-selected='true'],
  .prod-item:hover,
  .prod-item:focus-within {
    border-color: rgba(172, 36, 30, 0.42) !important;
    box-shadow: 0 7px 16px rgba(17, 24, 39, 0.1) !important;
  }

  .prod-link {
    align-items: flex-start !important;
    min-height: 136px !important;
    padding: 14px 122px 14px 12px !important;
    gap: 12px !important;
    cursor: default !important;
  }

  .prod-thumb {
    width: 100px !important;
    height: 100px !important;
    padding: 6px !important;
    cursor: pointer !important;
  }

  #prodResults .text-wrap {
    flex: 0 1 clamp(126px, 38vw, 170px) !important;
    width: clamp(126px, 38vw, 170px) !important;
    max-width: clamp(126px, 38vw, 170px) !important;
    min-height: 100px !important;
    gap: 6px !important;
    justify-content: flex-start !important;
  }

  .prod-desc {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    font-size: 0.9rem !important;
    line-height: 1.22 !important;
    min-height: calc(0.9rem * 1.22 * 3) !important;
  }

  .prod-name {
    font-size: 0.8rem !important;
    line-height: 1.16 !important;
  }

  .prod-mobile-price {
    display: block !important;
    order: 3 !important;
    color: var(--pw-orange) !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: 'tnum' 1 !important;
  }

  .prod-link .prod-price {
    display: none !important;
  }

  .prod-card-purchase {
    display: flex !important;
    position: absolute !important;
    top: 14px !important;
    bottom: 14px !important;
    right: 11px !important;
    z-index: 3 !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 106px !important;
    gap: 6px !important;
    margin: 0 !important;
    min-width: 0 !important;
    transform: none !important;
  }

  .prod-card-price {
    display: none !important;
  }

  .prod-card-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    min-height: 100px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition:
      opacity 140ms ease,
      visibility 140ms ease !important;
  }

  .prod-card-purchase .qty-wrap {
    flex: 0 0 auto !important;
    width: 102px !important;
    height: 38px !important;
    border-radius: 7px !important;
  }

  .prod-card-purchase .qty-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 38px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
  }

  .prod-card-purchase .qty-input {
    flex: 1 1 auto !important;
    width: 42px !important;
    height: 38px !important;
    font-size: 16px !important;
    font-weight: 850 !important;
  }

  .prod-card-purchase .add-cart-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: 102px !important;
    max-width: 102px !important;
    height: 38px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    box-shadow: 0 3px 8px rgba(172, 36, 30, 0.18) !important;
    font-size: 0.78rem !important;
  }

  .prod-card-msg {
    display: none;
    color: #137333;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
  }

  .prod-card-msg.err {
    color: var(--pw-orange);
  }
}

/* =========================================================
   FINAL PATCH - SUGGESTED PILLS WITHOUT ELLIPSIS
   Tightens desktop pills and drops badges earlier on narrow widths.
   ========================================================= */

@media (min-width: 1001px) {
  #suggestTop .sug-item {
    gap: 5px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    overflow: hidden !important;
  }

  #suggestTop .sug-txt {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
  }

  #suggestTop .sug-badge {
    flex: 0 0 auto !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.02em !important;
  }

  #suggestTop .sug-badge::before {
    margin-right: 4px !important;
  }
}

@media (max-width: 1500px) and (min-width: 1001px) {
  #suggestTop .sug-item {
    justify-content: center !important;
    padding: 0 8px !important;
    text-align: center !important;
  }

  #suggestTop .sug-txt {
    flex: 0 1 auto !important;
    font-size: 0.76rem !important;
  }

  #suggestTop .sug-badge {
    display: none !important;
  }
}

@media (min-width: 1001px) {
  #suggestTop .sug-item:first-child:hover .sug-badge,
  #suggestTop .sug-item:first-child:focus-visible .sug-badge {
    color: #6b7280 !important;
  }
}

/* FINAL FIX - suggestion text cannot touch OPTION badge */
@media (min-width: 1001px) {
  .suggest-list:not(.suggest-list--popular) .sug-item {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 245px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .suggest-list:not(.suggest-list--popular) .sug-txt {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 165px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .suggest-list:not(.suggest-list--popular) .sug-badge {
    flex: 0 0 auto !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
  }
}

/* FINAL HARD FIX - force suggestion chip text to truncate before badge */
@media (min-width: 1001px) {
  #suggestTop .sug-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 6px !important;

    width: 205px !important;
    max-width: 205px !important;
    min-width: 0 !important;

    overflow: hidden !important;
  }

  #suggestTop .sug-txt {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #suggestTop .sug-badge {
    display: block !important;
    min-width: max-content !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

/* Premium hover effect */
.sug-item {
  position: relative;
}

.sug-item:hover .sug-badge {
  display: none;
}

.sug-item:hover .sug-txt {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap;
}

/* FINAL HOVER FIX - show full suggestion text on hover */
@media (min-width: 1001px) {
  #suggestTop {
    overflow: visible !important;
  }

  #suggestTop .sug-item {
    position: relative !important;
    z-index: 1 !important;
  }

  #suggestTop .sug-item:hover {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    z-index: 50 !important;
  }

  #suggestTop .sug-item:hover .sug-badge {
    display: none !important;
  }

  #suggestTop .sug-item:hover .sug-txt {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   MOBILE PRODUCT RESULTS
   Compact, readable catalog rows with a full-width buy action.
   ========================================================= */

.prod-model {
  display: none;
}

@media (max-width: 760px) {
  #prodResults .prod-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    border-color: #d7e3ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(7, 31, 54, 0.06) !important;
  }

  #prodResults .prod-item::before {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.05), transparent 48%) !important;
    opacity: 1 !important;
  }

  #prodResults .prod-item::after {
    background: var(--brand-blue, #0078b8) !important;
  }

  #prodResults .prod-item[aria-selected='true'],
  #prodResults .prod-item:hover,
  #prodResults .prod-item:focus-within {
    border-color: rgba(0, 120, 184, 0.46) !important;
    box-shadow: 0 8px 22px rgba(7, 31, 54, 0.11) !important;
  }

  #prodResults .prod-link {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 12px !important;
    align-items: start !important;
    gap: 11px !important;
    cursor: pointer !important;
  }

  #prodResults .prod-thumb {
    width: 76px !important;
    height: 76px !important;
    padding: 6px !important;
    background: linear-gradient(145deg, #fff, #f3f9fc) !important;
    border-color: #dce7ee !important;
    border-radius: 9px !important;
  }

  #prodResults .text-wrap {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 4px !important;
  }

  #prodResults .prod-name {
    display: -webkit-box !important;
    order: 1 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #10243a !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  #prodResults .prod-name::before {
    content: none !important;
  }

  #prodResults .prod-desc {
    display: -webkit-box !important;
    order: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #10243a !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  #prodResults .prod-model {
    display: block !important;
    order: 3 !important;
    overflow: hidden !important;
    color: #6d7b88 !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #prodResults .prod-model[hidden] {
    display: none !important;
  }

  #prodResults .prod-model::before {
    content: 'SKU: ';
    color: #425668;
    font-weight: 850;
  }

  #prodResults .prod-mobile-price {
    order: 4 !important;
    margin-top: 2px !important;
    color: var(--brand-blue-dark, #005f8f) !important;
    font-size: 0.92rem !important;
  }

  #prodResults .prod-card-purchase {
    display: block !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 12px 12px 99px !important;
    transform: none !important;
  }

  #prodResults .prod-card-toolbar {
    display: grid !important;
    grid-template-columns: 102px minmax(112px, 1fr) !important;
    min-height: 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  #prodResults .prod-card-purchase .qty-wrap {
    width: 102px !important;
    height: 40px !important;
    border-color: #cfdde6 !important;
    background: #fff !important;
  }

  #prodResults .prod-card-purchase .qty-btn,
  #prodResults .prod-card-purchase .qty-input {
    height: 40px !important;
    color: #10243a !important;
  }

  #prodResults .prod-card-purchase .qty-btn {
    background: #eef7fb !important;
  }

  #prodResults .prod-card-purchase .add-cart-btn {
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    color: #fff !important;
    background: var(--brand-blue, #0078b8) !important;
    box-shadow: 0 5px 12px rgba(0, 120, 184, 0.2) !important;
  }

  #prodResults .prod-card-purchase .add-cart-btn:hover,
  #prodResults .prod-card-purchase .add-cart-btn:focus-visible {
    background: var(--brand-blue-dark, #005f8f) !important;
  }
}

@media (max-width: 380px) {
  #prodResults .prod-link {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  #prodResults .prod-thumb {
    width: 64px !important;
    height: 64px !important;
  }

  #prodResults .prod-card-purchase {
    padding-left: 87px !important;
  }
}

/* =========================================================
   DESKTOP RESULT + PREVIEW GEOMETRY
   Keep variable catalog text from moving purchase controls.
   ========================================================= */

@media (min-width: 1001px) {
  .prod-results {
    height: 400px !important;
    max-height: 400px !important;
  }

  #prodResults .prod-name {
    display: none !important;
  }

  #prodResults .prod-model {
    display: block !important;
    order: 2 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: #6b7280 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #prodResults .prod-model::before {
    content: 'SKU: ';
    color: #4d4e5e;
    font-weight: 800;
  }

  .pv-name {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  #basicPreview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pv-card {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr) !important;
    align-items: center !important;
    column-gap: 28px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .pv-card__media {
    align-self: center !important;
    padding: 0 !important;
  }

  .pv-card__content {
    align-self: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .pv-frame {
    width: min(100%, 290px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    margin: auto !important;
  }

  .pv-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* =========================================================
   DENTAL SEARCH START STATE
   Full-width initial view with a mobile-safe, single-view layout.
   ========================================================= */

.search-start[hidden],
.basic-dropdown.is-initial #suggestMount,
.basic-dropdown.is-initial .basic-cats-bar,
.basic-dropdown.is-initial .tri-grid {
  display: none !important;
}

.search-start {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, .65fr);
  width: min(1320px, calc(100vw - 120px));
  min-width: 0;
  min-height: 100%;
  flex: 1 0 auto;
  align-items: center;
  gap: clamp(38px, 4vw, 76px);
  margin: 0 auto;
  padding: 38px 30px 40px;
  box-sizing: border-box;
}

.search-start__main,
.search-start__aside {
  min-width: 0;
}

.search-start__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--brand-blue, #0078b8);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.search-start__eyebrow i {
  color: var(--brand-cyan, #00aeef);
}

.search-start h2 {
  margin: 0;
  color: var(--brand-navy, #062743);
  font-size: clamp(1.9rem, 2.4vw, 2.65rem);
  line-height: 1.08;
}

.search-start__intro {
  max-width: 800px;
  margin: 11px 0 24px;
  color: #596b7e;
  font-size: .96rem;
  line-height: 1.5;
}

.search-start__examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.search-start__examples button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  gap: 4px 14px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid #d3e0e9;
  border-radius: 9px;
  background: linear-gradient(115deg, #fff 0%, #fff 68%, #edf8fc 100%);
  color: var(--brand-navy, #062743);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(7, 31, 54, .05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-start__examples button::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--brand-cyan, #00aeef), var(--brand-blue, #0078b8));
}

.search-start__examples button span {
  grid-column: 1;
  color: #647689;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.search-start__examples button strong {
  grid-column: 1;
  min-width: 0;
  font-size: .94rem;
  line-height: 1.2;
  white-space: normal;
}

.search-start__examples button i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--brand-blue, #0078b8);
  font-size: .78rem;
}

.search-start__examples button:hover,
.search-start__examples button:focus-visible {
  border-color: rgba(0, 120, 184, .48);
  outline: 0;
  box-shadow: 0 8px 18px rgba(0, 95, 143, .11);
  transform: translateY(-1px);
}

.search-start__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(30px, 3vw, 52px);
  border-left: 1px solid #dce6ed;
}

.search-start__recent {
  margin-bottom: 21px;
}

.search-start__recent > span {
  display: block;
  margin-bottom: 8px;
  color: #68798b;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.search-start__recent button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d5e1e9;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--brand-navy, #062743);
  text-align: left;
  cursor: pointer;
}

.search-start__recent button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-start__recent button:hover,
.search-start__recent button:focus-visible {
  border-color: rgba(0, 120, 184, .45);
  background: #eef8fc;
  outline: 0;
}

.search-start__help {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.search-start__help-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 174, 239, .25);
  border-radius: 9px;
  background: #eef9fd;
  color: var(--brand-blue, #0078b8);
  font-size: 1rem;
}

.search-start__help strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--brand-navy, #062743);
  font-size: .96rem;
}

.search-start__help p {
  margin: 0;
  color: #647588;
  font-size: .82rem;
  line-height: 1.45;
}

.search-start__advisor,
.search-start__browse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
}

.search-start__advisor {
  min-height: 46px;
  margin-top: 19px;
  padding: 10px 15px;
  border: 1px solid var(--brand-blue, #0078b8);
  border-radius: 8px;
  background: var(--brand-blue, #0078b8);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(0, 120, 184, .18);
}

.search-start__advisor:hover,
.search-start__advisor:focus-visible {
  background: var(--brand-blue-dark, #005f8f);
  outline: 2px solid rgba(0, 120, 184, .2);
  outline-offset: 2px;
}

.search-start__browse {
  align-self: flex-start;
  margin-top: 14px;
  color: var(--brand-blue-dark, #005f8f);
  font-size: .82rem;
  font-weight: 850;
}

.search-start__browse:hover,
.search-start__browse:focus-visible {
  color: var(--brand-navy, #062743);
  text-decoration: underline;
  outline: 0;
}

@media (max-width: 1500px) and (min-width: 1201px) {
  .search-start {
    width: min(1200px, calc(100vw - 78px));
  }
}

@media (max-width: 1200px) and (min-width: 1001px) {
  .search-start {
    width: calc(100vw - 78px);
  }
}

@media (max-width: 1000px) {
  .basic-dropdown.is-initial {
    height: min(760px, calc(100dvh - 72px)) !important;
    max-height: calc(100dvh - 72px) !important;
    overscroll-behavior: contain;
  }

  .search-start {
    display: block;
    width: calc(100vw - 32px);
    min-height: 100%;
    margin: 0 auto;
    padding: 20px 12px max(96px, calc(28px + env(safe-area-inset-bottom, 0px)));
  }

  .search-start h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .search-start__intro {
    margin: 9px 0 18px;
    font-size: .86rem;
    line-height: 1.45;
  }

  .search-start__examples {
    gap: 8px;
  }

  .search-start__examples button {
    min-height: 72px;
    gap: 3px 8px;
    padding: 10px 11px;
  }

  .search-start__examples button span {
    font-size: .57rem;
  }

  .search-start__examples button strong {
    font-size: .82rem;
  }

  .search-start__aside {
    margin-top: 20px;
    padding: 20px 0 0;
    border-top: 1px solid #dce6ed;
    border-left: 0;
  }

  .search-start__recent {
    margin-bottom: 17px;
  }

  .search-start__help p {
    font-size: .78rem;
  }

  .search-start__advisor {
    margin-top: 16px;
  }

  body:has(#searchOverlay.open) .ask-hkx-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
  }
}

@media (max-width: 350px) {
  .search-start__examples {
    grid-template-columns: 1fr;
  }
}
