/* Fonts come from layouts.app (DM Serif Display + Inter) — no per-page imports. */

:root {
  --rfqb-gold: #E0BB7F;
  --rfqb-gold-dark: #c9a55c;
  --rfqb-gold-wash: rgba(224, 187, 127, 0.12);
  --rfqb-ink: #2c2417;
  --rfqb-muted: #857a68;
  --rfqb-cream: #faf8f5;
  --rfqb-border: #e8e0d4;
  --rfqb-font-display: var(--font-display);
  /* Shared horizontal inset so the hero, section headings and card rows
     all line up on the same left/right edges. */
  --rfqb-gutter: 40px;
}

@media (max-width: 640px) {
  :root {
    --rfqb-gutter: 20px;
  }
}

.sidebar_container {
  width: 100%;
  min-width: 277px;
  max-width: 300px;
  background-color: #ffffff;
  font-family: var(--font-ui);
  font-size: var(--product-meta-size);
  color: var(--rfqb-ink);
  display: block;
  /* margin-top: 20px; */
  margin-bottom: 20px;
  border: 1px solid #e2d9c8;
  /* border-radius: 14px; */
  box-shadow: 0 2px 12px rgba(44, 36, 23, 0.05);
  align-self: flex-start;
  overflow: hidden;
}

.rfq-section-title {
  font-family: var(--font-ui);
  font-size: var(--ui-heading-size);
  font-weight: 600;
  color: var(--rfqb-ink);
  margin-bottom: 10px;
  margin-top: 4px;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rfq-stats-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.rfq-stat-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--rfqb-border);
  border-radius: 14px;
  border-left: 3px solid var(--rfqb-gold);
  padding: 12px 8px 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(44, 36, 23, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rfq-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 36, 23, 0.1);
}

.rfq-stat-icon {
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
}

.rfq-stat-icon svg,
.rfq-stat-icon i {
  fill: var(--rfqb-gold-dark) !important;
  color: var(--rfqb-gold-dark) !important;
}

.rfq-stat-number {
  font-family: var(--font-ui);
  font-size: var(--product-price-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--rfqb-ink);
  line-height: 1.1;
}

