/* AJAW Trade — Request for Quotation.
   Pairs with public/rfq.js. Tokens come from :root in style.css. Dense and
   comparable rather than airy: the brief is a working document and the board
   exists to be read across, the way a buyer actually reads competing prices. */

.rfq-page { padding-top: 34px; }

/* ---------- brief form (buyer) ---------- */
.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.rfq-form { display: grid; gap: 4px; min-width: 0; }
.rfq-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.rfq-form > .btn { justify-self: start; margin-top: 18px; }

.rfq-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 12px;
}
.rfq-step:first-child { margin-top: 4px; }
.rfq-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}
.rfq-step b { display: block; font-size: 14px; color: var(--ink); }
.rfq-step small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.rfq-submit { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.rfq-submit small { font-size: 11px; color: var(--muted); }

.rfq-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--deep);
  font-size: 12px;
  line-height: 1.7;
}
.rfq-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ---------- rail (right column of the buyer brief) ---------- */
.rfq-rail { display: grid; gap: 14px; position: sticky; top: 96px; }
.rfq-rail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.rfq-rail-card h3 { margin: 0 0 12px; font-size: 13px; }
.rfq-rail-card h3 .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--violet); }
.rfq-rail-steps { display: grid; gap: 12px; }
.rfq-rail-steps > div { display: flex; gap: 10px; align-items: flex-start; }
.rfq-rail-steps > div > .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--violet); }
.rfq-rail-steps b { display: block; font-size: 12px; line-height: 1.45; }
.rfq-rail-steps small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.rfq-rail-protect p { margin: 0 0 8px; font-size: 12px; line-height: 1.7; color: var(--gray); }
.rfq-rail-protect small { font-size: 11px; line-height: 1.6; color: var(--muted); }

/* ---------- brief panel ---------- */
.rfq-brief { margin-bottom: 0; }
.rfq-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.rfq-brief-head h2 { margin: 0; font-size: 17px; }
.rfq-cat { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.rfq-brief p { font-size: 13px; line-height: 1.8; color: var(--gray); }
.rfq-side { margin: 0 0 8px !important; }
.rfq-brief-details {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--canvas);
}
.rfq-brief-details p { margin: 0; }

/* ---------- comparison bar ---------- */
.rfq-compare-bar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
.rfq-compare-bar b { font-family: var(--display); font-size: 14px; font-weight: 600; }
.rfq-compare-bar .icon { width: 14px; height: 14px; vertical-align: -2px; }
.rfq-compare-bar small { opacity: .75; }

/* ---------- the board ---------- */
.rfq-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}
.rfq-board-title { margin: 0; font-size: 17px; }
.rfq-board-head small { font-size: 12px; color: var(--muted); }
.rfq-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.rfq-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.rfq-quote-won {
  border-color: transparent;
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--violet) inset, 0 1px 0 rgba(62, 52, 249, .14);
}
.rfq-quote > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rfq-quote-supplier { display: flex; gap: 10px; align-items: flex-start; }
.rfq-supplier-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--canvas);
}
.rfq-supplier-ico .icon { width: 17px; height: 17px; color: var(--violet); }
.rfq-quote h3 { margin: 0; font-size: 15px; }
.rfq-quote header small { color: var(--muted); font-size: 11px; }
.rfq-quote p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--gray); }
.rfq-quote-notes { padding-top: 2px; }
.rfq-terms { font-weight: 550; color: var(--ink) !important; }

