/* /clearance page. Shared pieces live in throne.css; this file only adds the shop grid and the quote dialog. */

.clearance-head { border-bottom: 3px solid var(--gold-500); }
.clearance-head h1 { max-width: 20ch; }

.shop-bar { display: grid; gap: 10px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--navy-700); font: 600 .92rem/1.2 var(--body); cursor: pointer;
}
.chip span { font-weight: 500; font-size: .82rem; color: var(--ink-soft); }
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--gold-400); }
.shop-count { margin: 0; font-size: .9rem; }

.product-grid { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.product-grid > li { display: flex; }
.product {
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 12px; width: 100%;
  border-top: 3px solid var(--gold-500); padding: 16px;
}
.product .thumb { width: 100%; }
.product-info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.product-cat { margin: 0; font-size: .82rem; color: var(--gold-700); font-weight: 600; }
.product-name {
  margin: 0; font-size: 1rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.product-pack { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.product-price { margin: 4px 0 0; font-size: 1.35rem; }
.product-actions { display: grid; gap: 8px; }
.product-actions .btn { width: 100%; }

@media (max-width: 600px) {
  .product { grid-template-columns: 104px 1fr; grid-template-rows: auto auto; align-items: start; }
  .product .thumb { width: 104px; }
  .product-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .product-actions .btn { padding-inline: 8px; }
}

/* Quote dialog */
html:has(dialog[open]) { overflow: hidden; }
.quote-dialog {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 22px clamp(16px, 4vw, 28px) 24px; border: 0; border-top: 3px solid var(--gold-500);
  border-radius: var(--r-md); background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px -16px rgba(11, 23, 48, .6);
}
.quote-dialog::backdrop { background: rgba(11, 23, 48, .62); }
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quote-head h2 { margin: 0 0 12px; }
.quote-close {
  flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--navy-700); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.quote-close:hover { background: #EEF2F7; }
.quote-product { margin-bottom: 16px; padding: 12px 14px; background: var(--shell); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .92rem; }
.quote-product strong { display: block; color: var(--navy-700); line-height: 1.3; }
.quote-product span { color: var(--ink-soft); }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-actions .btn-gold { flex: 1 1 200px; }
.field-error { color: var(--danger); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
#quote-result:empty { display: none; }
#quote-result a { color: inherit; font-weight: 600; }

@media (max-width: 420px) {
  .quote-actions .btn { flex: 1 1 100%; }
}
.quote-dialog .form-row { align-items: start; }
