/* ==========================================================================
   Marketplace shell, hero gallery, and account surfaces
   Added with the API-backed build. Existing page sections keep their styles.
   ========================================================================== */

/* Header */
.announcement__inner {
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
  text-align: left;
}

.announcement__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 240, 0.8);
  white-space: nowrap;
}

.announcement__item--center {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-align: left;
}

.announcement__marquee {
  /* app.js repeats the text until the strip is wider than the bar and then
     sets --marquee-distance to exactly one copy, so the loop never shows a
     seam. The values below are the no-JS fallback. */
  --marquee-distance: 50%;
  --marquee-duration: 16s;
  display: flex;
  width: max-content;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  animation: announcement-marquee var(--marquee-duration) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.announcement__marquee > span {
  flex: none;
  padding-right: 48px;
}

.announcement__item--center:hover .announcement__marquee,
.announcement__item--center:focus-within .announcement__marquee {
  animation-play-state: paused;
}

@keyframes announcement-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--marquee-distance)), 0, 0); }
}

/* Reduced motion keeps the ticker but at half speed: the strip is the whole
   point of this bar, and a steady crawl reads calmly without the jolt of a
   strip that starts and stops. Hover and focus still pause it. */
@media (prefers-reduced-motion: reduce) {
  .announcement__item--center {
    text-align: left;
  }

  .announcement__marquee {
    animation-duration: calc(var(--marquee-duration) * 2);
  }
}

.announcement__item--end {
  border-bottom: 1px solid rgba(255, 248, 240, 0.45);
  color: var(--cream);
}

.header-main {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  min-height: 86px;
}

.header-search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 590px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.header-search:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(138, 37, 71, 0.14);
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.header-search input:focus {
  outline: 0;
}

.header-search input::placeholder {
  color: var(--ink-muted);
}

.header-search > button {
  display: grid;
  place-items: center;
  width: 58px;
  border: 0;
  background: var(--pink-strong);
  color: var(--surface);
  transition: background-color var(--speed) ease;
}

.header-search > button:hover {
  background: var(--burgundy);
}

.header-search > button svg {
  width: 19px;
  height: 19px;
}

.header-actions {
  margin-left: auto;
  gap: 4px;
}

.header-action {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
  color: #7a1542;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.04);
  transition: background 150ms ease, border-color 150ms ease;
}

.header-action svg {
  width: 18px;
  height: 18px;
  color: #7a1542;
  transition: color 150ms ease;
}

.header-action:hover {
  background: #fdf5f8;
  border-color: #8a2547;
  color: #7a1542;
}

.header-action:hover svg {
  color: #ff3d86;
}

.header-action .cart-count,
.note-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e4236f;
  color: #fff;
}

.header-notes {
  position: relative;
  display: inline-flex;
}

.note-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.note-count[data-empty="true"] {
  display: none;
}

.note-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, 460px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #f0e4ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(44, 18, 48, 0.14);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.note-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.note-pop__head strong {
  color: #2c1230;
  font-size: 15px;
}

.note-pop__head button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #e4236f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.note-pop__item {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #f3d5e2;
  color: #2c1230;
  text-decoration: none;
}

.note-pop__item.is-unread strong {
  color: #7a1542;
}

.note-pop__item strong,
.note-pop__label {
  display: block;
  font-size: 14px;
}

.note-pop__item p,
.note-pop__empty {
  margin: 4px 0 0;
  color: #8a6d7c;
  font-size: 13px;
  line-height: 1.45;
}

.note-pop__label {
  margin: 12px 0 0;
  color: #e4236f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-pop__foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #f3d5e2;
  color: #8a6d7c;
  font-size: 11.5px;
  line-height: 1.4;
}

.account-note {
  margin: -4px 0 14px;
  color: #8a6d7c;
  font-size: 13px;
  line-height: 1.5;
}

.note-pop__item:focus-visible,
.note-pop__head button:focus-visible,
.header-notes [data-notify]:focus-visible {
  outline: 2px solid #e4236f;
  outline-offset: 2px;
}

.header-action[data-empty="true"] .cart-count {
  display: none;
}

.header-search-toggle {
  display: none;
}

.header-nav {
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.header-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  min-height: 54px;
}

.categories-btn {
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.categories-btn svg {
  width: 15px;
  height: 15px;
}

.header-nav .primary-nav {
  margin: 0;
  gap: clamp(16px, 2vw, 30px);
}

.header-nav .primary-nav a {
  min-height: 54px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.header-nav .primary-nav a::after {
  bottom: 12px;
  background: var(--pink-strong);
}

.header-nav .primary-nav a:hover,
.header-nav .primary-nav a[aria-current="page"] {
  color: var(--burgundy);
}

.header-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-offer:hover {
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--burgundy);
}

/* Hero gallery */
.hero-slider {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  min-height: clamp(580px, 58vw, 700px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 650ms var(--ease), visibility 0s linear 650ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 650ms var(--ease), visibility 0s;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-slide::after {
  display: none;
}

.hero-slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(48px, 6vw, 84px) var(--gutter);
}

.hero-slide__copy {
  width: 100%;
  max-width: 620px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pink-50);
  box-shadow: var(--shadow-sm);
}

.hero-slide__copy .display {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.hero-slide__copy .display em {
  display: block;
  color: var(--pink);
  font-style: italic;
}

.hero-slide__lead {
  max-width: 50ch;
  color: var(--ink-muted);
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.75;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 200px;
}

.hero-trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--pink-strong);
}

.hero-trust span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.5;
}

.hero-trust strong {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-slider__dots button {
  width: 26px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 24, 53, 0.24);
  transition: width var(--speed) var(--ease), background-color var(--speed) ease;
}

.hero-slider__dots button[aria-selected="true"] {
  width: 42px;
  background: var(--pink-strong);
}

.hero-slider__dots button:focus-visible,
.hero-arrow:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.hero-slider__arrows {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--burgundy);
  transition: background-color var(--speed) ease, color var(--speed) ease,
    border-color var(--speed) ease;
}

.hero-arrow:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
}

/* Category strip */
.category-strip {
  padding: clamp(34px, 4.4vw, 54px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.category-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.category-strip__head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

.category-strip__head p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  transition: transform var(--speed) var(--ease), border-color var(--speed) ease,
    box-shadow var(--speed) ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 37, 71, 0.45);
  box-shadow: var(--shadow-sm);
}

.category-tile__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 50%;
  background: #f7f1ec;
  color: var(--pink-strong);
  border: 1px solid rgba(122, 21, 66, 0.12);
}

.category-tile__icon svg {
  width: 25px;
  height: 25px;
}

.category-tile__icon img,
.category-tile__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-tile__icon--lemon {
  background: var(--lemon);
  color: var(--burgundy);
}

.category-tile__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.category-tile__meta {
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

/* Showcase and live panel */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.showcase__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.showcase__label h3 {
  font-size: 1.5rem;
}

.showcase .finds-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.showcase .product-card,
.showcase .finds-grid .product-card:nth-child(1),
.showcase .finds-grid .product-card:nth-child(2),
.showcase .finds-grid .product-card:nth-child(3) {
  grid-column: auto;
}

.showcase .product-card__title {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.live-panel {
  position: sticky;
  top: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.live-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 16px;
}

.live-panel__head h3 {
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
}

.live-panel__head .eyebrow {
  margin-bottom: 7px;
  color: var(--lemon);
  font-size: 9px;
}

.live-panel__head .eyebrow::before {
  background: var(--lemon);
}

.live-panel .live-badge {
  flex: none;
  border-color: rgba(255, 248, 240, 0.35);
  color: var(--cream);
  background: rgba(255, 248, 240, 0.08);
}

.live-panel .live-dot {
  background: var(--lemon);
  box-shadow: 0 0 0 4px rgba(239, 224, 207, 0.5);
}

.live-panel__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--burgundy-deep);
}

.live-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.live-panel__media:hover img {
  transform: scale(1.03);
}

.live-panel__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--lemon);
  color: var(--burgundy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-panel__body {
  padding: 20px 22px 24px;
}

.live-panel__body h4 {
  color: var(--cream);
  font-size: 1.35rem;
  line-height: 1.15;
}

.live-panel__body h4 a:hover {
  color: var(--lemon);
}

.live-panel__seller {
  margin-top: 5px;
  color: rgba(255, 248, 240, 0.62);
  font-size: 11px;
}

.live-panel__timer {
  display: flex;
  gap: 7px;
  margin: 18px 0;
}

.live-panel__timer .countdown__unit {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid rgba(255, 248, 240, 0.16);
  border-radius: 9px;
  background: rgba(255, 248, 240, 0.07);
  text-align: center;
}

.live-panel__timer .countdown__value {
  display: block;
  color: var(--lemon);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.1;
}

.live-panel__timer .countdown__label {
  color: rgba(255, 248, 240, 0.6);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-panel__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 248, 240, 0.16);
  border-bottom: 1px solid rgba(255, 248, 240, 0.16);
}

.live-panel__prices span {
  display: block;
  color: rgba(255, 248, 240, 0.62);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-panel__prices strong {
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
}

.live-panel .btn--dark {
  border-color: var(--lemon);
  background: var(--lemon);
  color: var(--burgundy);
  box-shadow: none;
}

.live-panel .btn--dark:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--burgundy);
}

.live-panel__meta {
  margin-top: 12px;
  color: rgba(255, 248, 240, 0.62);
  font-size: 10.5px;
  text-align: center;
}

.live-panel__meta a {
  color: rgba(255, 248, 240, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Product cards, saved state, skeletons */
.product-card__frame {
  position: relative;
}

.product-card__title a {
  transition: color var(--speed) ease;
}

.product-card__title a:hover {
  color: var(--pink-strong);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.product-card__actions .btn {
  flex: 1 1 120px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 10.5px;
}

.card-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--burgundy);
  box-shadow: 0 2px 8px rgba(37, 35, 41, 0.08);
  transition: background-color var(--speed) ease, color var(--speed) ease,
    border-color var(--speed) ease, transform var(--speed) ease;
}

.card-wish:hover {
  transform: scale(1.06);
  border-color: var(--pink);
  color: var(--pink-strong);
}

.card-wish[aria-pressed="true"] {
  border-color: var(--pink-strong);
  background: var(--pink-strong);
  color: var(--surface);
}

.card-wish[aria-pressed="true"] svg {
  fill: currentColor;
}

.card-wish svg {
  width: 18px;
  height: 18px;
}

.skeleton-card {
  min-width: 0;
}

.skeleton {
  border-radius: 9px;
  background: linear-gradient(90deg, var(--sand) 20%, var(--surface) 50%, var(--sand) 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.skeleton--media {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
}

.skeleton--line {
  height: 15px;
  width: 72%;
  margin-top: 10px;
}

.skeleton--short {
  width: 42%;
}

.skeleton--detail-media {
  aspect-ratio: 4 / 5;
  min-height: 380px;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.market-grid > .skeleton-card {
  min-width: 0;
}

.load-error {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.load-error svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--pink-strong);
}

.load-error h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.load-error p {
  margin-bottom: 14px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Form polish */
.field input,
.field select,
.field textarea {
  border-color: var(--border);
  border-radius: 10px;
  background: var(--paper);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(138, 37, 71, 0.14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.08);
}

.field-error:empty {
  display: none;
}

.form-card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Auth pages */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(100vh - 178px);
  background: var(--cream);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
  padding: clamp(32px, 4vw, 60px);
  background: var(--burgundy);
  color: var(--cream);
}

.auth-aside__art {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  opacity: 0.5;
}

.auth-aside__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(63, 15, 36, 0.97) 0%,
    rgba(63, 15, 36, 0.78) 42%,
    rgba(91, 24, 53, 0.55) 100%
  );
}

.auth-brand,
.auth-aside__copy {
  position: relative;
  z-index: 1;
}

.auth-brand img {
  width: auto;
  height: 44px;
}

.auth-aside__copy {
  margin-top: auto;
  max-width: 440px;
}

.auth-aside .eyebrow {
  color: var(--lemon);
}

.auth-aside .eyebrow::before {
  background: var(--lemon);
}

.auth-aside__copy h2 {
  color: var(--cream);
  font-size: clamp(2.3rem, 3.4vw, 3.5rem);
  line-height: 1.02;
}

.auth-aside__copy p {
  margin-top: 16px;
  color: rgba(255, 248, 240, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 28px;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 248, 240, 0.82);
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-points svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--lemon);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 80px) var(--gutter);
}

.auth-card {
  width: min(100%, 470px);
}

.auth-card h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 3.6vw, 3.05rem);
}

