/* =========================================================
   Wholesale page. Loaded after business.css (same look),
   adds the price tiers, the catalogue and the order summary.
   ========================================================= */

/* ---------- How the prices work ---------- */
.w-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1000px; margin-inline: auto; }
.w-step {
  padding: 2.2rem 2rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-align: center;
}
.w-step:nth-child(3) { background: var(--wine); border-color: var(--wine); color: var(--light); }
.w-step:nth-child(3) p { color: rgba(250, 246, 241, .75); }
.w-step-n { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--rose); margin-bottom: .8rem; font-variant-numeric: lining-nums; }
.w-step:nth-child(3) .w-step-n { color: var(--blush); }
.w-step h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.w-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.w-steps-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 2rem 0 0; }

/* ---------- Catalogue ---------- */
.w-head-note { color: var(--muted); margin: .4rem 0 0; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.w-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .4s var(--ease), border-color .4s;
}
.w-card:hover { box-shadow: var(--shadow); }
.w-card.chosen { border-color: var(--rose); }
.w-img { aspect-ratio: 4 / 3; border-radius: 0; }
.w-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.w-body h3 { margin-bottom: .3rem; font-size: 1.55rem; }
.w-body > p { margin: 0 0 1.2rem; color: var(--muted); font-size: .94rem; }

.w-tiers { width: 100%; border-collapse: collapse; margin: auto 0 1.2rem; font-size: .93rem; }
.w-tiers caption { text-align: left; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: .4rem; }
.w-tiers th, .w-tiers td { padding: .45rem .7rem; border-top: 1px solid var(--line); transition: background .3s, color .3s; }
.w-tiers th { text-align: left; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.w-tiers td { text-align: right; font-family: var(--serif); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.w-tiers tr:last-child td { color: var(--rose-deep); }
.w-tiers tr.on th, .w-tiers tr.on td { background: var(--rose-deep); color: var(--cream); }
.w-tiers tr.on th { border-radius: 10px 0 0 10px; }
.w-tiers tr.on td { border-radius: 0 10px 10px 0; }

.w-qty { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.w-qty button {
  height: 44px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .3s, color .3s;
}
.w-qty button:hover { background: var(--rose-deep); color: var(--cream); }
.w-qty input {
  width: 100%; height: 44px; border: 0; background: transparent; text-align: center;
  font: inherit; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.w-qty input::-webkit-outer-spin-button, .w-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.w-qty input:focus { outline: none; background: var(--cream-deep); }
.w-qty button:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }

.w-card--custom { justify-content: center; background: transparent; border-style: dashed; }
.w-card--custom .w-body { justify-content: center; text-align: center; align-items: center; }
.w-card--custom h3 em { color: var(--rose); }
.w-card--custom .btn { margin-top: .4rem; }

/* ---------- Trade terms ---------- */
.w-terms-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.w-terms-lead { color: var(--muted); }

/* ---------- Order summary (inside the form) ---------- */
.w-summary { margin-bottom: 2rem; padding: 1.3rem 1.4rem; border-radius: 16px; background: var(--cream-deep); }
.w-summary-title { margin: 0 0 .6rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-deep); }
.w-lines { list-style: none; margin: 0; padding: 0; }
.w-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.w-lines small { display: block; color: var(--muted); font-size: .82rem; }
.w-lines strong { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-empty { margin: 0; color: var(--muted); font-size: .93rem; }
.w-empty a { color: var(--rose-deep); border-bottom: 1px solid var(--blush); }
.w-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .8rem; }
.w-total strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.w-total[hidden], .w-saved[hidden], .w-empty[hidden] { display: none; }
.w-saved { margin: .3rem 0 0; color: var(--sage); font-size: .9rem; }

@media (max-width: 1000px) {
  .w-grid { grid-template-columns: repeat(2, 1fr); }
  .w-terms-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .w-steps, .w-grid { grid-template-columns: 1fr; }
  .w-step { padding: 1.8rem 1.4rem; }
}
