body[data-page="sale"] #asset-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  margin: 0;
  width: calc(100% + 24px);
  margin-left: -12px;
}

body[data-page="sale"] article[data-item-id] {
  position: relative;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0;
  display: grid;
  gap: 0;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  animation: floatIn 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
  width: 100%;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  overflow: hidden;
  align-content: start;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 360px 820px;
}

body[data-page="sale"] article[data-item-id][data-in-view] {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.35s ease-out,
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

body[data-page="sale"] article[data-item-id]:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

body[data-page="sale"] article[data-item-id]:active {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] {
  background: linear-gradient(
    180deg,
    rgba(10, 132, 255, 0.2),
    rgba(10, 132, 255, 0.08)
  );
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 24px 52px rgba(10, 132, 255, 0.42);
}

body[data-page="sale"] article[data-item-id][aria-selected="true"]:active {
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.24);
}

body[data-page="sale"] article[data-item-id] > figure {
  margin: 0;
  display: grid;
  gap: 8px;
  background: #0d0d11;
  position: relative;
}

body[data-page="sale"] article[data-item-id] > :not(aside) {
  transition: opacity 0.18s ease, filter 0.18s ease;
  will-change: opacity, filter;
}

body[data-page="sale"] [data-gallery-id] {
  display: flex;
  gap: 0;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
  width: 100%;
  cursor: pointer;
}

body[data-page="sale"] [data-gallery-id]::-webkit-scrollbar {
  display: none;
}

body[data-page="sale"] [data-slide] {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #0d0d11;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

body[data-page="sale"] [data-slide] img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #0d0d11;
  display: block;
  padding: 0;
}

body[data-page="sale"] [data-image-fallback] {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

body[data-page="sale"] [data-gallery-dots] {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: static;
  margin: 8px 0 0;
  width: 100%;
}

body[data-page="sale"] [data-gallery-dots] span[data-dot-index] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

body[data-page="sale"] [data-gallery-dots] span[data-dot-index][data-active] {
  background: var(--accent);
  transform: scale(1.15);
}

body[data-page="sale"] article[data-item-id] figcaption {
  display: none;
}

body[data-page="sale"] button[data-cart-toggle] {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 12, 0.7);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0.9;
  transform: translateZ(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 4;
  touch-action: manipulation;
}

body[data-page="sale"] button[data-cart-toggle]:hover {
  background: rgba(8, 8, 12, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}

body[data-page="sale"] button[data-cart-toggle]:active {
  transform: scale(0.96);
}

body[data-page="sale"] button[data-cart-toggle] svg {
  width: 20px;
  height: 20px;
}

body[data-page="sale"] button[data-cart-toggle] [data-cart-icon] {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-page="sale"] button[data-cart-toggle] [data-cart-added] {
  display: none;
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] button[data-cart-toggle] [data-cart-add] {
  display: none;
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] button[data-cart-toggle] [data-cart-added] {
  display: inline-flex;
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] button[data-cart-toggle] {
  background: rgba(10, 132, 255, 0.25);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.35);
}

body[data-page="sale"] #image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.92);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 50;
}

body[data-page="sale"] #image-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

body[data-page="sale"] #image-overlay section {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(32, 32, 40, 0.5), transparent 55%),
    linear-gradient(180deg, #0b0b0d 0%, #08080a 100%);
  border-radius: 0;
  border: none;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 16px 18px 20px;
}

body[data-page="sale"] #image-overlay header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page="sale"] #image-overlay header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

body[data-page="sale"] #image-counter {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

body[data-page="sale"] [data-image-controls] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page="sale"] #image-overlay header button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body[data-page="sale"] #image-overlay header button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

body[data-page="sale"] #image-overlay header button:active {
  transform: scale(0.96);
}

body[data-page="sale"] #image-overlay header button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body[data-page="sale"] #image-overlay header button svg {
  width: 16px;
  height: 16px;
}

body[data-page="sale"] button[data-image-prev] svg {
  transform: rotate(180deg);
}

body[data-page="sale"] #image-stage {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-height: 0;
}

body[data-page="sale"] #image-canvas {
  position: relative;
  border-radius: 18px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: grid;
  place-items: stretch;
  min-height: 240px;
}

body[data-page="sale"] #image-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

body[data-page="sale"] #image-gallery::-webkit-scrollbar {
  display: none;
}

body[data-page="sale"] #image-gallery [data-image-slide] {
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

body[data-page="sale"] #image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.2s ease;
  pointer-events: none;
  user-select: none;
}

body[data-page="sale"] #image-gallery [data-image-slide][data-active] img {
  transform: translate3d(var(--zoom-pan-x, 0px), var(--zoom-pan-y, 0px), 0) scale(1);
}

body[data-page="sale"] #image-canvas[data-zoom="on"] #image-gallery [data-image-slide][data-active] img {
  transform: translate3d(var(--zoom-pan-x, 0px), var(--zoom-pan-y, 0px), 0) scale(var(--zoom-scale, 1));
  transition: none;
}

body[data-page="sale"] #image-canvas[data-zoom="on"] #image-gallery {
  overflow: hidden;
  touch-action: none;
}

body[data-page="sale"] #image-canvas[data-zoom="on"] {
  touch-action: none;
}

body[data-page="sale"] #image-canvas[data-zoomable="true"] {
  cursor: zoom-in;
}

body[data-page="sale"] #image-canvas[data-zoom="on"] {
  cursor: zoom-out;
}

body[data-page="sale"] #image-zoom-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

body[data-page="sale"] #image-canvas[data-zoom="on"] #image-zoom-hint {
  opacity: 0;
}

