/* ==========================================================================
   Quote list page
   ========================================================================== */

.quote-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: 1fr 380px; gap: 40px; align-items: start; } }

.add-code { margin-bottom: 28px; padding: 24px; background: var(--surface-muted); border: 1px solid var(--border); }
.add-code h2 { margin-bottom: 14px; }
.add-code__row { display: grid; gap: 12px; grid-template-columns: 1fr 90px auto; align-items: end; }
.q-msg { margin: 10px 0 0; font-size: .8125rem; min-height: 1em; }
.q-msg--ok { color: var(--green); }
.q-msg--err { color: var(--red); }

.quote-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quote-head h2 { margin: 0; }
.quote-table { min-width: 620px; }
.quote-table td { vertical-align: middle; }
.quote-table td:first-child { white-space: normal; font-weight: 400; }
.q-prod { display: flex; align-items: center; gap: 12px; }
.q-prod img { width: 64px; height: 48px; object-fit: contain; background: var(--surface-muted); border: 1px solid var(--border); mix-blend-mode: multiply; flex-shrink: 0; }
.q-prod a { display: block; font-weight: 600; color: var(--heading); }
.q-prod small { display: block; font-size: .75rem; color: var(--muted); }
.q-code { min-width: 170px; min-height: 38px; padding-block: 6px; font-size: .875rem; }
.q-qty { width: 80px; min-height: 38px; padding-block: 6px; }
.q-remove .icon { font-size: 1.3rem; color: var(--muted); }

@media (min-width: 1000px) { .quote-layout aside { position: sticky; top: calc(var(--header-h) - 8px); } }

/* ---------- Responsive refinements ---------- */
@media (max-width: 599px) {
  .add-code { padding: 18px; }
  .add-code__row { grid-template-columns: 1fr auto; }
  .add-code__row .field:first-child { grid-column: 1 / -1; }
  .add-code__qty .input { width: 100%; }
  .add-code__row .btn { align-self: end; }
}

/* ---------- Cart totals ---------- */
.quote-table { min-width: 760px; }
.q-sku { font-size: .8125rem; color: var(--muted); }
.q-price, .q-total { font-family: var(--font-head); font-weight: 600; color: var(--heading); white-space: nowrap; }
.q-quote { padding: 2px 8px; background: var(--primary-50); color: var(--primary-dark); font-size: .75rem; font-weight: 700; }
.cart-summary { margin-bottom: 16px; padding: 20px; background: var(--surface-muted); border: 1px solid var(--border); }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-family: var(--font-head); font-size: 1.125rem; color: var(--heading); }
.cart-summary__row strong { font-size: 1.5rem; }
.cart-summary__small { margin: 0; font-size: .8125rem; color: var(--muted); }
.cart-summary__note { margin: 10px 0 0; padding: 10px 12px; background: #fffbeb; border: 1px solid #fde68a; font-size: .8125rem; color: #92400e; }