.auth-card__lead {
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth-form .field {
  gap: 6px;
}

.auth-form .field input {
  min-height: 50px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(37, 35, 41, 0.04);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--cream);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-link {
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.auth-link:hover {
  border-color: currentColor;
}

.auth-switch {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--pink-strong);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn--google {
  gap: 10px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.btn--google:hover {
  border-color: var(--burgundy);
  background: var(--cream);
}

.btn--google svg {
  width: 17px;
  height: 17px;
}

.auth-alert {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(192, 38, 45, 0.24);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.55;
}

.auth-alert[data-tone="success"] {
  border-color: rgba(47, 125, 91, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.auth-alert[data-tone="info"] {
  border-color: rgba(63, 95, 158, 0.35);
  background: var(--info-soft);
  color: var(--info);
}

.auth-alert[hidden] {
  display: none;
}

.auth-note {
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
}

.strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.strength__bars {
  display: flex;
  flex: 1;
  gap: 5px;
}

.strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--sand);
  transition: background-color var(--speed) ease;
}

.strength__bar[data-on="true"] {
  background: var(--pink-strong);
}

.strength[data-score="4"] .strength__bar[data-on="true"] {
  background: var(--success);
}

.strength__label {
  flex: 1.4;
  color: var(--ink-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.auth-gate {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.auth-gate h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.auth-gate p {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-gate--page {
  max-width: 620px;
  margin: clamp(48px, 7vw, 88px) auto;
  padding: clamp(30px, 5vw, 52px);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.auth-gate--page h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

/* Product detail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: var(--pink-strong);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(24px, 3vw, 40px) 0 var(--section);
  align-items: start;
}

.product-detail__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  aspect-ratio: 4 / 5;
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__media[data-orientation="landscape"] {
  aspect-ratio: 4 / 3;
}

.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail__thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
  cursor: pointer;
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__thumb.is-active,
.product-detail__thumb:focus-visible {
  border-color: var(--burgundy);
  outline: none;
}

.product-detail__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail__body h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.product-detail__seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink-muted);
  font-size: 12px;
}

.product-detail__seller strong {
  color: var(--ink);
  font-weight: 600;
}

.product-detail__price {
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-detail__price > span {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail__price strong {
  display: block;
  margin-top: 4px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;
}

.product-detail__price-note {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 11px;
}

.product-detail__desc {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.8;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.product-detail__actions .btn {
  min-height: 50px;
}

.product-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.product-facts div {
  min-width: 0;
}

.product-facts dt {
  color: var(--ink-muted);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-facts dd {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-detail__notice {
  margin-top: 28px;
}

.product-detail__loading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 44px;
  padding: 48px 0 var(--section);
}

.bid-history {
  margin-top: 22px;
}

.bid-history h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.bid-history ul {
  border-top: 1px solid var(--border);
}

.bid-row,
.bid-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 12px;
}

.bid-row__rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
}

.bid-row__who {
  flex: 1;
  color: var(--ink);
}

.bid-row__amount {
  color: var(--burgundy);
  font-weight: 600;
}

.bid-row__time {
  color: var(--ink-muted);
  font-size: 10px;
}

/* Account */
.account-page {
  padding: clamp(36px, 5vw, 64px) 0 var(--section);
}

.buyer-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.buyer-nav {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eadfd4;
}

.buyer-nav a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #2c1230;
  text-decoration: none;
  font-weight: 650;
}

.buyer-nav a.is-active,
.buyer-nav a:hover {
  background: #fde7f0;
  color: #7a1542;
}

.buyer-nav__who {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.buyer-nav__who span,
.buyer-profile span,
.buyer-order__blank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7a1542;
  color: #fff;
  font-weight: 700;
}

.buyer-nav__who small,
.buyer-order p,
.buyer-missing {
  color: #5e4a53;
}

.buyer-nav__shop {
  margin-top: 8px;
}

.buyer-main {
  min-width: 0;
}

.buyer-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.buyer-metrics div,
.buyer-order,
.buyer-address,
.buyer-group,
.buyer-profile {
  padding: 16px;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  background: #fff;
}

.buyer-metrics span {
  display: block;
  color: #5e4a53;
  font-size: 13px;
}

.buyer-metrics strong {
  display: block;
  margin-top: 6px;
  color: #7a1542;
  font-size: 22px;
}

.buyer-order,
.buyer-address,
.buyer-group {
  margin-bottom: 12px;
}

.buyer-order__top,
.buyer-line,
.buyer-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.buyer-order img,
.buyer-line img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #faf6f1;
}

.buyer-order__top > div:last-child {
  margin-left: auto;
  text-align: right;
}

.buyer-order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.buyer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.buyer-filters input,
.buyer-filters select,
.buyer-address form input {
  min-height: 44px;
}

.buyer-timeline {
  display: grid;
  gap: 0;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.buyer-timeline li {
  display: grid;
  gap: 2px;
  padding: 0 0 16px 16px;
  border-left: 2px solid #eadfd4;
  color: #8a6d7c;
}

.buyer-timeline li.is-done {
  border-left-color: #7a1542;
  color: #2c1230;
}

.buyer-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.buyer-line {
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0e4ea;
}

.buyer-line strong:last-child {
  margin-left: auto;
}

@media (max-width: 800px) {
  .buyer-shell {
    grid-template-columns: 1fr;
  }

  .buyer-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .buyer-nav__who {
    display: none;
  }

  .buyer-order__top {
    display: grid;
  }

  .buyer-order__top > div:last-child {
    margin-left: 0;
    text-align: left;
  }
}

.account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.account-head h1 {
  margin-top: 6px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.account-head__email {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 13px;
}

.account-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.account-stats > div {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.account-stats span {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.account-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.account-section:last-child {
  border-bottom: 0;
}

.account-section__head {
  margin-bottom: 20px;
}

.account-section__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.account-section__head p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 12.5px;
}

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(239, 224, 207, 0.95);
  border-radius: var(--radius);
  background: rgba(239, 224, 207, 0.42);
}

.verify-banner strong {
  color: var(--burgundy);
  font-size: 13px;
}

.verify-banner p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.order-card__head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.order-card__head span {
  display: block;
  color: var(--ink-muted);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-card__head strong {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
}

.order-status {
  color: var(--pink-strong);
  text-transform: capitalize;
}

.order-card__items {
  padding-top: 12px;
}

.order-card__items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--ink-muted);
  font-size: 12.5px;
}

.order-card__items strong {
  color: var(--ink);
  font-weight: 500;
}

.account-wishlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.account-wish {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--speed) ease, transform var(--speed) var(--ease);
}

.account-wish:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
}

.account-wish img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  object-fit: cover;
  margin-bottom: 6px;
}

.account-wish span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.account-wish strong {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 600;
}

.application-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.application-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.application-list strong {
  display: block;
  font-size: 13px;
}

.application-list span {
  color: var(--ink-muted);
  font-size: 11.5px;
}

.application-list .pill {
  text-transform: capitalize;
  background: var(--cream);
}

.empty-state--inline {
  padding: 30px 22px;
  background: var(--paper);
  border-radius: var(--radius);
}

.empty-state--inline h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.empty-state--inline p {
  margin-bottom: 14px;
}

.account-loading,
.product-detail__loading > div:last-child {
  padding: 24px 0;
}

/* Cart items */
.cart-item__media {
  display: block;
  flex: none;
  width: 84px;
  height: 104px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}

.cart-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__title a:hover,
.cart-item__media:hover {
  color: var(--pink-strong);
}

.cart-error {
  padding: 20px 0;
  color: var(--rust);
  font-size: 13px;
}

.cart-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Utility */
[data-auth-only][hidden],
[data-guest-only][hidden] {
  display: none !important;
}

/* Responsive additions */
@media (max-width: 1100px) {
  .header-search {
    max-width: none;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .hero-slide__copy {
    max-width: 540px;
  }

  .category-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-search {
    display: none;
  }

  .header-search-toggle {
    display: inline-grid;
  }

  .header-main {
    min-height: 76px;
  }

  .header-nav {
    display: none;
  }

  .header-actions .header-action span:not(.cart-count):not(.note-count) {
    display: none;
  }

  .header-action {
    min-width: 46px;
    min-height: 46px;
  }

  .header-action svg {
    width: 22px;
    height: 22px;
  }

  .hero-slider__viewport {
    min-height: 620px;
  }

  .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(255, 248, 240, 0.97) 0%,
      rgba(255, 248, 240, 0.9) 46%,
      rgba(255, 248, 240, 0.72) 100%
    );
  }

  .hero-slide__inner {
    padding: 56px var(--gutter) 76px;
  }

  .hero-slide__copy .display {
    font-size: clamp(2.8rem, 8vw, 4.4rem);
  }

  .hero-slider__arrows {
    display: none;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase .finds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-panel {
    position: static;
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-aside {
    display: none;
  }

  .auth-main {
    padding: 48px var(--gutter) 64px;
  }

  .product-detail,
  .product-detail__loading {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .product-detail__media {
    aspect-ratio: 16 / 11;
  }

  .product-detail__media[data-orientation="portrait"] {
    aspect-ratio: 4 / 5;
  }

  .account-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement__inner {
    container-type: inline-size;
    justify-content: center;
    text-align: center;
  }

  .announcement__inner span {
    max-width: none;
  }

  .announcement__item:first-child {
    display: none;
  }

  .announcement__item.announcement__item--center {
    display: block;
    overflow: hidden;
  }

  .announcement__marquee {
    --marquee-duration: 14s;
    width: max-content;
    justify-content: flex-start;
    animation: announcement-marquee var(--marquee-duration) linear infinite;
  }

  .announcement__marquee > span {
    padding-right: 40px;
    font-size: clamp(12px, 3.05cqi, 13px);
    white-space: nowrap;
  }

  .announcement__marquee > span[aria-hidden="true"] {
    display: inline;
  }

  .announcement__item--end {
    display: none;
  }

  .brand img {
    height: 34px;
  }

  .hero-slider__viewport {
    min-height: 640px;
  }

  .hero-trust {
    gap: 14px 18px;
  }

  .hero-trust li {
    max-width: 100%;
    flex: 1 1 150px;
  }

  .category-strip__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase .finds-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase .product-card__media {
    aspect-ratio: 4 / 3;
  }

  .product-card__actions .btn {
    flex: 1 1 0;
  }

  .account-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-head__actions {
    width: 100%;
  }

  .account-head__actions .btn {
    flex: 1;
  }

  .verify-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-main {
    padding: 36px var(--gutter) 56px;
  }
}

@media (max-width: 520px) {
  .header-actions {
    gap: 0;
  }

  .header-action {
    min-width: 42px;
    padding: 4px;
  }

  .header-actions > .header-action:first-child {
    display: none;
  }

  .hero-slider__viewport {
    min-height: 660px;
  }

  .hero-slide__actions .btn {
    width: 100%;
  }

  .hero-slider__dots {
    bottom: 18px;
  }

  .auth-page {
    min-height: 0;
  }

  .account-wishlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card {
    padding: 16px;
  }

  .order-card__head {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .skeleton {
    transition: none;
    animation: none;
  }

  .skeleton {
    background: var(--sand);
  }
}

/* Auth variants */
.auth-page--single {
  display: block;
  min-height: 0;
}

.auth-page--single .auth-main {
  min-height: clamp(520px, calc(100vh - 260px), 820px);
}

.auth-card--wide {
  width: min(100%, 520px);
}

.auth-card--center {
  text-align: center;
}

.role-field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.role-field__legend {
  margin-bottom: 4px;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}

.role-field__hint {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.role-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.role-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
}

.role-card:hover .role-card__body {
  border-color: rgba(91, 24, 53, 0.4);
}

.role-card input:focus-visible + .role-card__body {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.role-card input:checked + .role-card__body {
  border-color: var(--burgundy);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(91, 24, 53, 0.08);
}

.role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--burgundy);
}

.role-card__icon svg {
  width: 16px;
  height: 16px;
}

.role-card__title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}

.role-card__copy {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-back svg {
  width: 16px;
  height: 16px;
}

.auth-back:hover {
  color: var(--pink-strong);
}

.auth-remember {
  margin-top: -4px;
  font-size: 12px;
}

.auth-note a {
  color: var(--pink-strong);
  border-bottom: 1px solid currentColor;
}

.auth-alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.verify-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--burgundy);
}

.verify-mark svg {
  width: 30px;
  height: 30px;
}

.auth-form .field input.otp-input {
  height: 64px;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.auth-card--center .auth-card__lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 44ch;
}

.auth-actions {
  justify-content: center;
}

/* Auction page additions */
.auction-live__media-link {
  display: block;
}

.auction-live__seller {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 12px;
}

.auction-live .bid-activity {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.bid-history__list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.bid-history__list .bid-row:last-child,
.bid-history__list .bid-empty:last-child {
  border-bottom: 0;
}

.watch-btn {
  border-color: var(--border);
  border-radius: 999px;
  color: var(--burgundy);
}

.watch-btn:hover {
  border-color: var(--pink);
  background: var(--cream);
}

.watch-btn[aria-pressed="true"] {
  border-color: var(--pink-strong);
  background: rgba(138, 37, 71, 0.1);
}

.watch-btn[aria-pressed="true"] svg {
  fill: var(--pink-strong);
  color: var(--pink-strong);
}

/* Seller gate */
.form-card .auth-gate {
  border: 0;
  background: transparent;
  padding: 0;
}

.form-card .auth-gate p {
  max-width: 52ch;
}

@media (max-width: 760px) {
  .auth-page--single .auth-main {
    min-height: 0;
  }

  .auth-card--center {
    text-align: left;
  }

  .auth-card--center .verify-mark {
    margin-left: 0;
  }

  .auth-actions {
    justify-content: flex-start;
  }
}

.field .checkbox-row {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  text-transform: none;
}

.field .checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  box-shadow: none;
  accent-color: var(--pink-strong);
}

.field .checkbox-row a {
  font-weight: 600;
}

/* ==========================================================================
   Marketplace hero media, compact product cards, dashboards and deals
   ========================================================================== */

.hero-slide--market {
  background: var(--pink-50);
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slide--market .hero-slide__bg {
  object-position: 66% 46%;
}

.page-hero__grid--media {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.page-hero__aside--inline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: none;
  margin-top: 30px;
  padding-bottom: 0;
  text-align: left;
}

.page-hero__aside--inline strong {
  display: inline;
  font-size: 2rem;
}

.page-hero__media {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow-md);
}

.page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.page-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.market-grid .product-card__media {
  aspect-ratio: 1 / 1;
}

.market-grid .product-card__title {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.market-grid .product-card__body {
  padding-top: 12px;
}

.market-grid .product-card__price {
  font-size: 0.95rem;
}

.market-grid .product-card__actions {
  gap: 8px;
  margin-top: 12px;
}

.market-grid .product-card__actions .btn {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.market-grid .product-card__badge {
  top: 10px;
  left: 10px;
  padding: 5px 7px;
  font-size: 9px;
}

.product-card__badge--promoted {
  background: var(--lemon);
  color: var(--ink);
}

.product-card__badge--sale {
  background: #e4236f;
  color: #fffaf6;
  font-size: 13px;
}

/* Countdown and auction panels */
.countdown__label--intro {
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
}

.countdown--compact {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.countdown--compact .countdown__label--intro {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.countdown--compact .countdown__unit {
  min-width: 76px;
  padding: 8px 10px;
}

.auction-live__price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auction-live__highest {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.auction-live__watch-note {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.product-auction-panel {
  margin: 20px 0 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.product-auction-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-auction-panel__min {
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-auction-panel__highest {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bid-history__list--compact {
  max-height: 154px;
  overflow: auto;
}

/* Shared dashboard shell */
.dashboard-page,
.messages-page {
  padding: clamp(32px, 5vw, 64px) 0 var(--section);
  min-height: 60vh;
  background: var(--cream);
}

.dashboard-loading {
  max-width: 720px;
}

.dashboard-head,
.messages-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.dashboard-head h1,
.messages-head h1 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.dashboard-head__sub,
.messages-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.dashboard-head__actions,
.messages-head .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.dashboard-stats > div {
  padding: 16px 18px;
  background: var(--paper);
}

.dashboard-stats span {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-stats strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.dashboard-section {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.dashboard-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dashboard-section__head h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
}

.dashboard-section__head p {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.dashboard-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.dashboard-form--compact {
  margin-top: 14px;
  padding: 16px;
}

.dashboard-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-form .field {
  min-width: 0;
}

.dashboard-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  color: var(--rust);
  font-size: 0.85rem;
}

.form-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.seller-listings,
.promotion-list,
.admin-list {
  display: grid;
  gap: 14px;
}

.seller-listing {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.seller-listing > img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--sand);
}

.seller-listing__body {
  min-width: 0;
}

.seller-listing__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-listing h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.seller-listing p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.seller-listing__meta {
  margin-top: 6px !important;
}

.seller-listing__tools {
  margin-top: 12px;
}

.seller-listing__tools summary {
  cursor: pointer;
  color: var(--burgundy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.seller-listing__remove {
  margin-top: 14px;
  color: var(--rust);
  border-color: rgba(176, 0, 32, 0.35);
}

.promotion-row,
.account-deal,
.report-list li,
.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.promotion-row strong,
.account-deal strong,
.report-list strong,
.notification-item strong {
  display: block;
  font-size: 0.92rem;
}

.promotion-row span,
.account-deal span,
.report-list p,
.notification-item p,
.notification-item span {
  display: block;
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.account-deals {
  display: grid;
  gap: 10px;
}

.account-deal {
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--live {
  background: rgba(163, 177, 138, 0.22);
  border-color: rgba(163, 177, 138, 0.5);
  color: var(--ink);
}

.pill--warning {
  background: rgba(239, 224, 207, 0.6);
  border-color: rgba(180, 160, 30, 0.35);
  color: #5c4b00;
}

.pill--danger {
  background: rgba(176, 0, 32, 0.1);
  border-color: rgba(176, 0, 32, 0.3);
  color: var(--rust);
}

/* Admin console */
.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-card__head strong {
  font-size: 0.95rem;
}

.admin-card__head p,
.admin-card__details {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.admin-card__details {
  margin-top: 12px;
  color: var(--ink-soft);
}

.admin-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-card__actions input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: inherit;
  font-size: 0.82rem;
}

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.85rem;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}

.admin-table th {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td > span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.admin-table select {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: inherit;
  font-size: 0.78rem;
}

/* Messages and deals */
.messages-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}

.messages-list {
  display: grid;
  gap: 8px;
}

.messages-list__item {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.messages-list__item strong {
  font-size: 0.86rem;
}

.messages-list__item span {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.messages-list__enquiry {
  background: #fff8f4;
  border-color: #e7c9d4;
}

.messages-list__item.is-active {
  border-color: var(--burgundy);
  box-shadow: inset 3px 0 0 var(--burgundy);
}

.messages-thread {
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.messages-thread__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.messages-thread__head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.messages-thread__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.deal-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.deal-panel span {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.deal-panel__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-panel__actions form {
  display: flex;
  gap: 8px;
  flex: 1 1 260px;
}

.deal-panel__actions input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.84rem;
}

.deal-panel__done {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--burgundy);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.deal-panel__done p {
  margin: 0;
}

.chat-report {
  margin: 12px 0 16px;
  padding: 16px;
  background: #fff8f4;
  border: 1px solid #eadfd4;
  border-radius: 16px;
}

.chat-report h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.block-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.block-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid #eadfd4;
}

.block-list li span {
  display: block;
  color: #5e4a53;
  font-size: 0.9rem;
}

.report-proof {
  display: block;
  max-width: 220px;
  height: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.message-thread {
  display: grid;
  gap: 10px;
  max-height: 46vh;
  margin: 0;
  padding: 4px 2px;
  overflow-y: auto;
  list-style: none;
}

.message {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.message--mine {
  margin-left: auto;
  background: var(--sand);
}

.message div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.message strong {
  font-size: 0.78rem;
}

.message span {
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.message p {
  margin: 4px 0 0;
  font-size: 0.87rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.message-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.message-form textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.message-form__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Account moderation, notifications and reports */
.moderation-banner {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.moderation-banner[data-tone="danger"] {
  border-color: rgba(176, 0, 32, 0.35);
  background: rgba(176, 0, 32, 0.05);
}

.moderation-banner[data-tone="warning"] {
  border-color: rgba(180, 160, 30, 0.4);
  background: rgba(239, 224, 207, 0.5);
}

.moderation-banner[data-tone="info"] {
  border-color: rgba(163, 177, 138, 0.5);
  background: rgba(163, 177, 138, 0.12);
}

.moderation-banner strong {
  font-size: 1rem;
}

.moderation-banner p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.moderation-banner__form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.moderation-banner__form label {
  font-size: 0.8rem;
  font-weight: 600;
}

.moderation-banner__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.moderation-banner__form .btn {
  justify-self: start;
}

.moderation-banner__note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.notification-list,
.report-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item.is-unread {
  border-left: 3px solid var(--pink);
}

.report-list li {
  align-items: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero__grid--media {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }
}

@media (max-width: 860px) {
  .page-hero__grid--media {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero__media {
    max-width: 360px;
    margin: 8px auto 0;
  }

  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .messages-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .messages-list__item {
    min-width: 210px;
  }

  .deal-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-listing {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .seller-listing > img {
    width: 72px;
    height: 72px;
  }

  .dashboard-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-head,
  .messages-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .deal-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-panel > div:first-child {
    grid-column: 1 / -1;
  }

  .hero-slide--market .hero-slide__bg {
    object-position: 58% 42%;
  }
}

@media (max-width: 560px) {
  .market-grid {
    gap: 16px;
  }

  .market-grid .product-card__title {
    font-size: 1rem;
  }

  .market-grid .product-card__meta {
    font-size: 9px;
  }

  .market-grid .product-card__actions {
    flex-direction: column;
  }

  .market-grid .product-card__actions .btn {
    width: 100%;
  }

  .dashboard-page,
  .messages-page {
    padding-top: 26px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats > div {
    padding: 13px 14px;
  }

  .dashboard-stats strong {
    font-size: 1.4rem;
  }

  .seller-listing {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-listing > img {
    width: 100%;
    height: 180px;
  }

  .promotion-row,
  .account-deal {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-card__head {
    flex-direction: column;
  }

  .deal-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .deal-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .deal-panel__actions form {
    flex-direction: column;
  }

  .message {
    max-width: 92%;
  }

  .page-hero__media {
    max-width: 100%;
  }
}
.product-detail__media,
.product-detail__media[data-orientation="landscape"],
.product-detail__media[data-orientation="portrait"] {
  aspect-ratio: 1 / 1;
  max-height: 620px;
}

/* Narrow phone guards */
@media (max-width: 560px) {
  .market-grid .product-card__meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 8px;
  }

  .market-grid .verified svg {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 380px) {
  .live-panel__head {
    flex-wrap: wrap;
  }

  .live-panel .live-badge {
    font-size: 10px;
  }
}

/* --------------------------------------------------------------------------
   Valor agent
   -------------------------------------------------------------------------- */
.agent {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.agent[hidden] {
  display: none;
}

.agent__toggle,
.agent__panel {
  pointer-events: auto;
}

.agent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--burgundy-deep);
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.agent__toggle:hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
}

.agent__toggle:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.agent__toggle-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.agent__toggle-icon svg {
  width: 18px;
  height: 18px;
}

.agent__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(70vh, 560px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.agent__panel[hidden] {
  display: none;
}

.agent__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.agent__head h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.agent__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.agent__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.agent__close svg {
  width: 14px;
  height: 14px;
}

.agent__close:hover {
  border-color: var(--ink-muted);
}

.agent__close:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.agent__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 120px;
  background: var(--paper);
}

.agent__turn {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.agent__turn p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent__turn--agent {
  align-self: flex-start;
  background: var(--sand);
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}

.agent__turn--user {
  align-self: flex-end;
  background: var(--burgundy);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}

.agent__turn--pending {
  color: var(--ink-muted);
  font-style: italic;
}

.agent__turn--error {
  background: var(--paper);
  border: 1px solid var(--rust);
  color: var(--rust);
}

.agent__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.agent__form textarea {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  resize: none;
}

.agent__form textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

.agent__form .btn {
  flex: none;
  min-height: 44px;
}

.agent__note {
  margin: 0;
  padding: 0 18px 14px;
  background: var(--cream);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.agent__note a {
  color: var(--burgundy);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .agent {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    align-items: stretch;
  }

  .agent__toggle {
    align-self: flex-end;
  }

  .agent__panel {
    max-height: min(76vh, 520px);
  }
}

@media (max-width: 420px) {
  .agent__toggle-label {
    display: none;
  }

  .agent__toggle {
    width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .agent__toggle-icon,
  .agent__toggle-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media print {
  .agent {
    display: none !important;
  }
}

/* Live auction panels carry server data. Until the first render arrives, the
   placeholder markup is hidden so no unverified lot, price, or countdown is
   visible. The attribute is removed by app.js after the server responds. */
[data-auction-root][data-auction-pending] {
  position: relative;
}

[data-auction-root][data-auction-pending] > * {
  visibility: hidden;
}

[data-auction-root][data-auction-pending]::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 38% 100% no-repeat,
    linear-gradient(currentColor, currentColor) 46% 8% / 46% 14px no-repeat,
    linear-gradient(currentColor, currentColor) 46% 18% / 34% 14px no-repeat,
    linear-gradient(currentColor, currentColor) 46% 34% / 20% 10px no-repeat,
    linear-gradient(currentColor, currentColor) 46% 44% / 16% 10px no-repeat,
    linear-gradient(currentColor, currentColor) 72% 34% / 20% 10px no-repeat,
    linear-gradient(currentColor, currentColor) 72% 44% / 16% 10px no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

/* ==========================================================================
   Seller onboarding, stores, payments, and the staff console
   ========================================================================== */

.page-head--compact {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.page-head--compact h1 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.page-head__sub {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
}

/* KYC ------------------------------------------------------------------- */

.kyc-page {
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.9), rgba(255, 255, 255, 0) 320px),
    var(--paper);
}

.kyc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.kyc-head h1 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
}

.kyc-head p {
  margin: 0;
  color: var(--ink-muted);
}

.kyc-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--burgundy);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.kyc-status strong {
  display: block;
  margin-bottom: 2px;
}

.kyc-status p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.kyc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.kyc-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kyc-steps li span {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--burgundy);
  font-weight: 700;
  letter-spacing: 0;
}

.kyc-steps li.is-done,
.kyc-steps li.is-active {
  border-color: rgba(91, 24, 53, 0.35);
  color: var(--burgundy);
}

.kyc-steps li.is-done span {
  background: var(--burgundy);
  color: var(--cream);
}

.kyc-steps li.is-active {
  background: var(--cream);
  font-weight: 600;
}

.kyc-block {
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.kyc-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.kyc-block__head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 24px;
}

.kyc-block__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, transform var(--speed) ease;
}

.tier-card:hover {
  border-color: rgba(91, 24, 53, 0.4);
  transform: translateY(-2px);
}

.tier-card.is-active {
  border-color: var(--burgundy);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(91, 24, 53, 0.08);
}

.tier-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.tier-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--burgundy);
}

.tier-card__price span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tier-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.tier-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
}

.tier-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
}

.tier-card li span:last-child {
  color: var(--burgundy);
  font-weight: 600;
  white-space: nowrap;
}

.tier-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--sand);
}

.fee-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.kyc-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kyc-doc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-bright);
}

.kyc-doc.is-done {
  border-style: solid;
  border-color: rgba(91, 24, 53, 0.35);
  background: var(--cream);
}

.kyc-doc__body {
  min-width: 0;
}

.kyc-doc__body strong {
  display: block;
  font-size: 14px;
}

.kyc-doc__body span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

.kyc-doc__body a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--burgundy);
}

.kyc-doc__pick {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.kyc-doc input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.kyc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.kyc-form-grid .field--wide {
  grid-column: 1 / -1;
}

.kyc-form-grid textarea {
  min-height: 84px;
}

.kyc-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 13px;
}

.kyc-declaration input {
  margin-top: 3px;
}

.kyc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.kyc-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--rust);
  background: rgba(155, 28, 49, 0.06);
  color: var(--ink-soft);
  font-size: 13px;
}

/* Stores ---------------------------------------------------------------- */

.store-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 22px;
}

body.page-stores .store-head {
  padding: 28px 0 24px;
  background: #fff8f4;
}

body.page-stores .store-head h1 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

body.page-stores .store-head .page-head__sub {
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.5;
  color: #4a2140;
}

body.page-stores .store-search {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 18px;
}

body.page-stores .store-search label {
  color: #7a1542;
  font-size: 13px;
  font-weight: 650;
}

body.page-stores .store-search__bar {
  display: flex;
  gap: 8px;
}

body.page-stores .store-search input {
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
}

body.page-stores .store-search button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
}

body.page-stores .store-search input:focus-visible {
  outline: 2px solid #7a1542;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  body.page-stores .store-search__bar {
    flex-direction: column;
  }

  body.page-stores .store-search button {
    width: 100%;
  }
}

.store-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
}

.store-search input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(91, 24, 53, 0.1);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.store-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-card__banner {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  background: var(--sand);
}

.store-row + .store-row {
  margin-top: 28px;
}

.store-row h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.store-row__empty {
  margin: 0;
  color: var(--ink-soft, #6b5a66);
  font-size: 14px;
}

.store-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.store-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line, #eadfe4);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.store-person__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: #7a1542;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.store-person__avatar img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.store-person h3 {
  margin: 0;
  font-size: 16px;
}

.store-person p {
  margin: 2px 0 0;
  color: #6b5a66;
  font-size: 13px;
}

.store-person a {
  color: #7a1542;
  font-size: 14px;
  font-weight: 650;
}

.store-card__body {
  position: relative;
  padding: 0 18px 18px;
}

.store-card__logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
}

.store-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card__body h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
}

.blue-tick {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.blue-tick svg {
  display: block;
  width: 18px;
  height: 18px;
}

.store-identity h1 .blue-tick {
  width: 22px;
  height: 22px;
  margin-left: 8px;
}

.store-identity h1 .blue-tick svg {
  width: 22px;
  height: 22px;
}

.store-card__body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.store-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.store-card__keywords li {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.store-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-muted);
  font-size: 12px;
}

.store-page {
  padding-bottom: var(--section);
}

/* The mini store carries its own palette so an Online Business seller can
   make the page feel like an independent shop without touching Valor chrome. */
.store-shell {
  --store-bg: #f6efe9;
  --store-surface: var(--surface);
  --store-ink: #2b1417;
  --store-muted: #766260;
  --store-accent: #5b1835;
  --store-accent-soft: #f3d9df;
  --store-line: rgba(91, 24, 53, 0.14);
  --store-hero: linear-gradient(120deg, #5b1835, #3f0f24 70%);
  min-height: 60vh;
  background: var(--store-bg);
  color: var(--store-ink);
}

.store-theme--rose {
  --store-bg: #fbf6f4;
  --store-surface: var(--surface);
  --store-ink: #3a3436;
  --store-muted: #756463;
  --store-accent: #b4776f;
  --store-accent-soft: #f4e3df;
  --store-line: rgba(58, 52, 54, 0.12);
  --store-hero: linear-gradient(120deg, #b4776f, #8c5a55 70%);
}

.store-theme--dark {
  --store-bg: #14100f;
  --store-surface: #1d1717;
  --store-ink: #f7efe2;
  --store-muted: #b7a999;
  --store-accent: #c9a45c;
  --store-accent-soft: #35171f;
  --store-line: rgba(201, 164, 92, 0.26);
  --store-hero: linear-gradient(120deg, #2a0c17, #100d0c 72%);
}

.store-theme--fresh {
  --store-bg: #fdf7f4;
  --store-surface: var(--surface);
  --store-ink: #3d3a3a;
  --store-muted: #786f68;
  --store-accent: #a97e6c;
  --store-accent-soft: #efe7df;
  --store-line: rgba(61, 58, 58, 0.1);
  --store-hero: linear-gradient(120deg, #e4c9c3, #d9c6b6 72%);
}

.store-theme--pink { --store-bg: #fff7fb; --store-ink: #4a2140; --store-accent: #ff3d86; --store-hero: linear-gradient(120deg, #ff3d86, #7a1542); }
.store-theme--mono { --store-bg: #fff; --store-ink: #1c1c1c; --store-accent: #1c1c1c; --store-hero: linear-gradient(120deg, #1c1c1c, #4a4a4a); }
.store-theme--neutral { --store-bg: #fbf7f2; --store-ink: #2e241f; --store-accent: #6b4b3e; --store-hero: linear-gradient(120deg, #6b4b3e, #a9785a); }
.store-theme--forest { --store-bg: #f7fbf8; --store-ink: #163028; --store-accent: #1f4d3a; --store-hero: linear-gradient(120deg, #1f4d3a, #3f8f6b); }
.store-theme--navy { --store-bg: #fbf8f1; --store-ink: #14213d; --store-accent: #c4a35a; --store-hero: linear-gradient(120deg, #14213d, #c4a35a); }
.store-theme--pastel { --store-bg: #fcf8fb; --store-ink: #3b3148; --store-accent: #6d5b86; --store-hero: linear-gradient(120deg, #6d5b86, #e7b7c8); }
.store-theme--blue { --store-bg: #f7fbff; --store-ink: #16324f; --store-accent: #1d4e89; --store-hero: linear-gradient(120deg, #1d4e89, #3d8bfd); }
.store-theme--custom { --store-bg: #fff8f4; --store-ink: #2c1230; --store-accent: #e4236f; --store-hero: linear-gradient(120deg, #7a1542, #ff3d86); }
.store-shell .btn--dark { background: var(--store-button, var(--store-accent)); border-color: transparent; }

.store-preview-note {
  margin: 0;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.store-hero {
  position: relative;
  z-index: 0;
  height: clamp(210px, 32vw, 360px);
  overflow: hidden;
}

.store-hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero--fallback {
  height: clamp(150px, 20vw, 220px);
}

.store-hero__banner--fallback {
  background: var(--store-hero);
}

.store-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 9, 9, 0.24), rgba(12, 9, 9, 0.58));
}

.store-hero__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}

.store-hero__crumb {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.store-hero__crumb:hover {
  color: var(--surface);
  text-decoration: underline;
}

.store-hero__badge {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(18, 13, 13, 0.35);
  color: var(--surface);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-shell__inner {
  padding-bottom: 8px;
}

.store-identity {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: -60px;
  padding: 24px 28px;
  border: 1px solid var(--store-line);
  border-radius: var(--radius);
  background: var(--store-surface);
  box-shadow: 0 18px 40px rgba(24, 12, 16, 0.14);
}

.store-identity__main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.store-identity__logo {
  display: grid;
  flex: 0 0 84px;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 3px solid var(--store-surface);
  border-radius: 50%;
  background: var(--store-accent);
  box-shadow: 0 6px 18px rgba(24, 12, 16, 0.18);
  color: var(--store-surface);
  font-family: var(--serif);
  font-size: 30px;
}

.store-theme--dark .store-identity__logo {
  color: #14100f;
}

.store-identity__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-identity__eyebrow {
  margin: 0 0 4px;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-identity h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  color: var(--store-ink);
}

.store-identity__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: var(--store-muted);
  font-size: 12.5px;
}

.store-identity__meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.store-identity__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-identity__actions .btn--dark {
  background: var(--store-accent);
  border-color: var(--store-accent);
  color: var(--surface);
}

.store-theme--dark .store-identity__actions .btn--dark {
  color: #14100f;
}

.store-identity__actions .btn--outline {
  border-color: var(--store-line);
  color: var(--store-ink);
}

.store-nav {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 64px;
  padding: 8px 24px;
  background: var(--store-surface, #fff);
  color: var(--store-ink);
  border-bottom: 1px solid var(--store-line, rgba(22, 18, 24, 0.12));
}

.store-nav a {
  color: inherit;
  text-decoration: none;
}

.store-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
}

.store-nav__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--store-primary, var(--store-accent));
  color: #fff8f4;
  font-family: var(--serif);
}

.store-nav__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.store-nav__links a {
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
}

.store-nav__links a:hover {
  text-decoration: underline;
}

.store-shell--site .store-hero,
.store-shell--site .store-hero--fallback {
  height: clamp(460px, 68vw, 680px);
}

.store-shell--site .store-hero__banner--fallback {
  background: linear-gradient(165deg, var(--store-primary, #1d4e89) 0%, #0c1830 78%);
}

.store-shell--site .store-hero__scrim {
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.2), rgba(8, 10, 18, 0.72));
}

.store-shell--site .store-identity {
  margin-top: -220px;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.store-shell--site .store-identity h1,
.store-shell--site .store-identity__meta,
.store-shell--site .store-slogan,
.store-shell--site .store-identity__main > div > p {
  color: #fff8f4;
}

.store-shell--site .store-identity__eyebrow {
  color: rgba(255, 248, 244, 0.86);
}

.store-shell--site .store-identity__actions .btn--outline {
  color: #fff8f4;
  border-color: rgba(255, 248, 244, 0.75);
  background: transparent;
}

.store-shell--site .store-story {
  padding-top: 48px;
}

.store-shell--site .store-bio {
  color: var(--store-ink);
  font-size: 16px;
  line-height: 1.6;
}

.store-page:has(.store-shell--site) {
  background: var(--store-bg, #f4f8fc);
}

/* Online Business storefront — phone/tablet rhythm (unslop spacing + layout).
   Site hero used to stay 420px on a 390px phone, so white text spilled onto
   the light surface. On small screens the identity becomes a quiet card. */
@media (max-width: 900px) {
  .store-shell--site .store-nav {
    top: 0;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 52px;
    padding: 8px 12px;
  }

  .store-shell--site .store-nav__brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38%;
  }

  .store-shell--site .store-nav__brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-shell--site .store-nav__links {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .store-shell--site .store-nav__links::-webkit-scrollbar {
    display: none;
  }

  .store-shell--site .store-nav__links a {
    flex: none;
    padding: 0 12px;
    font-size: 14px;
  }

  .store-shell--site .store-hero,
  .store-shell--site .store-hero--fallback {
    height: clamp(180px, 42vw, 260px);
  }

  .store-shell--site .store-hero__bar {
    padding-top: 16px;
    gap: 8px;
  }

  .store-shell--site .store-shell__inner {
    padding-bottom: 16px;
  }

  .store-shell--site .store-identity {
    margin-top: -56px;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--store-line, rgba(22, 18, 24, 0.12));
    border-radius: 16px;
    background: var(--store-surface, #fff);
    box-shadow: 0 12px 28px rgba(12, 18, 32, 0.12);
  }

  .store-shell--site .store-identity h1,
  .store-shell--site .store-identity__meta,
  .store-shell--site .store-slogan,
  .store-shell--site .store-identity__main > div > p {
    color: var(--store-ink, #16324f);
  }

  .store-shell--site .store-identity__eyebrow {
    color: var(--store-accent, #1d4e89);
    letter-spacing: 0.08em;
  }

  .store-shell--site .store-identity__main {
    gap: 14px;
    width: 100%;
  }

  .store-shell--site .store-identity__actions {
    width: 100%;
    gap: 8px;
  }

  .store-shell--site .store-identity__actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
    justify-content: center;
  }

  .store-shell--site .store-identity__actions .btn--outline {
    color: var(--store-ink, #16324f);
    border-color: var(--store-line, rgba(22, 18, 24, 0.18));
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .store-shell--site .store-tools {
    margin-top: 16px;
  }

  .store-shell--site .store-tools label {
    max-width: none;
  }

  .store-shell--site .store-story {
    padding-top: 24px;
  }
}

@media (max-width: 720px) {
  .store-shell--site .store-hero,
  .store-shell--site .store-hero--fallback {
    height: 168px;
  }

  .store-shell--site .store-identity {
    margin-top: -48px;
    padding: 16px;
  }

  .store-shell--site .store-identity__logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    font-size: 22px;
    border-width: 2px;
  }

  .store-shell--site .store-identity h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .store-shell--site .store-identity__eyebrow {
    font-size: 10px;
  }

  .store-shell--site .store-identity__meta {
    gap: 4px 10px;
    font-size: 12px;
  }

  .store-shell--site .store-hero__badge {
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .store-shell--site .store-hero,
  .store-shell--site .store-hero--fallback {
    height: 148px;
  }

  .store-shell--site .store-identity {
    margin-top: -40px;
    padding: 16px;
    border-radius: 14px;
  }

  .store-shell--site .store-nav__brand strong {
    display: none;
  }

  .store-shell--site .store-nav__brand {
    max-width: none;
  }

  .store-shell--site .store-identity__actions {
    flex-direction: column;
  }

  .store-shell--site .store-identity__actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Clear the floating buyer dock so the last store section is not clipped. */
@media (max-width: 767px) {
  .store-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-nav a {
    transition: none;
  }
}

.store-story {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 2px 0;
}

.store-bio {
  flex: 1 1 460px;
  max-width: 760px;
  margin: 0;
  color: var(--store-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
}

.store-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-keywords li {
  padding: 6px 12px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: var(--store-accent-soft);
  color: var(--store-ink);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.store-collection,
#store-about {
  margin-top: 38px;
  scroll-margin-top: 160px;
}

.store-collection__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--store-line);
}

.store-collection__eyebrow {
  margin: 0 0 4px;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-collection__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--store-ink);
}

/* Storefront campaign stage above the collection. The deck is a Three.js
   scene on capable browsers, with the plain product image as the fallback. */
.store-stage {
  position: relative;
  margin: 0 0 38px;
  padding: clamp(20px, 2.8vw, 34px);
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 130% at 6% -10%, color-mix(in srgb, var(--store-accent) 14%, transparent), transparent 58%),
    radial-gradient(100% 120% at 108% 118%, color-mix(in srgb, var(--store-accent) 10%, transparent), transparent 62%),
    var(--store-surface, #fff);
  color: var(--store-ink);
  isolation: isolate;
}

.store-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--store-ink) 10%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(80% 75% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(80% 75% at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}

.store-stage:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 3px;
}

.store-stage__intro {
  position: relative;
  max-width: 60ch;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.store-stage__kicker {
  margin: 0 0 8px;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.store-stage__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.06;
  color: var(--store-ink);
  text-wrap: balance;
}

.store-stage__note {
  max-width: 54ch;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--store-ink) 68%, transparent);
  font-size: 14px;
  line-height: 1.65;
}

.store-stage__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(22px, 3.4vw, 44px);
  align-items: center;
}

.store-stage__deck {
  position: relative;
  aspect-ratio: 1 / 0.94;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--store-line) 70%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(85% 85% at 50% 26%, color-mix(in srgb, var(--store-accent) 20%, #fff), color-mix(in srgb, var(--store-accent) 7%, #fff));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 30px 60px -38px rgba(28, 18, 24, 0.5);
  cursor: grab;
  touch-action: pan-y;
}

.store-stage__deck:active {
  cursor: grabbing;
}

/* Every stage style keeps the same controls but frames the 3D deck
   differently, so the deck shape follows the chosen layout. */
.store-stage[data-stage-layout="strip"] .store-stage__deck {
  aspect-ratio: 1 / 0.8;
}

.store-stage[data-stage-layout="spotlight"] .store-stage__deck {
  aspect-ratio: 1 / 1.02;
}

.store-stage[data-stage-layout="split"] .store-stage__deck {
  aspect-ratio: 1 / 0.74;
}

.store-stage[data-stage-layout="ring"] .store-stage__deck {
  aspect-ratio: 1 / 0.9;
}

.store-stage__image,
.store-stage__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.store-stage__image {
  object-fit: cover;
  transition: opacity 450ms ease;
}

.store-stage__canvas {
  opacity: 0;
  transition: opacity 600ms ease;
}

.store-stage.is-live .store-stage__image {
  opacity: 0;
}

.store-stage.is-live .store-stage__canvas {
  opacity: 1;
}

.store-stage__glow {
  position: absolute;
  inset: auto -12% -34% -12%;
  height: 58%;
  background: radial-gradient(50% 62% at 50% 100%, color-mix(in srgb, var(--store-accent) 30%, transparent), transparent 72%);
  filter: blur(20px);
  opacity: 0.65;
  pointer-events: none;
}

.store-stage__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--store-accent);
  color: #fff8f4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -10px rgba(20, 10, 16, 0.7);
}

.store-stage__badge[hidden],
.store-stage__price s[hidden] {
  display: none;
}

.store-stage__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 14, 20, 0.55);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.store-stage__detail {
  min-width: 0;
}

.store-stage__eyebrow {
  margin: 0;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-stage__detail h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.08;
  color: var(--store-ink);
}

.store-stage__detail h3 a {
  color: inherit;
  text-decoration: none;
}

.store-stage__detail h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.store-stage__desc {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: color-mix(in srgb, var(--store-ink) 70%, transparent);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.store-stage__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.store-stage__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.store-stage__price strong {
  color: var(--store-ink);
  font-size: 21px;
}

.store-stage__price s {
  color: color-mix(in srgb, var(--store-ink) 52%, transparent);
  font-size: 13px;
}

.store-stage__controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(16px, 2vw, 22px);
}

.store-stage__dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.store-stage__dots button {
  position: relative;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.store-stage__dots button::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 3px;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-ink) 20%, transparent);
  transition: width 200ms ease, background 200ms ease;
}

.store-stage__dots button[aria-current="true"]::before {
  width: 22px;
  background: var(--store-accent);
}

.store-stage__dots button:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-stage__arrows {
  display: flex;
  gap: 6px;
}

.store-stage__arrows button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--store-line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--store-surface, #fff) 88%, transparent);
  color: var(--store-ink);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.store-stage__arrows button:hover {
  border-color: var(--store-accent);
  color: var(--store-accent);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .store-stage__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .store-stage__deck {
    aspect-ratio: 1 / 0.88;
  }

  .store-stage[data-stage-layout="split"] .store-stage__deck {
    aspect-ratio: 1 / 0.84;
  }

  .store-stage[data-stage-layout="strip"] .store-stage__deck {
    aspect-ratio: 1 / 0.86;
  }

  .store-stage__detail {
    padding: 0 2px;
  }

  .store-stage__desc {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 520px) {
  .store-stage {
    padding: 16px;
    border-radius: 20px;
  }

  .store-stage__deck {
    aspect-ratio: 1 / 1.02;
    border-radius: 14px;
  }

  .store-stage__title {
    font-size: 27px;
  }

  .store-stage__detail h3 {
    font-size: 25px;
  }

  .store-stage__foot {
    gap: 12px;
  }
}


.store-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.store-gallery__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--store-line, var(--line));
  border-radius: 14px;
  background: #fff;
}

.store-gallery__item img,
.store-gallery__video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1a0d12;
}

.store-gallery__item--video {
  grid-column: 1 / -1;
}

.store-gallery__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a0d12;
}

.store-gallery__frame iframe,
.store-gallery__item--video .store-gallery__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.store-gallery__item figcaption {
  padding: 10px 12px 12px;
  color: var(--store-ink, var(--ink));
  font-size: 0.88rem;
}

.store-gallery-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.store-slide-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  padding: 2px;
  overflow: auto;
}

.store-slide-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.store-slide-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.store-slide-option img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pink-50);
}

.store-slide-option > span:not(.store-slide-option__tick) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-slide-option strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-900, #2c1230);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-slide-option small {
  color: var(--ink-400);
  font-size: 11.5px;
}

.store-slide-option__tick {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.store-slide-option.is-selected {
  border-color: var(--burgundy-800);
  box-shadow: inset 0 0 0 1px var(--burgundy-800);
}

.store-slide-option.is-selected .store-slide-option__tick {
  border-color: var(--burgundy-800);
  background: var(--burgundy-800);
  color: #fff;
}

.store-slide-option:has(input:focus-visible) {
  outline: 2px solid var(--pink-500, #e4236f);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .store-slide-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

.store-gallery-editor__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.store-gallery-editor__item img,
.store-gallery-editor__kind {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pink-50, #fdf6f8);
}

.store-gallery-editor__kind {
  display: grid;
  place-items: center;
  color: var(--burgundy, #7a1542);
  font-size: 0.75rem;
  font-weight: 700;
}

.store-gallery-editor__item small {
  display: block;
  margin-top: 2px;
  color: var(--ink-600, #6d4452);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .store-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.store-collection__head > span {
  color: var(--store-muted);
  font-size: 12.5px;
}

.store-tools {
  margin-top: 22px;
}

.store-tools label {
  display: grid;
  gap: 6px;
  max-width: 420px;
  color: var(--store-muted);
  font-size: 13px;
  font-weight: 650;
}

.store-tools input {
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: var(--store-surface, #fff);
  color: var(--store-ink);
  font: inherit;
}

.store-tools input:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.store-picks button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: var(--store-surface, #fff);
  color: var(--store-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.store-picks button[aria-pressed="true"] {
  background: var(--store-ink);
  border-color: var(--store-ink);
  color: var(--store-bg, #fff);
}

.store-picks button:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.store-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 22px;
  background: var(--store-surface, #fff);
  box-shadow: 0 12px 28px rgba(44, 18, 48, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.store-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(24, 12, 16, 0.14);
}

.store-product__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--store-accent-soft);
}

.store-product__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.store-product:hover .store-product__media img {
  transform: scale(1.04);
}

.store-product__state {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 2px;
  background: rgba(20, 13, 13, 0.62);
  color: var(--surface);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}

.store-product__category {
  margin: 0;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-product h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
}

.store-product h3 a {
  color: var(--store-ink);
  text-decoration: none;
}

.store-product h3 a:hover {
  color: var(--store-accent);
}

.store-product__desc {
  margin: 0;
  color: var(--store-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.store-product__foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.store-product__price {
  color: var(--store-ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.store-product__foot .btn {
  width: 100%;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .store-product,
  .store-product__media img {
    transition: none;
  }
}

.store-product__link {
  color: var(--store-accent);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* List View: wide rows with the image on the left. */
.store-layout--list .store-products {
  grid-template-columns: 1fr;
  gap: 16px;
}

.store-layout--list .store-product {
  flex-direction: row;
}

.store-layout--list .store-product__media {
  flex: 0 0 clamp(150px, 22%, 250px);
}

.store-layout--list .store-product__media img {
  height: 100%;
  min-height: 160px;
  aspect-ratio: auto;
}

.store-layout--list .store-product__body {
  justify-content: center;
  padding: 20px 24px;
}

.store-layout--list .store-product h3 {
  font-size: 20px;
}

.store-layout--list .store-product__price {
  font-size: 17px;
}

/* Masonry Style: a staggered editorial wall. */
.store-layout--masonry .store-products {
  display: block;
  columns: 4;
  column-gap: 22px;
}

.store-layout--masonry .store-product {
  display: inline-block;
  width: 100%;
  margin-bottom: 22px;
  break-inside: avoid;
}

.store-layout--masonry .store-product__media img {
  aspect-ratio: 3 / 4;
}

.store-layout--masonry .store-product:nth-child(3n + 2) .store-product__media img {
  aspect-ratio: 1 / 1;
}

.store-layout--masonry .store-product:nth-child(3n) .store-product__media img {
  aspect-ratio: 4 / 5;
}

/* Showcase Style: one featured piece above the rest of the collection. */
.store-showcase__feature {
  margin-bottom: 28px;
}

.store-showcase__label {
  margin: 0 0 10px;
  color: var(--store-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.store-product--featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
  border-radius: var(--radius);
}

.store-product--featured .store-product__media img {
  height: 100%;
  aspect-ratio: 16 / 11;
}

.store-product--featured .store-product__body {
  justify-content: center;
  padding: clamp(22px, 3vw, 40px);
}

.store-product--featured h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.store-product--featured .store-product__desc {
  font-size: 14px;
  line-height: 1.7;
}

.store-showcase .store-products--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--store-line);
  color: var(--store-muted);
  font-size: 12.5px;
}

.store-foot p {
  margin: 0;
}

.store-foot a {
  color: var(--store-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Store customization (seller dashboard) -------------------------------- */
.store-customizer .dashboard-section__head {
  align-items: flex-start;
}

.store-form .store-choice {
  display: block;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.store-form .store-choice legend {
  margin-bottom: 4px;
  padding: 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.store-form .store-choice .form-note {
  margin: 0 0 14px;
}

.store-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-palette-card,
.store-layout-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease, transform var(--speed) ease;
}

.store-palette-card:hover,
.store-layout-card:hover {
  border-color: var(--burgundy);
  box-shadow: var(--shadow-sm);
}

.store-palette-card:has(input:checked),
.store-layout-card:has(input:checked) {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91, 24, 53, 0.1);
}

.store-palette-card:has(input:focus-visible),
.store-layout-card:has(input:focus-visible) {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.store-palette-card__swatches {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.store-palette-card__swatches i {
  width: 18px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.store-palette-card--classic .store-palette-card__swatches i:nth-child(1) { background: #5b1835; }
.store-palette-card--classic .store-palette-card__swatches i:nth-child(2) { background: #f6efe9; }
.store-palette-card--classic .store-palette-card__swatches i:nth-child(3) { background: #f3d9df; }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(1) { background: #b4776f; }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(2) { background: #fbf6f4; }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(3) { background: #3a3436; }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(1) { background: #2a0c17; }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(2) { background: #100d0c; }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(3) { background: #c9a45c; }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(1) { background: #e4c9c3; }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(2) { background: #d9c6b6; }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(3) { background: #e9e6e4; }

.store-palette-card__body,
.store-layout-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-palette-card__body strong,
.store-layout-card__body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.store-palette-card__body small,
.store-layout-card__body small {
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.store-palette-card__tick {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cream-deep, #e9e2db);
  color: transparent;
  font-size: 12px;
}

.store-palette-card:has(input:checked) .store-palette-card__tick {
  background: var(--burgundy);
  color: var(--surface);
}

.store-layout-card__preview {
  display: grid;
  flex: 0 0 54px;
  gap: 3px;
  width: 54px;
  height: 44px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
}

.store-layout-card__preview i {
  display: block;
  border-radius: 2px;
  background: var(--burgundy);
  opacity: 0.72;
}

.store-layout-card__preview--grid {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.store-layout-card__preview--list {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
}

.store-layout-card__preview--masonry {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.store-layout-card__preview--masonry i:nth-child(1) { grid-row: span 2; }
.store-layout-card__preview--masonry i:nth-child(2) { opacity: 0.5; }

.store-layout-card__preview--showcase {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1.6fr 1fr;
}

.store-layout-card__preview--showcase i:nth-child(1) { grid-column: 1 / -1; }

.store-banner-preview {
  display: grid;
  place-items: center;
  min-height: 82px;
  margin-top: 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.store-banner-preview img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 6px;
}

.store-banner-preview .field-hint {
  text-align: center;
}

.store-remove-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}

.store-bio-count {
  text-align: right;
}

/* Payment --------------------------------------------------------------- */

.payment-page {
  min-height: 58vh;
  background: var(--cream);
}

.payment-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.payment-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 28px;
}

.payment-card--ok .payment-card__icon {
  background: #7a1542;
  color: #fff;
}

.payment-card--stop .payment-card__icon {
  background: #9b1c4a;
  color: #fff;
}

.payment-card h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
}

.payment-card p {
  margin: 0 auto 18px;
  max-width: 480px;
  color: var(--ink-muted);
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 14px;
}

.payment-detail span:last-child {
  font-weight: 600;
  color: var(--burgundy);
}

/* Admin console --------------------------------------------------------- */

.page-admin .site-header {
  display: none;
}

.page-admin {
  background: var(--cream);
}

.admin-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
  margin-top: -86px;
  padding-top: 86px;
  background: var(--cream);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px;
  background: var(--burgundy-deep);
  color: var(--cream);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 0 8px;
  color: var(--cream);
  text-decoration: none;
}

.admin-brand img {
  width: 112px;
  height: auto;
}

.admin-brand span {
  color: rgba(255, 248, 240, 0.6);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 248, 240, 0.72);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.admin-nav button:hover {
  background: rgba(255, 248, 240, 0.08);
  color: var(--cream);
}

.admin-nav button.is-active {
  background: var(--cream);
  color: var(--burgundy-deep);
  font-weight: 600;
}

.admin-nav__label {
  margin: 20px 12px 6px;
  color: rgba(255, 248, 240, 0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar__foot {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 248, 240, 0.14);
  color: rgba(255, 248, 240, 0.66);
  font-size: 12px;
}

.admin-sidebar__foot strong {
  display: block;
  color: var(--cream);
  font-size: 13px;
}

.admin-sidebar .btn--outline {
  border-color: rgba(255, 248, 240, 0.38);
  color: var(--cream);
}

.admin-sidebar .btn--outline:hover {
  border-color: var(--cream);
  background: rgba(255, 248, 240, 0.1);
  color: var(--cream);
}

.admin-main {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 36px) 60px;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-topbar h1 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.1;
}

.admin-topbar p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 11px;
}

.metric-card--accent {
  border-color: rgba(91, 24, 53, 0.28);
  background: var(--burgundy);
  color: var(--cream);
}

.metric-card--accent span,
.metric-card--accent small {
  color: rgba(255, 248, 240, 0.68);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-card__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
}

.chart-card__head p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.chart-card svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--burgundy);
}

.chart-legend i.is-cream {
  background: var(--sand-deep);
}

.bar-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-list li {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.bar-list__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bar-list__top span:last-child {
  font-weight: 600;
  color: var(--burgundy);
  white-space: nowrap;
}

.bar-list__track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--sand);
}

.bar-list__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--burgundy);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel__head h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 24px;
}

.admin-panel__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filters input,
.admin-filters select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.queue-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.queue-card__top h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.queue-card__top p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.queue-card__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.queue-card__body span {
  color: var(--ink-muted);
}

.queue-card__body strong {
  display: block;
  color: var(--ink);
}

.queue-card__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.queue-card__docs a {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--burgundy);
  font-size: 11px;
  text-decoration: none;
}

.queue-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.queue-card__actions input {
  flex: 1 1 200px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.moderator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.moderator-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.moderator-card__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.moderator-card h3 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 18px;
}

.moderator-card p {
  margin: 0 0 10px;
  min-height: 34px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.moderator-card strong {
  display: block;
  font-size: 14px;
}

.moderator-card span {
  color: var(--ink-muted);
  font-size: 11px;
}

.moderator-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.moderator-card__actions select {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.activity-table td,
.activity-table th {
  font-size: 12px;
}

.activity-action {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 600;
}

.admin-empty {
  padding: 30px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-bright);
  text-align: center;
  color: var(--ink-muted);
}

.admin-empty h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  color: var(--ink);
}

.admin-empty p {
  margin: 0;
  font-size: 13px;
}

.admin-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-badge--live {
  background: rgba(91, 24, 53, 0.1);
  color: var(--burgundy);
}

.admin-badge--warn {
  background: rgba(155, 28, 49, 0.1);
  color: var(--rust);
}

.admin-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-products,
  .store-layout--masonry .store-products,
  .store-showcase .store-products--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .store-layout--masonry .store-products {
    columns: 3;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    display: block;
    margin-top: 0;
    padding-top: 0;
  }
  .admin-main {
    padding-top: 20px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .tier-grid,
  .store-grid,
  .store-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-identity {
    align-items: flex-start;
  }
  .store-identity__actions {
    width: 100%;
  }
  .moderator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
  .role-card__body {
    min-height: 0;
  }
  .kyc-head {
    display: block;
  }
  .kyc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tier-grid,
  .store-grid,
  .store-people,
  .kyc-doc-grid,
  .kyc-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-metrics {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    grid-template-columns: 1fr;
  }
  .store-search {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .store-hero {
    height: 190px;
  }
  .store-identity {
    margin-top: -46px;
    padding: 20px;
  }
  .store-identity__logo {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
  .store-story {
    padding-top: 26px;
  }
  .store-products,
  .store-showcase .store-products--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .store-layout--masonry .store-products {
    columns: 2;
    column-gap: 16px;
  }
  .store-layout--masonry .store-product {
    margin-bottom: 16px;
  }
  .store-product--featured {
    grid-template-columns: 1fr;
  }
  .store-product--featured .store-product__media img {
    aspect-ratio: 16 / 10;
  }
  .store-product--featured .store-product__body {
    padding: 22px;
  }
  .store-layout--list .store-product__media {
    flex-basis: 140px;
  }
  .store-layout--list .store-product__body {
    padding: 16px;
  }
  .store-choice-grid {
    grid-template-columns: 1fr;
  }
  .store-customizer .dashboard-section__head {
    display: block;
  }
  .store-customizer .dashboard-section__head .btn {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .store-hero {
    height: 160px;
  }
  .store-hero__badge {
    display: none;
  }
  .store-identity {
    margin-top: -38px;
    padding: 16px;
  }
  .store-identity__main {
    align-items: flex-start;
    gap: 12px;
  }
  .store-identity__logo {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 20px;
  }
  .store-identity h1 {
    font-size: 26px;
  }
  .store-identity__meta {
    gap: 4px 10px;
    font-size: 11.5px;
  }
  .store-identity__meta span + span::before {
    margin-right: 6px;
  }
  .store-identity__actions .btn {
    flex: 1;
  }
  .store-bio {
    flex-basis: 100%;
    font-size: 14.5px;
  }
  .store-products,
  .store-showcase .store-products--grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .store-layout--list .store-products {
    grid-template-columns: 1fr;
  }
  .store-layout--masonry .store-products {
    columns: 1;
  }
  .store-layout--list .store-product__media {
    flex-basis: 112px;
  }
  .store-layout--list .store-product__media img {
    min-height: 120px;
  }
  .store-layout--list .store-product__body {
    padding: 12px 14px;
  }
  .store-layout--list .store-product h3 {
    font-size: 16px;
  }
  .store-layout--list .store-product__desc {
    display: none;
  }
  .store-product__desc {
    display: none;
  }
  .store-collection__head {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .store-foot {
    margin-top: 34px;
  }
  .store-palette-card__body small,
  .store-layout-card__body small {
    display: none;
  }
}

/* Buyer account chrome is selected before the session request resolves. */
/* Signed-in header icons are chosen from the role cookie before the session
   request returns, so the corner does not swap from icons to words. */
html[data-ui-role="buyer"] .header-actions [data-auth-only],
html[data-ui-role="member"] .header-actions [data-auth-only],
html[data-ui-role="admin"] .header-actions [data-auth-only],
html[data-ui-role="moderator"] .header-actions [data-auth-only] {
  display: inline-flex !important;
}

html[data-ui-role="admin"] .header-actions [data-role-only="admin,moderator"],
html[data-ui-role="moderator"] .header-actions [data-role-only="admin,moderator"] {
  display: inline-flex !important;
}

html[data-ui-role="seller"] .header-actions > :not([data-seller-home]):not([data-seller-logout]):not([data-notify-wrap]) {
  display: none !important;
}

html[data-ui-role="seller"] .header-actions [data-notify-wrap],
html[data-ui-role="seller"] .header-actions [data-notify] {
  display: inline-flex !important;
}

html[data-ui-role="seller"] .header-actions [data-seller-home],
html[data-ui-role="seller"] .header-actions [data-seller-logout] {
  display: inline-flex !important;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  color: #7a1542;
}

html[data-ui-role="seller"] .header-actions [data-seller-home] > span,
html[data-ui-role="seller"] .header-actions [data-seller-logout] > span {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  font-size: 13px;
  font-weight: 700;
}

html[data-ui-role="seller"] .header-actions [data-buyer-only],
html[data-ui-role="member"] .header-actions [data-buyer-only],
html[data-ui-role="admin"] .header-actions [data-buyer-only],
html[data-ui-role="moderator"] .header-actions [data-buyer-only] {
  display: none !important;
}

html[data-ui-role="buyer"] [data-hide-for-buyer] {
  display: none !important;
}


.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.upload-preview img,
.kyc-doc__preview {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line, #e6ddd6);
}
.kyc-doc__status {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft, #6b5d55);
  margin-top: 6px;
}
.kyc-doc__preview {
  margin-top: 8px;
}

/* ==========================================================================
   Design system uplift
   Loaded after every page stylesheet. It normalises type, spacing, states,
   and responsive behaviour across the site. Palette and typefaces are
   unchanged: all values come from the tokens in styles.css.
   ========================================================================== */

/* Spacing, elevation, and motion scale ------------------------------------ */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-lg: 16px;
  --shadow-lg: 0 24px 64px rgba(37, 35, 41, 0.16);
  --focus-ring: 0 0 0 4px rgba(138, 37, 71, 0.16);
  --focus-ring-danger: 0 0 0 4px rgba(155, 28, 49, 0.1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* Selection and focus ----------------------------------------------------- */
::selection {
  background: var(--burgundy);
  color: var(--cream);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Typography rhythm ------------------------------------------------------- */
h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  opacity: 0.45;
}

.section-lead,
.page-hero__lead,
.page-head__sub {
  line-height: 1.72;
}

.section-title,
.page-hero h1,
.dashboard-head h1,
.messages-head h1,
.page-head--compact h1 {
  letter-spacing: -0.015em;
}

.breadcrumb {
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.breadcrumb a {
  text-decoration: underline;
  text-decoration-color: rgba(37, 35, 41, 0.25);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}

.breadcrumb a:hover {
  text-decoration-color: currentColor;
}

.results-bar {
  padding: 16px 0 14px;
  font-size: 12.5px;
}

.text-link {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  transition: background-color var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--dark {
  box-shadow: 0 6px 18px rgba(91, 24, 53, 0.18);
}

.btn--dark:hover {
  box-shadow: 0 10px 26px rgba(91, 24, 53, 0.24);
}

.btn--small,
.categories-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

.product-card__actions .btn,
.market-grid .product-card__actions .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--small svg,
.categories-btn svg {
  width: 16px;
  height: 16px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.btn.is-sold {
  transform: none;
  box-shadow: none;
}

/* Header and primary navigation ------------------------------------------ */
.header-search {
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.header-search:focus-within {
  border-color: var(--pink-strong);
  box-shadow: var(--focus-ring);
}

.market-search,
.sort-select {
  border-radius: var(--radius-sm);
}

.market-search {
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.market-search:focus-within {
  border-color: var(--pink-strong);
  box-shadow: var(--focus-ring);
}

.sort-select:focus-visible {
  border-color: var(--pink-strong);
}

.search-form input,
.store-search input {
  border-radius: var(--radius-sm);
  border-color: var(--border);
}

.search-form input:focus,
.store-search input:focus {
  border-color: var(--pink-strong);
  box-shadow: var(--focus-ring);
}

.header-action {
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.header-action:focus-visible {
  outline-offset: -2px;
}

.header-offer {
  font-size: 11px;
  letter-spacing: 0.07em;
  transition: background-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.header-nav .primary-nav a {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  transition: color var(--dur-fast) ease;
}

.header-nav .primary-nav a::after {
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) ease;
}

.announcement__item,
.announcement__inner {
  font-size: 12px;
}

/* Forms ------------------------------------------------------------------- */
.field {
  gap: 8px;
}

.field label,
.fieldset legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.field input,
.field select,
.field textarea {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.875rem;
  line-height: 1.45;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease,
    background-color var(--dur-fast) ease;
}

.field select {
  padding-right: 38px;
}

.field textarea {
  min-height: 96px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(37, 35, 41, 0.28);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink-strong);
  box-shadow: var(--focus-ring);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: var(--focus-ring-danger);
}

::placeholder {
  color: rgba(109, 101, 114, 0.72);
  opacity: 1;
}

.field-hint {
  font-size: 12px;
  line-height: 1.55;
}

.field-error {
  font-size: 12px;
  line-height: 1.5;
}

.checkbox-row {
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.6;
}

.checkbox-row input {
  accent-color: var(--burgundy);
}

.form-card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-note,
.form-status {
  font-size: 12.5px;
}

.form-status {
  border-radius: var(--radius-sm);
}

/* The checkout keeps a compact rhythm on every viewport. */
.checkout-fields {
  gap: 12px;
}

.checkout-fields .field {
  gap: 6px;
}

.checkout-fields .field input,
.checkout-fields .field select {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 0.8125rem;
}

.checkout-fields .field textarea {
  min-height: 76px;
}

/* Cards and surfaces ------------------------------------------------------ */
.product-card__media,
.product-detail__media,
.auction-live__media {
  border-radius: var(--radius);
}

.product-card__media {
  box-shadow: 0 1px 2px rgba(37, 35, 41, 0.04);
}

.order-card,
.seller-listing,
.admin-card,
.metric-card,
.chart-card,
.store-card {
  border-color: var(--border);
}

.order-card,
.seller-listing,
.admin-card,
.metric-card,
.chart-card {
  box-shadow: var(--shadow-sm);
}

.order-card,
.seller-listing {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-base) ease;
}

.order-card:focus-within,
.seller-listing:hover,
.seller-listing:focus-within {
  border-color: rgba(37, 35, 41, 0.2);
  box-shadow: var(--shadow-md);
}

.verify-banner,
.kyc-status {
  border-radius: var(--radius);
}

.pill {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dashboard-stats strong,
.account-stats strong,
.metric-card strong,
.order-card__head strong {
  font-variant-numeric: tabular-nums;
}

.product-card__badge,
.auction-live__tag {
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.product-card__meta {
  font-size: 11px;
}

.product-card__title {
  line-height: 1.25;
}

/* Tables ------------------------------------------------------------------ */
.admin-table-wrap {
  border-color: var(--border);
  border-radius: var(--radius);
  scrollbar-color: var(--sand-deep) transparent;
  scrollbar-width: thin;
}

.admin-table {
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
}

.admin-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.admin-table td {
  color: var(--ink-soft);
}

.app-live {
  margin: 0 0 16px;
  border: 1px solid #eceef2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.app-live__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceef2;
}

.app-live__bar strong {
  margin-right: auto;
  min-width: 0;
  font-size: 14px;
}

.app-live iframe {
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #f6f5f4;
}

.admin-table td:last-child input {
  display: block;
  width: 100%;
  min-width: 140px;
  margin: 0 0 6px;
}
.admin-table td strong {
  color: var(--ink);
}

.order-card__head span {
  font-size: 11px;
  letter-spacing: 0.09em;
}

.admin-table tbody tr {
  transition: background-color var(--dur-fast) ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 248, 240, 0.72);
}

.admin-table select {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.8125rem;
}

.admin-search input,
.admin-card__actions input {
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

/* Dialogs ----------------------------------------------------------------- */
.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  scrollbar-color: var(--sand-deep) transparent;
  scrollbar-width: thin;
}

.dialog::backdrop {
  background: rgba(37, 35, 41, 0.6);
  backdrop-filter: blur(2px);
}

.dialog__inner {
  padding: clamp(22px, 3.6vw, 36px);
}

.dialog__head {
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.dialog__head h2 {
  letter-spacing: -0.01em;
}

.dialog__head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.dialog__close {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: var(--surface);
  transition: background-color var(--speed) ease, border-color var(--speed) ease;
}

.dialog__close:hover {
  background: var(--pink-100);
  border-color: var(--pink-300);
}

/* Empty, loading, and error states --------------------------------------- */
.empty-state {
  padding: clamp(48px, 7vw, 76px) 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.empty-state h2 {
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.empty-state p {
  margin: 0 auto 24px;
  line-height: 1.65;
}

.empty-state--inline {
  background: var(--paper);
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--sand) 20%,
    var(--cream-bright) 50%,
    var(--sand) 80%
  );
  background-size: 220% 100%;
}

.auth-alert {
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.6;
}

.toast {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Footer ------------------------------------------------------------------ */
.footer-grid {
  gap: 44px 36px;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.footer-col a {
  font-size: 0.8125rem;
}

.footer-bottom {
  font-size: 0.6875rem;
  line-height: 1.6;
}

.footer-payments span {
  padding: 5px 9px;
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Page shells ------------------------------------------------------------- */
.page-hero,
.page-head--compact,
.dashboard-page,
.messages-page {
  border-color: var(--border);
}

.dashboard-head,
.messages-head {
  padding-bottom: 24px;
}

.dashboard-head h1,
.messages-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.dashboard-page .section-head,
.kyc-head {
  align-items: flex-end;
}

/* Scrollbars -------------------------------------------------------------- */
* {
  scrollbar-color: var(--sand-deep) transparent;
  scrollbar-width: thin;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .btn {
    padding: 0 20px;
  }
}

@media (max-width: 760px) {
  .section-lead,
  .page-hero__lead {
    font-size: 0.9375rem;
  }

  .btn {
    min-height: 44px;
  }

  .dialog__inner {
    padding: 20px;
  }

  .dialog__head {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .dialog__close {
    width: 44px;
    height: 44px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px;
  }

  .dashboard-head h1,
  .messages-head h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  }

  .footer-grid {
    gap: 36px 28px;
  }
}

@media (max-width: 560px) {
  .market-grid .product-card__meta {
    font-size: 10.5px;
  }

  .btn {
    padding: 0 18px;
    font-size: 0.75rem;
  }

  .product-card__actions .btn,
  .market-grid .product-card__actions .btn {
    font-size: 0.6875rem;
  }

  .empty-state {
    padding: 44px 18px;
  }

  .empty-state h2 {
    font-size: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dialog {
    max-height: 92dvh;
  }
}

/* Motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .order-card:hover,
  .seller-listing:hover,
  .dialog__close:hover {
    transform: none;
  }
}

/* ==========================================================================
   Signup journey, buyer home, and product-first marketplace
   ========================================================================== */

/* Buttons hold their own padding inside an explicit width. */
.btn {
  box-sizing: border-box;
}

/* Signup: visual aside ---------------------------------------------------- */
.auth-page--signup {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
}

.auth-aside--signup {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(28px, 3.6vw, 52px);
  background:
    radial-gradient(circle at 12% 4%, rgba(239, 224, 207, 0.18), transparent 44%),
    linear-gradient(160deg, #5b1835 0%, #3f0f24 100%);
}

.auth-aside--signup::after {
  display: none;
}

.auth-aside__glow {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 224, 207, 0.22), transparent 66%);
  pointer-events: none;
}

.auth-collage {
  position: relative;
  z-index: 1;
  height: clamp(190px, 27vh, 285px);
  margin-top: 2px;
}

.auth-collage__item {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.06);
  box-shadow: 0 18px 38px rgba(24, 6, 15, 0.34);
}

.auth-collage__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-collage__item--main {
  top: 0;
  left: 0;
  width: 58%;
  height: 100%;
}

.auth-collage__item--main img {
  object-position: center 45%;
}

.auth-collage__item--top {
  top: 0;
  right: 0;
  width: 38%;
  height: 47%;
}

.auth-collage__item--top img {
  object-position: 60% center;
}

.auth-collage__item--bottom {
  right: 0;
  bottom: 0;
  width: 38%;
  height: 47%;
}

.auth-collage__item--bottom img {
  object-position: 48% center;
}

.auth-collage__tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 63%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 248, 240, 0.18);
  border-radius: 10px;
  background: rgba(37, 35, 41, 0.78);
  color: var(--cream);
  backdrop-filter: blur(8px);
}

.auth-collage__tag-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 0 4px rgba(239, 224, 207, 0.16);
}

.auth-collage__tag strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.auth-collage__tag small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 248, 240, 0.7);
  font-size: 9.5px;
  line-height: 1.45;
}

.auth-aside--signup .auth-aside__copy {
  max-width: 460px;
  margin-top: 0;
}

.auth-aside--signup .auth-aside__copy h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.auth-aside--signup .auth-aside__copy p {
  margin-top: 12px;
}

.auth-aside--signup .auth-points {
  gap: 10px;
  margin-top: 18px;
}

/* Signup: step flow -------------------------------------------------------- */
.auth-card--signup {
  width: min(100%, 540px);
}

.signup-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.signup-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 2px solid var(--border);
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signup-progress li[aria-current="step"] {
  border-color: var(--burgundy);
  color: var(--ink);
}

.signup-progress li.is-done {
  border-color: var(--lemon);
  color: var(--ink);
}

.signup-progress__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.signup-progress li[aria-current="step"] .signup-progress__num {
  background: var(--burgundy);
  color: var(--cream);
}

.signup-progress li.is-done .signup-progress__num {
  background: var(--lemon);
  color: var(--burgundy);
}

.signup-step {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.signup-step[hidden] {
  display: none;
}

.signup-step .role-field {
  margin-bottom: 0;
}

.role-grid--signup .role-card__body {
  min-height: 0;
  padding: 16px;
}

.seller-types[hidden] {
  display: none;
}

.role-grid--types {
  grid-template-columns: 1fr;
}

.role-grid--types .role-card__body {
  min-height: 0;
  padding: 14px 16px;
}

.role-card__kyc {
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.role-card__foot {
  margin-top: auto;
  padding-top: 8px;
  color: var(--pink-strong);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.signup-step__summary {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.signup-step__summary strong {
  color: var(--ink);
}

.signup-step__summary[hidden] {
  display: none;
}

.signup-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.signup-actions .btn {
  flex: 1 1 0;
  min-height: 48px;
}

.signup-actions--split .btn--dark {
  flex: 1.6;
}

/* Marketplace: compact product-first header -------------------------------- */
.market-head {
  padding: clamp(26px, 3.4vw, 44px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}

.market-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
}

.market-head h1 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
  line-height: 1.02;
}

.market-head__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.market-head__stats {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.market-head__stats div {
  min-width: 106px;
  padding: 14px 16px;
  border-left: 1px solid var(--border);
}

.market-head__stats div:first-child {
  border-left: 0;
}

.market-head__stats dt {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-head__stats dd {
  margin: 4px 0 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.market-assurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--section);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.market-assurance__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 20px;
  border-left: 1px solid var(--border);
}

.market-assurance__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.market-assurance svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--pink-strong);
}

.market-assurance strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}

.market-assurance span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Buyer home --------------------------------------------------------------- */
.shop-hero {
  padding: clamp(24px, 3.4vw, 44px) 0 clamp(20px, 2.8vw, 32px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 8%, rgba(239, 224, 207, 0.55), transparent 42%),
    var(--cream);
}

.shop-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.shop-hero h1 {
  margin: 4px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.02;
}

.shop-hero h1 em {
  color: var(--gold-deep);
}

.shop-hero__lead {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.shop-search:focus-within {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91, 24, 53, 0.08);
}

.shop-search > svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
}

.shop-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: 0;
}

.shop-search .btn {
  flex: none;
  min-height: 44px;
}

.shop-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.shop-quicklinks a {
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
}

.shop-quicklinks a:hover {
  border-color: currentColor;
}

.shop-hero__panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.shop-promises {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.shop-promises li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.shop-promises svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--pink-strong);
}

.shop-promises strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}

.shop-promises span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.shop-hero__panel .text-link {
  color: var(--pink-strong);
  font-size: 11.5px;
  font-weight: 600;
}

.shop-browse {
  padding: clamp(20px, 2.8vw, 34px) 0 clamp(36px, 5vw, 64px);
}

.shop-browse__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.shop-browse__head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
}

.shop-browse__tools {
  flex: none;
}

.shop-auction-band {
  padding: 0 0 var(--section);
}

.shop-auction-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 16px;
  background: linear-gradient(120deg, var(--burgundy) 0%, #3f0f24 100%);
  color: var(--cream);
}

.shop-auction-band .eyebrow {
  color: var(--lemon);
}

.shop-auction-band .eyebrow::before {
  background: var(--lemon);
}

.shop-auction-band h2 {
  margin: 4px 0 8px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.shop-auction-band h2 em {
  color: var(--gold);
}

.shop-auction-band p {
  max-width: 64ch;
  margin: 0;
  color: rgba(255, 248, 240, 0.76);
  font-size: 12.5px;
  line-height: 1.6;
}

.shop-auction-band .btn {
  flex: none;
}

@media (max-width: 1100px) {
  .market-head__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-head__stats {
    display: none;
  }

  .shop-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-hero__panel {
    display: none;
  }
}

@media (max-width: 980px) {
  .auth-page--signup {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .auth-aside--signup {
    display: none;
  }
}

@media (max-width: 860px) {
  .market-assurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .market-assurance__item {
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }

  .market-assurance__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .shop-auction-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .shop-browse__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .shop-browse__tools,
  .shop-browse__tools .sort-select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .results-bar {
    flex-direction: column;
    gap: 3px;
  }

  .signup-progress__label {
    display: none;
  }

  .signup-progress li {
    justify-content: flex-start;
  }

  .signup-actions {
    flex-direction: column-reverse;
  }

  .signup-actions .btn {
    width: 100%;
    flex: none;
  }

  .auth-collage {
    height: 210px;
  }

  .shop-search {
    flex-wrap: wrap;
    padding: 12px;
  }

  .shop-search input {
    flex: 1 1 calc(100% - 34px);
    height: 38px;
  }

  .shop-search .btn {
    width: 100%;
  }

  .market-head__stats div {
    padding: 12px;
  }

  .market-head__stats dd {
    font-size: 1.3rem;
  }

  .market-assurance {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .market-assurance__item,
  .market-assurance__item:nth-child(odd) {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .market-assurance__item:first-child {
    border-top: 0;
  }
}

/* ==========================================================================
   Valor visual refresh
   One shared layer for every page. Tokens live in styles.css.
   Layers: pink-50 page, white surface, 1px line, 14px radius, soft shadow.
   ========================================================================== */

/* 1. Canvas and rhythm ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--pink-50);
}

body {
  background: var(--pink-50);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
}

.section {
  padding-block: var(--section);
}

.section--cream,
.section--sand {
  background: var(--pink-50);
}

.section-head {
  margin-bottom: 32px;
}

.section__actions {
  margin-top: 32px;
}

/* Decorative blur and tinted washes are gone for good. */
.auth-aside__glow,
.cta-band__bg {
  display: none;
}

.auth-aside--signup {
  background: var(--burgundy-800);
}

.shop-hero,
.hero-slider,
.hero {
  background: var(--pink-50);
}

.shop-auction-band__inner {
  background: var(--burgundy-800);
  border-radius: var(--radius);
}

.auth-page {
  background: var(--pink-50);
}

/* 2. Type ----------------------------------------------------------------- */
h1,
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--burgundy-800);
}

h2,
h3,
h4 {
  font-family: var(--sans) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink-900);
}

h2 em,
h3 em,
h4 em {
  font-family: var(--sans);
  font-style: normal;
}

p,
li,
dd,
dt,
label,
input,
select,
textarea,
button {
  font-family: var(--sans);
}

.section-lead,
.page-head__sub,
.page-hero__lead,
.dashboard-head__sub,
.messages-head p,
.account-head__email {
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow,
.agent__eyebrow,
.signup-progress__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 3. Shared surfaces ------------------------------------------------------ */
.form-card,
.dashboard-form,
.account-deal,
.notification-item,
.report-list li,
.promotion-row,
.order-card,
.seller-listing,
.live-panel,
.tier-card,
.kyc-block,
.admin-card,
.admin-panel,
.messages-thread,
.messages-list__item,
.checkout-card,
.shipping-line,
.store-customizer .dashboard-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card,
.dashboard-form,
.kyc-block {
  padding: 24px;
}

.messages-list__item,
.account-deal,
.notification-item,
.promotion-row,
.report-list li,
.shipping-line,
.checkout-card {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.messages-list__item.is-active {
  border-color: var(--burgundy-700);
  background: var(--pink-50);
  box-shadow: inset 3px 0 0 var(--burgundy-700);
}

.kyc-status,
.verify-banner,
.notice,
.auth-alert,
.moderation-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
}

.kyc-status {
  border-left: 1px solid var(--line);
  padding: 20px;
}

.kyc-status p,
.notice p,
.verify-banner p {
  color: var(--ink-600);
  font-size: 14px;
}

.shipping-line {
  background: var(--surface);
  border-color: var(--line);
  padding: 16px;
}

.shipping-badge {
  background: var(--pink-100);
  color: var(--burgundy-700);
  font-size: 11px;
  letter-spacing: 0;
}

/* 4. Buttons and badges --------------------------------------------------- */
.btn {
  min-height: 44px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.btn--small {
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--dark {
  background: var(--burgundy-700);
  border-color: var(--burgundy-700);
  color: var(--surface);
  box-shadow: none;
}

.btn--dark:hover {
  background: var(--burgundy-800);
  border-color: var(--burgundy-800);
}

.btn--outline,
.btn--light {
  background: var(--surface);
  border-color: var(--burgundy-700);
  color: var(--burgundy-700);
}

.btn--outline:hover,
.btn--light:hover {
  background: var(--pink-100);
  color: var(--burgundy-700);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--surface);
}

.btn--outline-light:hover {
  background: var(--surface);
  color: var(--burgundy-700);
}

.btn--google {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-900);
}

.btn--google:hover {
  background: var(--pink-50);
  border-color: var(--pink-300);
  color: var(--ink-900);
}

/* Sign out is a quiet action, wherever it appears. */
[data-logout].btn {
  background: var(--surface);
  border-color: var(--burgundy-700);
  color: var(--burgundy-700);
  box-shadow: none;
}

[data-logout].btn:hover {
  background: var(--pink-100);
  color: var(--burgundy-700);
}

.pill {
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--pink-100);
  color: var(--burgundy-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.pill--live {
  background: var(--success-soft);
  border-color: transparent;
  color: var(--success);
}

.pill--warning {
  background: var(--warning-soft);
  border-color: transparent;
  color: var(--warning);
}

.pill--danger {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}

.pill--dark {
  background: var(--burgundy-800);
  color: var(--surface);
}

/* KYC approval gets a quiet check mark, not a loud new colour. */
.kyc-status .pill--live::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -1px;
}

/* 5. Header --------------------------------------------------------------- */
.announcement {
  background: var(--burgundy-900);
  color: rgba(253, 244, 247, 0.78);
  font-size: 12px;
  letter-spacing: 0;
}

.announcement__inner {
  min-height: 32px;
}

.announcement a,
.announcement__item--center {
  color: var(--pink-50);
}

.announcement__item--end {
  border-bottom-color: rgba(253, 244, 247, 0.35);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header-main {
  gap: 24px;
  min-height: 72px;
}

.brand img {
  height: 34px;
}

.header-search {
  flex: 0 1 460px;
  margin-inline: auto;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pink-50);
  padding: 2px;
}

.header-search:focus-within {
  border-color: var(--burgundy-600);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.18);
}

.header-search input {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--ink-900);
}

.header-search input::placeholder {
  color: var(--ink-400);
}

.header-search > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--burgundy-700);
  color: var(--surface);
}

.header-search > button:hover {
  background: var(--burgundy-800);
}

.header-search > button svg {
  width: 20px;
  height: 20px;
}

.header-actions {
  gap: 8px;
}

.header-action {
  flex-direction: row;
  gap: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
  color: #7a1542;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.04);
}

.header-action:hover {
  background: #fdf5f8;
  border-color: #8a2547;
  color: #7a1542;
}

.header-action svg {
  width: 18px;
  height: 18px;
  color: #7a1542;
}

.header-action:hover svg {
  color: #ff3d86;
}

.header-actions .header-action > span:not(.cart-count):not(.note-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.account-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  gap: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
}

.account-btn > span:not(.cart-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #7a1542;
  white-space: nowrap;
}

.header-action .cart-count {
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border: 0;
  background: var(--pink-500);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
}

.header-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.header-nav__inner {
  gap: 24px;
  min-height: 56px;
}

.categories-btn {
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--pink-50);
  color: var(--burgundy-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.categories-btn:hover {
  background: var(--pink-100);
  border-color: var(--pink-300);
  color: var(--burgundy-700);
}

.header-nav .primary-nav {
  gap: 28px;
}

.header-nav .primary-nav a {
  min-height: 52px;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.header-nav .primary-nav a::after {
  bottom: 11px;
  height: 2px;
  background: var(--burgundy-700);
}

.header-nav .primary-nav a:hover,
.header-nav .primary-nav a[aria-current="page"] {
  color: var(--burgundy-700);
}

.header-offer {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--burgundy-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.header-offer:hover {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.live-dot {
  background: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(194, 69, 126, 0.16);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: var(--surface);
}

.menu-toggle:hover {
  background: var(--pink-100);
}

.menu-toggle span {
  background: var(--ink-900);
}

.icon-btn {
  border-color: transparent;
  background: transparent;
}

.icon-btn:hover {
  border-color: transparent;
  background: var(--pink-100);
}

/* 6. Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: 36px;
  padding-bottom: 56px;
  background: #fff;
  color: #4a2140;
  border-top: 1px solid #f0e4ea;
}

.footer-brand p {
  color: #6d4458;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact {
  color: #4a2140;
  border-bottom-color: rgba(74, 33, 64, 0.28);
}

.footer-col h3 {
  color: #4a2140;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.footer-col a {
  min-height: 40px;
  color: #5e4a53;
  font-size: 14px;
}

.footer-col a:hover,
.footer-bottom a:hover,
.footer-contact:hover {
  color: #e4236f;
}

.footer-bottom {
  color: #6d4458;
  border-top-color: #f0e4ea;
  font-size: 12px;
  letter-spacing: 0;
}

.footer-payments span {
  border-color: #f0e4ea;
  color: #4a2140;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

/* 7. Forms ---------------------------------------------------------------- */
.form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.form-grid > .field {
  grid-column: span 6;
}

.field {
  gap: 8px;
}

.field label,
.fieldset legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-900);
}

.fieldset legend {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.field input,
.field select,
.field textarea,
.checkout-field input,
.checkout-field select,
.deal-panel__actions input,
.message-form textarea,
.admin-search input,
.admin-filters select {
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-900);
  box-shadow: none;
}

.field textarea,
.message-form textarea,
.checkout-field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
}

.field input::placeholder,
.field textarea::placeholder,
.checkout-field input::placeholder,
.message-form textarea::placeholder {
  color: var(--ink-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.checkout-field input:focus,
.checkout-field select:focus,
.deal-panel__actions input:focus,
.message-form textarea:focus,
.admin-search input:focus {
  border-color: var(--burgundy-600);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192, 38, 45, 0.1);
}

.field-error {
  color: var(--danger);
  font-size: 13px;
}

.field-hint,
.form-note {
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.5;
}

.fieldset {
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-grid + .form-grid {
  margin-top: 0;
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.checkout-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-card__head h3 {
  font-size: 16px;
  font-weight: 700;
}

.checkout-card__head p {
  color: var(--ink-600);
  font-size: 13px;
}

.radio-card {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
}

.radio-card:hover {
  border-color: var(--pink-300);
}

.radio-card:has(input:checked) {
  border-color: var(--burgundy-600);
  background: var(--pink-50);
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.1);
}

.radio-card input,
.checkbox-row input {
  accent-color: var(--burgundy-700);
}

.checkbox-row {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-600);
}

.signup-form,
.auth-form {
  gap: 24px;
}

.signup-form .field,
.auth-form .field {
  gap: 8px;
}

.auth-form .field input,
.auth-form .field select,
.signup-form .field input,
.signup-form .field select {
  min-height: 48px;
  height: 48px;
  font-size: 16px;
}

.password-field {
  position: relative;
}

.signup-progress {
  gap: 8px;
}

.signup-progress li {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.signup-step {
  gap: 24px;
}

/* 8. Page heads and dashboard -------------------------------------------- */
.page-head,
.page-hero,
.dashboard-head,
.messages-head,
.account-head {
  border-bottom-color: var(--line);
}

.page-head h1,
.page-hero h1,
.dashboard-head h1,
.messages-head h1,
.account-head h1,
.kyc-head h1,
.auction-live__title,
.sell-hero h1,
.shop-hero h1,
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--burgundy-800);
}

.page-head h1,
.dashboard-head h1,
.messages-head h1,
.kyc-head h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}

.dashboard-page,
.messages-page,
.account-page,
.kyc-page,
.auction-page,
.store-page {
  background: var(--pink-50);
}

.dashboard-stats,
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.dashboard-stats > div,
.account-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-stats span,
.account-stats span {
  display: block;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.dashboard-stats strong,
.account-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dashboard-section {
  margin-top: 48px;
  padding-top: 0;
  border-top: 0;
}

.dashboard-section__head,
.account-section__head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboard-section__head h2,
.account-section__head h2,
.store-customizer h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-section__head p,
.account-section__head p {
  color: var(--ink-600);
  font-size: 14px;
}

.dashboard-form {
  gap: 24px;
}

.dashboard-form .form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-form .form-grid > .field {
  grid-column: span 6;
}

.dashboard-form__actions {
  gap: 12px;
}

.store-customizer .palette-grid,
.store-customizer .layout-grid,
.store-customizer .store-meta-grid {
  gap: 16px;
}

.dashboard-loading,
.account-loading {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* 9. Listings, cards and store directory --------------------------------- */
.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.market-grid .product-card,
.store-grid .product-card,
.account-wishlist .product-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}

.market-grid .product-card:hover,
.store-grid .product-card:hover,
.account-wishlist .product-card:hover {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-md);
}

.market-grid .product-card__media,
.store-grid .product-card__media,
.account-wishlist .product-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.market-grid .product-card__body,
.store-grid .product-card__body {
  padding: 16px 4px 4px;
}

.market-grid .product-card__title,
.store-grid .product-card__title {
  font-size: 20px;
  font-weight: 700;
}

.product-card__meta {
  color: var(--ink-600);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__price {
  color: var(--burgundy-700);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-card__price span {
  color: var(--ink-600);
  font-weight: 500;
}

.product-card__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--burgundy-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__badge--live {
  background: var(--danger);
  color: var(--surface);
}

.product-card__quick {
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 40px;
  border: 1px solid rgba(122, 21, 66, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--burgundy-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__actions .btn {
  min-height: 44px;
  font-size: 13px;
}

.card-wish {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--burgundy-700);
  box-shadow: var(--shadow-sm);
}

.card-wish:hover {
  transform: none;
  border-color: var(--pink-300);
  background: var(--surface);
  color: var(--burgundy-600);
}

.store-grid {
  gap: 24px;
}

.store-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.live-panel {
  padding: 20px;
}

.live-panel__head h3 {
  font-size: 20px;
  font-weight: 700;
}

.live-panel__timer .countdown__value {
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-weight: 700;
}

.seller-listings,
.promotion-list,
.admin-list,
.account-deals,
.order-list {
  gap: 16px;
}

.seller-listing {
  padding: 20px;
}

.seller-listing h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
}

.seller-listing p {
  color: var(--ink-600);
  font-size: 13px;
}

.seller-listing__tools summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--burgundy-700);
  font-size: 13px;
  letter-spacing: 0;
}

.order-card {
  padding: 20px;
}

.order-card__head span {
  color: var(--ink-600);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.order-card__head strong {
  font-size: 14px;
}

/* 10. Messages ------------------------------------------------------------ */
.messages-layout {
  gap: 24px;
}

.messages-list {
  gap: 8px;
}

.messages-list__item {
  padding: 16px;
}

.messages-list__item strong {
  font-size: 14px;
}

.messages-list__item span {
  color: var(--ink-600);
  font-size: 12px;
}

.messages-thread {
  padding: 24px;
}

.messages-thread__head {
  padding-bottom: 16px;
}

.messages-thread__head h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
}

.deal-panel {
  background: var(--pink-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.deal-panel span {
  color: var(--ink-600);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.deal-panel strong {
  font-size: 14px;
}

.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 4px;
  background: var(--pink-100);
  color: var(--ink-900);
}

.message--mine {
  border-radius: 12px 12px 4px 12px;
  background: var(--burgundy-700);
  color: var(--surface);
}

.message strong {
  font-size: 12px;
}

.message span {
  color: var(--ink-600);
  font-size: 11px;
}

.message--mine span,
.message--mine strong {
  color: rgba(255, 255, 255, 0.76);
}

.message p {
  font-size: 14px;
  line-height: 1.5;
}

.message-form textarea {
  background: var(--surface);
}

.form-status {
  color: var(--danger);
  font-size: 13px;
}

/* 11. KYC, tiers and notices --------------------------------------------- */
.kyc-head p,
.kyc-block__head p {
  color: var(--ink-600);
  font-size: 14px;
}

.kyc-steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-600);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.kyc-steps li span {
  background: var(--pink-100);
  color: var(--burgundy-700);
}

.kyc-step-check {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kyc-steps li.is-done,
.kyc-steps li.is-active {
  border-color: var(--pink-300);
  background: var(--pink-50);
  color: var(--burgundy-700);
}

.kyc-steps li.is-done span,
.kyc-steps li.is-active span {
  background: var(--burgundy-700);
  color: var(--surface);
}

.kyc-block {
  margin-bottom: 24px;
}

.kyc-block__head h2 {
  font-size: 20px;
  font-weight: 700;
}

.kyc-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.kyc-doc.is-done {
  border-color: rgba(47, 125, 91, 0.35);
  background: var(--success-soft);
}

.kyc-note,
.kyc-declaration {
  color: var(--ink-600);
  font-size: 13px;
}

.tier-card {
  padding: 24px;
}

.tier-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.tier-card__price {
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
}

.tier-card.is-active {
  border-color: var(--burgundy-700);
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.12);
}

.tier-card__badge {
  background: var(--pink-100);
  color: var(--burgundy-700);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.notice {
  padding: 16px 20px;
  color: var(--ink-900);
}

.notice svg {
  color: var(--burgundy-700);
}

/* 12. Chat ---------------------------------------------------------------- */
.agent {
  right: 24px;
  bottom: 24px;
  z-index: 80;
  gap: 12px;
  width: min(400px, calc(100vw - 48px));
}

.agent__toggle {
  min-height: 56px;
  height: 56px;
  padding: 0 20px;
  gap: 10px;
  border: 1px solid var(--burgundy-800);
  border-radius: 999px;
  background: var(--burgundy-700);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: var(--shadow-md);
}

.agent__toggle:hover {
  background: var(--burgundy-800);
  transform: none;
}

.agent__toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.3);
}

.agent__toggle-icon,
.agent__toggle-icon svg {
  width: 22px;
  height: 22px;
}

.agent__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.agent__head {
  background: var(--pink-50);
  border-bottom-color: var(--line);
  padding: 16px 20px;
}

.agent__head h2 {
  font-size: 18px;
  font-weight: 700;
}

.agent__eyebrow {
  color: var(--burgundy-600);
}

.agent__log {
  gap: 12px;
  padding: 16px 20px;
}

.agent__turn p {
  font-size: 14px;
  line-height: 1.5;
}

.agent__turn--agent p {
  background: var(--pink-100);
  color: var(--ink-900);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
}

.agent__turn--user p {
  background: var(--burgundy-700);
  color: var(--surface);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 12px;
}

.agent__form {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.agent__form textarea {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
}

.agent__form textarea:focus {
  border-color: var(--burgundy-600);
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.18);
}

.agent__note {
  color: var(--ink-600);
  font-size: 12px;
  padding: 0 20px 16px;
}

/* 13. Empty states, skeletons and motion --------------------------------- */
.empty-state {
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.empty-state h2,
.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
}

.empty-state p {
  color: var(--ink-600);
  font-size: 14px;
}

.empty-state .btn,
.empty-state .text-link {
  margin-top: 16px;
}

.empty-state--inline {
  padding: 32px 20px;
  border: 0;
  background: var(--pink-50);
  box-shadow: none;
}

.skeleton {
  background: var(--pink-100);
  border-radius: var(--radius-sm);
  animation: valor-skeleton 1.4s ease-in-out infinite;
}

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

@keyframes valor-skeleton {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .dashboard-stats,
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-search {
    display: none;
  }

  .header-search-toggle {
    display: inline-grid;
  }

  .header-nav {
    display: none;
  }

  .header-main {
    min-height: 68px;
  }

  .account-btn {
    width: 44px;
    padding: 0;
    border-color: transparent;
    border-radius: 50%;
    background: transparent;
  }

  .account-btn > span:not(.cart-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .form-grid,
  .dashboard-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .form-grid > .field,
  .dashboard-form .form-grid > .field,
  .field--full {
    grid-column: 1 / -1;
  }

  .section {
    padding-block: 32px;
  }

  .form-card,
  .dashboard-form,
  .kyc-block,
  .messages-thread {
    padding: 20px;
  }

  .market-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-head,
  .messages-head,
  .account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-head__actions,
  .account-head__actions {
    width: 100%;
  }

  .agent__toggle-label {
    display: none;
  }

  .agent__toggle {
    width: 56px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .dashboard-stats,
  .account-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-actions {
    gap: 2px;
  }

  .header-action {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .header-actions > .header-action:first-child {
    display: none;
  }

  .container {
    width: min(100% - 48px, var(--container));
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .agent {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }
}

@media (max-width: 380px) {
  .header-action {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .header-actions {
    gap: 0;
  }
}

/* Dark editorial bands keep light type, including the new sans headings. */
.page-hero--dark h1,
.page-hero--dark h2,
.page-hero--dark h3,
.page-hero--dark h4,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.cta-band h1,
.cta-band h2,
.cta-band h3,
.cta-band h4,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.market-cta-tile h1,
.market-cta-tile h2,
.market-cta-tile h3 {
  color: var(--surface);
}

.page-hero--dark .eyebrow,
.section--dark .eyebrow,
.cta-band .eyebrow,
.market-cta-tile .eyebrow {
  color: var(--pink-300);
}

.page-hero--dark .section-lead,
.section--dark .section-lead,
.cta-band .section-lead {
  color: rgba(253, 244, 247, 0.78);
}

.store-identity__actions .btn--outline {
  background: transparent;
}

/* Chips and marketplace controls ----------------------------------------- */
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.chip:hover {
  border-color: var(--pink-300);
  background: var(--pink-50);
  color: var(--burgundy-700);
}

.chip[aria-pressed="true"] {
  background: var(--burgundy-700);
  border-color: var(--burgundy-700);
  color: var(--surface);
}

.market-search {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.market-search:focus-within {
  border-color: var(--burgundy-600);
  box-shadow: 0 0 0 3px rgba(150, 32, 90, 0.18);
}

.market-search input {
  height: 46px;
  font-size: 16px;
  color: var(--ink-900);
}

.sort-select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

/* Product detail ---------------------------------------------------------- */
.product-detail__body {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-detail__body h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.product-detail__price > span,
.product-facts dt {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.product-detail__price strong {
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-detail__price-note {
  color: var(--ink-600);
  font-size: 13px;
}

.product-detail__desc {
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.6;
}

.product-detail__seller {
  color: var(--ink-600);
  font-size: 13px;
}

.product-facts dd {
  font-size: 14px;
}

.product-detail__tag {
  border-radius: 999px;
  background: var(--surface);
  color: var(--burgundy-700);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 760px) {
  .product-detail__body {
    padding: 20px;
  }
}

/* 15. Small shared helpers ------------------------------------------------ */
.kyc-status--banner {
  margin-bottom: 24px;
}

.kyc-subhead {
  margin: 24px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.kyc-subhead:first-child {
  margin-top: 0;
}

.form-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
}

.form-card__lead {
  margin: 0 0 16px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.6;
}

.notice--spaced {
  margin-top: 24px;
}

.form-note--spaced {
  margin-top: 18px;
}

.form-note--tight {
  margin-top: 12px;
}

.section-lead--spaced {
  margin-top: 24px;
}

.not-found__help {
  margin-top: 26px;
  color: var(--ink-600);
  font-size: 13px;
}

.eyebrow--tight {
  margin-bottom: 8px;
}

.section__actions--center {
  justify-content: center;
}

.notice a,
.form-note a,
.section-lead a,
.legal-content a,
.not-found__help a,
.auth-note a {
  color: var(--burgundy-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice a:hover,
.form-note a:hover,
.section-lead a:hover,
.legal-content a:hover,
.not-found__help a:hover,
.auth-note a:hover {
  color: var(--burgundy-900);
}




/* =====================================================================
   Type floor
   Body and UI text stays at 13px or larger. Only true overlines may sit
   at 12px; decorative micro-type such as cart counts is exempt.
   ===================================================================== */
.announcement__item {
  font-size: 13px;
}

.trust-strip__sub,
.split__caption,
.verified,
.boost-note,
.payment-note,
.checkout-empty,
.agent__note,
.category-tile__meta,
.checkout-summary__note,
.cart-note,
.quickview__fineprint,
.auction-live__seller,
.auction-live__increment,
.bid-empty,
.auction-step p,
.step p,
.results-bar p,
.role-field__hint,
.role-card__copy,
.strength__label,
.auth-note,
.auth-collage__tag strong,
.auth-collage__tag small,
.store-card__keywords li,
.store-card__meta,
.store-identity__meta,
.store-collection__meta {
  font-size: 13px;
}

.pill,
.product-card__badge,
.store-card__badge {
  font-size: 13px;
}

.order-card__breakdown dt,
.order-card__breakdown dd {
  font-size: 13px;
}

.footer-bottom,
.footer-bottom__links a,
.footer-payments span {
  font-size: 13px;
}

/* Uppercase overlines stay compact, but never below 12px. */
.store-identity__eyebrow,
.store-collection__eyebrow {
  font-size: 12px;
}

.header-action .cart-count {
  font-size: 11px;
}

/* Feature, assurance, signup point, and flow copy share the 13px floor. */
.feature p,
.market-assurance__item span,
.market-assurance__item strong,
.auth-points li,
.flow__step p {
  font-size: 13px;
}

.messages-list__item span,
.messages-thread__head p,
.deal-panel > div > span,
.message > div strong,
.message > div span {
  font-size: 13px;
}

/* Checkout dialog: summary and payment copy follow the same floor. */
.checkout__head p:not(.checkout__eyebrow),
.pay-option__body span,
.checkout-breakdown dt,
.checkout-breakdown dd,
.checkout-estimate strong {
  font-size: 13px;
}

.checkout-summary h3,
.checkout-total span,
.checkout-estimate span {
  font-size: 12px;
}

/* Admin console: white cards, burgundy metrics, readable labels. */
.admin-brand span,
.admin-nav__label {
  font-size: 12px;
}

.admin-nav button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(253, 244, 247, 0.76);
  font-size: 14px;
}

.admin-nav button:hover {
  background: rgba(253, 244, 247, 0.1);
  color: var(--surface);
}

.admin-nav button.is-active {
  background: var(--pink-50);
  color: var(--burgundy-800);
  font-weight: 600;
}

.admin-sidebar .btn--outline {
  background: transparent;
}

.admin-sidebar__foot {
  font-size: 13px;
}

.admin-sidebar__foot strong {
  font-size: 14px;
}

.admin-metrics {
  gap: 16px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.metric-card strong {
  margin-top: 10px;
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.metric-card small {
  margin-top: 8px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.5;
}

.metric-card--accent {
  border-color: var(--pink-300);
  background: var(--pink-50);
  color: var(--ink-900);
}

.metric-card--accent span,
.metric-card--accent small {
  color: var(--burgundy-700);
}

.metric-card--accent strong {
  color: var(--burgundy-700);
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chart-card__head h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.chart-card__head p {
  font-size: 13px;
}

.chart-legend {
  font-size: 13px;
}

.chart-card svg text {
  font-size: 11px;
}

.admin-badge {
  font-size: 12px;
}

.admin-table th {
  font-size: 12px;
}

.admin-table td span {
  font-size: 13px;
}

.admin-table select {
  min-height: 44px;
  background: var(--surface);
}

/* Seller dashboard: descriptions and activity feed. */
.store-palette-card__body small,
.store-layout-card__body small,
.notification-item p,
.notification-item span {
  font-size: 13px;
}

.tier-card__price span {
  font-size: 12px;
}

/* KYC documents and tier badges. */
.kyc-doc__body span,
.kyc-doc__pick {
  font-size: 13px;
}

.kyc-doc__pick {
  min-height: 44px;
  padding: 0 16px;
}

.tier-card__badge {
  font-size: 13px;
}

/* Layout helpers replacing generated inline spacing. */
.kyc-form-grid--spaced {
  margin-top: 16px;
}

.kyc-actions--spaced {
  margin-top: 14px;
}

.section__actions--spaced {
  margin-top: 20px;
}

.admin-panel__head--attention {
  margin: 18px 0 8px;
}

.admin-panel__head--top {
  margin-top: 26px;
}

.admin-panel__subhead {
  font-size: 18px;
}

.admin-appeals-title {
  margin: 24px 0 10px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
}

.admin-nav__link {
  width: 100%;
  justify-content: flex-start;
}

.admin-search--spaced {
  margin-top: 16px;
}

.admin-filters--spaced {
  margin-bottom: 14px;
}

/* Specificity-safe overrides for the product grid and split sections. */
.split__copy .feature p,
.lives-rules__action span,
.shop-quicklinks a,
.shop-auction-band p {
  font-size: 13px;
}

.product-card__meta,
.market-grid .product-card__meta,
.store-grid .product-card__meta {
  font-size: 13px;
}

.market-grid .product-card__badge,
.store-grid .product-card__badge {
  font-size: 13px;
}

.market-grid .product-card__actions .btn,
.store-grid .product-card__actions .btn,
.product-card__actions .btn {
  font-size: 13px;
}

.legal-toc a,
.signup-progress__num {
  font-size: 13px;
}

.role-card__foot {
  font-size: 11px;
}

/* Live auction panel: readable secondary copy and labels. */
.live-panel__seller,
.live-panel__meta {
  font-size: 13px;
}

.live-panel__timer .countdown__label {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.live-panel__tag {
  font-size: 12px;
}

.auction-live__notes span {
  font-size: 13px;
}

/* Page heroes share the same 40px display ceiling as the home hero. */
.page-hero h1,
.shop-hero h1,
.sell-hero h1,
.legal-hero h1,
.auction-live__title {
  font-size: clamp(32px, 4.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Valor craft layer
   Shared tokens and components used on every page. Colors come from the
   variables in styles.css. Spacing stays on the 8px scale.
   ========================================================================== */

:root {
  --ring: 0 0 0 3px color-mix(in srgb, var(--burgundy-600) 18%, transparent);
  --ring-danger: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent);
  --overlay: color-mix(in srgb, var(--ink-900) 56%, transparent);
  --on-dark: var(--pink-50);
  --on-dark-muted: color-mix(in srgb, var(--pink-50) 72%, transparent);
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--pink-50);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.6;
}

/* Serif is reserved for page titles, the hero display, and menu links. */
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea,
label,
p,
li,
dd,
dt,
.product-card__title,
.product-card__price,
.product-detail__price strong,
.quickview__price,
.tier-card__price,
.countdown__value,
.market-head__stats dd {
  font-family: var(--sans);
}

h1,
.display,
.page-head h1,
.page-hero h1,
.market-head h1,
.dashboard-head h1,
.messages-head h1,
.account-head h1,
.kyc-head h1,
.auth-card h1,
.sell-hero h1,
.shop-hero h1,
.legal-hero h1,
.auction-live__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-40);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--burgundy-800);
}

h2,
.section-title {
  font-size: var(--fs-28);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

h3,
.form-section-title,
.form-card__title,
.fieldset legend {
  font-family: var(--sans);
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-900);
}

.eyebrow {
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy-600);
}

.section-lead,
.market-head__lead,
.auth-card__lead,
.page-head__sub,
.dashboard-head__sub {
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--ink-600);
}

/* Reusable components ---------------------------------------------------- */
.card,
.form-card,
.checkout-card,
.product-card,
.store-card,
.seller-listing,
.order-card,
.admin-card,
.admin-panel,
.messages-thread,
.live-panel,
.tier-card,
.kyc-block,
.auth-card,
.empty-state,
.skeleton-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.btn,
.btn-secondary,
.btn--dark,
.btn--outline,
.btn--light,
.btn--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn--dark {
  background: var(--burgundy-700);
  border-color: var(--burgundy-700);
  color: var(--surface);
}

.btn--dark:hover {
  background: var(--burgundy-800);
  border-color: var(--burgundy-800);
  color: var(--surface);
}

.btn-secondary,
.btn--outline,
.btn--light,
[data-logout].btn,
[data-logout].btn--dark {
  background: var(--surface);
  border-color: var(--burgundy-700);
  color: var(--burgundy-700);
}

.btn-secondary:hover,
.btn--outline:hover,
.btn--light:hover,
[data-logout].btn:hover,
[data-logout].btn--dark:hover {
  background: var(--pink-100);
  border-color: var(--burgundy-700);
  color: var(--burgundy-700);
}

.text-link,
.btn--ghost {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--burgundy-700);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.btn:focus-visible,
.btn-secondary:focus-visible,
.text-link:focus-visible,
.icon-btn:focus-visible,
.header-action:focus-visible,
.chip:focus-visible,
.menu-toggle:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
}

.btn:disabled,
.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.field label,
.fieldset legend.field-label {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  color: var(--ink-900);
}

.field input,
.field select,
.field textarea,
.checkout-field input,
.checkout-field select,
.admin-search input,
.message-form textarea,
.deal-panel__actions input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field textarea,
.checkout-field textarea,
.message-form textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field input[type="file"] {
  height: auto;
  min-height: 48px;
  padding: 10px 14px;
  font-size: var(--fs-14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.header-search:focus-within,
.sort-select:focus,
.admin-search input:focus,
.message-form textarea:focus {
  border-color: var(--burgundy-600);
  outline: 0;
  box-shadow: var(--ring);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: var(--ring-danger);
}

.field-error:empty {
  display: none;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.field-hint,
.form-note {
  margin: 0;
  color: var(--ink-600);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.form-grid,
.dashboard-form .form-grid,
.checkout-fields,
.kyc-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.form-grid > .field,
.dashboard-form .form-grid > .field,
.checkout-fields > .field,
.kyc-form-grid > .field {
  grid-column: span 6;
}

.form-grid > .field--full,
.checkout-fields > .field--full,
.field--full {
  grid-column: 1 / -1;
}

.checkout-fields--contact > .field {
  grid-column: span 4;
}

.checkout-fields--address > .field:not(.field--full) {
  grid-column: span 3;
}

@supports (grid-template-rows: subgrid) {
  .form-grid > .field,
  .dashboard-form .form-grid > .field,
  .checkout-fields > .field {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 8px;
    align-content: start;
  }
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fieldset {
  margin: 0;
  padding-top: 24px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.password-field {
  height: 48px;
}

.password-field input {
  height: 48px;
}

.password-toggle {
  top: 2px;
  right: 2px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  transform: none;
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--burgundy-700);
}

.password-toggle:hover {
  background: var(--pink-100);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--pink-100);
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.pill--live,
.badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.pill--warning,
.badge--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.pill--danger,
.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.kyc-status .pill--live::before,
.badge--success::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header-main {
  gap: 24px;
  min-height: 72px;
}

.header-search {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.header-search input {
  height: 46px;
  font-size: var(--fs-16);
}

.header-search > button {
  width: 40px;
  height: 40px;
  margin: 3px;
  border-radius: var(--radius-sm);
  background: var(--burgundy-700);
  color: var(--surface);
}

.header-search > button:hover {
  background: var(--burgundy-800);
}

.header-search > button svg,
.header-action svg,
.icon-btn svg,
.menu-toggle svg,
.dialog__close svg,
.mobile-menu__close svg {
  width: 24px;
  height: 24px;
}

.header-actions {
  gap: 8px;
}

.header-action,
.icon-btn,
.menu-toggle,
.dialog__close,
.mobile-menu__close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
}

.header-action:hover,
.icon-btn:hover,
.menu-toggle:hover {
  background: var(--pink-100);
}

.account-btn {
  width: auto;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border-color: var(--line);
}

.header-action .cart-count {
  background: var(--pink-500);
  color: var(--surface);
}

.header-nav .primary-nav a {
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-600);
}

.categories-btn {
  border-radius: var(--radius-sm);
  border-color: var(--line);
  background: var(--pink-50);
  color: var(--burgundy-700);
  letter-spacing: 0;
  text-transform: none;
}

.categories-btn:hover {
  background: var(--pink-100);
  border-color: var(--pink-300);
  color: var(--burgundy-700);
}

/* Mobile drawer ----------------------------------------------------------- */
.mobile-menu {
  background: transparent;
  padding: 0;
}

.mobile-menu__nav a,
.mobile-menu__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  height: auto;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: #1c1e21;
}

.mobile-menu__label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: #1c1e21;
}

.mobile-menu__desc {
  display: none;
}

.mobile-menu__nav a svg,
.mobile-menu__links a svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #f0f2f5;
  color: #1c1e21;
}

.mobile-menu__footer {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 4px 16px calc(8px + env(safe-area-inset-bottom));
}

.mobile-menu__footer a,
.mobile-menu__footer button {
  flex: none;
  min-height: 44px;
  padding: 0 2px;
  font-size: 13px;
  white-space: nowrap;
}

/* Stats and banners ------------------------------------------------------ */
.stat,
.dashboard-stats > div,
.account-stats > div,
.metric-card,
.market-head__stats > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-stats,
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.market-head__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.dashboard-stats span,
.account-stats span,
.market-head__stats dt,
.metric-card span,
.stat__label {
  color: var(--ink-600);
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-stats strong,
.account-stats strong,
.market-head__stats dd,
.metric-card strong,
.stat__value {
  order: 1;
  margin: 16px 0 8px;
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dashboard-stats span,
.account-stats span,
.market-head__stats dt,
.stat__label {
  order: 2;
  margin: 0;
}

.dashboard-stats > div::before,
.account-stats > div::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-bottom: auto;
  background: var(--burgundy-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 16l5-5 4 4 7-8'/%3E%3Cpath d='M14 7h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 16l5-5 4 4 7-8'/%3E%3Cpath d='M14 7h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kyc-status,
.kyc-status--banner,
.verify-banner,
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
}

.kyc-status p,
.notice p {
  color: var(--ink-600);
  font-size: var(--fs-14);
}

.shipping-line {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: none;
}

.shipping-line__head strong {
  color: var(--ink-900);
  font-size: var(--fs-14);
  font-weight: 600;
}

.shipping-line p,
.shipping-line__estimate {
  color: var(--ink-600);
  font-size: var(--fs-13);
}

.shipping-badge {
  background: var(--pink-100);
  color: var(--burgundy-700);
  border-radius: var(--radius-sm);
  font-size: var(--fs-13);
  letter-spacing: 0;
  text-transform: none;
}

/* Surfaces that used to carry beige, olive, or a wash --------------- */
.market-head,
.kyc-page,
.auth-page,
.dashboard-page,
.messages-page,
.account-page,
.auction-page,
.store-page,
.section--cream,
.section--sand {
  background: var(--pink-50);
  background-image: none;
}

.auth-aside--signup {
  background: var(--burgundy-800);
  background-image: none;
}

.auth-aside__glow,
.cta-band__bg {
  display: none;
}

.auth-card {
  width: min(100%, 440px);
  padding: 32px;
}

.auth-card--wide,
.auth-card--signup {
  width: min(100%, 560px);
}

.auth-main {
  background: var(--pink-50);
}

.dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: none;
}

.store-shell,
.store-theme--rose,
.store-theme--fresh {
  --store-bg: var(--pink-50);
  --store-surface: var(--surface);
  --store-ink: var(--ink-900);
  --store-muted: var(--ink-600);
  --store-accent: var(--burgundy-700);
  --store-accent-soft: var(--pink-100);
  --store-line: var(--line);
  --store-hero: var(--burgundy-800);
}

.store-theme--rose {
  --store-accent: var(--pink-500);
  --store-hero: var(--burgundy-700);
}

.store-theme--fresh {
  --store-accent: var(--burgundy-600);
  --store-hero: var(--burgundy-600);
}

.store-theme--dark {
  --store-bg: var(--burgundy-900);
  --store-surface: var(--burgundy-800);
  --store-ink: var(--pink-50);
  --store-muted: var(--pink-300);
  --store-accent: var(--pink-300);
  --store-accent-soft: var(--burgundy-700);
  --store-line: color-mix(in srgb, var(--pink-50) 24%, transparent);
  --store-hero: var(--burgundy-900);
}

.store-palette-card__swatches i {
  border-radius: 4px;
  border-color: var(--line);
}

.store-palette-card--classic .store-palette-card__swatches i:nth-child(1) { background: var(--burgundy-800); }
.store-palette-card--classic .store-palette-card__swatches i:nth-child(2) { background: var(--pink-50); }
.store-palette-card--classic .store-palette-card__swatches i:nth-child(3) { background: var(--pink-100); }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(1) { background: var(--pink-500); }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(2) { background: var(--pink-50); }
.store-palette-card--rose .store-palette-card__swatches i:nth-child(3) { background: var(--ink-900); }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(1) { background: var(--burgundy-900); }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(2) { background: var(--burgundy-800); }
.store-palette-card--dark .store-palette-card__swatches i:nth-child(3) { background: var(--pink-300); }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(1) { background: var(--burgundy-600); }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(2) { background: var(--pink-100); }
.store-palette-card--fresh .store-palette-card__swatches i:nth-child(3) { background: var(--surface); }

/* Category row, chips, skeletons, chat ---------------------------------- */
.category-row {
  gap: 16px;
}

.category-tile {
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-tile:hover {
  transform: none;
  border-color: var(--pink-300);
  box-shadow: var(--shadow-md);
}

.category-tile__icon,
.category-tile__icon--lemon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--pink-100);
  color: var(--burgundy-700);
}

.category-tile__icon svg {
  width: 24px;
  height: 24px;
}

.category-tile__name {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink-900);
}

.category-tile__meta,
.role-card__foot,
.countdown__label,
.live-panel__timer .countdown__label,
.product-card__meta,
.trust-strip__sub {
  font-size: var(--fs-13);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-600);
}

.market-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.market-search input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-search input:focus {
  border: 0;
  box-shadow: none;
}

.sort-select {
  width: auto;
  flex: 0 0 auto;
  min-width: 160px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink-900);
  font-size: var(--fs-14);
  font-weight: 600;
}

.chip {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-14);
}

.skeleton {
  background: var(--pink-100);
  background-image: none;
}

.skeleton-card {
  padding: 16px;
}

.skeleton--media {
  border-radius: var(--radius-sm);
}

main {
  padding-bottom: 48px;
}

.site-footer {
  padding-bottom: 112px;
}

.agent {
  right: 24px;
  bottom: 24px;
  z-index: 40;
}

.agent__toggle {
  height: 56px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 28px;
  background: var(--burgundy-700);
  border-color: var(--burgundy-800);
  color: var(--surface);
}

.agent__toggle:hover {
  background: var(--burgundy-800);
  transform: none;
}

.section {
  padding-block: 48px;
}

.empty-state {
  padding: 48px 24px;
  text-align: left;
}

.empty-state h2,
.empty-state h3 {
  font-size: var(--fs-20);
}

.page-hero--dark h1,
.page-hero--dark h2,
.section--dark h1,
.section--dark h2,
.cta-band h1,
.cta-band h2,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.market-cta-tile h2,
.market-cta-tile h3,
.auth-aside h2 {
  color: var(--on-dark);
}

.page-hero--dark p,
.section--dark .section-lead,
.cta-band .section-lead,
.auth-aside p {
  color: var(--on-dark-muted);
}

.page-trust .page-hero--dark {
  background: #3b0a1e;
  color: #fff8f4;
}

.page-trust .page-hero--dark h1,
.page-trust .page-hero--dark h1 em,
.page-trust .page-hero--dark .eyebrow,
.page-trust .page-hero--dark .page-hero__lead,
.page-trust .page-hero--dark .page-hero__aside,
.page-trust .page-hero--dark .page-hero__aside strong {
  color: #fff8f4;
}

.hero-slide__copy h1,
.hero-slide__copy h2,
.hero-slide__copy .display {
  color: var(--burgundy-800);
}

.hero-slide__copy .display em {
  color: var(--burgundy-600);
}

.hero-slide__lead,
.hero-trust span {
  color: var(--ink-600);
}

.hero-trust strong {
  color: var(--ink-900);
}

@media (max-width: 1024px) {
  .dashboard-stats,
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  h1,
  .display,
  .auth-card h1,
  .market-head h1,
  .page-head h1,
  .dashboard-head h1 {
    font-size: var(--fs-28);
  }

  h2,
  .section-title {
    font-size: var(--fs-20);
  }

  .form-grid,
  .dashboard-form .form-grid,
  .checkout-fields,
  .kyc-form-grid,
  .market-head__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid > .field,
  .dashboard-form .form-grid > .field,
  .checkout-fields > .field,
  .checkout-fields--contact > .field,
  .checkout-fields--address > .field,
  .field--full {
    grid-column: 1 / -1;
  }

  .auth-card,
  .auth-card--wide,
  .form-card,
  .dashboard-form,
  .kyc-block {
    padding: 24px;
  }

  .agent__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .agent__toggle {
    width: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .agent {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 560px) {
  .dashboard-stats,
  .account-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-action,
  .icon-btn,
  .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

/* Live auction room: large media, 20 second clock, chat feed, bottom bid box. */
.auction-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(59, 10, 30, 0.06), 0 8px 24px rgba(59, 10, 30, 0.06);
  overflow: hidden;
}

.auction-highbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px;
  background: var(--burgundy-800);
  color: var(--on-dark, var(--pink-50));
  position: sticky;
  top: 72px;
  z-index: 5;
}

.auction-highbar__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auction-highbar strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.auction-highbar [data-auction-leader] {
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
}

.auction-stage__media {
  position: relative;
  min-height: 420px;
  background: var(--pink-100);
}

.auction-stage__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

.auction-clock {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(59, 10, 30, 0.16);
}

.auction-clock__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.auction-clock__value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--burgundy-700);
}

.auction-clock.is-live-clock .auction-clock__value {
  font-size: 80px;
}

.auction-clock__unit {
  font-size: 14px;
  color: var(--ink-600);
}

.auction-stage__meta,
.auction-feed,
.auction-result,
.auction-stage__actions,
.auction-live__watch-note,
.auction-composer {
  grid-column: 2;
  margin-right: 20px;
  margin-left: 20px;
}

.auction-stage__meta {
  grid-column: 2;
  grid-row: 2;
  margin-top: 20px;
}

.auction-stage__media {
  grid-column: 1;
  grid-row: 2 / span 5;
}

.auction-feed {
  grid-column: 2;
}

.auction-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auction-feed__head h2 {
  margin: 0;
  font-size: 20px;
}

.auction-feed__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.bid-chat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--pink-50);
}

.bid-chat__who {
  font-weight: 600;
}

.bid-chat__amount {
  margin-left: auto;
  color: var(--burgundy-700);
  font-weight: 700;
}

.bid-chat__time {
  width: 100%;
  color: var(--ink-400);
  font-size: 13px;
}

.auction-result {
  grid-column: 2;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.auction-result h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.auction-result__price {
  margin: 0 0 8px;
  color: var(--burgundy-700);
  font-size: 32px;
  font-weight: 700;
}

.auction-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.auction-composer {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  position: sticky;
  bottom: 16px;
}

.auction-composer input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-900);
  font-size: 16px;
}

.auction-composer .btn {
  height: 48px;
}

.auction-composer__error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger, #c0262d);
  font-size: 14px;
}

.auction-composer__error:empty {
  display: none;
}

.auction-composer--gate {
  display: flex;
}

@media (max-width: 900px) {
  .auction-stage {
    grid-template-columns: 1fr;
  }

  .auction-stage__media,
  .auction-stage__meta,
  .auction-feed,
  .auction-result,
  .auction-stage__actions,
  .auction-live__watch-note,
  .auction-composer {
    grid-column: 1;
    grid-row: auto;
  }

  .auction-highbar {
    top: 64px;
    flex-wrap: wrap;
  }

  .auction-highbar strong,
  .auction-clock__value,
  .auction-clock.is-live-clock .auction-clock__value {
    font-size: 40px;
  }

  .auction-stage__media,
  .auction-stage__media img {
    min-height: 280px;
  }
}

.market-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.market-filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.market-filters legend {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--burgundy-800);
  margin-bottom: 0.35rem;
}
.market-filters label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-right: 0.65rem;
  font-size: 0.92rem;
}
.market-filters input[type="number"],
.market-filters input[type="search"] {
  width: 8.5rem;
  margin-left: 0.35rem;
}
.market-grid.is-discovery {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.market-rail__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.market-rail__head h2 {
  font-size: 1.35rem;
  color: var(--burgundy-900);
}
.market-rail__head p {
  color: var(--ink-soft, #6d4452);
  font-size: 0.92rem;
}
.market-rail__track {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.market-rail--ending .market-rail__track,
.market-rail--boosted .market-rail__track {
  grid-template-columns: 1.2fr 0.8fr;
}
.market-rail--arrivals .market-rail__track {
  grid-template-columns: repeat(3, 1fr);
}
.market-rail--trending .product-card:nth-child(2) {
  transform: translateY(0.65rem);
}
.product-card--lead .product-card__title {
  font-size: 1.35rem;
}
.product-card--auction {
  background:
    linear-gradient(180deg, var(--pink-50) 0%, #fff 42%);
  box-shadow: inset 0 0 0 1px var(--burgundy-700, #6b2038);
}
.product-card__badge--auction {
  background: var(--burgundy-800, #4a1224);
  color: var(--pink-50);
}
.product-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  margin: 0.35rem 0 0.5rem;
  color: var(--burgundy-900);
  font-size: 0.82rem;
}

.product-card__social {
  display: none;
}

.product-card__counts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.seller-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--pink-100, #f8d5e0);
  color: var(--burgundy-900);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.seller-badge--business {
  background: var(--burgundy-800, #4a1224);
  color: var(--pink-50);
}
.seller-badge--online {
  background: var(--pink-50);
  color: var(--burgundy-900);
  box-shadow: inset 0 0 0 1px var(--burgundy-700, #6b2038);
}
.card-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--burgundy-800, #4a1224);
}
.payout-board {
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .market-rail__track,
  .market-rail--ending .market-rail__track,
  .market-rail--boosted .market-rail__track,
  .market-rail--arrivals .market-rail__track {
    grid-template-columns: 1fr;
  }
  .market-rail--trending .product-card:nth-child(2) {
    transform: none;
  }
  .market-rail__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.messages-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.messages-head__actions,
.chat-thread-actions,
.message-form__actions,
.chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.chat-unread {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--burgundy-800, #4a1224);
  color: var(--pink-50, #fff);
  font-size: 0.75rem;
}
.chat-notice,
.chat-support {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--pink-50, #fdf4f7);
  color: var(--burgundy-900, #3b0a1e);
  font-size: 0.88rem;
}
.chat-preview {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line, #ead6de);
  color: inherit;
  text-decoration: none;
}
.chat-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.chat-preview span,
.chat-reported p {
  display: block;
  color: var(--ink-600, #6d4452);
  font-size: 0.85rem;
}
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 28rem;
  overflow: auto;
}
.message--mine {
  margin-left: auto;
  background: var(--burgundy-800, #4a1224);
  color: var(--pink-50, #fff);
}
.message--theirs {
  margin-right: auto;
  background: var(--pink-100, #f8d5e0);
  color: var(--burgundy-900, #3b0a1e);
}
.message__images {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.message__images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.message__receipt {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.chat-replies button,
.chat-attach {
  border: 1px solid var(--line, #ead6de);
  background: #fff;
  color: var(--burgundy-900, #3b0a1e);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.chat-attach input {
  display: none;
}
.chat-reported {
  margin-bottom: 1rem;
}
.chat-reported ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0;
  list-style: none;
}
@media (max-width: 800px) {
  .messages-head,
  .messages-layout {
    display: block;
  }
  .messages-list {
    margin-bottom: 1rem;
  }
  .message {
    max-width: 88%;
  }
}

.verify-resend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.verify-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.auth-card .verify-resend__btn {
  width: auto;
  min-height: 32px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--burgundy-700);
  border-radius: 999px;
  background: var(--surface);
  color: var(--burgundy-700);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
}

.auth-card .verify-resend__btn:hover {
  background: var(--pink-100);
}

.auth-card .verify-resend__btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.verify-resend__note {
  margin: 0;
  min-height: 1.2em;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-600);
  text-align: center;
}

.listing-page {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: 28px;
}

.listing-filters-open,
.listing-filters__close {
  display: none;
}

.listing-filters {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 8px 16px 16px 0;
  border-right: 1px solid #f0d5de;
}

.listing-filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.listing-filters__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #3b0a1e;
}

.listing-filter {
  border-top: 1px solid #f0d5de;
  padding: 10px 0 12px;
}

.listing-filter summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: #3b0a1e;
}

.listing-filter label,
.listing-filters fieldset label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.92rem;
  color: #4a2433;
}

.listing-filter label span,
.listing-filters fieldset label span {
  color: #8a6672;
  font-variant-numeric: tabular-nums;
}

.listing-filter__empty {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #8a6672;
}

.listing-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.listing-price label,
.listing-filter__field {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: #8a6672;
}

.listing-price input,
.listing-filter__field input,
.listing-filters fieldset {
  width: 100%;
}

.listing-filters fieldset {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
}

.listing-filters legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3b0a1e;
}

.listing-range {
  width: 100%;
  margin: 12px 0;
  accent-color: #3b0a1e;
}

.listing-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.listing-sizes label {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.listing-sizes input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.listing-sizes label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #f0d5de;
  border-radius: 8px;
  color: #3b0a1e;
  font-size: 0.82rem;
}

.listing-sizes small {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.65rem;
  color: #8a6672;
}

.listing-sizes input:checked + span,
.listing-sizes input:focus-visible + span {
  border-color: #3b0a1e;
  background: #3b0a1e;
  color: #fdf4f7;
}

.listing-main {
  min-width: 0;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.listing-toolbar p {
  margin: 0;
  margin-right: auto;
  color: #4a2433;
}

.listing-toolbar .sort-select {
  min-width: 180px;
}

.listing-view {
  display: inline-flex;
  border: 1px solid #f0d5de;
  border-radius: 999px;
  overflow: hidden;
}

.listing-view button {
  border: 0;
  background: transparent;
  color: #4a2433;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.listing-view button[aria-pressed="true"] {
  background: #3b0a1e;
  color: #fdf4f7;
}

.listing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 196px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  padding: 14px;
  background: #fff;
  border: 1px solid #f0d5de;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(59, 10, 30, 0.04);
}

.listing-row__media {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f1f3;
}

.listing-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-row__copy {
  min-width: 0;
}

.listing-row__copy h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
}

.listing-row__copy h3 a {
  color: #3b0a1e;
  text-decoration: none;
}

.listing-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
  color: #7a4e5c;
  font-size: 0.82rem;
}

.listing-row__stars {
  color: #3b0a1e;
  letter-spacing: 0.04em;
}

.listing-row__desc,
.listing-row__brand {
  margin: 0;
  color: #4a2433;
  font-size: 0.92rem;
  line-height: 1.5;
}

.listing-row__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-row__brand {
  margin-top: 8px;
  color: #8a6672;
  font-size: 0.8rem;
}

.listing-row__offer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.listing-row__price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d81b60;
}

.listing-row__social {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 5px;
  margin: 2px 0 0;
  color: #6d4452;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

.listing-row__social-sep {
  color: #b9a3ad;
}

.listing-row__social-reviews {
  color: #d81b60;
  font-weight: 600;
  text-decoration: none;
}

.listing-row__social-reviews:hover,
.listing-row__social-reviews:focus-visible {
  text-decoration: underline;
}

.listing-row__was {
  margin: 0;
  color: #8a6672;
  font-size: 0.85rem;
}

.listing-row__was s {
  margin-right: 6px;
}

.listing-row__was span {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: #ff3d86;
  color: #fffaf6;
  font-weight: 700;
}

.listing-row__ship {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.listing-row__ship--free { color: #1f7a4d; }
.listing-row__ship--paid { color: #8a5a12; }

.listing-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.listing-row__buy-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

.listing-row__wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #f0d5de;
  border-radius: 999px;
  background: #fff;
  color: #3b0a1e;
  cursor: pointer;
}

.listing-row__wish svg {
  width: 18px;
  height: 18px;
}

.listing-row__wish[aria-pressed="true"] {
  background: #3b0a1e;
  color: #fdf4f7;
  border-color: #3b0a1e;
}

.listing-size-field {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.listing-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.listing-size-options label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 980px) {
  .listing-page {
    grid-template-columns: 1fr;
  }

  .listing-filters-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 12px;
    padding: 0 16px;
    border: 1px solid #3b0a1e;
    border-radius: 999px;
    background: #fff;
    color: #3b0a1e;
    font: inherit;
    cursor: pointer;
  }

  .listing-filters {
    display: none;
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    max-height: none;
    padding: 20px 18px 28px;
    background: #fff;
    border-right: 0;
    box-shadow: -16px 0 40px rgba(59, 10, 30, 0.16);
  }

  .listing-filters.is-open {
    display: block;
  }

  .listing-filters__close {
    display: block;
    width: 100%;
    margin-top: 16px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #3b0a1e;
    color: #fdf4f7;
    font: inherit;
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .listing-toolbar {
    flex-wrap: wrap;
  }

  .listing-toolbar .sort-select {
    min-width: 0;
    flex: 1;
  }

  .listing-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .listing-row__media,
  .listing-row__media img {
    width: 96px;
    height: 96px;
  }

  .listing-row__copy h3 {
    font-size: 1.02rem;
  }

  .listing-row__offer {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .listing-row__actions {
    margin-left: auto;
  }
}

.listing-page .market-grid > .market-rail {
  grid-column: 1 / -1;
}

.listing-page .market-rail__track,
.listing-page .market-rail--forYou .market-rail__track,
.listing-page .market-rail--trending .market-rail__track,
.listing-page .market-rail--arrivals .market-rail__track,
.listing-page .market-rail--ending .market-rail__track,
.listing-page .market-rail--boosted .market-rail__track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.listing-page .market-rail .product-card,
.listing-page .market-rail .product-card:nth-child(1),
.listing-page .market-rail .product-card:nth-child(2),
.listing-page .market-rail .product-card:nth-child(3) {
  grid-column: auto;
  height: 100%;
  min-width: 0;
}

.listing-page .market-rail--trending .product-card:nth-child(2) {
  transform: none;
}

.listing-page .market-rail .product-card__media,
.listing-page .market-grid .product-card__media {
  aspect-ratio: 1 / 1;
  height: auto;
}

.listing-page .market-rail .product-card__title,
.listing-page .market-rail .product-card--lead .product-card__title,
.listing-page .market-grid .product-card__title {
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-list .market-rail__track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-list .market-rail .listing-row {
  width: 100%;
  align-items: center;
}

.listing-page .listing-row__desc {
  min-height: 4.5em;
}

.listing-page .market-rail .product-card,
.listing-page .market-grid .product-card {
  display: flex;
  flex-direction: column;
}

.listing-page .market-rail .product-card__body,
.listing-page .market-grid .product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-page .market-rail .product-card__actions,
.listing-page .market-grid .product-card__actions {
  margin-top: auto;
}

@media (max-width: 900px) {
  .listing-page .market-rail__track,
  .listing-page .market-rail--forYou .market-rail__track,
  .listing-page .market-rail--trending .market-rail__track,
  .listing-page .market-rail--arrivals .market-rail__track,
  .listing-page .market-rail--ending .market-rail__track,
  .listing-page .market-rail--boosted .market-rail__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .listing-page .market-rail__track,
  .listing-page .market-rail--forYou .market-rail__track,
  .listing-page .market-rail--trending .market-rail__track,
  .listing-page .market-rail--arrivals .market-rail__track,
  .listing-page .market-rail--ending .market-rail__track,
  .listing-page .market-rail--boosted .market-rail__track {
    grid-template-columns: 1fr;
  }
}

/* Home, sign-in, and sign-up: one quiet system */
.page-home h1,
.page-home h2,
.page-auth h1,
.page-auth h2 {
  text-wrap: balance;
  scroll-margin-top: 96px;
}

.page-home .btn,
.page-auth .btn,
.page-home .category-tile,
.page-home .product-card,
.page-auth .role-card {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-home .btn:hover,
.page-auth .btn:hover,
.page-home .category-tile:hover,
.page-home .product-card:hover,
.page-auth .role-card:hover {
  transform: translateY(-2px);
}

.page-home .btn:active,
.page-auth .btn:active,
.page-home .category-tile:active,
.page-auth .role-card:active {
  transform: translateY(1px);
}

.page-home .split__media {
  overflow: hidden;
}

.page-home .split__media img {
  transition: transform 400ms ease;
}

.page-home .split__media:hover img {
  transform: scale(1.025);
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 40px 0 48px;
  background: var(--cream);
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.home-hero__copy {
  max-width: 28rem;
  justify-self: end;
}

.home-hero .display {
  margin: 0;
  font-size: clamp(2.5rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-hero__lead {
  max-width: 38ch;
  margin: 18px 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero__media {
  position: relative;
  height: min(460px, 58vh);
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 450ms ease;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 250, 249, 0.9);
  color: #1c1917;
  transform: translateY(-50%);
}

.home-hero__arrow--prev { left: 12px; }
.home-hero__arrow--next { right: 12px; }

.home-hero__arrow svg {
  width: 18px;
  height: 18px;
}

.home-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-hero__arrow,
.home-hero__dots button {
  cursor: pointer;
}

.home-hero__dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.home-hero__dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.home-hero__dots button[aria-selected="true"]::after {
  background: #ffffff;
}

.page-auth .auth-page {
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}

.page-auth .auth-aside,
.page-auth .auth-aside--signup {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  min-height: 0;
  padding: 28px 24px 24px;
}

.page-auth .auth-aside__copy {
  margin-top: 0;
  max-width: none;
}

.page-auth .auth-aside__copy h2 {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
}

.page-auth .auth-aside__art {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 220px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 14px;
  opacity: 1;
}

.page-auth .auth-aside__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-auth .auth-aside::after,
.page-auth .auth-collage,
.page-auth .auth-aside__glow {
  display: none;
}

.page-auth .auth-form .field input:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.page-auth .auth-card h1 {
  letter-spacing: -0.03em;
}

/* Sign-in: the member panel and the form each take one half of the page. */
body.page-auth:has(.auth-page--split) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.page-auth:has(.auth-page--split) main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-bottom: 0;
}

.page-auth .auth-page.auth-page--split {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

.page-auth .auth-page--split .auth-aside {
  width: auto;
  min-height: 100%;
  justify-content: flex-start;
  gap: clamp(24px, 3vh, 40px);
  padding: clamp(32px, 4vw, 64px);
}

.page-auth .auth-page--split .auth-aside__copy {
  flex: 0 0 auto;
}

.page-auth .auth-page--split .auth-aside__copy h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 3.4vw, 3.75rem);
  line-height: 1.05;
}

.page-auth .auth-page--split .auth-aside__copy p,
.page-auth .auth-page--split .auth-points li {
  font-size: 16px;
  line-height: 1.5;
}

.page-auth .auth-page--split .auth-points svg {
  width: 24px;
  height: 24px;
}

.page-auth .auth-page--split .auth-aside__art {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: none;
}

.page-auth .auth-page--split .auth-main {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: auto;
  background: var(--surface);
}

.page-auth .auth-page--split .auth-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: clamp(32px, 4vw, 64px);
  padding-bottom: 120px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-auth .auth-page--split .auth-card[hidden] {
  display: none;
}

.page-auth .auth-page--split .auth-card > .eyebrow,
.page-auth .auth-page--split .auth-card > h1,
.page-auth .auth-page--split .auth-card > .auth-card__lead,
.page-auth .auth-page--split .auth-card > .signup-progress,
.page-auth .auth-page--split .auth-card > .auth-form,
.page-auth .auth-page--split .auth-card > .auth-note {
  width: 100%;
}

.page-auth .auth-page--split .auth-collage {
  display: block;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 240px;
  margin-top: auto;
}

.page-auth .auth-page--split .auth-collage__tag strong {
  font-size: 13px;
}

.page-auth .auth-page--split .auth-collage__tag small {
  font-size: 12px;
  line-height: 1.5;
}

.page-auth .auth-page--split .signup-progress li {
  font-size: 12px;
}

.page-auth .auth-page--split .role-card__foot {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-auth .auth-page--split .password-toggle {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 200ms ease;
}

@media (max-width: 980px) {
  body.page-auth:has(.auth-page--split) {
    display: block;
    min-height: 0;
  }

  .page-auth .auth-page.auth-page--split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .page-auth .auth-page--split .auth-aside {
    display: none;
  }

  .page-auth .auth-page--split .auth-main {
    min-height: 0;
  }

  .page-auth .auth-page--split .auth-card {
    min-height: 0;
    padding: 36px 20px 56px;
  }
}


@media (max-width: 800px) {
  .home-hero {
    min-height: 0;
    padding: 28px 0 36px;
  }

  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero__copy {
    justify-self: stretch;
  }

  .home-hero__media {
    height: 240px;
    min-height: 0;
  }

  .home-hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn:hover,
  .page-auth .btn:hover,
  .page-home .category-tile:hover,
  .page-home .product-card:hover,
  .page-auth .role-card:hover,
  .home-hero__media:hover img,
  .page-home .split__media:hover img {
    transform: none;
  }

  .home-hero__slide {
    transition: none;
  }
}

/* Home and account pages use the same burgundy and ivory tokens as the rest of the site. */

/* Compact burgundy authentication. Login and signup only. */
.page-auth {
  --burgundy-900: #3b0a1e;
  --burgundy-800: #5a1030;
  --burgundy-700: #7a1542;
  --burgundy-600: #96205a;
  --burgundy: #7a1542;
  --burgundy-deep: #3b0a1e;
  --pink-500: #a16207;
  --pink-300: #e8d5a3;
  --pink-100: #f8efe4;
  --pink-50: #faf6f1;
  --cream: #faf6f1;
  --sand: #f6efe8;
  --lemon: #e8d5a3;
  --ink-900: #24141b;
  --ink-600: #5e4a53;
  --line: #eadfd4;
  --surface: #ffffff;
  background: #faf6f1;
  color: #24141b;
}

.page-auth .announcement {
  background: #3b0a1e;
  color: #fffaf6;
}

.page-auth .site-header {
  background: rgba(250, 246, 241, 0.94);
}

.page-auth .auth-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 20px 48px;
  background: #faf6f1;
}

.page-auth .auth-panel {
  width: min(100%, 420px);
  padding: 28px 28px 22px;
  background: #ffffff;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(59, 10, 30, 0.08);
}

.page-auth .auth-panel--signup {
  width: min(100%, 520px);
}

.page-auth .auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.page-auth .auth-logo img {
  width: auto;
  height: 36px;
}

.page-auth .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  background: #f6efe8;
  border-radius: 10px;
}

.page-auth .auth-tabs a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #5e4a53;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.page-auth .auth-tabs a[aria-current="page"] {
  background: #ffffff;
  color: #7a1542;
  box-shadow: 0 1px 2px rgba(59, 10, 30, 0.08);
}

.page-auth .auth-panel .auth-form,
.page-auth .auth-panel .signup-form {
  gap: 14px;
}

.page-auth .auth-panel .signup-progress {
  margin: 0 0 16px;
}

.page-auth .auth-panel .role-card__body {
  min-height: 0;
  background: #ffffff;
  backdrop-filter: none;
}

.page-auth .auth-panel .role-card input:checked + .role-card__body {
  border-color: #7a1542;
  background: #faf6f1;
  box-shadow: 0 0 0 3px rgba(122, 21, 66, 0.12);
}

.page-auth .auth-panel .btn--dark {
  background: #7a1542;
  border-color: #7a1542;
  color: #ffffff;
}

.page-auth .auth-panel .btn--dark:hover {
  background: #5a1030;
  border-color: #5a1030;
}

.page-auth .auth-panel .btn--outline {
  border-color: #7a1542;
  color: #7a1542;
  background: #ffffff;
}

.page-auth .auth-panel__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
}

.page-auth .auth-panel__note {
  margin: 0 0 16px;
  color: #5e4a53;
  font-size: 14px;
  text-align: center;
}

.page-auth .auth-note {
  margin: 14px 0 0;
  color: #5e4a53;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px) {
  .page-auth .auth-shell {
    padding: 16px 16px 32px;
  }

  .page-auth .auth-panel,
  .page-auth .auth-panel--signup {
    width: 100%;
    padding: 22px 16px 18px;
  }

  .page-auth .auth-panel .role-grid,
  .page-auth .auth-panel .role-grid--signup {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Featured pieces: three listings plus the live-auction card, four across. */
.page-home .section--featured > .container {
  width: min(100% - 48px, 1280px);
}

.page-home .section--featured .showcase {
  display: block;
}

.page-home .section--featured .featured-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.page-home .section--featured .featured-row .finds-grid {
  display: contents;
}

.page-home .section--featured .live-panel {
  position: static;
  top: auto;
  width: auto;
  height: 100%;
  min-width: 0;
}

.page-home .section--featured .live-panel:has(.empty-state) {
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.page-home .section--featured .live-panel .empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 28px 18px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.page-home .section--featured .live-panel .empty-state h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.page-home .section--featured .live-panel .empty-state p {
  max-width: none;
  margin: 12px 0 18px;
  font-size: 0.875rem;
}

.page-home .section--featured .product-card,
.page-home .section--featured .skeleton-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 10px 10px 14px;
  border-radius: 16px;
}

.page-home .section--featured .product-card__media {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}

.page-home .section--featured .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .section--featured .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px 6px 0;
}

.page-home .section--featured .product-card__title {
  font-size: 1.15rem;
}

.page-home .section--featured .product-card__actions {
  margin-top: auto;
}

.product-card__price strong {
  color: #d81b60;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.product-card__was {
  margin-left: 6px;
  color: #8e7a83;
  font-size: 0.8125rem;
  font-weight: 500;
}

.product-card__price--promo strong {
  color: #d81b60;
  font-size: 1.15rem;
}

.product-card__off {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--burgundy-700, #7a1542);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card__price .product-card__off {
  color: #fff;
}

.product-card__campaign,
.piece__campaign {
  display: block;
  margin-top: 4px;
  color: #7a1542;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-band {
  background: #3b0a1e;
  color: #fff8f4;
  padding: 1.5rem 0 1.75rem;
}

.promo-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.promo-band__kicker {
  margin: 0;
  color: #f3c3d4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-band h2 {
  margin: 0;
  color: #fff8f4;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.promo-band__off {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  background: #ff3d86;
  color: #fffaf6;
  font-weight: 700;
}

.promo-band__until {
  margin: 0;
  color: #f6e7ee;
}

.promo-band__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff8f4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-band__link:focus-visible {
  outline: 2px solid #fff8f4;
  outline-offset: 3px;
}

.promo-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.promo-band .product-card {
  background: #fff8f4;
  color: #24141b;
}

.piece__off {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  background: #ff3d86;
  color: #fffaf6;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .promo-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #a16207;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.product-card__rating span:last-child {
  color: #5e4a53;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .page-home .section--featured .featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-home .section--featured > .container {
    width: min(100% - 32px, 1280px);
  }

  .page-home .section--featured .featured-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

.site-footer {
  padding-top: 36px;
  padding-bottom: 56px;
}

.footer-grid {
  gap: 24px 32px;
  padding-bottom: 24px;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-contact {
  margin-top: 12px;
}

.footer-col h3 {
  margin-bottom: 6px;
  color: #4a2140;
}

.footer-col a,
.sound-toggle {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--cream);
}

.footer-bottom a {
  min-height: 30px;
}

.footer-bottom {
  padding: 12px 0 14px;
}

@media (max-width: 980px) and (min-width: 761px) {
  .site-footer {
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 8px 20px;
    padding-bottom: 8px;
  }

  .footer-brand p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-contact {
    margin-top: 8px;
  }

  .footer-col h3 {
    margin-bottom: 2px;
  }

  .footer-col a {
    min-height: 26px;
    font-size: 13px;
    line-height: 1.25;
  }

  .footer-bottom {
    padding: 8px 0 2px;
  }
}

/* Supplied 16:9 banners. The artwork already carries the headline, so the
   page does not paint a gradient over it. */
.banner-hero {
  background: #f4efe6;
}

.banner-hero--live {
  background: #101820;
}

.banner-hero__frame img,
.banner-hero__inline {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.banner-hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
}

.banner-hero__bar .page-hero__aside {
  margin: 0;
  color: var(--ink);
}

.category-row {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.category-row__status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-muted);
}

.category-bar .chip {
  min-height: 44px;
}

.category-picker {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.category-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-picker__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper, #fff);
  cursor: pointer;
}

.category-picker__option:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream, #fff);
}

.category-picker__option input {
  width: 16px;
  height: 16px;
  accent-color: currentColor;
}

.category-picker__option:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.piece {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 40px;
  align-items: start;
  padding: 8px 0 72px;
}

.piece__buy {
  position: sticky;
  top: 96px;
}

.piece__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 8px;
}

.piece__cats a {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.piece__promoted {
  color: var(--gold-deep, #a16207);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.piece h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.piece__condition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.piece__condition span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.piece__actions {
  margin-top: 8px;
}

.piece__actions .btn {
  min-height: 48px;
}

.piece__assure {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.piece__assure li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.piece__assure svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.piece__about,
.piece__specs {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.piece__about h2,
.piece__specs h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.piece .product-detail__media {
  aspect-ratio: 1;
  background: var(--sand, #f3eee6);
}

.piece .product-detail__thumb {
  width: 72px;
  height: 72px;
  min-width: 44px;
  min-height: 44px;
}

.auction-clock__value {
  font-variant-numeric: tabular-nums;
}

.auction-composer input:focus-visible,
.category-picker__option:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .piece {
    grid-template-columns: 1fr;
  }

  .piece__buy {
    position: static;
  }

  .category-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Auction rules: square image, then heading, copy, and two columns of points. */
.auction-offer {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.auction-offer__media {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand, #f3eee6);
}

.auction-offer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auction-offer__copy h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.auction-offer__copy > p {
  max-width: 38rem;
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.auction-offer__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.auction-offer__points li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.auction-offer__points li::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: currentColor;
}

.auction-offer__points strong,
.auction-offer__points span {
  display: block;
  grid-column: 2;
}

.auction-offer__points strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.auction-offer__points span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auction-offer__note {
  max-width: 34ch;
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .auction-offer,
  .auction-offer__points {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Homepage hero: image gallery left, introduction right
   ========================================================================== */

.hero-gallery {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px) 0 clamp(36px, 4vw, 56px);
  background: var(--pink-50);
  border-bottom: 1px solid var(--line);
}

.hero-gallery__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-gallery__media {
  min-width: 0;
}

.hero-gallery__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pink-100);
  box-shadow: var(--shadow-sm);
}

.hero-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}

.hero-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 700ms var(--ease), visibility 0s;
}

.hero-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1200ms var(--ease);
}

.hero-gallery__slide.is-active img {
  transform: scale(1);
}

.hero-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.hero-gallery__dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-gallery__dots button {
  position: relative;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.hero-gallery__dots button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--pink-300);
  transform: translate(-50%, -50%);
  transition: width 200ms var(--ease), background-color 200ms ease;
}

.hero-gallery__dots button[aria-selected="true"]::after {
  width: 34px;
  background: var(--burgundy-700);
}

.hero-gallery__arrows {
  display: flex;
  gap: 8px;
}

.hero-gallery__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--burgundy-700);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.hero-gallery__arrow:hover {
  border-color: var(--burgundy-700);
  background: var(--pink-100);
}

.hero-gallery__arrow svg {
  width: 18px;
  height: 18px;
}

.hero-gallery__dots button:focus-visible,
.hero-gallery__arrow:focus-visible {
  outline: 2px solid var(--burgundy-700);
  outline-offset: 2px;
}

.hero-gallery__copy {
  min-width: 0;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-gallery__copy .eyebrow {
  margin-bottom: 14px;
  color: var(--burgundy-600);
}

.hero-gallery__copy .display {
  margin: 0 0 16px;
  color: var(--burgundy-900);
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero-gallery__lead {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-600);
  font-size: var(--fs-16);
  line-height: 1.65;
}

.hero-gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 980px) {
  .hero-gallery__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-gallery__media,
  .hero-gallery__copy {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero-gallery {
    padding: 24px 0 40px;
  }

  .hero-gallery__copy {
    padding: 24px;
  }

  .hero-gallery__actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .hero-gallery__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gallery__slide,
  .hero-gallery__slide img,
  .hero-gallery__dots button::after {
    transition: none;
  }

  .hero-gallery__slide img,
  .hero-gallery__slide.is-active img {
    transform: none;
  }
}

.ops-images-filter {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.ops-images-filter h3 {
  margin: 0;
  font-size: 1rem;
}

.ops-images-filter p {
  margin: 0;
  font-size: 0.86rem;
  color: #7a6a70;
}

.ops-images-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ops-images-page {
  appearance: none;
  border: 1px solid #d7c6cc;
  background: #fffaf6;
  color: #4a2f38;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.ops-images-page:hover {
  border-color: #b08994;
}

.ops-images-page.is-active {
  border-color: #6b1f36;
  background: #6b1f36;
  color: #fff7ef;
}

.site-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.site-image__scope {
  border: 0;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-image__scope legend {
  padding: 0;
  margin: 0 0 0.25rem;
  font-size: 0.84rem;
  color: #7a6a70;
}

.site-image__radio {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #4a2f38;
}

.site-image__preview-note {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(106, 31, 54, 0.9);
  color: #fff7ef;
  font-size: 0.72rem;
}

.site-image img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #faf6f1;
}

.site-image__frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #faf6f1;
}

.site-image__dims {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(42, 18, 28, 0.82);
  color: #fff7ef;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-image__facts {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 0.6rem;
  font-size: 0.86rem;
}

.site-image__facts div {
  display: flex;
  gap: 0.45rem;
}

.site-image__facts dt {
  flex: 0 0 5.4rem;
  color: #7a6a70;
}

.site-image__facts dd {
  margin: 0;
  word-break: break-word;
}

.site-image__state {
  font-size: 0.82rem;
  color: #7a6a70;
  margin: 0.35rem 0 0;
}

.site-image__hint {
  font-size: 0.82rem;
  color: #7a6a70;
  margin: 0.35rem 0 0;
}

.site-image__hint:empty {
  display: none;
}

.site-image h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
}

.shelf-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.shelf-related__list a,
.shelf-flash__list a {
  color: #7a1542;
}

.shelf-flash__list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.shelf-block {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.shelf-block h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.shelf-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.shelf-block textarea {
  width: 100%;
  min-height: 5rem;
}

.product-card__flags {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.product-card__flag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 2px 7px 7px 2px;
  background: #e4236f;
  color: #fff8f4;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__flag--free {
  background: #0c8a4b;
}

.product-card__flag--split {
  background: #7a1542;
}

.product-card__flag--name {
  max-width: calc(100% - 20px);
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent__toggle {
  height: auto;
  min-height: 64px;
  padding: 0;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #24141b;
  box-shadow: none;
}

.agent__toggle:hover,
.agent__toggle:hover .agent__mascot {
  background: transparent;
}

.agent__mascot {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agent__mascot img,
.agent__mascot canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.agent__mascot img {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.18);
}

.agent__mascot canvas {
  position: absolute;
  inset: 0;
}

.agent__speak {
  pointer-events: auto;
  width: min(240px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 16px 16px 6px 16px;
  background: #fff;
  color: #24141b;
  box-shadow: 0 12px 28px rgba(59, 10, 30, 0.16);
}

.agent__speak[hidden] {
  display: none;
}

.agent__speak-title,
.agent__speak-body {
  margin: 0;
}

.agent__speak-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.agent__speak-body {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(59, 10, 30, 0.06);
}

.notice-card h3,
.notice-card p {
  margin: 0;
}

.notice-card time {
  display: block;
  margin: 4px 0 8px;
  font-size: 13px;
}

.notice-card p {
  margin-bottom: 12px;
  line-height: 1.45;
}

.notice-card .btn {
  margin-top: 4px;
}

.agent__toggle-label {
  order: -1;
  padding: 8px 12px;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: #24141b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(59, 10, 30, 0.14);
  transform-origin: 100% 80%;
}

.agent__toggle-label.is-pop {
  animation: agent-label-pop 460ms cubic-bezier(0.16, 1.4, 0.32, 1);
}

.agent__speak:not([hidden]) {
  animation: agent-label-pop 460ms cubic-bezier(0.16, 1.4, 0.32, 1);
  transform-origin: 100% 100%;
}

@keyframes agent-label-pop {
  0% {
    opacity: 0;
    transform: translate(10px, 8px) scale(0.64);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent__toggle-label.is-pop,
  .agent__speak:not([hidden]) {
    animation: none;
  }
}

.agent__toggle:focus-visible {
  outline: 2px solid #ff3d86;
  outline-offset: 3px;
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .agent__mascot {
    transition: transform 120ms ease;
  }

  .agent__toggle:active .agent__mascot {
    transform: scale(0.94);
  }
}

.home-bar__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
}

.bar-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.bar-preview__note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.bar-preview__circle {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  padding: 12px;
  border-radius: 50%;
  background: #ffe14a;
  color: #3b0a1e;
  line-height: 1;
  text-align: center;
}

.bar-preview__circle strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bar-preview__circle span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .home-bar__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agent__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .agent__toggle,
  .agent__mascot,
  .agent__mascot img,
  .agent__mascot canvas {
    width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 0;
  }
}

.header-search,
.market-search,
body.page-marketplace .market-toolbar .market-search {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.header-search > button {
  border-radius: 0 999px 999px 0;
}

.search-drop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #eadfd4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(36, 20, 27, 0.12);
}

.search-drop__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 10px 2px;
  color: #8a6d7c;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-drop__clear {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #7a1542;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.search-drop__hit,
.search-drop__term {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c1230;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.search-drop__hit[aria-selected="true"],
.search-drop__term[aria-selected="true"],
.search-drop__hit:hover,
.search-drop__term:hover {
  background: #fff5f8;
}

.search-drop__hit:focus-visible,
.search-drop__term:focus-visible,
.search-drop__clear:focus-visible {
  outline: 2px solid #e4236f;
  outline-offset: 2px;
}

.search-drop img {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
  background: #faf6f1;
}

.search-drop__copy {
  min-width: 0;
}

.search-drop__copy strong,
.search-drop__term span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-drop__copy small {
  color: #5e4a53;
  font-size: 13px;
}

.search-drop__price {
  margin-left: auto;
  flex: none;
  font-weight: 650;
  white-space: nowrap;
}

.search-drop mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header-actions .header-action,
.header-actions .account-btn,
.header-actions .menu-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
  color: #7a1542;
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.04);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.header-actions .header-action:hover,
.header-actions .account-btn:hover,
.header-actions .menu-toggle:hover {
  background: #fdf5f8;
  border-color: #8a2547;
}

.header-actions .header-action--logo {
  color: #7a1542;
}

.header-actions .header-action svg {
  width: 18px;
  height: 18px;
  color: #7a1542;
}

.header-actions .header-action--logo svg,
.header-actions .header-action--logo:hover svg {
  width: 18px;
  height: 18px;
  color: #ff3d86;
}

.header-actions .header-action > span:not(.cart-count):not(.note-count),
.header-actions .account-btn > span:not(.cart-count):not(.note-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.header-actions .note-count,
.header-actions .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  left: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e4236f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

html[data-ui-role="seller"] .header-actions .header-action[data-seller-home] > span,
html[data-ui-role="seller"] .header-actions .header-action[data-seller-logout] > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a.product-card__quick {
  z-index: 4;
  border: 1px solid rgba(122, 21, 66, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #3b0a1e;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: auto;
}

.product-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-card__title-row .product-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.card-wish--title {
  position: static;
  top: auto;
  right: auto;
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0;
  transform: none;
}

.search-drop__empty {
  margin: 0;
  padding: 12px;
  color: #5e4a53;
}

/* Messages inbox: one pane, action stays with the title */
.messages-page .messages-head {
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px 28px;
  padding-bottom: 18px;
  margin-bottom: 0;
}

.messages-page .messages-head__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.messages-page .messages-head__copy h1 {
  margin: 2px 0 6px;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}

.messages-page .messages-head__copy p:last-child {
  max-width: 40rem;
}

.messages-page .messages-head__actions {
  flex: 0 0 auto;
  align-self: center;
}

.messages-page .messages-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 18px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.messages-page .messages-list {
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: var(--pink-50, #fdf6f8);
}

.messages-page .messages-list__item {
  border-color: transparent;
  background: transparent;
}

.messages-page .messages-list__item.is-active {
  border-color: transparent;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--burgundy);
}

.messages-page .messages-thread {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 22px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.messages-page .messages-thread .message-thread {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: none;
}

.messages-page .messages-thread .empty-state--thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 28px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.messages-page .messages-thread .empty-state--thread h3 {
  margin: 0 0 8px;
}

.messages-page .messages-thread .empty-state--thread p {
  max-width: 34rem;
  margin: 0 auto;
}

.messages-page .messages-thread .empty-state--thread p + p {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .messages-page .messages-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .messages-page .messages-head__actions {
    width: auto;
  }

  .messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .messages-page .messages-list {
    display: flex;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .messages-page .messages-list__item {
    min-width: 210px;
  }

  .messages-page .messages-thread {
    min-height: 360px;
  }
}

/* Messages: avatar rows, clear two-tone bubbles */
.messages-page .messages-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #231a1f;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.messages-page .messages-list__item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.messages-page .messages-list__item.is-active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--burgundy, #7a1542);
}

.messages-page .messages-list__item .messages-list__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: inherit;
  font-size: inherit;
}

.messages-page .messages-list__item .messages-list__top,
.messages-page .messages-list__item .messages-list__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.messages-page .messages-list__item .messages-list__top strong {
  overflow: hidden;
  min-width: 0;
  color: #231a1f;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-page .messages-list__item .messages-list__top time {
  flex: none;
  color: #8a7f86;
  font-size: 11px;
  font-weight: 500;
}

.messages-page .messages-list__item .messages-list__preview {
  overflow: hidden;
  min-width: 0;
  color: #6d6068;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-page .chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1e3e9;
  color: #7a1542;
  font-size: 17px;
  font-weight: 700;
}

.messages-page .chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-page .chat-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.messages-page .messages-thread__who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.messages-page .messages-thread__who > div {
  min-width: 0;
}

.messages-page .message-thread .message--mine,
.messages-page .message-thread .message--mine * {
  color: #fff;
}

.messages-page .message-thread .message--theirs,
.messages-page .message-thread .message--theirs * {
  color: #3b0a1e;
}

/* Buyer account. Operate screen: seller-dashboard cards, Daraz order lanes. */
body.page-account {
  background: #f6f5f4;
}

body.page-account .account-page {
  padding: 24px 0 48px;
}

body.page-account .buyer-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

body.page-account .buyer-nav {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid #eceef2;
  border-radius: 12px;
  background: #fff;
}

body.page-account .buyer-nav__menu {
  display: contents;
}

body.page-account .buyer-nav > .buyer-nav__toggle {
  display: none;
}

body.page-account .buyer-nav__icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex: none;
  color: #7a1542;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.page-account .buyer-nav a,
body.page-account .buyer-nav button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3f3640;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

body.page-account .buyer-nav a.is-active {
  background: #f6e8ee;
  color: #7a1542;
}

body.page-account .buyer-nav a:hover {
  background: #f6f5f4;
  color: #1c1420;
}

body.page-account .buyer-nav a.is-active:hover {
  background: #f6e8ee;
  color: #7a1542;
}

body.page-account .buyer-nav a:focus-visible,
body.page-account .buyer-lanes a:focus-visible,
body.page-account .buyer-steps:focus-visible {
  outline: 2px solid #7a1542;
  outline-offset: 2px;
}

body.page-account .buyer-nav__who span {
  background: #161616;
}

body.page-account .buyer-nav__out {
  margin-top: auto;
  color: #7a1542;
  font-weight: 700;
}

body.page-account .buyer-welcome h2,
body.page-account .account-section h2,
body.page-account .account-section h3 {
  margin: 0 0 4px;
  color: #111;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.page-account .buyer-welcome h2 {
  font-size: 28px;
}

body.page-account .buyer-welcome p,
body.page-account .account-section__head p,
body.page-account .buyer-missing,
body.page-account .buyer-order p {
  margin: 0;
  color: #5c534e;
  font-size: 14px;
  line-height: 1.5;
}

body.page-account .buyer-welcome {
  margin-bottom: 16px;
}

body.page-account .account-section,
body.page-account .buyer-metrics div,
body.page-account .buyer-order,
body.page-account .buyer-address,
body.page-account .buyer-group,
body.page-account .buyer-profile {
  border: 1px solid #e6e1e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

body.page-account .account-section {
  margin-bottom: 16px;
  padding: 16px;
}

body.page-account .account-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.page-account .buyer-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

body.page-account .buyer-metrics div {
  min-height: 108px;
  padding: 18px 20px;
}

body.page-account .buyer-metrics span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
}

body.page-account .buyer-metrics strong,
body.page-account .buyer-lanes strong,
body.page-account .buyer-order__side strong {
  font-variant-numeric: tabular-nums;
}

body.page-account .buyer-metrics strong {
  margin-top: 8px;
  color: #111;
  font-size: 28px;
  letter-spacing: -0.03em;
}

body.page-account .buyer-metrics .is-lead {
  background: #161616;
  border-color: #161616;
  color: #fff;
}

body.page-account .buyer-metrics .is-lead span,
body.page-account .buyer-metrics .is-lead strong {
  color: #fff;
}

body.page-account .buyer-lanes {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid #eae3e6;
  border-radius: 999px;
  background: #faf7f8;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.page-account .buyer-lanes::-webkit-scrollbar {
  display: none;
}

body.page-account .buyer-lanes a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4a3f47;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

body.page-account .buyer-lanes a:hover {
  background: #f0e7ea;
  color: #1c1420;
}

body.page-account .buyer-lanes a.is-current,
body.page-account .buyer-lanes a.is-current:hover {
  background: #161616;
  color: #fff;
}

body.page-account .buyer-lanes span {
  font-size: 14px;
  font-weight: 600;
}

body.page-account .buyer-lanes strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.07);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.page-account .buyer-lanes a.is-current strong {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 700px) {
  body.page-account .buyer-lanes {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

body.page-account .settings-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece5e8;
  overflow-x: auto;
  scrollbar-width: none;
}

body.page-account .settings-nav::-webkit-scrollbar {
  display: none;
}

body.page-account .settings-nav a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5a4b54;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

body.page-account .settings-nav a:hover {
  background: #f4ecef;
  color: #1c1420;
}

body.page-account .settings-nav a.is-active,
body.page-account .settings-nav a.is-active:hover {
  background: #161616;
  color: #fff;
}

body.page-account .ig-set {
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
}

body.page-account .ig-set__top {
  padding: 28px 32px 0;
}

body.page-account .ig-set__top h2,
body.page-account .ig-set h3 {
  margin: 0;
  color: #000;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

body.page-account .ig-set h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

body.page-account .ig-set__tabs {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  border-bottom: 1px solid #dbdbdb;
}

body.page-account .ig-set__tabs a {
  margin-bottom: -1px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  color: #8e8e8e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

body.page-account .ig-set__tabs a.is-active {
  border-bottom-color: #000;
  color: #000;
}

body.page-account .ig-set__tabs a:hover {
  color: #000;
}

body.page-account .ig-set__block {
  padding: 28px 32px 8px;
  border-bottom: 1px solid #efefef;
}

body.page-account .ig-set__block:last-child {
  border-bottom: 0;
  padding-bottom: 28px;
}

body.page-account .ig-set__who {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 22px 116px;
}

body.page-account .ig-set__who span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7a1542;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

body.page-account .ig-set__who strong {
  display: block;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

body.page-account .ig-set__who p,
body.page-account .ig-set__note,
body.page-account .ig-set__row p {
  margin: 2px 0 0;
  color: #8e8e8e;
  font-size: 12px;
  line-height: 1.45;
}

body.page-account .ig-set__note {
  max-width: 360px;
  margin: 0 0 18px;
}

body.page-account .ig-set__who + .ig-set__note {
  margin-left: 192px;
}

body.page-account .ig-set form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

body.page-account .ig-set__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 360px);
  gap: 8px 32px;
  align-items: start;
}

body.page-account .ig-set__row > label,
body.page-account .ig-set__row > span {
  padding-top: 8px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

body.page-account .ig-set__row input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  background: #fafafa;
  color: #000;
  font-family: var(--sans);
  font-size: 14px;
}

body.page-account .ig-set__row input:focus {
  outline: 0;
  border-color: #a8a8a8;
  background: #fff;
}

body.page-account .ig-set__row input:disabled {
  color: #8e8e8e;
}

body.page-account .ig-set__check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
}

body.page-account .ig-set__check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

body.page-account .ig-set .btn {
  justify-self: start;
  width: auto;
  height: 32px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
}

body.page-account .ig-set__list {
  margin: 12px 0 22px;
  padding: 0;
  list-style: none;
}

body.page-account .ig-set__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #efefef;
}

body.page-account .ig-set__list strong {
  color: #000;
  font-size: 14px;
}

body.page-account .ig-set__list em {
  margin-left: 8px;
  color: #7a1542;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

body.page-account .ig-set__list button {
  margin-left: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #7a1542;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.page-account .ig-set__list button[data-address-delete] {
  color: #8e8e8e;
}

@media (max-width: 700px) {
  body.page-account .ig-set__top,
  body.page-account .ig-set__block {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.page-account .ig-set__who,
  body.page-account .ig-set__who + .ig-set__note {
    margin-left: 0;
  }

  body.page-account .ig-set__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.page-account .ig-set__row > label,
  body.page-account .ig-set__row > span {
    padding-top: 0;
    text-align: left;
  }

  body.page-account .ig-set__list li {
    flex-direction: column;
  }
}

body.page-account .account-section[id] {
  scroll-margin-top: 96px;
}

body.page-account .buyer-order {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
}

body.page-account .buyer-order__media img,
body.page-account .buyer-order__blank {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f5f7;
}

body.page-account .buyer-order__blank {
  display: grid;
  place-items: center;
  color: #5c534e;
  font-size: 12px;
}

body.page-account .buyer-order__body {
  min-width: 0;
}

body.page-account .buyer-order__body strong {
  display: block;
  color: #111;
  font-size: 15px;
}

body.page-account .buyer-order__hold {
  margin-top: 6px;
  color: #3f3640;
}

body.page-account .buyer-order__side {
  text-align: right;
}

body.page-account .buyer-order__actions {
  grid-column: 2 / -1;
  margin-top: 0;
}

body.page-account .buyer-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

body.page-account .buyer-steps li {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e6e1e4;
  border-radius: 12px;
  background: #fff;
  color: #8b909a;
}

body.page-account .buyer-steps li.is-done {
  border-color: #1c1420;
  color: #1c1420;
}

body.page-account .buyer-steps li.is-current {
  border-color: #161616;
  background: #161616;
  color: #fff;
}

body.page-account .buyer-steps span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

body.page-account .buyer-hold {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #161616;
  color: #fff;
}

body.page-account .buyer-hold strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

body.page-account .buyer-hold p {
  margin: 0;
  color: #e7e7e7;
  font-size: 14px;
  line-height: 1.5;
}

body.page-account .buyer-filters input,
body.page-account .buyer-filters select {
  min-height: 44px;
  border: 1px solid #e6e1e4;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 800px) {
  body.page-account .buyer-shell {
    grid-template-columns: 1fr;
  }

  body.page-account .buyer-nav {
    position: static;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 6px;
  }

  body.page-account .buyer-nav > .buyer-nav__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #1c1420;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  body.page-account .buyer-nav__toggle svg {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.page-account .buyer-nav__chev {
    margin-left: auto;
    color: #7a1542;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__chev {
    transform: rotate(180deg);
  }

  body.page-account .buyer-nav__menu {
    display: none;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    padding: 4px 4px 0;
    border-top: 1px solid #eceef2;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu > a,
  body.page-account .buyer-nav.is-open .buyer-nav__menu > button {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 0 8px;
    border: 0;
    border-bottom: 1px solid #f0e6ea;
    border-radius: 0;
    background: transparent;
    color: #2c1230;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu > a:not(.buyer-nav__shop),
  body.page-account .buyer-nav.is-open .buyer-nav__menu > button:not(.buyer-nav__out) {
    grid-template-columns: 24px minmax(0, 1fr) 16px;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu > a:not(.buyer-nav__shop)::after,
  body.page-account .buyer-nav.is-open .buyer-nav__menu > button:not(.buyer-nav__out)::after {
    content: "";
    width: 7px;
    height: 7px;
    justify-self: end;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.45;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__icon {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu > a.is-active {
    background: #fdf2f6;
    color: #7a1542;
    font-weight: 600;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__menu > a.is-active::after {
    opacity: 1;
  }

  body.page-account .buyer-nav.is-open .buyer-nav__out {
    color: #7a1542;
    font-weight: 600;
  }

  body.page-account .buyer-nav__who,
  body.page-account .buyer-nav__shop {
    display: none;
  }

  body.page-account .buyer-nav a,
  body.page-account .buyer-nav__out {
    flex: none;
    width: 100%;
    margin-top: 0;
  }

  body.page-account .buyer-metrics,
  body.page-account .buyer-lanes,
  body.page-account .buyer-steps {
    grid-template-columns: 1fr 1fr;
  }

  body.page-account .buyer-order {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.page-account .buyer-order__side {
    grid-column: 2;
    text-align: left;
  }

  body.page-account .buyer-order__actions {
    grid-column: 1 / -1;
  }

  body.page-account .buyer-order__actions .btn,
  body.page-account [data-order-receive] {
    min-height: 44px;
  }
}

/* Ask Valor stays a peeking cartoon with its bubble, including narrow screens
   that used to crop it into a 64px circle and hide the label. */
.agent__toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3a2418;
}

.agent__toggle:hover,
.agent__toggle:hover .agent__mascot {
  background: transparent;
  transform: none;
}

.agent__toggle-label {
  position: absolute;
  right: 10px;
  bottom: calc(100% - 6px);
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 5px 8px;
  overflow: visible;
  clip: auto;
  border-radius: 10px 10px 3px 10px;
  background: #fffdf8;
  color: #3a2418;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(58, 28, 12, 0.16);
  animation: agent-label-cycle 7s linear infinite;
  animation-duration: 7s !important;
  animation-iteration-count: infinite !important;
}

.agent__toggle-label::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fffdf8;
  transform: rotate(45deg);
}

.agent__speak:not([hidden]) + .agent__toggle .agent__toggle-label {
  display: none;
}

.agent__mascot {
  width: 76px;
  height: 76px;
  margin-top: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agent__mascot img,
.agent__mascot canvas {
  width: 76px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: drop-shadow(0 4px 6px rgba(58, 28, 12, 0.16));
}

@media (prefers-reduced-motion: no-preference) {
  .agent__mascot img {
    transform-origin: 72% 100%;
    animation: agent-guide-bob 3.2s ease-in-out infinite;
  }
}

@keyframes agent-guide-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes agent-label-cycle {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.82);
  }
  4% {
    opacity: 1;
    transform: none;
  }
  28.5% {
    opacity: 1;
    transform: none;
  }
  32.5% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
}

/* Corner of the screen. Older phone rules set left and right together, which
   stretched this widget across the page and left the cow on top of a card. */
.agent {
  position: fixed;
  top: auto;
  left: auto;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 80;
  align-items: flex-end;
  width: auto;
  max-width: calc(100vw - 24px);
}

.agent__panel {
  width: min(380px, calc(100vw - 24px));
}

.agent__form {
  flex-wrap: wrap;
  align-items: center;
}

.agent__form textarea {
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  font-size: 16px;
}

.agent__form .char-count {
  flex: 1 1 auto;
  align-self: center;
  margin: 0;
}

.agent__form .btn {
  flex: 0 0 auto;
  align-self: center;
  min-width: 76px;
}

@media (max-width: 767px) {
  .agent {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  body:not(.page-seller):not(.page-admin) .agent {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* Same phone and tablet fit as the homepage and marketplace, on every other page. */
@media (max-width: 1023px) {
  body:not(.page-home):not(.page-marketplace) .header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body:not(.page-home):not(.page-marketplace) .brand {
    flex: none;
    width: auto;
    min-width: 0;
  }

  body:not(.page-home):not(.page-marketplace) .brand img {
    width: auto;
    height: 28px;
    max-width: 120px;
    object-fit: contain;
  }

  body:not(.page-home):not(.page-marketplace) .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  body:not(.page-home):not(.page-marketplace) .header-action,
  body:not(.page-home):not(.page-marketplace) .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  body:not(.page-home):not(.page-marketplace) .menu-toggle {
    display: block;
  }

  body:not(.page-home):not(.page-marketplace) .header-nav,
  body:not(.page-home):not(.page-marketplace) .header-search-toggle {
    display: none;
  }

  body:not(.page-home):not(.page-marketplace) .header-search {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: 44px;
    margin: 0;
  }

  body:not(.page-home):not(.page-marketplace) .header-search input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
  }

  body:not(.page-home):not(.page-marketplace) .header-search > button {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
  }
}

/* iPad and tablet: search sits in the same row as the logo and the icons. Phone keeps the search on the next line. */
@media (min-width: 700px) and (max-width: 1023px) {
  body:not(.page-home):not(.page-marketplace) .header-main {
    flex-wrap: nowrap;
  }

  body:not(.page-home):not(.page-marketplace) .brand {
    order: 1;
  }

  body:not(.page-home):not(.page-marketplace) .header-search {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 40px;
    margin: 0 10px;
  }

  body:not(.page-home):not(.page-marketplace) .header-search input {
    height: 38px;
  }

  body:not(.page-home):not(.page-marketplace) .header-actions {
    order: 3;
    margin-left: 0;
  }
}

/* Desktop and laptop: the search fills the space between the logo and the icons. */
@media (min-width: 1024px) {
  body:not(.page-home):not(.page-marketplace) .header-search {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 16px;
  }

  body:not(.page-home):not(.page-marketplace) .header-search input {
    font-size: 16px;
  }

  body:not(.page-home):not(.page-marketplace) .brand img {
    width: auto;
    height: 36px;
    max-width: 148px;
    object-fit: contain;
  }

  body:not(.page-home):not(.page-marketplace) .header-actions {
    margin-left: 0;
  }
}

.form-ready {
  flex: 0 0 auto;
  width: auto;
  margin: 0 0 8px;
  color: #7a1542;
  font-size: 13px;
  line-height: 1.4;
}

.agent__form .form-ready {
  flex: 1 0 100%;
  width: 100%;
}

.auth-form .form-ready,
.signup-form .form-ready,
.signup-step > .form-ready {
  flex: none;
  height: auto;
  max-height: 3em;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
}

.signup-step > .signup-actions {
  order: 1;
}

.signup-step > .form-ready {
  order: 2;
}

.form-ready[hidden] {
  display: none;
}

.char-count,
.password-hint {
  display: block;
  margin-top: 4px;
  color: #8a6672;
  font-size: 12px;
  line-height: 1.4;
}

.field-inline-error {
  margin: 4px 0 0;
  color: #9b1c4a;
  font-size: 13px;
  line-height: 1.4;
}

.field-inline-error[hidden] {
  display: none;
}

/* Errors read as errors: rose ground, red type, an exclamation mark. */
.auth-alert[data-tone="error"],
.auth-alert[role="alert"]:not([data-tone="success"]):not([data-tone="info"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f3c3cb;
  border-radius: 10px;
  background: #fff1f3;
  box-shadow: none;
  color: #8e1838;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.auth-alert[data-tone="error"]::before,
.auth-alert[role="alert"]:not([data-tone="success"]):not([data-tone="info"])::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%239b1c4a'/%3E%3Cpath d='M9 4.4v6' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13.3' r='.95' fill='%23fff'/%3E%3C/svg%3E");
}

.auth-alert[data-tone="success"] {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #b7dfc8;
  border-radius: 10px;
  background: #f3fbf6;
  box-shadow: none;
  color: #1c6b46;
  font-weight: 650;
}

.auth-alert[data-tone="success"]::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%231c6b46'/%3E%3Cpath d='M5 9.2 7.6 12 13 6.2' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.auth-alert[data-tone="info"] {
  border: 1px solid #eadfd4;
  border-radius: 10px;
  background: #fff8f4;
  box-shadow: none;
  color: #4a2140;
}

.field-inline-error:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: #8e1838;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.field-inline-error:not([hidden])::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%239b1c4a'/%3E%3Cpath d='M9 4.4v6' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13.3' r='.95' fill='%23fff'/%3E%3C/svg%3E");
}

.auth-form input[aria-invalid="true"],
.auth-form textarea[aria-invalid="true"],
.signup-form input[aria-invalid="true"],
.signup-form textarea[aria-invalid="true"] {
  border-color: #9b1c4a;
  background: #fff8f8;
}

@media (max-width: 767px) {
  body {
    overflow-x: clip;
  }

  body:not(.page-home):not(.page-marketplace) .brand img {
    height: 22px;
    max-width: 88px;
  }

  body:not(.page-home):not(.page-marketplace) #main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  #main img,
  #main video,
  #main iframe {
    max-width: 100%;
  }

  #main h1 {
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.15;
  }

  #main h2 {
    font-size: clamp(20px, 5vw, 32px);
    line-height: 1.25;
  }

  #main p,
  #main li,
  #main label,
  #main td,
  #main dd {
    overflow-wrap: anywhere;
  }

  #main .btn {
    height: auto;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  #main table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

body.page-account .buyer-wallet {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #eadfe4;
  border-radius: 16px;
  background: #fff;
}

body.page-account .buyer-wallet__head h2 {
  margin: 0;
  color: #2c1230;
  font-size: 22px;
}

body.page-account .buyer-wallet__head p,
body.page-account .buyer-wallet__load p {
  margin: 6px 0 0;
  color: #4a2140;
  font-size: 15px;
  line-height: 1.5;
}

body.page-account .buyer-wallet__hero {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #7a1542;
  color: #fff;
}

body.page-account .buyer-wallet__hero--cod {
  gap: 8px;
}

body.page-account .buyer-wallet__hero--cod p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

body.page-account .buyer-wallet__hero span {
  font-size: 13px;
  font-weight: 650;
}

body.page-account .buyer-wallet__hero strong {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
}

body.page-account .buyer-wallet__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.15rem;
  color: #5e4a53;
  font-size: 14px;
  line-height: 1.45;
}

body.page-account .buyer-wallet__aside {
  margin: 0 0 10px;
  color: #6b5a66;
  font-size: 13px;
  line-height: 1.45;
}

body.page-account .buyer-wallet__stats--pay dd {
  font-size: 14px;
  font-weight: 650;
}

body.page-account .buyer-wallet__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body.page-account .buyer-wallet__stats div {
  padding: 12px;
  border-radius: 12px;
  background: #fff8f4;
}

body.page-account .buyer-wallet__stats dt {
  color: #6b5a66;
  font-size: 13px;
}

body.page-account .buyer-wallet__stats dd {
  margin: 4px 0 0;
  color: #2c1230;
  font-size: 18px;
  font-weight: 750;
}

body.page-account .buyer-wallet__load {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #f3d5e2;
  border-radius: 14px;
  background: #fff8f4;
}

body.page-account .buyer-wallet__load h3,
body.page-account .buyer-wallet__block h3 {
  margin: 0;
  color: #2c1230;
  font-size: 16px;
}

body.page-account .buyer-wallet__load label {
  color: #7a1542;
  font-size: 13px;
  font-weight: 650;
}

body.page-account .buyer-wallet__pay {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.page-account .buyer-wallet__pay input {
  width: 140px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e4d5dc;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

body.page-account .buyer-wallet__pay input:focus-visible {
  outline: 2px solid #7a1542;
  outline-offset: 2px;
}

body.page-account .buyer-wallet__pay .btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
}

body.page-account .buyer-wallet__block ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4a2140;
  font-size: 15px;
  line-height: 1.5;
}

body.page-account .buyer-wallet__table {
  margin-top: 8px;
  overflow-x: auto;
}

body.page-account .buyer-wallet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

body.page-account .buyer-wallet td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid #f3e4ea;
  color: #2c1230;
}

@media (max-width: 700px) {
  body.page-account .buyer-wallet__stats,
  body.page-account .buyer-wallet__pay {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.page-account .buyer-wallet__pay input,
  body.page-account .buyer-wallet__pay .btn {
    width: 100%;
  }
}

/* Valor shopper dock — cream bar, burgundy active pill, labeled tabs.
   Guests + shoppers; staff desks keep their own chrome. */
.mobile-dock {
  --dock-cols: 5;
  --dock-pad: 6px;
  --dock-gap: 2px;
  --dock-radius: 18px;
  --dock-duration: 320ms;
  --dock-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dock-bar: rgba(247, 241, 232, 0.96);
  --dock-ink: var(--ink-600, #5e4a53);
  --dock-accent: var(--burgundy-700, #7a1542);
  --dock-active-bg: rgba(122, 21, 66, 0.1);
  --active-index: 0;
  display: none;
}

.footer-brand__blurb--short {
  display: none;
}

@media (max-width: 767px) {
  body:not(.page-seller):not(.page-admin):not(.page-moderator) .mobile-dock {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(var(--dock-cols), minmax(0, 1fr));
    align-items: stretch;
    width: min(420px, calc(100vw - 24px));
    min-height: 58px;
    padding: var(--dock-pad);
    gap: var(--dock-gap);
    border: 1px solid rgba(122, 21, 66, 0.14);
    border-radius: var(--dock-radius);
    background: var(--dock-bar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
      0 1px 0 rgba(36, 20, 27, 0.04),
      0 10px 28px rgba(59, 10, 30, 0.12);
    transform: translate3d(-50%, 0, 0);
    isolation: isolate;
  }

  body.page-seller .mobile-dock,
  body.page-admin .mobile-dock,
  body.page-moderator .mobile-dock,
  html[data-ui-role="seller"] .mobile-dock,
  html[data-ui-role="admin"] .mobile-dock,
  html[data-ui-role="moderator"] .mobile-dock {
    display: none !important;
  }

  /* Soft sliding pill behind the active tab — stays inside the bar. */
  .mobile-dock__indicator {
    position: absolute;
    top: var(--dock-pad);
    bottom: var(--dock-pad);
    left: var(--dock-pad);
    width: calc((100% - (2 * var(--dock-pad)) - (var(--dock-cols) - 1) * var(--dock-gap)) / var(--dock-cols));
    border: 0;
    border-radius: calc(var(--dock-radius) - 4px);
    background: var(--dock-active-bg);
    pointer-events: none;
    transform: translate3d(calc(var(--active-index) * (100% + var(--dock-gap))), 0, 0);
    transition: transform var(--dock-duration) var(--dock-ease);
    will-change: transform;
    z-index: 0;
  }

  .mobile-dock__indicator::before,
  .mobile-dock__indicator::after {
    content: none;
  }

  .mobile-dock.is-instant .mobile-dock__indicator,
  .mobile-dock.is-instant .mobile-dock__item svg {
    transition: none !important;
  }

  .mobile-dock__item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 46px;
    padding: 4px 2px;
    border: 0;
    border-radius: calc(var(--dock-radius) - 4px);
    background: transparent;
    color: var(--dock-ink);
    font: inherit;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color var(--dock-duration) ease;
  }

  .mobile-dock__item svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
    transition: color var(--dock-duration) ease, stroke-width 120ms ease;
  }

  .mobile-dock__item span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    max-width: 100%;
    color: inherit;
    font-family: var(--sans, inherit);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mobile-dock__item[aria-current="page"] {
    color: var(--dock-accent);
  }

  .mobile-dock__item[aria-current="page"] svg {
    stroke-width: 2;
    transform: none;
  }

  .mobile-dock__item:not([aria-current="page"]):active {
    color: var(--dock-accent);
  }

  .mobile-dock__item:not([aria-current="page"]):active svg {
    transform: scale(0.94);
    transition-duration: 80ms;
  }

  .mobile-dock__item:focus-visible {
    outline: 2px solid var(--burgundy-600, #96205a);
    outline-offset: -3px;
  }

  .mobile-dock__item--live svg {
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-dock__indicator,
    .mobile-dock__item,
    .mobile-dock__item svg {
      transition-duration: 0.01ms;
    }

    .mobile-dock__item:not([aria-current="page"]):active svg {
      transform: none;
    }
  }

  /* Compact legal strip above the dock — nav lives in the dock + menu. */
  body:not(.page-seller):not(.page-admin):not(.page-moderator) .site-footer {
    padding-top: 18px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-brand > a:not(.footer-contact) {
    display: none;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-brand__blurb--full {
    display: none;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-brand__blurb--short {
    display: block;
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-contact {
    margin-top: 6px;
    font-size: 12.5px;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-col {
    display: none;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-bottom {
    gap: 8px;
    padding-top: 12px;
  }

  body:not(.page-seller):not(.page-admin):not(.page-moderator) .footer-bottom .sound-toggle {
    display: none;
  }

}

.kyc-promo__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kyc-promo__row input {
  flex: 1 1 auto;
  min-width: 0;
}

.kyc-promo__result {
  margin: 8px 0 0;
  color: #7a1542;
  font-size: 14px;
}

/* ── Stores directory: all stores in one scrollable row, like the
   marketplace rails. Four per view on desktop, three on tablet,
   and one-and-a-bit on phones so the next store peeks in. ── */
.store-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #e8a3c0 transparent;
}

.store-grid > .store-card {
  flex: 0 0 calc((100% - 48px) / 4);
  width: auto;
  scroll-snap-align: start;
}

.store-grid::-webkit-scrollbar {
  height: 6px;
}

.store-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #e8a3c0;
}

@media (max-width: 1023px) {
  .store-grid > .store-card {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 699px) {
  .store-grid {
    gap: 12px;
  }

  .store-grid > .store-card {
    flex-basis: 72%;
  }
}

/* ── Ask Valor: the question field and Send share one row, which
   leaves the chat log the height it needs. ── */
.agent__form {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
}

.agent__form textarea {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  min-height: 46px;
  max-height: 96px;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.4;
}

.agent__form .char-count {
  display: none;
}

/* The ready hint repeats the placeholder; keep it for screen readers only so
   the field and Send can share the row. */
.agent__form .form-ready {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.agent__form .btn {
  flex: 0 0 auto;
  align-self: flex-end;
  min-width: 0;
  min-height: 46px;
  padding-inline: 18px;
}

/* ── Stores directory: Online business, Business and Personal share one row,
   and each column reads as a plain list of its stores. ── */
.store-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.store-directory .store-row {
  min-width: 0;
}

.store-directory .store-row + .store-row {
  margin-top: 0;
}

.store-directory .store-row h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.store-directory .store-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.store-directory .store-grid > .store-card {
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: none;
}

.store-directory .store-card__banner {
  height: 92px;
}

.store-directory .store-card__body h2 {
  font-size: 18px;
}

.store-directory .store-people {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-directory .store-person {
  min-height: 80px;
  padding: 12px;
}

.store-directory .store-person__avatar,
.store-directory .store-person__avatar img {
  width: 46px;
  height: 46px;
}

.store-directory .store-person__avatar {
  font-size: 18px;
}

@media (max-width: 1099px) {
  .store-directory {
    gap: 16px;
  }

  .store-directory .store-card__banner {
    height: 80px;
  }

  .store-directory .store-card__body {
    padding: 0 14px 14px;
  }

  .store-directory .store-card__body h2 {
    font-size: 16px;
  }

  .store-directory .store-card__keywords {
    display: none;
  }

  .store-directory .store-card__meta {
    gap: 4px 10px;
    font-size: 11px;
  }

  .store-directory .store-person {
    gap: 10px;
  }

  .store-directory .store-person h3 {
    font-size: 14px;
  }

  .store-directory .store-person p {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .store-directory {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .store-directory .store-row {
    flex: 0 0 86%;
    padding: 14px;
    scroll-snap-align: start;
    border: 1px solid var(--border, #eadfe4);
    border-radius: 14px;
    background: #fff;
  }

  .store-directory .store-card__keywords {
    display: flex;
  }

  .store-directory .store-card__banner {
    height: 96px;
  }
}

/* ── Ask Valor sizes with the screen: a wide chat on laptops, a compact one
   on tablets, and a near-full-height sheet on phones. ── */
@media (min-width: 1280px) {
  .agent {
    width: min(440px, calc(100vw - 40px));
  }

  .agent__panel {
    width: 100%;
    max-height: min(74vh, 660px);
  }

  .agent__log {
    min-height: 220px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .agent {
    width: min(404px, calc(100vw - 32px));
  }

  .agent__panel {
    width: 100%;
    max-height: min(70vh, 600px);
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .agent {
    width: min(420px, calc(100vw - 28px));
  }

  .agent__panel {
    width: 100%;
    max-height: min(72vh, 620px);
  }

  .agent__toggle {
    min-height: 46px;
    padding-inline: 16px;
  }
}

@media (max-width: 699px) {
  .agent {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    align-items: stretch;
  }

  .agent__panel {
    width: 100%;
    max-width: none;
    max-height: min(76vh, 640px);
    max-height: min(76dvh, 640px);
  }

  .agent__log {
    min-height: 140px;
  }

  .agent__head {
    padding: 12px 14px;
  }

  .agent__head h2 {
    font-size: 16px;
  }

  .agent__form textarea {
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 379px) {
  .agent__panel {
    max-height: min(78vh, 560px);
    max-height: min(78dvh, 560px);
  }

  .agent__head h2 {
    font-size: 15px;
  }
}

/* ── Stores directory: one seller type per row. Online business, then
   Business, then Personal. Each row scrolls right to left and keeps its
   cards on a single line. ── */
.store-directory {
  display: block;
}

.store-directory .store-row {
  flex: none;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.store-directory .store-row + .store-row {
  margin-top: 28px;
}

.store-directory .store-row h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.store-directory .store-grid,
.store-directory .store-people {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  direction: rtl;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #e8a3c0 transparent;
  -webkit-overflow-scrolling: touch;
}

.store-directory .store-grid > .store-card,
.store-directory .store-people > .store-person {
  flex: 0 0 calc((100% - 48px) / 4);
  width: calc((100% - 48px) / 4);
  direction: ltr;
  scroll-snap-align: start;
}

.store-directory .store-people > .store-person {
  width: auto;
}

.store-directory .store-grid::-webkit-scrollbar,
.store-directory .store-people::-webkit-scrollbar {
  height: 6px;
}

.store-directory .store-grid::-webkit-scrollbar-thumb,
.store-directory .store-people::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #e8a3c0;
}

@media (max-width: 1023px) {
  .store-directory .store-grid > .store-card,
  .store-directory .store-people > .store-person {
    flex-basis: calc((100% - 32px) / 3);
    width: calc((100% - 32px) / 3);
  }
}

@media (max-width: 699px) {
  .store-directory .store-grid,
  .store-directory .store-people {
    gap: 12px;
  }

  .store-directory .store-grid > .store-card,
  .store-directory .store-people > .store-person {
    flex-basis: 86%;
    width: 86%;
  }
}

/* ── Courier and delivery records ─────────────────────────────────────
   Shared by the buyer tracking page, the seller order desk and the
   checkout delivery comparison. A simulated courier is always labelled. */
.seller-order__courier {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.seller-order__courier [data-courier-options] {
  flex: 1 1 100%;
}

.seller-timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.seller-timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  color: var(--muted, #6b6470);
}

.buyer-courier {
  border: 1px solid var(--line, #e6e0dd);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 12px;
  background: var(--surface, #fff);
}

.buyer-courier__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.buyer-courier__ref {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--muted, #6b6470);
}

.buyer-courier__ref code {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.buyer-courier .buyer-timeline li em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted, #6b6470);
}

.checkout-couriers {
  margin-top: 12px;
}

.checkout-couriers h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.checkout-courier-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.checkout-courier {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line, #e6e0dd);
  border-radius: 10px;
  cursor: pointer;
}

.checkout-courier:has(input:checked) {
  border-color: var(--ink, #241c22);
  box-shadow: 0 0 0 1px var(--ink, #241c22) inset;
}

.checkout-courier span {
  display: grid;
  gap: 2px;
}

.checkout-courier small {
  color: var(--muted, #6b6470);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .seller-timeline li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Announcement ticker ------------------------------------------------------
   A blanket reduced-motion reset above stops every animation on the site. The
   top strip is the one loop this design is built around, so it keeps running
   there at half speed instead of freezing, and hover or focus still pauses it
   (WCAG 2.2.2). */
@media (prefers-reduced-motion: reduce) {
  .announcement__marquee {
    animation-name: announcement-marquee !important;
    animation-duration: calc(var(--marquee-duration) * 2) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }

  .announcement__item--center:hover .announcement__marquee,
  .announcement__item--center:focus-within .announcement__marquee {
    animation-play-state: paused !important;
  }
}
