@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --background: 40 30% 97%;
  --foreground: 30 8% 12%;
  --card: 0 0% 100%;
  --secondary: 36 18% 92%;
  --muted: 36 14% 94%;
  --muted-foreground: 30 6% 42%;
  --accent: 38 95% 58%;
  --accent-foreground: 30 30% 12%;
  --live: 8 70% 48%;
  --live-foreground: 0 0% 100%;
  --border: 30 10% 88%;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --page-gutter: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 2rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.font-serif { font-family: var(--font-serif); font-feature-settings: "lnum"; }
.text-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.text-muted { color: hsl(var(--muted-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.tabular-nums { font-variant-numeric: tabular-nums; }

.container-page {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Vertical spacing helpers — never use padding shorthand on .container-page (it clears horizontal gutter) */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
.py-section-sm { padding-top: 3rem; padding-bottom: 3rem; }
.py-section-lg { padding-top: 5rem; padding-bottom: 7rem; }
.py-hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-section { padding-top: 5rem; }
.pb-section { padding-bottom: 6rem; }

.min-h-screen { min-h-screen: 100vh; min-height: 100vh; }
.hairline-divider { height: 1px; width: 100%; background: hsl(var(--border)); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--live));
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 hsl(var(--live) / 0.5); }
  70% { box-shadow: 0 0 0 6px hsl(var(--live) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--live) / 0); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.site-header__inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .site-header__inner { height: 6rem; gap: 2rem; }
}

.site-logo,
.site-header__logo img { height: 3rem; width: auto; object-fit: contain; }

@media (min-width: 768px) {
  .site-logo,
  .site-header__logo img { height: 4rem; }
}

.site-footer__brand .site-logo,
.site-footer__brand img { height: 5rem; }

.auth-logo { height: 3rem !important; }

.profile-nav__logout {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  text-align: left;
  transition: color 0.15s;
}

.profile-nav__logout:hover { color: hsl(var(--foreground)); }

.icon { display: block; flex-shrink: 0; }
.icon-btn .icon { margin: 0 auto; }
.btn .icon { flex-shrink: 0; }
.icon-accent { color: hsl(var(--accent)); }
.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box [data-icon],
.icon-box .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active { color: hsl(var(--foreground)); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s;
}

.icon-btn:hover { background: hsl(var(--muted)); }

.notify-wrap { position: relative; }
.notify-wrap .icon-btn { position: relative; }
.notify-wrap .icon-btn.has-unread { color: hsl(var(--foreground)); }
.notify-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: hsl(0 60% 45%);
  color: #fff;
  font-size: 0.625rem;
  line-height: 1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.notify-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: 22rem;
  max-width: min(22rem, calc(100vw - 2rem));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.12);
  z-index: 80;
  max-height: min(70vh, 28rem);
  overflow: hidden;
  flex-direction: column;
}
.notify-panel.is-open { display: flex; }
.notify-panel[hidden] { display: none !important; }
.notify-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.notify-panel__mark {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0;
}
.notify-panel__mark:hover { color: hsl(var(--foreground)); }
.notify-panel__close {
  border: none;
  background: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.15rem;
  line-height: 0;
}
.notify-panel__close:hover { color: hsl(var(--foreground)); }
.notify-panel__list { overflow: auto; }
.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0.7rem 0.65rem 1.1rem;
  border-bottom: 1px solid hsl(var(--border));
  color: inherit;
}
.notify-item:last-child { border-bottom: none; }
.notify-item:hover { background: hsl(var(--secondary) / 0.4); }
.notify-item.is-unread { background: hsl(var(--accent) / 0.08); }
.notify-item__body {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: 0.2rem 0;
}
.notify-item__title { font-size: 0.8125rem; font-weight: 500; }
.notify-item__msg {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}
.notify-item__clear {
  flex-shrink: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.35rem;
  line-height: 0;
}
.notify-item__clear:hover { color: hsl(var(--foreground)); }

.notify-stack {
  position: fixed;
  top: 6rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  overflow: hidden;
  pointer-events: none;
}
.notify-card {
  pointer-events: auto;
  display: block;
  width: 100%;
  padding: 0;
  background: hsl(var(--background));
  color: inherit;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.14);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  position: relative;
}
.notify-card.is-in { transform: translateX(0); opacity: 1; }
.notify-card--urgent { border-left: 3px solid hsl(0 60% 45%); }
.notify-card__body {
  display: block;
  padding: 1rem 2.25rem 1rem 1.15rem;
  color: inherit;
  text-decoration: none;
}
.notify-card .text-eyebrow { margin-bottom: 0.3rem; }
.notify-card__msg { font-size: 0.875rem; line-height: 1.45; }
.notify-card__close {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  border: none;
  background: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem;
  line-height: 0;
}
.notify-card__close:hover { color: hsl(var(--foreground)); }

