/* ============================================================
   Hilco Auction — supplemental styles (additions only).
   The original template style.css is kept 100% untouched; this file
   layers in components the prototype did not include: flash alerts,
   pagination, live-state badges, validation hints, toast.
   ============================================================ */

/* Flash / validation alerts */
.alert { padding: 13px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.alert-success { background: #e7f6ec; color: #1c7a3e; border: 1px solid #b6e3c4; }
.alert-error   { background: #fdeceb; color: #b32218; border: 1px solid #f4c4bf; }
.alert-info    { background: #e9f2fb; color: #1f4e8f; border: 1px solid #c3dcf2; }

/* Inline field error */
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; display: block; }
.has-error .input, .has-error input, .has-error select, .has-error textarea { border-color: var(--red); }

/* Pagination (matches template buttons) */
.pagination { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 30px 0 0; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 4px; color: var(--blue); background: #fff; font-size: 14px; text-decoration: none;
}
.pagination li.active span { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.pagination li.disabled span { color: #c0c8d0; }

/* Live auction states */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; animation: hilco-pulse 1.4s infinite; vertical-align: middle; }
@keyframes hilco-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.bid-flash { animation: hilco-flash .8s ease; }
@keyframes hilco-flash { 0%{background:#fff7d6} 100%{background:transparent} }
.timer-row .t.warn { color: var(--red); }

/* Bid history list on the detail page */
.bid-log { margin-top: 18px; }
.bid-log table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bid-log th { text-align: left; color: var(--navy); font-weight: 600; padding: 10px 8px; border-bottom: 2px solid var(--line); background: var(--bg-soft); }
.bid-log td { padding: 10px 8px; border-bottom: 1px solid var(--line); color: #444; }
.bid-log .me { color: var(--blue); font-weight: 600; }
.tag-auto { font-size: 10px; background: #e9f2fb; color: var(--blue); padding: 1px 6px; border-radius: 8px; }

/* Notifications dropdown / list */
.notif-list { list-style: none; padding: 0; }
.notif-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif-list li.unread { background: #f7faff; }
.notif-list .nt { color: var(--navy); font-weight: 600; }
.notif-list .nm { color: #666; font-size: 13px; }
.notif-list .nd { color: var(--muted); font-size: 12px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 46px; color: #cfd6dd; margin-bottom: 14px; display: block; }

/* Favorite toggle */
.fav-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 18px; }
.fav-btn.on { color: var(--red); }

/* Toast container */
#hilco-toasts { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.hilco-toast { background: #fff; border-left: 4px solid var(--blue); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 12px 16px; border-radius: 4px; min-width: 240px; font-size: 14px; color: #333; animation: hilco-slide .25s ease; }
.hilco-toast.win { border-left-color: #1c7a3e; }
.hilco-toast.outbid { border-left-color: var(--red); }
@keyframes hilco-slide { from{transform:translateX(40px);opacity:0} to{transform:translateX(0);opacity:1} }

/* Small helpers */
.mt-20 { margin-top: 20px; }
.text-muted { color: var(--muted); }
.required { color: var(--red); }

/* Real product image inside a card thumb (replaces the imgph placeholder) */
.product .thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Inline form-field validation errors (frontend) */
.field-error { display: block; margin-top: 5px; color: #c0392b; font-size: 12.5px; }
input.is-invalid, select.is-invalid, textarea.is-invalid,
.input-icon input.is-invalid { border-color: #c0392b !important; }

/* Unread-notification badge on the member nav bell */
.nav-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red, #e23b2e); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* ============================================================
   Auction sidebar — live price slider + searchable selects
   (see public/assets/js/auction-filters.js)
   ============================================================ */

/* --- Live price-range slider --- */
.sidebar .price-filter input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  /* Filled portion (left of thumb) in brand blue; rest grey. */
  background: linear-gradient(to right,
    var(--blue, #2c68b2) 0%,
    var(--blue, #2c68b2) var(--range-pct, 50%),
    #e3e7ee var(--range-pct, 50%),
    #e3e7ee 100%);
}
.sidebar .price-filter input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue, #2c68b2); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
}
.sidebar .price-filter input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue, #2c68b2); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
}
.sidebar .price-filter .range-readout {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 12px;
}
.sidebar .price-filter .range-readout-label { font-size: 13px; color: #555; }
.sidebar .price-filter .range-readout-value {
  font-size: 18px; font-weight: 700; color: var(--navy, #1f4e8f);
}
.sidebar .price-filter .range-step {
  margin-top: 4px; font-size: 12px; color: var(--muted, #8a93a3);
}

/* --- Searchable select (replaces native <select data-searchable>) --- */
.sidebar select.ss-native { position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ss-wrap { position: relative; }
.ss-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px; border: 1px solid var(--line, #e3e7ee);
  border-radius: var(--radius, 6px); background: #fff; color: #555;
  font-family: inherit; font-size: inherit; cursor: pointer; text-align: left;
}
.ss-button-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-caret { color: var(--muted, #8a93a3); font-size: 12px; transition: transform .15s; }
.ss-wrap.open .ss-button { border-color: var(--blue, #2c68b2); }
.ss-wrap.open .ss-caret { transform: rotate(180deg); }
.ss-panel {
  display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line, #e3e7ee); border-radius: var(--radius, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
}
.ss-wrap.open .ss-panel { display: block; }
.ss-search { padding: 8px; border-bottom: 1px solid var(--line, #e3e7ee); }
.ss-search-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line, #e3e7ee);
  border-radius: 4px; font-family: inherit; font-size: 14px; outline: none;
}
.ss-search-input:focus { border-color: var(--blue, #2c68b2); }
.ss-list { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; }
.ss-option { padding: 9px 10px; border-radius: 4px; cursor: pointer; font-size: 14px; color: #444; }
.ss-option.is-active { background: #eef3fb; }
.ss-option.is-selected { color: var(--blue, #2c68b2); font-weight: 600; }
.ss-option.is-selected::after { content: '\2713'; float: right; }
.ss-empty { padding: 14px 10px; text-align: center; color: var(--muted, #8a93a3); font-size: 13px; }
