/* Om Glow — wholesale quote builder (/quote) */

.qb-head { padding-bottom: 1.25rem; }
.qb-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.qb-steps a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; }
.qb-steps a:hover { border-color: var(--brass); }
.qb-steps span, .qb-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: var(--on-deep); font: 600 .78rem/1 var(--sans); flex-shrink: 0; }
.qb-sent { margin-top: 1.5rem; }

.qb-step-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.qb-step-head .qb-num { width: 38px; height: 38px; font-size: 1rem; background: linear-gradient(135deg, #d6a64a, var(--brass) 50%, #9c6f22); color: #fff; }
.qb-step-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: .2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.qb-step-head p { margin: 0; }
.qb-count-pill { font: 600 .78rem/1 var(--sans); padding: .35rem .7rem; border-radius: 999px; background: var(--deep); color: var(--on-deep); letter-spacing: .02em; }

/* Step 1: picker */
.qb-picker { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.qb-picker > * { min-width: 0; }
@media (min-width: 900px) {
  .qb-picker { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .qb-cats { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.qb-search input { width: 100%; font: inherit; padding: .8rem 1rem .8rem 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a6420' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") .9rem 50% no-repeat; color: var(--ink); }
.qb-search input:focus { outline: 2px solid var(--brass); border-color: transparent; }
.qb-cats ul { list-style: none; margin: .9rem 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
@media (min-width: 900px) { .qb-cats ul { flex-direction: column; overflow: visible; } }
.qb-cats button { width: 100%; display: flex; justify-content: space-between; gap: .75rem; white-space: nowrap; text-align: left; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.qb-cats button span { color: var(--muted); font-size: .8rem; }
.qb-cats button:hover { border-color: var(--brass); }
.qb-cats button.is-active { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.qb-cats button.is-active span { color: var(--brass-light); }
.qb-only-added { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); cursor: pointer; }

.qb-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 640px) { .qb-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1rem; } }
.qb-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.qb-card[hidden] { display: none; }
.qb-card:has(.is-added) { border-color: var(--brass); box-shadow: 0 0 0 2px rgba(184, 134, 47, .25); }
.qb-card-img { display: block; aspect-ratio: 1; background: var(--tint); }
.qb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.qb-card-body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.qb-card-body small { font-size: .7rem; color: var(--muted); letter-spacing: .02em; }
.qb-card-body strong { font: 600 1.12rem/1.2 var(--serif); }
.qb-moq { font-size: .75rem; color: var(--brass-dark); font-weight: 600; margin-bottom: .5rem; }
.qb-card .quote-add-sm { margin: auto 0 0; width: 100%; justify-content: center; text-align: center; padding: .55rem .6rem; }
.qb-none { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

/* Step 2: quantities table */
.qb-table[hidden], .qb-none[hidden] { display: none; }
.qb-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1.2fr) 110px 110px minmax(0, 1.5fr) 40px; gap: .8rem; align-items: center; }
.qb-size select { font-weight: 600; }
.qb-size input { margin-top: .35rem; }
.qb-size input[hidden] { display: none; }
.qb-another { display: inline-block; margin-top: .3rem; padding: 0; border: 0; background: none; color: var(--brass-dark); font: 600 .78rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qb-another[hidden] { display: none; }
.qb-row-head { padding: 0 .9rem .5rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qb-line { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; }
.qb-prod { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.qb-prod img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--tint); flex-shrink: 0; }
.qb-prod a { display: block; font: 600 1.15rem/1.2 var(--serif); text-decoration: none; }
.qb-prod small { color: var(--muted); font-size: .78rem; }
.qb-field { display: grid; gap: .25rem; position: relative; }
.qb-field span { display: none; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qb-field input, .qb-field select { width: 100%; font: inherit; font-size: .95rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.qb-field input:focus, .qb-field select:focus { outline: 2px solid var(--brass); border-color: transparent; }
.qb-warn { font-style: normal; font-size: .72rem; color: #b45309; }
@media (max-width: 860px) {
  .qb-row-head { display: none; }
  .qb-row { grid-template-columns: 1fr 1fr; }
  .qb-prod { grid-column: 1 / -1; padding-right: 2.5rem; }
  .qb-field span { display: block; }
  .qb-size { grid-column: 1 / -1; }
  .qb-field:last-of-type { grid-column: 1 / -1; }
  .qb-line { position: relative; }
  .qb-line .ql-remove { position: absolute; top: .7rem; right: .7rem; }
}

/* Steps 3 & 4 */
.qb-two { display: grid; gap: 2rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 960px) { .qb-two { grid-template-columns: 1.15fr 1fr; align-items: start; } #qb-contact { position: sticky; top: calc(var(--header-h) + 1rem); } }
.qb-form { box-shadow: none; }
.qb-form small { display: block; font-weight: 400; }
.qb-check { display: flex !important; align-items: center; gap: .5rem; align-self: end; padding-bottom: .8rem; }
.qb-check input { width: auto !important; }
.qb-summary { display: grid; gap: .15rem; padding: .85rem 1rem; border-radius: 10px; background: var(--tint); font-size: .9rem; }
.qb-summary span { color: var(--muted); font-size: .85rem; }
.qb-form .btn { width: 100%; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Floating "Review & send" bar while browsing */
.qb-float { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 65; display: flex; gap: 1.25rem; align-items: center; padding: .85rem 1.25rem; border-radius: 999px; background: var(--deep); color: var(--on-deep); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: .92rem; white-space: nowrap; }
.qb-float[hidden] { display: none; }
.qb-float span:last-child { color: var(--brass-light); font-weight: 700; }
@media (max-width: 560px) { .qb-float { left: .75rem; right: .75rem; transform: none; justify-content: space-between; bottom: .75rem; } }

/* Brief highlight when the buyer lands straight on their list */
.qb-arrived .qb-line { animation: qb-arrive 1.4s ease; }
@keyframes qb-arrive { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(184, 134, 47, .45); } }
