/* P05 - Mua sỉ & Xin mẫu */
.ws-hero { background: var(--bg-sunken); font-size: 16px; line-height: 24px; }
.ws-hero__in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.ws-hero__cap { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-strong); }
.ws-hero h1 { max-width: 820px; font-size: 64px; line-height: 1.2; font-weight: 600; letter-spacing: -1.5px; color: var(--text-strong); text-wrap: balance; }
.ws-hero p { max-width: 640px; color: var(--text); }
.ws-hero .fc-btns { gap: 12px; padding-top: 4px; }
.ws-btn-raised { background: var(--bg-raised); }

.ws, .ws-faq { font-size: 16px; line-height: 24px; }
.ws-sec { padding-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.ws-sec--terms { gap: 24px; }
.ws-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.ws-h2 { font-size: 44px; line-height: 1.25; font-weight: 600; letter-spacing: -0.5px; color: var(--text-strong); }
.ws-note { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* Bảng lô */
.ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ws-search { flex: 1 1 280px; max-width: 420px; position: relative; display: flex; align-items: center; color: var(--text-muted); }
.ws-search svg { position: absolute; left: 16px; pointer-events: none; }
.ws-search input { flex: 1 1 auto; min-width: 0; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 99px; padding: 0 18px 0 44px; font-size: 16px; background: var(--bg-raised); color: var(--text-strong); }
.ws-search input::placeholder { color: var(--text-muted); opacity: 1; }
.ws-tools .fc-chip { padding: 0 16px; font-size: 15px; }
.ws-count { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.ws-empty { padding: 28px 20px; border: 1.5px dashed var(--line); border-radius: 20px; text-align: center; font-size: 16px; color: var(--text); }
.ws-tablewrap { overflow-x: auto; border: 1px solid var(--line-subtle); border-radius: 20px; }
.ws-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 22px; text-align: left; }
.ws-table thead tr { background: var(--bg-sunken); }
.ws-table thead th { padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.ws-table tbody tr { border-top: 1px solid var(--line-subtle); }
.ws-table tbody th, .ws-table td { padding: 14px 16px; font-weight: 400; vertical-align: middle; }
.ws-table tbody th, .ws-table tbody th a { font-weight: 600; color: var(--text-strong); text-decoration: none; }
.ws-table tbody th a:hover { text-decoration: underline; }
.ws-lot__kg { color: var(--text-strong); white-space: nowrap; }
.ws-lot__kg strong { font-weight: 600; }
.ws-lot__screen, .ws-lot__st { white-space: nowrap; }
.ws-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok-strong); }
.ws-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ws-st--low { color: #b23a35; }
.ws-st--low i { background: var(--warn); }
.ws-st--out { color: var(--text-muted); }
.ws-st--out i { background: #72767c; }

/* Điều kiện + quy trình */
.ws-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ws-term { border: 1px solid var(--line-subtle); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.ws-term__k { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.ws-term__v { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.ws-term__n { font-size: 14px; line-height: 21px; color: var(--text); }
.ws-flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ws-flow li { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-sunken); border-radius: 20px; }
.ws-flow__n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-inverse); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.ws-flow__txt { display: flex; flex-direction: column; min-width: 0; }
.ws-flow__t { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-strong); }
.ws-flow__d { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* Form */
.ws-formbox { border: 1px solid var(--line-subtle); border-radius: 20px; overflow: hidden; background: var(--bg-raised); }
.ws-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-subtle); }
.ws-tabs button { height: 56px; border: 0; border-bottom: 3px solid transparent; background: var(--bg-raised); color: var(--text-muted); font-size: 16px; font-weight: 600; transition: border-color var(--as-medium) var(--as-ease), color var(--as-medium) var(--as-ease); }
.ws-tabs button[aria-pressed="true"] { border-bottom-color: var(--text-strong); color: var(--text-strong); }
.ws-tabs button:focus-visible { outline-offset: -4px; }
.ws-form { padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.ws-form__wide, .ws-lotpick, .ws-extra, .ws-submit { grid-column: 1 / -1; }
.ws-phone { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px; }
.ws-phone .ws-phone__dial { text-overflow: ellipsis; }
@media (max-width: 560px) { .ws-phone { grid-template-columns: 128px minmax(0, 1fr); } }
.ws-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-lotpick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-lotpick legend { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-strong); padding: 0 0 8px; }
.ws-lotpick legend .fc-req { color: var(--warn); }
.ws-lotpick legend span:last-child { font-weight: 400; color: var(--text-muted); }
.ws-lotpick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-lotchip { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; line-height: 20px; color: var(--text-strong); cursor: pointer; transition: background var(--as-medium) var(--as-ease), border-color var(--as-medium) var(--as-ease); }
.ws-lotchip input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bg-inverse); }
.ws-lotchip em { font-style: normal; color: var(--text-muted); }
.ws-lotchip:hover { border-color: var(--line-strong); }
.ws-lotchip:has(input:checked) { border-color: var(--line-strong); background: var(--accent-alt); }
.ws-lotchip:has(input:focus-visible) { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.ws-lotpick.is-invalid .ws-lotchip { border-color: var(--warn); }
.ws-extra { padding-top: 16px; border-top: 1px solid var(--line-subtle); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text); }
.ws-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.ws-turnstile { min-height: 65px; }