.rfq-quote-price { display: flex; flex-direction: column; gap: 2px; }
.rfq-quote-price small {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rfq-quote-price b {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.rfq-quote-price b span { font-size: 15px; color: var(--muted); margin-left: 2px; }

.rfq-quote-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rfq-quote-figures dt {
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.rfq-quote-figures dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.rfq-quote > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.rfq-sample {
  font-size: 11px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.rfq-sample .icon { width: 13px; height: 13px; color: var(--green); }

/* ---------- supplier reply ---------- */
.rfq-supplier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.rfq-quote-panel .rfq-step { margin-top: 0; }
.rfq-quote-panel .rfq-terms { margin: 0 0 14px; }
.rfq-quote-panel .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

/* ---------- lists ---------- */
.rfq-list { display: grid; gap: 10px; }
.rfq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.rfq-row h3 { margin: 0 0 5px; font-size: 14px; }
.rfq-row small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.rfq-row-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
}
.rfq-row-end .icon { width: 16px; height: 16px; color: var(--muted); }

@media (max-width: 700px) {
  .rfq-page { padding-top: 22px; }
  .rfq-layout { grid-template-columns: 1fr; gap: 18px; }
  .rfq-rail { position: static; }
  .rfq-form .form-grid { grid-template-columns: 1fr; gap: 0; }
  .rfq-form > .btn { justify-self: stretch; min-height: 48px; }
  .rfq-board { grid-template-columns: 1fr; }
  .rfq-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rfq-row { flex-wrap: wrap; gap: 10px; }
  .rfq-row-end { width: 100%; justify-content: space-between; }
  .rfq-quote > footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .rfq-quote > footer .btn { min-height: 44px; }
  .rfq-supplier-layout { grid-template-columns: 1fr; }
  .rfq-quote-panel .form-grid { grid-template-columns: 1fr; gap: 0; }
  .rfq-compare-bar { gap: 4px 12px; padding: 14px 16px; }
  .rfq-board-head { flex-direction: column; gap: 2px; }
}
/* ---------------------------------------------------------------------------
   Product page: the decision above the fold.
   A wholesale buyer decides on minimum, customization, origin and whether the
   money is safe. Those sit with the price instead of below a long description.
   --------------------------------------------------------------------------- */
.pdp-price-note { font-size: 13px; line-height: 1.75; color: var(--gray); margin: 6px 0 18px; }

.pdp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-fact dt {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-fact dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.pdp-fact small { display: block; margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }

.pdp-chip-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pdp-chip-row > b { flex: 0 0 74px; font-size: 12px; }
.pdp-chip-row > b small { color: var(--muted); font-weight: 500; }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pdp-chips > span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
}
.pdp-chip-more { color: var(--muted) !important; border-style: dashed !important; }

.pdp-actions { display: grid; gap: 10px; margin: 20px 0 14px; }
.pdp-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-actions-row .btn { min-height: 44px; }

.pdp-protection {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--deep);
  font-size: 12px;
  line-height: 1.65;
}
.pdp-protection .icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.pdp-protection b { display: block; font-size: 12.5px; }

@media (max-width: 980px) { .pdp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pdp-facts { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; margin-bottom: 14px; }
  .pdp-fact dd { font-size: 14px; }
  .pdp-chip-row { flex-direction: column; gap: 6px; }
  .pdp-chip-row > b { flex: none; }
  .pdp-actions-row { grid-template-columns: 1fr; }
  .pdp-actions .btn { min-height: 48px; }
  .pdp-price-note { font-size: 12px; margin-bottom: 14px; }
}

/* The fold at 1440x900 ended 18px short of the protection line, which is the
   single most persuasive thing on the page. Tightening the rhythm - not
   shrinking the content - brings it in without crowding anything. */
.retail-layout .product-detail h1 { font-size: 29px; line-height: 1.18; margin: 8px 0 0; }
.retail-layout .product-detail .tags { margin: 12px 0 0; }
.retail-layout .retail-price { margin: 14px 0 0; }
.retail-layout .pdp-price-note { margin: 6px 0 14px; }
.retail-layout .pdp-facts { padding: 14px 0; margin-bottom: 16px; }
.retail-layout .pdp-actions { margin: 16px 0 12px; }
@media (max-width: 700px) { .retail-layout .product-detail h1 { font-size: 22px; } }
