/* ==========================================================================
   Liquidation inventory site - overrides only.
   Bootstrap 5.3 (public) and Tabler core (admin) come from their CDNs; nothing
   from either framework is copied here.
   ========================================================================== */

:root {
  --liq-ink:        #16191d;
  --liq-header-bg:  #1c2128;
  --liq-line:       #e3e6ea;
  --liq-muted:      #6b7280;

  /* Condition palette */
  --liq-new:        #157347;
  --liq-like-new:   #0f766e;
  --liq-open-box:   #1d4ed8;
  --liq-used-good:  #4b5563;
  --liq-used-fair:  #b45309;
  --liq-salvage:    #b02a37;

  /* Status */
  --liq-pending:    #b45309;
  --liq-sold:       #b02a37;
}

/* ==========================================================================
   Shared: condition badges (public grid, detail page, admin list)
   ========================================================================== */

.liq-cond {
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
}

.cond-new       { background-color: var(--liq-new); }
.cond-like-new  { background-color: var(--liq-like-new); }
.cond-open-box  { background-color: var(--liq-open-box); }
.cond-used-good { background-color: var(--liq-used-good); }
.cond-used-fair { background-color: var(--liq-used-fair); }
.cond-salvage   { background-color: var(--liq-salvage); }

/* ==========================================================================
   PUBLIC
   ========================================================================== */

.liq-public {
  background: #f7f8fa;
  color: var(--liq-ink);
}

/* --- Header --------------------------------------------------------------- */

.liq-header {
  background: var(--liq-header-bg);
  color: #fff;
}

.liq-brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.liq-brand:hover { color: #fff; text-decoration: underline; }

.liq-header-contact a { color: #cbd5e1; text-decoration: none; }
.liq-header-contact a:hover { color: #fff; text-decoration: underline; }
.liq-header-contact .liq-sep { color: #64748b; margin: 0 .35rem; }

/* --- Hero ----------------------------------------------------------------- */

.liq-hero {
  background: #fff;
  border-bottom: 1px solid var(--liq-line);
}

.liq-hero-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.liq-hero-blurb {
  color: var(--liq-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.liq-hero-contact {
  font-size: .925rem;
  color: var(--liq-muted);
}

.liq-hero-contact .list-inline-item:not(:last-child)::after {
  content: "·";
  margin-left: .6rem;
  color: #cbd5e1;
}

.liq-hero-contact a { color: var(--liq-ink); }

/* --- Filter bar ----------------------------------------------------------- */

.liq-filters .form-label {
  color: var(--liq-muted);
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 600;
}

/* --- Card grid ------------------------------------------------------------ */

.liq-card {
  border: 1px solid var(--liq-line);
  border-radius: .6rem;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.liq-card:hover {
  box-shadow: 0 .5rem 1.25rem rgba(16, 24, 40, .1);
  transform: translateY(-2px);
}

.liq-card-media {
  display: block;
  position: relative;
  background: #eef1f4;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.liq-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liq-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .25rem;
}

.liq-card-title a {
  color: var(--liq-ink);
  text-decoration: none;
}

.liq-card-title a:hover { text-decoration: underline; }

.liq-card-meta { color: var(--liq-muted); }

.liq-price {
  font-size: 1.2rem;
  font-weight: 700;
}

.liq-price-lg {
  font-size: 2rem;
  font-weight: 700;
}

.liq-price-ask,
.liq-retail {
  color: var(--liq-muted);
}

/* --- Ribbons and flags ---------------------------------------------------- */

.liq-ribbon {
  position: absolute;
  top: .75rem;
  left: 0;
  padding: .25rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  border-radius: 0 .25rem .25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.liq-ribbon-sold    { background: var(--liq-sold); }
.liq-ribbon-pending { background: var(--liq-pending); }

.liq-ribbon-lg {
  font-size: .95rem;
  padding: .4rem 1.1rem;
  top: 1rem;
}

.liq-flag {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(28, 33, 40, .9);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .2rem .5rem;
  border-radius: .25rem;
}

/* Sold items read as inactive without becoming unreadable. */
.liq-sold .liq-card-media img,
.liq-sold .liq-gallery-main img {
  filter: grayscale(1);
  opacity: .68;
}

.liq-card.liq-sold { background: #fbfbfc; }
.liq-card.liq-sold .liq-price { color: var(--liq-muted); text-decoration: line-through; }

.badge.liq-status-pending { background: var(--liq-pending); color: #fff; }
.badge.liq-status-sold    { background: var(--liq-sold);    color: #fff; }

/* --- Detail page ---------------------------------------------------------- */

.liq-gallery-main {
  background: #eef1f4;
  border: 1px solid var(--liq-line);
  border-radius: .6rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.liq-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.liq-gallery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.liq-gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .4rem;
  overflow: hidden;
  background: #eef1f4;
  cursor: pointer;
}

.liq-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liq-gallery-thumb.is-active { border-color: var(--liq-ink); }
.liq-gallery-thumb:hover     { border-color: #94a3b8; }

.liq-specs dt { color: var(--liq-muted); font-weight: 500; }
.liq-specs dd { margin-bottom: .4rem; }

.liq-contact-card {
  border: 1px solid var(--liq-line);
  border-radius: .6rem;
}

.liq-description {
  white-space: normal;
  line-height: 1.7;
  max-width: 70ch;
}

.liq-empty {
  background: #fff;
  border: 1px dashed var(--liq-line);
  border-radius: .6rem;
  color: var(--liq-muted);
}

/* --- Footer --------------------------------------------------------------- */

.liq-footer {
  background: #fff;
  border-top: 1px solid var(--liq-line);
}

.liq-footer a { color: var(--liq-ink); }

/* ==========================================================================
   ADMIN
   ========================================================================== */

.liq-thumb-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: .25rem;
  background: #eef1f4;
}

/* --- Image manager -------------------------------------------------------- */

.liq-dropzone {
  border: 2px dashed #d0d5dd;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}

.liq-dropzone.is-active {
  border-color: #1d4ed8;
  background: #eff4ff;
}

.liq-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.liq-tile {
  position: relative;
  width: 120px;
  border: 2px solid #e3e6ea;
  border-radius: .5rem;
  overflow: hidden;
  background: #eef1f4;
  cursor: grab;
}

.liq-tile.is-cover   { border-color: #1d4ed8; }
.liq-tile.is-over    { border-color: #0f766e; }
.liq-tile.is-dragging { opacity: .45; }

.liq-tile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.liq-tile-flag {
  position: absolute;
  top: .25rem;
  left: .25rem;
  background: #1d4ed8;
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: .1rem .35rem;
  border-radius: .2rem;
}

.liq-tile-bar {
  display: flex;
  gap: .25rem;
  padding: .35rem;
  background: #fff;
}

.liq-tile-bar .btn {
  flex: 1;
  padding: .15rem .3rem;
  font-size: .72rem;
}