@media (max-width: 767px) {
  .notify-panel {
    position: fixed;
    left: var(--page-gutter);
    right: var(--page-gutter);
    top: 5.25rem;
    width: auto;
    max-width: none;
  }
  .notify-stack {
    top: auto;
    bottom: 1.25rem;
    right: var(--page-gutter);
    left: var(--page-gutter);
    width: auto;
    max-width: none;
    overflow: hidden;
    align-items: stretch;
  }
  .notify-card {
    transform: translateY(120%);
    max-width: 100%;
  }
  .notify-card.is-in { transform: translateY(0); }
}

.btn-sell {
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-sell:hover { background: hsl(var(--accent) / 0.85); }

/* Hamburger: hidden by default, mobile only */
.mobile-menu-toggle,
#menu-toggle {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-toggle,
  #menu-toggle {
    display: inline-flex;
  }

  .btn-sell {
    display: none;
  }
}

/* Scroll lock when mobile menu is open */
html.scroll-lock,
body.scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

body.scroll-lock {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  touch-action: none;
}
.mobile-menu.is-open .mobile-menu__nav {
  touch-action: pan-y;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(4px);
}
.mobile-menu__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 85%;
  max-width: 24rem;
  background: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}
.mobile-menu__logo { height: 2.5rem; width: auto; object-fit: contain; }
.mobile-menu__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu__link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  transition: background 0.15s, color 0.15s;
}
.mobile-menu__link:hover,
.mobile-menu__link.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}
.mobile-menu__foot {
  padding: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-panel {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.search-panel.is-open { display: block; }

.search-panel form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.search-panel input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
}

.search-panel input::placeholder { color: hsl(var(--muted-foreground)); }

/* Footer */
.site-footer {
  margin-top: 8rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.site-footer__brand { grid-column: span 2; }
.site-footer__brand img { width: auto; }
.site-footer__brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 24rem;
  line-height: 1.6;
}

.site-footer__links li {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.site-footer__links a:hover { color: hsl(var(--foreground)); }

.site-footer__bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__bottom a:hover { color: hsl(var(--foreground)); }

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.btn-primary:hover { background: hsl(var(--foreground) / 0.85); }

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-accent:hover { background: hsl(var(--accent) / 0.85); }

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: inherit;
}

.btn-outline:hover { background: hsl(var(--secondary)); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-ghost-outline {
  background: transparent;
  border: 1px solid hsl(var(--background) / 0.3);
  color: hsl(var(--background));
}

.btn-ghost-outline:hover { background: hsl(var(--background) / 0.1); }

.link-underline {
  font-size: 0.875rem;
  border-bottom: 1px solid hsl(var(--foreground));
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.link-underline:hover {
  color: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

/* Lot card */
.lot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .lot-grid {
    column-gap: 2rem;
    row-gap: 3.5rem;
  }
}

.lot-card {
  display: block;
  min-width: 0;
  height: 100%;
}

.lot-card__article { display: flex; flex-direction: column; height: 100%; min-width: 0; }

.lot-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
  aspect-ratio: 1;
}

.lot-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.lot-card:hover .lot-card__image-wrap img { transform: scale(1.03); }

.lot-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: hsl(var(--background) / 0.9);
  padding: 0.25rem 0.5rem;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-card__reserve {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.375rem;
  backdrop-filter: blur(4px);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  max-width: calc(50% - 0.5rem);
  text-align: right;
}

.lot-card__reserve--met {
  background: hsl(var(--background) / 0.9);
  color: hsl(var(--foreground));
}

.lot-card__reserve--not {
  background: hsl(var(--foreground) / 0.85);
  color: hsl(var(--background));
}

.lot-card__heart {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.5rem;
  background: hsl(var(--background) / 0.9);
  border: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
  color: hsl(var(--foreground));
  line-height: 0;
  transition: color 0.15s, background 0.15s;
}
.lot-card__heart.is-saved,
.icon-btn.is-saved {
  color: hsl(var(--accent));
}
.lot-card__heart.is-saved svg,
.icon-btn.is-saved svg {
  fill: currentColor;
  stroke: currentColor;
}

.lot-card__ending {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: hsl(var(--live) / 0.9);
  color: hsl(var(--live-foreground, 0 0% 100%));
  backdrop-filter: blur(4px);
}

.lot-card__body { padding-top: 1rem; flex: 1; display: flex; flex-direction: column; }

.lot-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.lot-card__category {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-card__condition {
  flex-shrink: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lot-card__condition span { color: hsl(var(--foreground)); }

.lot-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0.25rem 0 0;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.25rem;
}

.lot-card:hover .lot-card__title { color: hsl(var(--accent)); }

.lot-card__maker {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0.125rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid hsl(var(--border));
  min-width: 0;
}

.lot-card__footer > div {
  min-width: 0;
}

.lot-card__footer .text-eyebrow {
  line-height: 1.35;
}

.lot-card__footer-price,
.lot-card__footer-bids {
  min-width: 0;
}

.lot-card__footer-bids {
  text-align: right;
  flex-shrink: 0;
}

.lot-card__countdown {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.2;
}
.lot-card__you {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.lot-card__you-max {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.lot-card__price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0.125rem 0 0;
  line-height: 1.2;
}

@media (max-width: 639px) {
  .lot-card__badge {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 0.125rem 0.375rem;
  }

  .lot-card__reserve {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 8px;
  }

  .lot-card__heart {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.375rem;
  }

  .lot-card__ending {
    left: 0.5rem;
    bottom: 0.5rem;
    font-size: 9px;
    padding: 0.125rem 0.375rem;
  }

  .lot-card__body {
    padding-top: 0.75rem;
  }

  .lot-card__title {
    font-size: 1rem;
    min-height: 2.625rem;
    line-height: 1.3;
  }

  .lot-card__price {
    font-size: 1.0625rem;
  }

  .lot-card__footer .text-eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .lot-card__footer > div:last-child {
    font-size: 0.8125rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Countdown */
.countdown-inline.urgent,
.countdown-block.urgent { color: hsl(var(--live)); }

.countdown-large {
  display: flex;
  gap: 1.5rem;
}

.countdown-large__block { text-align: center; }

.countdown-large__value {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
}

.countdown-block {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

/* Sections */
.page-hero {
  border-bottom: 1px solid hsl(var(--border));
}

.page-hero--muted { background: hsl(var(--secondary) / 0.3); }

.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title-lg { font-size: 3rem; }
.section-title-xl { font-size: 3.75rem; }

/* Hero home */
.home-hero {
  border-bottom: 1px solid hsl(var(--border));
}

.home-hero__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 7rem;
}

.home-hero__title {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-hero__title em { font-style: italic; font-weight: 300; }

.home-hero__text {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
  line-height: 1.6;
}

.home-hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero__image-wrap { position: relative; }

.home-hero__image {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.home-hero__float {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.home-hero__float-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0.25rem 0 0;
}

/* USP grid */
.usp-section {
  background: hsl(var(--secondary) / 0.5);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  margin-top: 6rem;
}

.usp-grid {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
}

.usp-card {
  background: hsl(var(--background));
  padding: 2.5rem;
}

.usp-card svg { color: hsl(var(--accent)); margin-bottom: 1.5rem; }

.usp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.usp-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Forms */
.form-input,
.contact-input,
.auth-input {
  width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
  border-radius: 0;
  transition: border-color 0.15s;
}

.form-input:focus,
.contact-input:focus,
.auth-input:focus {
  outline: none;
  border-color: hsl(var(--foreground));
}

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: 0.5rem; }

/* Catalog */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.catalog-filters { display: none; }
.catalog-filters.is-visible { display: block; }

.filter-block { margin-bottom: 2.5rem; }
.filter-block h3 { margin-bottom: 1rem; }

.filter-list button {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.filter-list button:hover,
.filter-list button.active {
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--foreground));
}

.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-tag {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tag.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

.filters-mobile-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
}

.filters-mobile-btn:hover { background: hsl(var(--secondary)); }

.filters-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.filters-drawer.is-open { display: block; }

.filters-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(4px);
}

.filters-drawer__panel {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 88%;
  max-width: 24rem;
  background: hsl(var(--background));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
}

.filters-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.filters-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.filters-drawer__foot {
  padding: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
}

.catalog-grid--1col { grid-template-columns: 1fr; }
.catalog-grid--2col { grid-template-columns: repeat(2, 1fr); }

.catalog-mobile-toolbar {
  display: flex;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .catalog-mobile-toolbar { display: none; }
}

.col-toggle {
  display: flex;
  border: 1px solid hsl(var(--border));
}
.col-toggle button {
  padding: 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s, color 0.15s;
}
.col-toggle button.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}
.col-toggle button:hover:not(.active) { background: hsl(var(--secondary)); }

.filters-mobile-btn { flex: 1; }
.filters-badge {
  margin-left: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.price-inputs label { display: block; }
.form-input--sm { padding: 0.375rem 0.5rem; font-size: 0.875rem; margin-top: 0.25rem; }

.text-live { color: hsl(var(--live)); }

/* Profile billing & tables */
.bid-history.bid-table {
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.bid-history.bid-table .bid-table__head {
  display: none;
}

.bid-history.bid-table .bid-table__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem 0.75rem;
  padding: 1.25rem var(--page-gutter);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
  min-width: 0;
}

.bid-history.bid-table .bid-table__row:last-child {
  border-bottom: none;
}

.bid-history.bid-table .bid-table__row:hover {
  background: hsl(var(--secondary) / 0.3);
}

.bid-table__lot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.bid-table__lot-text {
  min-width: 0;
  flex: 1;
}

.bid-table__thumb {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  object-fit: cover;
}

.bid-table__title {
  font-size: 1.125rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bid-table__meta {
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

.bid-table__price,
.bid-table__max,
.bid-table__time {
  grid-column: span 4;
  font-size: 0.875rem;
  min-width: 0;
}

.bid-table__status {
  grid-column: 1 / -1;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  line-height: 1.3;
  max-width: 100%;
}

.status-badge--accent {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}

.status-badge--live {
  background: hsl(var(--live) / 0.12);
  color: hsl(var(--live));
}

@media (min-width: 768px) {
  .bid-history.bid-table .bid-table__head {
    display: grid;
    grid-template-columns: 5fr 2fr 2fr 2fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.4);
  }

  .bid-history.bid-table .bid-table__row {
    grid-template-columns: 5fr 2fr 2fr 2fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .bid-table__lot {
    grid-column: auto;
  }

  .bid-table__price,
  .bid-table__max,
  .bid-table__time,
  .bid-table__status {
    grid-column: auto;
  }

  .bid-table__status {
    text-align: right;
  }
}

.bid-history.purchase-table .bid-table__action {
  grid-column: 1 / -1;
}

.purchase-table__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .bid-history.purchase-table .bid-table__head,
  .bid-history.purchase-table .bid-table__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 1.4fr) minmax(0, 2.2fr) auto;
  }

  .bid-history.purchase-table .bid-table__action {
    grid-column: auto;
    text-align: right;
    justify-self: end;
  }

  .purchase-table .bid-table__status {
    text-align: left;
  }
}

.billing-panel { display: flex; flex-direction: column; gap: 3rem; }
.billing-summary { margin-bottom: 0; }
.billing-info {
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.invoice-table__head {
  display: none;
  grid-template-columns: 3fr 2fr 3fr 2fr 2fr;
  gap: 1rem;
}
.invoice-row { border-bottom: 1px solid hsl(var(--border)); }
.invoice-row:last-child { border-bottom: none; }
.invoice-row summary.invoice-row__head {
  list-style: none;
}
.invoice-row summary.invoice-row__head::-webkit-details-marker { display: none; }
.invoice-row summary.invoice-row__head::marker { content: ''; }
.invoice-row__head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s;
}
.invoice-row__head:hover { background: hsl(var(--secondary) / 0.3); }
.invoice-row__meta-mobile { font-size: 0.75rem; margin-top: 0.25rem; }
.invoice-row__date,
.invoice-row__lot,
.invoice-row__type { display: none; }
.invoice-row__total {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.invoice-row__detail {
  padding: 0 1.5rem 1.5rem;
  background: hsl(var(--secondary) / 0.2);
  border-top: 1px solid hsl(var(--border));
}
.invoice-detail-grid {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 0;
}
@media (min-width: 768px) {
  .invoice-table__head { display: grid; }
  .invoice-row__head {
    grid-template-columns: 3fr 2fr 3fr 2fr 2fr;
    align-items: center;
  }
  .invoice-row__meta-mobile { display: none; }
  .invoice-row__date,
  .invoice-row__lot,
  .invoice-row__type { display: block; font-size: 0.875rem; }
  .invoice-row__total { justify-content: flex-end; }
  .invoice-detail-grid { grid-template-columns: 1fr 1fr; }
}
.invoice-dl { margin: 0; }
.invoice-dl__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}
.invoice-dl__row--total {
  border-top: 1px solid hsl(var(--border));
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.settings-form-grid {
  display: grid;
  gap: 1.5rem;
  border: 1px solid hsl(var(--border));
  padding: 2rem;
}
@media (min-width: 768px) {
  .settings-form-grid { grid-template-columns: 1fr 1fr; }
}
.settings-form-grid__full { grid-column: 1 / -1; }
.settings-form-grid label { display: block; }
.settings-form-grid .form-input { margin-top: 0.5rem; width: 100%; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid hsl(var(--border));
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row:hover { background: hsl(var(--secondary) / 0.3); }

.notify-group {
  border-bottom: 1px solid hsl(var(--border));
}
.notify-group:last-child { border-bottom: none; }
.notify-group__head { padding: 1.25rem 1.5rem 0.25rem; }
.notify-group .toggle-row--nested { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.notify-group .toggle-row--nested:last-child { border-bottom: none; }

.profile-fav-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .profile-fav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .profile-fav-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sell form */
.sell-form-main { display: flex; flex-direction: column; gap: 3rem; }
.sell-section__head {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.sell-section__head h2 { font-size: 1.5rem; margin: 0; }
.sell-section__head p { font-size: 0.75rem; margin: 0.25rem 0 0; }
.sell-file-picker,
.sell-upload-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.sell-photos {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
  transition: background 0.15s, outline-color 0.15s;
  outline: 2px dashed transparent;
  outline-offset: 4px;
}
.sell-photos.is-dragover {
  outline-color: hsl(var(--foreground) / 0.35);
  background: hsl(var(--secondary) / 0.35);
}
.sell-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .sell-image-grid { grid-template-columns: repeat(4, 1fr); }
}
.sell-image-item {
  position: relative;
  aspect-ratio: 1;
  background: hsl(var(--muted));
  overflow: hidden;
  cursor: grab;
}
.sell-image-item:active { cursor: grabbing; }
.sell-image-item.is-dragging { opacity: 0.4; }
.sell-image-item.is-drop { outline: 2px solid hsl(var(--foreground)); outline-offset: -2px; }
.sell-image-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sell-image-item__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: hsl(var(--background) / 0.9);
  padding: 0.125rem 0.5rem;
}
.sell-image-item__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem;
  background: hsl(var(--background) / 0.9);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.sell-image-item:hover .sell-image-item__remove,
.sell-image-item__remove:focus { opacity: 1; }
@media (max-width: 767px) {
  .sell-image-item__remove { opacity: 1; }
}
.sell-add-image {
  aspect-ratio: 1;
  max-width: calc(50% - 0.375rem);
  border: 1px dashed hsl(var(--border));
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
@media (min-width: 640px) {
  .sell-add-image { max-width: calc(25% - 0.5625rem); }
}
.sell-add-image:hover {
  border-color: hsl(var(--foreground) / 0.4);
  background: hsl(var(--secondary) / 0.4);
}
.sell-image-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}
.sell-fields-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .sell-fields-grid { grid-template-columns: 1fr 1fr; }
}
.sell-field-full { grid-column: 1 / -1; }
.sell-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .sell-dimensions-grid { grid-template-columns: repeat(4, 1fr); }
}
.option-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .option-btn-grid { grid-template-columns: repeat(4, 1fr); }
}
.option-btn {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.option-btn.active {
  border-color: hsl(var(--foreground));
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}
.option-btn:hover:not(.active) { border-color: hsl(var(--foreground) / 0.4); }
.sell-reserve-check,
.sell-intl-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.3);
  font-size: 0.875rem;
  cursor: pointer;
}
.sell-reserve-check input[type="checkbox"],
.sell-intl-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  accent-color: hsl(var(--foreground));
  cursor: pointer;
}
.sell-intl-check { align-items: center; font-size: 0.75rem; padding: 0; border: none; background: none; margin-top: 0.5rem; }
.sell-intl-check input[type="checkbox"] { margin-top: 0; }

.sell-intl-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.sell-intl-mode .option-btn { padding: 0.625rem 0.5rem; font-size: 0.8125rem; }
.sell-intl-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sell-intl-row select { flex: 1; min-width: 0; }
.sell-intl-row input { width: 5.5rem; flex-shrink: 0; }
.sell-intl-row__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.sell-intl-row__remove:hover { background: hsl(var(--secondary)); }
.sell-intl-row__remove:disabled { opacity: 0.4; cursor: not-allowed; }
.sell-intl-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.sell-intl-add:hover { color: hsl(var(--foreground)); }
.sell-intl-add:disabled { opacity: 0.4; cursor: not-allowed; }
.sell-intl-blocked { opacity: 0.5; pointer-events: none; }

.sell-shipping-field.is-disabled {
  opacity: 0.55;
}
.sell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .sell-sidebar { position: sticky; top: 6rem; align-self: start; }
}
.sell-summary {
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  background: hsl(var(--secondary) / 0.3);
}
.sell-summary__dl {
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sell-summary__dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.sell-summary__dl dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.sell-info-box {
  display: flex;
  gap: 0.75rem;
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.sell-info-box p { margin: 0; }
.sell-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.empty-state {
  border: 1px dashed hsl(var(--border));
  padding: 6rem 2rem;
  text-align: center;
}

/* Lot detail */
.lot-back { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.lot-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.lot-back a:hover { color: hsl(var(--foreground)); }

.lot-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: 5rem;
}

.lot-gallery__main {
  aspect-ratio: 1;
  background: hsl(var(--muted));
  overflow: hidden;
}

.lot-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.lot-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.lot-gallery__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: hsl(var(--muted));
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}

.lot-gallery__thumb.active { opacity: 1; outline: 1px solid hsl(var(--foreground)); }

.lot-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.lot-panel__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0;
}

