.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lot-page {
  background:
    radial-gradient(circle at top right, rgba(216, 255, 79, 0.28), transparent 26%),
    var(--paper);
}

.lot-hero {
  padding: calc(var(--header-height) + 18px) 0 0;
}

.lot-hero .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lot-hero .breadcrumbs a {
  color: var(--forest);
}

.lot-page .section {
  padding-block: 22px 72px;
}

.lot-deal {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.lot-hero .eyebrow {
  margin-bottom: 10px;
}

.lot-hero h1 {
  max-width: 12ch;
  margin: 0 0 10px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lot-hero h1 span {
  color: var(--forest);
}

.lot-lead {
  max-width: 36ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

.lot-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 16px;
  border-radius: 22px;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(216, 255, 79, 0.16), transparent 42%),
    var(--forest);
  box-shadow: 8px 8px 0 var(--ink);
}

.lot-price p {
  margin: 0;
}

.lot-price-kicker {
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lot-price-now {
  margin-top: 6px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.lot-price-was {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.lot-price-was s {
  color: rgba(255, 255, 255, 0.88);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.lot-price-save {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.35;
}

.lot-price-save b {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.lot-price-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.lot-tools {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.lot-tools-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lot-search {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  outline: none;
}

.lot-search:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(23, 61, 54, 0.12);
}

.lot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lot-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.lot-chip span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.lot-chip.is-on {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.lot-chip.is-on span {
  color: var(--acid);
}

.lot-count {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.lot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.lot-card[data-full] {
  cursor: pointer;
}

.lot-photo {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: #e7eee9;
}

.lot-photo.is-empty {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.lot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}

.lot-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lot-sku {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.lot-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.lot-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  max-width: 16ch;
  text-align: right;
}

.lot-was {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.lot-was s {
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(48, 64, 59, 0.4);
}

.lot-now {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lot-prices small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.lot-more {
  display: block;
  margin: 18px auto 0;
}

.lot-more[hidden] {
  display: none !important;
}

.lot-view {
  width: min(880px, calc(100vw - 32px));
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
}

.lot-view::backdrop {
  background: rgba(20, 35, 31, 0.72);
}

.lot-view-close {
  display: block;
  margin: 0 0 8px auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.lot-view-photo {
  display: block;
  width: 100%;
  max-height: min(82vh, 1100px);
  object-fit: contain;
  border-radius: 12px;
  background: #e7eee9;
}

.lot-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  text-align: center;
}

@media (min-width: 860px) {
  .lot-deal {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 28px;
    align-items: end;
  }

  .lot-deal-copy {
    order: -1;
    padding-bottom: 8px;
  }

  .lot-price {
    padding: 22px 24px 18px;
  }
}

@media (max-width: 640px) {
  .lot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lot-body {
    padding: 8px 8px 10px;
  }

  .lot-card h2 {
    font-size: 14px;
  }

  .lot-sku {
    font-size: 11px;
  }

  .lot-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .lot-prices {
    align-items: flex-start;
    max-width: none;
    text-align: left;
  }

  .lot-now {
    font-size: 16px;
  }

  .lot-count {
    font-size: 12px;
  }

  .lot-chips {
    flex-wrap: nowrap;
    margin-inline: -4px;
    padding-inline: 4px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }

  .lot-chips::-webkit-scrollbar {
    display: none;
  }

  .lot-price-save span {
    flex-basis: 100%;
  }
}