.rfq-stat-label {
  font-size: var(--eyebrow-size);
  color: var(--rfqb-muted);
  margin-top: 2px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.rfq-plus {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.rfq-divider {
  border: none;
  border-top: 1px solid var(--rfqb-border);
  margin: 8px 10px;
}

.rfq-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-left: 10px;
}

.rfq-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rfq-checkbox-label,
.rfq-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.rfq-checkbox,
.rfq-radio {
  display: none;
}

.rfq-checkmark {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid #c9bfa8;
  border-radius: 3px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.rfq-checkbox:checked+.rfq-checkmark {
  background: var(--rfqb-gold);
  border-color: var(--rfqb-gold-dark);
}

.rfq-checkbox:checked+.rfq-checkmark::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.rfq-radiomark {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid #c9bfa8;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: border-color 0.15s;
}

.rfq-radio:checked+.rfq-radiomark {
  border-color: var(--rfqb-gold-dark);
  background: var(--rfqb-gold);
}

.rfq-radio:checked+.rfq-radiomark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.rfq-filter-text {
  font-size: var(--body-size);
  color: var(--rfqb-ink);
  font-weight: 500;
  line-height: 1.3;
}

.rfq-count {
  font-size: var(--result-count-size);
  color: var(--rfqb-muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  background: var(--rfqb-gold-wash);
}

.rfq-count.empty {
  background: transparent;
  color: #bbb;
}

.rfq-search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.rfq-search-input {
  width: 100%;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--rfqb-border);
  border-radius: 8px;
  font-size: var(--form-size);
  background: #fff;
  color: var(--rfqb-ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.rfq-search-input:focus {
  border-color: var(--rfqb-gold);
}

.rfq-search-icon {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.rfq-reset-link,
.shop-sidebar-clear {
  color: var(--rfqb-gold-dark);
  font-size: var(--text-link-size);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.rfq-reset-link:hover,
.shop-sidebar-clear:hover {
  text-decoration: underline;
  color: var(--rfqb-ink);
}

.rfq-sidebar .widget-title {
  font-family: var(--font-ui);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  color: var(--rfqb-ink);
}

.rfq-sidebar .collapsible-header {
  color: var(--rfqb-ink);
}

.rfq-sidebar .collapsible-header i {
  color: var(--rfqb-gold-dark) !important;
}

/* ==== Main Content: Hero / CTA ==== */

.rfq-board-hero {
  /* Outer box is inset by the same gutter as everything else below it,
     so its border lines up with the section headings / card edges. */
  margin: 20px var(--rfqb-gutter) 0;
  background: linear-gradient(120deg, #ffffff 55%, var(--rfqb-cream) 100%);
  border: 1px solid var(--rfqb-border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(44, 36, 23, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.rfq-board-hero__watermark {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-size: 210px;
  color: var(--rfqb-gold);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.rfq-board-hero__content {
  position: relative;
  z-index: 1;
  flex: 1 1 380px;
  min-width: 0;
  text-align: left;
}

.rfq-board-hero__title {
  font-family: var(--font-display);
  font-size: var(--page-title-size);
  font-weight: 400;
  color: var(--rfqb-ink);
  margin: 4px 0 10px;
  line-height: 1.05;
}

.rfq-board-hero__subtitle {
  font-size: var(--hero-text-size);
  color: var(--rfqb-muted);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

.rfq-board-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rfq-board-hero__cta {
  font-size: var(--button-size);
  padding: 10px 22px;
  white-space: nowrap;
}

.rfq-board-hero__hint {
  font-size: var(--product-meta-size);
  color: var(--rfqb-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .rfq-board-hero {
    margin-left: var(--rfqb-gutter);
    margin-right: var(--rfqb-gutter);
    padding: 22px 20px;
    text-align: center;
  }

  .rfq-board-hero__content {
    text-align: center;
  }

  .rfq-board-hero__subtitle {
    max-width: none;
  }

  .rfq-board-hero__actions {
    width: 100%;
  }

  .rfq-board-hero__cta {
    width: 100%;
  }

  .rfq-board-hero__title {
    font-size: var(--page-title-size);
  }

  .rfq-board-hero__watermark {
    display: none;
  }
}

/* ==== Section headings above each carousel ==== */

.rfq-board-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding: 0 var(--rfqb-gutter);
}

.rfq-board-section-head__title {
  font-family: var(--font-display);
  font-size: var(--section-title-size);
  font-weight: 400;
  line-height: 1.1;
  color: var(--rfqb-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rfq-board-section-head__title i {
  color: var(--rfqb-gold-dark);
  font-size: var(--section-title-size);
}

@media (max-width: 480px) {
  .rfq-board-section-head__title {
    font-size: var(--section-title-size);
  }
}


/* ==== Product Cards ====
   The card fills its Embla slide 1:1 — the slide (further down) owns the
   "3 per view" width math, the card itself just needs to fill it. */
.rfq-product-card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--rfqb-border);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(44, 36, 23, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rfq-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(44, 36, 23, 0.12);
}

.rpc-image-wrap {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: var(--rfqb-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpc-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.rfq-product-card:hover .rpc-image {
  transform: scale(1.05);
}

/* Now sits in the card body (above the title), not layered over the photo. */
.rpc-top-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rpc-bids-badge {
  align-self: flex-start;
  /* background: var(--rfqb-cream); */
  background: #ebd8c2;
  color: var(--rfqb-ink);
  font-size: var(--verification-badge-size);
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.rpc-top-badges .rpc-bids-badge {
  margin-bottom: 0;
}

.rpc-bids-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--rfqb-gold-dark);
  display: inline-block;
}

.rpc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rpc-title {
  font-family: var(--font-ui);
  font-size: var(--product-title-size);
  font-weight: 600;
  color: var(--rfqb-ink);
  margin: 0 0 10px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpc-title--clickable {
  cursor: pointer;
}

.rpc-title--clickable:hover {
  color: var(--rfqb-gold-dark);
  text-decoration: underline;
}

.rfq-name-modal__text {
  font-family: var(--font-ui);
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--rfqb-ink);
  margin: 0;
  line-height: 1.4;
}

.rpc-details {
  flex: 1;
  margin-bottom: 14px;
}

.rpc-detail-row {
  padding: 5px 0;
}

.rpc-detail-text {
  font-size: var(--body-size);
  color: var(--rfqb-muted);
  line-height: 1.4;
}

.rpc-hr {
  border: none;
  border-top: 1px dashed var(--rfqb-border);
  margin: 0;
}

.rpc-footer {
  margin-top: 10px;
}

.rpc-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--rfqb-gold) 0%, var(--rfqb-gold-dark) 100%);
  color: #1a1305;
  font-size: var(--button-size);
  font-weight: 600;
  padding: 8px 0;
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
  margin-top: auto;
}

.rpc-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--rfqb-gold-dark) 0%, var(--rfqb-gold) 100%);
  color: #1a1305;
  text-decoration: none;
}

#hamburger-btn {
  display: none;
  background: linear-gradient(135deg, var(--rfqb-gold) 0%, var(--rfqb-gold-dark) 100%);
  border: none;
  cursor: pointer;
}

.close_btn,
.clear_btn,
.apply_btn {
  padding: 7px 16px;
  font-size: var(--button-size);
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 5px;
}

.close_btn {
  border: 1px solid #d33;
  background: #fff;
  color: #d33;
}

.clear_btn {
  border: 1px solid var(--rfqb-border);
  background: #fff;
  color: var(--rfqb-muted);
}

.apply_btn {
  border: 1px solid var(--rfqb-gold);
  background: var(--rfqb-gold);
  color: #1a1305;
}

.buttons_container {
  display: none !important;
}

/* ==== Requests Carousel ====
   Embla + Alpine (rfqRequestsCarousel(), carousel-scroll.js) — the same
   engine/pattern as the Featured Shops carousel on the stores page. Embla
   owns snapping/measurement itself, so this only needs to describe how
   many slides fit per view and the surrounding chrome (nav buttons, dots). */

/* .ps-layout--shop (shared theme CSS) is display:flex; flex-flow:row nowrap
   with the sidebar as one item and .cards_container as the other. A flex
   item's min-width defaults to "auto" (i.e. never shrink below its content's
   natural size), so without min-width:0 here the whole content column — and
   the page itself — was being forced wider than the viewport by its cards
   instead of the cards' percentage widths actually shrinking to fit. */
.cards_container {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

.rfq-requests-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
}

.rfq-requests-carousel__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--rfqb-gutter);
}

.rfq-requests-carousel .embla {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.rfq-requests-carousel .embla__viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 10px 2px;
}

.rfq-requests-carousel .embla__container {
  display: flex;
  gap: 16px;
}

/* Fixed card width (rather than "1 / totalSlides") so a couple of results
   don't stretch into oversized cards — Embla just fits as many as the
   viewport allows and lets the rest scroll, so wider screens naturally
   show more cards instead of fewer, bigger ones. */
.rfq-requests-carousel .embla__slide {
  flex: 0 0 260px;
  min-width: 0;
}

.rfq-requests-carousel .embla__slide--empty {
  flex: 0 0 100%;
}

@media (max-width: 640px) {
  .rfq-requests-carousel .embla__slide {
    flex: 0 0 100%;
  }
}

.rfq-carousel-nav-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(224, 187, 127, 0.6);
  background: #fff;
  color: var(--rfqb-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.rfq-carousel-nav-btn:hover {
  background: linear-gradient(135deg, var(--rfqb-gold) 0%, var(--rfqb-gold-dark) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(201, 151, 76, 0.35);
}

.rfq-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.rfq-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(224, 187, 127, 0.4);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rfq-carousel-dot.active {
  width: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--rfqb-gold) 0%, var(--rfqb-gold-dark) 100%);
}

.embla__slide .rfq-empty-state {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 14px;
  border-color: var(--rfqb-border);
}

.embla__slide .rfq-empty-state i {
  color: var(--rfqb-gold);
  font-size: 22px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.embla__slide .rfq-empty-state__text {
  text-align: left;
}

.embla__slide .rfq-empty-state h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--rfqb-ink);
  font-size: var(--ui-heading-size);
  margin-bottom: 2px;
}

.embla__slide .rfq-empty-state p {
  color: var(--rfqb-muted);
  margin-bottom: 0;
  max-width: 360px;
  font-size: var(--body-size);
}

@media (max-width: 480px) {
  .embla__slide .rfq-empty-state {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .embla__slide .rfq-empty-state__text {
    text-align: center;
  }
}

.rfq-loader {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--rfqb-muted);
  font-size: var(--product-meta-size);
}

.text-muted.rz {
  color: var(--rfqb-muted) !important;
  padding: 30px 0;
}

/* Responsive Styles */
@media (max-width: 991px) {

  #hamburger-btn {
    display: flex;
    z-index: 100;
    margin-top: 20px;
    gap: 5px;
    align-items: center;
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: 20px;
    box-shadow: none;
  }

  #hamburger-btn p {
    color: #1a1305 !important;
    margin: 0;
  }

  #hamburger-btn i {
    color: #1a1305 !important;
  }

  .ps-layout--shop {
    position: relative;
  }

  .sidebar_container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: none;
    margin-top: 0px;
  }

  .sidebar_container.active {
    transform: translateX(0);
    transition: transform 0.3s ease;
  }
}

@media (max-width: 991px) {
  .buttons_container {
    display: flex !important;
  }
}


/* ------------------------------------------------------ */