.lot-panel__price-row {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin: 2rem 0;
}

.lot-panel__price {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin: 0.25rem 0 0;
}

.lot-bid-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.5);
  font-size: 0.875rem;
}
.lot-bid-status.hidden,
.lot-bid-status__max.hidden { display: none; }
.lot-bid-status__max { color: hsl(var(--muted-foreground)); }
.status-badge--out {
  background: hsl(var(--foreground) / 0.08);
  color: hsl(var(--foreground));
}

.lot-bid-form { margin-top: 2rem; }
.lot-bid-form label { display: block; margin-bottom: 0.5rem; }

.lot-bid-row { display: flex; gap: 0.5rem; }
.lot-bid-row input { flex: 1; padding: 0.875rem 1rem; font-size: 1.125rem; border: 1px solid hsl(var(--border)); }

.lot-tabs { border: 1px solid hsl(var(--border)); margin-top: 2rem; }
.lot-tabs__nav { display: flex; border-bottom: 1px solid hsl(var(--border)); }

.lot-tabs__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.lot-tabs__btn.active { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.lot-tabs__content { padding: 1.25rem; font-size: 0.875rem; }

.lot-shipping-note {
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  line-height: 1.5;
}
.lot-shipping-list { display: flex; flex-direction: column; }
.lot-shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.lot-shipping-row:last-child { border-bottom: none; padding-bottom: 0; }
.lot-shipping-row:first-child { padding-top: 0; }
.lot-shipping-row__label { flex: 1; min-width: 0; color: hsl(var(--muted-foreground)); }
.lot-shipping-row__hint {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: hsl(var(--muted-foreground) / 0.85);
}
.lot-shipping-row__price {
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.lot-shipping-row__price--muted {
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  margin-top: 3rem;
}

.spec-cell { background: hsl(var(--background)); padding: 1.25rem; }

.bid-history:not(.bid-table) { border: 1px solid hsl(var(--border)); }
.bid-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
}

.bid-history__row:last-child { border-bottom: none; }

.bid-history__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bid-history__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Profile */
.profile-layout {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.profile-layout > main {
  min-width: 0;
}

.profile-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.profile-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.profile-nav__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lot-tabs__btn {
  gap: 0.5rem;
}

.profile-nav button,
.profile-nav a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.profile-nav button:hover,
.profile-nav button.active,
.profile-nav a:hover,
.profile-nav a.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.profile-messages {
  border: 1px solid hsl(var(--border));
}

.profile-message {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.profile-message:last-child { border-bottom: none; }

.profile-message--unread {
  background: hsl(var(--secondary) / 0.45);
}

.profile-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.profile-message__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.profile-message__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.8);
  white-space: pre-wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  margin-bottom: 3rem;
}

.stat-cell { background: hsl(var(--background)); padding: 1.5rem; }
.stat-cell__value { font-family: var(--font-serif); font-size: 1.875rem; margin: 0.5rem 0 0; }

.profile-section { display: none; }
.profile-section.active { display: block; }

/* Auth */
body.auth-page {
  display: flex;
  flex-direction: column;
}

.auth-header {
  border-bottom: 1px solid hsl(var(--border));
}

.auth-header__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-main {
  flex: 1;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.auth-box { max-width: 28rem; margin: 0 auto; }

.auth-field-hint {
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  margin-bottom: 0.625rem;
  color: inherit;
  text-decoration: none;
}

.social-btn:hover { background: hsl(var(--secondary)); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.75rem; }
.password-wrap button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
}
.password-wrap .icon-btn:hover { background: transparent; }

.auth-password-head {
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.auth-password-head label { margin-bottom: 0; }
.auth-forgot-link {
  font-size: 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
}
.auth-forgot-link:hover { color: hsl(var(--foreground)); }

.auth-mode-login,
.auth-mode-register,
.auth-mode-forgot,
.auth-mode-reset,
.auth-mode-verify { display: none !important; }

[data-auth-mode="login"] .auth-mode-login,
[data-auth-mode="register"] .auth-mode-register,
[data-auth-mode="forgot"] .auth-mode-forgot,
[data-auth-mode="reset"] .auth-mode-reset,
[data-auth-mode="verify"] .auth-mode-verify { display: block !important; }

[data-auth-mode="login"] label.auth-mode-login.flex,
[data-auth-mode="register"] label.auth-mode-register.flex { display: flex !important; }

[data-auth-mode="login"] span.auth-mode-login,
[data-auth-mode="register"] span.auth-mode-register,
[data-auth-mode="forgot"] span.auth-mode-forgot,
[data-auth-mode="reset"] span.auth-mode-reset,
[data-auth-mode="verify"] span.auth-mode-verify { display: inline !important; }

.auth-switch-btn,
.auth-link-btn {
  border: none;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  color: hsl(var(--foreground));
  font: inherit;
}
a.auth-switch-btn { display: inline !important; }
.auth-link-btn {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}
.auth-link-btn:hover { color: hsl(var(--foreground)); }

.auth-sent {
  margin-top: 2.5rem;
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  text-align: center;
}
.auth-sent__icon {
  display: inline-flex;
  color: hsl(var(--accent));
}
.auth-sent__email { color: hsl(var(--foreground)); }

/* Checkout */
.checkout-page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}
.checkout-back {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  cursor: pointer;
}
.checkout-back:hover { color: hsl(var(--foreground)); }
.checkout-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
.checkout-intro {
  margin-top: 0.75rem;
  max-width: 42rem;
  line-height: 1.6;
}
.checkout-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr 380px; gap: 3.5rem; }
}
.checkout-form { display: flex; flex-direction: column; gap: 3rem; }
.checkout-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}
.checkout-fields {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .checkout-fields { grid-template-columns: 1fr 1fr; }
  .checkout-field-full { grid-column: 1 / -1; }
}
.checkout-delivery {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .checkout-delivery { grid-template-columns: 1fr 1fr; }
  .checkout-delivery--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.checkout-option {
  text-align: left;
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.checkout-option:hover { background: hsl(var(--secondary) / 0.4); }
.checkout-option.active {
  border-color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.6);
}
.checkout-option__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.checkout-option__desc {
  font-size: 0.75rem;
  margin: 0.375rem 0 0;
}
.checkout-address { margin-top: 1.25rem; }
.checkout-locker { margin-top: 1.25rem; }
.checkout-carriers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checkout-locker-list {
  display: grid;
  gap: 0.375rem;
  max-height: 16rem;
  overflow: auto;
  margin-top: 0.5rem;
  border: 1px solid hsl(var(--border));
}
.checkout-locker-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.checkout-locker-item:last-child { border-bottom: none; }
.checkout-locker-item:hover { background: hsl(var(--secondary) / 0.5); }
.checkout-locker-item.is-selected {
  background: hsl(var(--secondary));
}
.checkout-locker-item strong { font-size: 0.875rem; font-weight: 500; }
.checkout-locker-item span { font-size: 0.75rem; }
.sell-lockers {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}
.sell-locker-list {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .sell-locker-list { grid-template-columns: repeat(3, 1fr); }
}
.sell-locker-chip {
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0.55;
}
.sell-locker-chip.is-ok {
  opacity: 1;
  border-color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.45);
}
.checkout-paysera {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.6);
  padding: 1.25rem;
}
.checkout-paysera__icon {
  flex-shrink: 0;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: 999px;
  color: hsl(var(--accent));
  display: flex;
}
.checkout-pay-btn {
  width: 100%;
  padding: 1rem 2rem;
}
@media (min-width: 640px) {
  .checkout-pay-btn { width: auto; align-self: flex-start; }
}
.checkout-summary {
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
}
@media (min-width: 1024px) {
  .checkout-summary { position: sticky; top: 7rem; }
}
.checkout-summary__lot {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.checkout-summary__lot img {
  width: 5rem;
  height: 6rem;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-summary__title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-summary__rows {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.checkout-summary__total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.checkout-summary__total .font-serif { font-size: 1.875rem; }
.checkout-summary__notes {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
}
.checkout-summary__notes .icon-accent { color: hsl(var(--accent)); flex-shrink: 0; }
.checkout-done {
  max-width: 32rem;
  margin: 5rem auto;
  text-align: center;
}
.checkout-done__icon {
  display: inline-flex;
  color: hsl(var(--accent));
}
.checkout-done__title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}
.checkout-done__text {
  margin-top: 1rem;
  line-height: 1.6;
}
.checkout-done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Auctions */
.auction-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  margin-top: 2.5rem;
}

.auction-card-grid {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}

.auction-card { background: hsl(var(--background)); padding: 2.5rem; display: flex; flex-direction: column; }

.past-auction-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
  transition: background 0.15s;
}