body[data-page="sale"] #image-canvas:not([data-zoomable="true"]) #image-zoom-hint {
  display: none;
}

body[data-page="sale"] #image-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-snap-type: x mandatory;
}

body[data-page="sale"] #image-thumbs button {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body[data-page="sale"] #image-thumbs button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body[data-page="sale"] #image-thumbs button[data-active] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

body[data-page="sale"] #image-thumbs img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
}

body[data-page="sale"] article[data-item-id] > div {
  display: grid;
  gap: 8px;
  padding: 10px 14px 14px;
  align-content: start;
}

body[data-page="sale"] article[data-item-id] > div > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 0 0 8px;
}

body[data-page="sale"] article[data-item-id] > div > header h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

body[data-page="sale"] article[data-item-id] > div > header > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page="sale"] span[data-check] {
  display: none;
}

body[data-page="sale"] button[data-info-id] {
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 0.65rem;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

body[data-page="sale"] button[data-info-id]:active {
  transform: scale(0.96);
}

body[data-page="sale"] button[data-info-id] svg {
  width: 12px;
  height: 12px;
  display: block;
}

body[data-page="sale"] button[data-info-id] span {
  font-weight: 600;
  letter-spacing: 0.01em;
}

body[data-page="sale"] article[data-item-id] > div > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-page="sale"] article[data-item-id] > div > div > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

body[data-page="sale"] ul[data-list="chips"] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

body[data-page="sale"] ul[data-list="chips"] li {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
}

body[data-page="sale"] span[data-availability] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

body[data-page="sale"] div[data-price] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

body[data-page="sale"] div[data-price] small {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

body[data-page="sale"] div[data-price] strong {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

body[data-page="sale"] article[data-item-id] > div > p:not([data-price-note]) {
  display: none;
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body[data-page="sale"] article[data-item-id] > div > ul[data-list="details"],
body[data-page="sale"] article[data-item-id] > div > div[data-info-grid],
body[data-page="sale"] article[data-item-id] > div > p[data-price-note] {
  display: none;
}

body[data-page="sale"] article[data-item-id] > figure > aside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 18px 18px 16px;
  margin: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.2s ease;
  z-index: 3;
  will-change: opacity, transform;
}

body[data-page="sale"][data-role="public"] article[data-item-id] > figure > aside[aria-hidden="true"] {
  display: flex;
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] > figure > aside {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body[data-page="sale"] article[data-item-id][aria-selected="true"] > figure > :not(aside):not(button[data-cart-toggle]) {
  opacity: 0.24;
  filter: blur(1px);
  pointer-events: none;
}

body[data-page="sale"] button[data-cart-toggle] [data-offer-check] {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(10, 132, 255, 0.4);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

body[data-page="sale"] button[data-cart-toggle] [data-offer-check]:empty {
  display: none;
}

body[data-page="sale"] article[data-item-id] > figure > aside div[data-selected-copy] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
}

body[data-page="sale"] article[data-item-id] > figure > aside span[data-selected-box] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(10, 132, 255, 0.2);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

body[data-page="sale"] article[data-item-id] > figure > aside span[data-selected-box] svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}

body[data-page="sale"] article[data-item-id] > figure > aside label {
  width: min(360px, 100%);
  display: grid;
  gap: 4px;
  text-align: left;
}

body[data-page="sale"] article[data-item-id] > figure > aside label span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  /* text-align: center; */
}

body[data-page="sale"] article[data-item-id] > figure > aside [data-inline] {
  width: 100%;
  display: flex;
}

body[data-page="sale"] article[data-item-id] > figure > aside input {
  width: 100%;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: none;
  text-align: center;
}

body[data-page="sale"] article[data-item-id] > figure > aside [data-qty-controls] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px;
}

body[data-page="sale"] article[data-item-id] > figure > aside [data-qty-controls] button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  font-weight: 700;
}

@media (max-width: 640px) {

#modal-summary header div[data-summary-stat]{display: none;}
#modal-summary header div[data-summary-stat][data-total]{display: unset;}

  body[data-page="sale"] #image-thumbs img {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 860px) {
  body[data-page="sale"] #asset-list {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
}

@media (min-width: 1040px) {
  body[data-page="sale"] #asset-list {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(96vw, 1480px);
    max-width: none;
    padding: 0 24px 70px;
    margin: 0 auto;
  }

  body[data-page="sale"] article[data-item-id] {
    grid-template-columns: 420px 1fr;
    border-radius: 20px;
  }

  body[data-page="sale"] article[data-item-id] > div {
    padding: 18px 18px 20px;
    gap: 10px;
  }

  body[data-page="sale"] article[data-item-id] > figure {
    grid-template-rows: 1fr auto;
    align-content: start;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  }

  body[data-page="sale"] [data-gallery-id] {
    height: 100%;
    margin: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
  }

  body[data-page="sale"] [data-slide] {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  body[data-page="sale"] [data-gallery-dots] {
    justify-content: flex-start;
    padding: 6px 10px 8px;
    margin: 0;
  }

  body[data-page="sale"] article[data-item-id] figcaption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 12px;
    color: var(--muted);
    font-size: 0.75rem;
  }

  body[data-page="sale"] button[data-info-id] {
    display: none;
  }

  body[data-page="sale"] article[data-item-id] > div > header > div {
    gap: 0;
  }

  body[data-page="sale"] article[data-item-id] > div > ul[data-list="details"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
    padding-left: 18px;
  }

  body[data-page="sale"] article[data-item-id] > div > div[data-info-grid] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="sale"] article[data-item-id] > div > p[data-price-note] {
    display: block;
  }

  body[data-page="sale"] article[data-item-id] > div > p:not([data-price-note]) {
    display: block;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