/* Giấy tờ + logo */
.ws-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ws-doc { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line-subtle); border-radius: 18px; color: var(--text-strong); text-decoration: none; }
a.ws-doc:hover { border-color: var(--line-strong); }
.ws-doc svg { flex: none; }
.ws-doc > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ws-doc__t { font-size: 15px; line-height: 22px; font-weight: 600; }
.ws-doc__d { font-size: 12px; line-height: 18px; color: var(--text-muted); }
.ws-doc--wait { border-style: dashed; border-color: var(--line); color: var(--text-muted); }
.ws-doc--wait .ws-doc__t { color: var(--text); }
.ws-logos { margin: 0; padding: 8px 0 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ws-logos li { height: 64px; border: 1px dashed var(--line); border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); }
.ws-logos li.has-img { border: 0; }
.ws-logos img { max-height: 48px; width: auto; }

.ws-wall .fc-wall { margin-top: 48px; }
.ws-faq { max-width: 840px; padding-top: 48px; }
.ws-faq .ws-h2 { margin-bottom: 20px; }

@media (max-width: 860px) {
  .ws-hero__in { padding-top: 32px; padding-bottom: 32px; }
  .ws-hero h1 { font-size: 40px; letter-spacing: -1px; }
  .ws-h2 { font-size: 30px; }
  .ws-search { max-width: none; flex-basis: 100%; }
  .ws-tools .fc-chips { max-width: calc(100% + var(--gutter)); }
  .ws-terms, .ws-flow, .ws-docs { grid-template-columns: minmax(0, 1fr); }
  .ws-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-form { padding: 20px; grid-template-columns: minmax(0, 1fr); gap: 18px; }

  /* Bảng lô thành thẻ */
  .ws-tablewrap { overflow: visible; border: 0; border-radius: 0; }
  .ws-table { min-width: 0; display: block; }
  .ws-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ws-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .ws-table tbody tr { position: relative; display: block; border: 1px solid var(--line-subtle); border-radius: 20px; padding: 14px 16px; }
  .ws-table tbody th, .ws-table td { padding: 0; }
  .ws-table tbody th { display: block; padding-right: 96px; margin-bottom: 6px; }
  .ws-lot__proc, .ws-lot__screen { display: inline; font-size: 13px; line-height: 20px; color: var(--text); white-space: normal; }
  .ws-lot__screen::before { content: "- "; }
  .ws-lot__kg { display: block; margin-top: 6px; font-size: 14px; }
  .ws-lot__st { position: absolute; right: 16px; top: 15px; }
}

/* Ô nhập có viền bo góc theo design P05 (cùng kiểu trang thanh toán). */
.ws-form .fc-input, .ws-form .fc-select, .ws-form .fc-textarea { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background-color: var(--bg-raised); font-size: 16px; line-height: 24px; }
.ws-form .fc-select { background-position: right 12px center; padding-right: 40px; }
.ws-form .fc-input:focus, .ws-form .fc-select:focus, .ws-form .fc-textarea:focus { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.ws-form .fc-field.is-invalid .fc-input, .ws-form .fc-field.is-invalid .fc-select, .ws-form .fc-field.is-invalid .fc-textarea { border-color: var(--warn); }