.past-auction-row:hover { background: hsl(var(--secondary) / 0.3); }
.past-auction-row:last-child { border-bottom: none; }

/* CTA dark */
.cta-dark {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
}

.cta-dark__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Value grid */
.value-grid {
  display: grid;
  gap: 1px;
  background: hsl(var(--border));
}

.value-card { background: hsl(var(--background)); padding: 2.5rem; }

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 1rem 1.25rem;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  transform: translateY(120%);
  transition: transform 0.3s;
}

.toast.is-visible { transform: translateY(0); }
.toast--error { background: hsl(0 60% 45%); color: white; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

.range-input { width: 100%; accent-color: hsl(var(--foreground)); }

@media (max-width: 767px) {
  .section,
  .py-section { padding-top: 3rem; padding-bottom: 3rem; }
  .py-section-sm { padding-top: 2rem; padding-bottom: 2rem; }
  .py-section-lg { padding-top: 3rem; padding-bottom: 4rem; }
  .py-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .home-hero__grid { padding-top: 3rem; padding-bottom: 3rem; gap: 2.5rem; }
  .home-hero__title { font-size: 2.75rem; }
  .home-hero__image { height: 320px; }
  .site-header__inner {
    height: auto;
    min-height: 5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.25rem;
  }
  .site-logo,
  .site-header__logo img { height: 3rem; }
  .site-footer__grid { padding-top: 3rem; padding-bottom: 3rem; }
  .usp-card,
  .value-card,
  .auction-card { padding: 1.5rem; }
  .toast { left: var(--page-gutter); right: var(--page-gutter); }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .mobile-menu-toggle,
  #menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .catalog-grid { gap: 3.5rem 2rem; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .auction-card-grid { grid-template-columns: repeat(2, 1fr); }
  .past-auction-row { grid-template-columns: repeat(12, 1fr); }
  .past-auction-row > :first-child { grid-column: span 6; }
  .past-auction-row > :nth-child(2) { grid-column: span 4; }
  .past-auction-row > :nth-child(3) { grid-column: span 2; text-align: right; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .catalog-grid--1col,
  .catalog-grid--2col { grid-template-columns: repeat(3, 1fr); }
  .home-hero__grid { grid-template-columns: 1fr 1fr; }
  .home-hero__float { display: block; }
  .home-hero__title { font-size: 4.5rem; }
  .lot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 3fr 9fr; }
  .catalog-filters { display: block; }
  .filters-mobile-btn { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2rem; }
  .lot-layout { grid-template-columns: 7fr 5fr; }
  .lot-details-grid { grid-template-columns: 7fr 5fr; display: grid; gap: 3rem; }
  .profile-layout { grid-template-columns: 3fr 9fr; }
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__brand { grid-column: span 2; }
  .cta-dark__grid { grid-template-columns: 1fr 1fr; }
  .cta-dark__actions { justify-content: flex-end; }
  .about-hero-grid { grid-template-columns: repeat(12, 1fr); display: grid; gap: 3rem; align-items: end; }
  .about-hero-grid > :first-child { grid-column: span 7; }
  .about-hero-grid > :last-child { grid-column: span 5; }
  .about-story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4rem; }
  .about-story-grid > :first-child { grid-column: span 4; }
  .about-story-grid > :last-child { grid-column: 7 / span 7; }
  .contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; }
  .auction-live-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; }
  .sell-form-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 2.5rem; }
  .sell-form-grid > :not(.sell-form-main):not(.sell-sidebar) { display: none; }
  .lot-panel { position: sticky; top: 6rem; }
}

.contact-form-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .contact-form-row { grid-template-columns: 1fr 1fr; }
}

.sell-ai-panel {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sell-ai-item { margin-bottom: 1rem; }
.sell-ai-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
