:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #f5f5f5;
  --gray-dark: #333333;
  --text: #1a1a1a;
  --border: #e0e0e0;
  --accent: #0000FF;
  --logo-font: "Atyp Text Bold", "Atyp Display", "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* Password gate */
.password-gate {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px 24px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 58%),
    #f5f5f3;
}

.password-gate[hidden] {
  display: none;
}

.gate-logo {
  color: var(--black);
  font-family: var(--logo-font);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.password-form {
  width: min(100%, 460px);
}

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

.password-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.password-form input:focus {
  border-color: var(--black);
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 1px;
}

.password-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--black);
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.password-form button:hover {
  background: var(--white);
  color: var(--black);
}

.password-error {
  margin: 0;
  color: #a33131;
  font-size: 13px;
}

.gate-footer {
  color: #888;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-content {
  display: none;
}

.site-content.is-unlocked {
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Crimson Text", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  transition: opacity 200ms ease;
}

.logo:hover {
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 20px;
}

.search-icon,
.account-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  transition: color 200ms ease;
}

.search-icon:hover,
.account-icon:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 100px 40px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
}

.hero h1 {
  font-family: "Crimson Text", serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-family: "Crimson Text", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-section {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.email-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--black);
  background: var(--white);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.email-input::placeholder {
  color: var(--accent);
}

.btn-primary,
.btn-secondary {
  padding: 12px 32px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  font-weight: 600;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

.cta-note {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Preview Section */
.preview {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.preview h2 {
  font-family: "Crimson Text", serif;
  font-size: 42px;
  margin-bottom: 50px;
  text-align: center;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.collection-card {
  cursor: pointer;
  transition: transform 300ms ease;
}

.collection-card:hover {
  transform: translateY(-4px);
}

.collection-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  margin-bottom: 20px;
}

.img-1 {
  background: linear-gradient(135deg, #e8d5b7 0%, #d4a574 100%);
}

.img-2 {
  background: linear-gradient(135deg, #d1c4b9 0%, #9b8b7e 100%);
}

.img-3 {
  background: linear-gradient(135deg, #b5d4e8 0%, #7fa8c4 100%);
}

.img-4 {
  background: linear-gradient(135deg, #e8b5d4 0%, #c47fa8 100%);
}

.collection-info h3 {
  font-family: "Crimson Text", serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.collection-info p {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.7;
}

/* Featured Section */
.featured {
  background: var(--gray);
  padding: 80px 40px;
}

.featured-content {
  max-width: 1400px;
  margin: 0 auto;
}

.featured h2 {
  font-family: "Crimson Text", serif;
  font-size: 42px;
  margin-bottom: 60px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
}

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
  letter-spacing: 2px;
}

.feature h3 {
  font-family: "Crimson Text", serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature p {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.8;
}

/* Marketplace */
.marketplace {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.marketplace h2 {
  font-family: "Crimson Text", serif;
  font-size: 42px;
  margin-bottom: 50px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 300ms ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
}

.prod-1 {
  background: linear-gradient(135deg, #d4a574 0%, #a67c52 100%);
}

.prod-2 {
  background: linear-gradient(135deg, #6b5b52 0%, #3d322a 100%);
}

.prod-3 {
  background: linear-gradient(135deg, #c9a87c 0%, #8b6f47 100%);
}

.prod-4 {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.prod-5 {
  background: linear-gradient(135deg, #8b9fa8 0%, #5a6f7f 100%);
}

.prod-6 {
  background: linear-gradient(135deg, #e8b5c4 0%, #c17a97 100%);
}

.product-body {
  padding: 20px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.product-header h3 {
  font-family: "Crimson Text", serif;
  font-size: 16px;
  line-height: 1.3;
  flex: 1;
}

.like-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  transition: color 200ms ease;
  flex-shrink: 0;
}

.like-btn:hover {
  color: #ff0000;
}

.seller {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
}

.condition {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price {
  font-weight: 600;
  font-size: 14px;
}

.status {
  font-size: 12px;
  color: var(--accent);
}

/* Selling CTA */
.selling-cta {
  background: var(--black);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}

.selling-cta h2 {
  font-family: "Crimson Text", serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.selling-cta p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.selling-cta .btn-secondary {
  background: var(--white);
  color: var(--black);
}

.selling-cta .btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* Footer */
.footer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 60px 40px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 8px 0;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .cta-section {
    flex-direction: column;
  }

  .preview,
  .marketplace,
  .featured {
    padding: 60px 20px;
  }

  .preview h2,
  .featured h2,
  .marketplace h2,
  .selling-cta h2 {
    font-size: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .password-gate {
    padding: 28px 20px 20px;
  }

  .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Marketplace preview */
body {
  background: #fff;
  color: #4a4a4a;
  line-height: 1.4;
}

.site-content.is-unlocked {
  min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  height: 68px;
  padding: 0 20px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: blur(14px);
}

.app-header .logo {
  justify-self: center;
  font-family: var(--logo-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1;
  text-decoration: none;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button {
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.basket-count {
  position: absolute;
  top: 4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.app-view {
  width: min(100%, 1120px);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 22px 20px 30px;
  outline: none;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -20px 28px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.product-rail::-webkit-scrollbar {
  display: none;
}

.category-chip,
.brand-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #f0f0f0;
  color: #181818;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.content-section {
  margin: 0 0 36px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #4b4b4b;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-heading button,
.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.product-rail {
  display: grid;
  grid-auto-columns: minmax(155px, 48%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 5px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

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

.product-card {
  min-width: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}

.product-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.product-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 0.91;
  border-radius: 5px;
  background: #fff;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 350ms ease;
}

.product-card:hover .product-photo img {
  transform: scale(1.035);
}

.product-title {
  overflow: hidden;
  margin: 8px 0 4px;
  color: #777;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  color: #4b4b4b;
  font-size: 17px;
  font-weight: 750;
}

.product-size,
.detail-tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f0f0;
  color: #515151;
  font-size: 11px;
  white-space: nowrap;
}

.brand-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 16px;
  padding: 0 20px;
  scrollbar-width: none;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 1120px;
  min-height: 72px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  margin: 0 auto;
  border-top: 1px solid #ededed;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #92959a;
  cursor: pointer;
}

.nav-item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  color: inherit;
  font-size: 10px;
}

.nav-item.is-active {
  color: #252525;
}

.notification-dot {
  position: absolute;
  top: 6px;
  left: calc(50% + 8px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.screen-title {
  margin: 0 0 14px;
  color: #4b4b4b;
  font-size: 19px;
  font-weight: 700;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 5px;
  background: #f0f0f0;
}

.search-form svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #555;
  stroke-width: 2;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 14px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0 16px;
  color: #888;
  font-size: 12px;
}

.results-actions {
  display: flex;
  gap: 15px;
}

.results-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.detail-screen {
  padding-top: 0;
}

.detail-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px 22px;
  padding: 0 20px;
  scrollbar-width: none;
}

.detail-gallery img {
  flex: 0 0 74%;
  width: 74%;
  aspect-ratio: 0.9;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #4a4a4a;
  font-size: 19px;
  line-height: 1.25;
}

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

.detail-price {
  font-size: 19px;
  font-weight: 750;
}

.detail-tags {
  display: flex;
  gap: 6px;
}

.detail-delivery {
  margin: 14px 0;
  color: #858585;
  font-size: 12px;
}

.verified-note {
  padding: 12px 14px;
  margin: 16px 0;
  border-radius: 5px;
  background: #f5f5f5;
  font-size: 13px;
}

.verified-note strong {
  display: block;
}

.detail-description {
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  color: #555;
  font-size: 14px;
  line-height: 1.65;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 25px;
  color: #777;
  font-size: 12px;
}

.seller-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #080808;
  color: var(--accent);
  font-weight: 650;
}

.seller-avatar {
  width: 35px;
  height: 35px;
  font-size: 8px;
}

.seller-avatar img,
.profile-avatar img,
.conversation-avatar img,
.message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.detail-actions {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  background: #fff;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border: 1px solid #222;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  flex: 1;
  background: #222;
  color: #fff;
}

.secondary-button {
  padding: 0 18px;
  background: #fff;
  color: #333;
}

.heart-button {
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 25px;
  cursor: pointer;
}

.profile-summary {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e1e1;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  font-size: 17px;
  border: 0;
  background: transparent;
}

.profile-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.profile-handle {
  color: #888;
  font-size: 13px;
}

.rating {
  margin-top: 6px;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 1px;
}

.rating small {
  color: #888;
  font-size: 10px;
  letter-spacing: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 15px 0;
  border-bottom: 1px solid #e1e1e1;
  text-align: center;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: #222;
  font-size: 16px;
}

.profile-stats span {
  color: #888;
  font-size: 12px;
}

.profile-buttons {
  display: flex;
  gap: 10px;
  padding: 14px 0 20px;
  border-bottom: 1px solid #e1e1e1;
}

.profile-buttons button {
  flex: 1;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font: inherit;
  font-size: 12px;
}

.filter-group {
  border-top: 1px solid #e8e8e8;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: #fff;
  color: #4b4b4b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.filter-options {
  display: grid;
  gap: 0;
  padding-bottom: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid #ededed;
  color: #888;
  font-size: 13px;
}

.filter-option input {
  width: 42px;
  height: 24px;
  accent-color: var(--accent);
}

.filter-footer {
  position: sticky;
  bottom: 72px;
  padding: 16px 0 8px;
  background: #fff;
}

.profile-product-grid {
  padding-top: 20px;
}

.empty-state,
.demo-panel {
  padding: 30px 18px;
  border-radius: 6px;
  background: #f6f6f6;
  text-align: center;
}

.empty-state p,
.demo-panel p {
  color: #777;
  font-size: 14px;
}

.basket-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.checkout-eyebrow {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.basket-heading .screen-title {
  margin: 0;
  color: #222;
  font-size: 24px;
}

.basket-heading .screen-title span {
  color: #999;
  font-size: 15px;
  font-weight: 400;
}

.basket-layout,
.checkout-layout {
  display: grid;
  gap: 24px;
}

.basket-items {
  display: grid;
}

.basket-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #ededed;
}

.basket-item-photo {
  display: block;
  width: 100px;
  height: 120px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.basket-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.basket-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.basket-item-brand {
  color: #888;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.basket-item-copy h2 {
  margin-top: 3px;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
}

.basket-item-copy > p {
  margin-top: 5px;
  color: #888;
  font-size: 10px;
}

.basket-item-copy > p span {
  padding: 0 3px;
}

.basket-item-bottom {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.basket-item-bottom strong {
  color: #222;
  font-size: 14px;
}

.basket-item-bottom button,
.basket-continue {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.basket-summary,
.checkout-order-summary {
  align-self: start;
  padding: 17px;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  background: #fff;
}

.basket-summary > h2,
.checkout-order-summary > h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #333;
  font-size: 15px;
}

.basket-summary > div,
.checkout-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  color: #777;
  font-size: 12px;
}

.basket-summary .basket-total,
.checkout-totals .checkout-grand-total {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid #e8e8e8;
  color: #222;
  font-size: 15px;
}

.basket-summary-note {
  margin: 9px 0 14px;
  color: #888;
  font-size: 10px;
  line-height: 1.5;
}

.basket-summary .primary-button,
.order-success .primary-button {
  width: 100%;
  padding: 0 13px;
}

.basket-summary .primary-button,
.checkout-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.basket-continue {
  display: block;
  margin: 11px auto 0;
}

.basket-demo-note {
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.basket-empty,
.order-success {
  display: flex;
  min-height: 55vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  text-align: center;
}

.basket-empty > span,
.order-success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f2f2f2;
  color: var(--accent);
  font-size: 25px;
}

.basket-empty h1,
.order-success h1 {
  color: #222;
  font-size: 25px;
}

.basket-empty p,
.order-success > p:not(.checkout-eyebrow) {
  max-width: 350px;
  margin-top: 7px;
  color: #888;
  font-size: 12px;
  line-height: 1.55;
}

.basket-empty .primary-button {
  width: min(100%, 250px);
  margin-top: 20px;
}

.checkout-screen {
  max-width: 960px;
}

.checkout-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-heading h1 {
  color: #222;
  font-size: 23px;
  line-height: 1.2;
}

.checkout-back {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.checkout-form {
  min-width: 0;
}

.checkout-section {
  padding: 18px 0;
  border-top: 1px solid #e9e9e9;
}

.checkout-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-section-heading > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f2f2f2;
  color: #555;
  font-size: 9px;
  font-weight: 700;
}

.checkout-section-heading h2 {
  color: #333;
  font-size: 14px;
}

.checkout-section-heading p {
  margin-top: 2px;
  color: #888;
  font-size: 10px;
}

.checkout-field {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.checkout-field > span {
  color: #555;
  font-size: 10px;
  font-weight: 600;
}

.checkout-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #dedede;
  border-radius: 4px;
  outline-color: var(--accent);
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 12px;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 10px;
}

.checkout-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.checkout-choice {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  cursor: pointer;
}

.checkout-choice:has(input:checked) {
  border-color: var(--accent);
  background: #f8f8ff;
}

.checkout-choice input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.checkout-choice > span:nth-of-type(1) {
  display: grid;
  flex: 1;
  gap: 3px;
}

.checkout-choice strong {
  color: #444;
  font-size: 11px;
}

.checkout-choice small {
  color: #888;
  font-size: 9px;
}

.checkout-choice > b {
  color: #444;
  font-size: 11px;
}

.checkout-payment-mark {
  color: #555;
  font-size: 9px;
  font-weight: 750;
}

.checkout-demo-note {
  padding: 10px;
  margin-top: 10px;
  border-radius: 3px;
  background: #f6f6f6;
  color: #888;
  font-size: 9px;
}

.checkout-submit {
  width: 100%;
  padding: 0 14px;
  margin-top: 8px;
}

.checkout-legal {
  margin: 9px auto 0;
  color: #999;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.checkout-order-summary > h2 span {
  color: #999;
  font-size: 10px;
  font-weight: 400;
}

.checkout-order-items {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.checkout-order-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkout-order-item img {
  width: 42px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid #eee;
  background: #fff;
  object-fit: contain;
}

.checkout-order-item > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.checkout-order-item strong {
  overflow: hidden;
  color: #444;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-order-item small {
  color: #888;
  font-size: 9px;
}

.checkout-order-item b {
  color: #333;
  font-size: 10px;
}

.order-success-icon {
  background: var(--accent);
  color: #fff;
}

.order-success .checkout-eyebrow {
  margin-bottom: 7px;
}

.order-success .primary-button {
  max-width: 270px;
  margin-top: 20px;
}

.order-success-details {
  display: grid;
  gap: 4px;
  padding: 13px 22px;
  margin-top: 18px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.order-success-details span {
  color: #888;
  font-size: 9px;
}

.order-success-details strong {
  color: #333;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.sell-screen {
  max-width: 860px;
}

.sell-welcome {
  padding: 34px 24px;
  border-radius: 8px;
  background: #f5f5f5;
}

.sell-eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sell-welcome h1,
.sell-success h1 {
  max-width: 480px;
  color: #171717;
  font-size: clamp(30px, 8vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.sell-welcome > p:not(.sell-eyebrow),
.sell-success > p:not(.sell-eyebrow) {
  max-width: 500px;
  margin-top: 14px;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
}

.sell-welcome .primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 260px);
  padding: 0 16px;
  margin-top: 22px;
}

.sell-how {
  padding: 28px 0 24px;
}

.sell-how > h2 {
  margin-bottom: 16px;
  color: #222;
  font-size: 18px;
}

.sell-how-grid {
  display: grid;
  gap: 10px;
}

.sell-how-grid article {
  padding: 16px;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
}

.sell-how-grid article > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sell-how-grid h3 {
  margin-top: 8px;
  color: #333;
  font-size: 14px;
}

.sell-how-grid p,
.sell-draft-callout span {
  margin-top: 4px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.sell-draft-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  border-top: 1px solid #e8e8e8;
}

.sell-draft-callout div {
  display: grid;
}

.sell-draft-callout strong {
  color: #333;
  font-size: 13px;
}

.sell-draft-callout .secondary-button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.sell-wizard-screen {
  max-width: 620px;
}

.sell-wizard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sell-back-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.sell-progress-copy {
  display: grid;
  flex: 1;
  gap: 2px;
}

.sell-progress-copy span,
.sell-progress-percent {
  color: #999;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.sell-progress-copy strong {
  color: #333;
  font-size: 13px;
}

.sell-progress-percent {
  font-size: 10px;
}

.sell-progress-track {
  height: 3px;
  overflow: hidden;
  margin: 12px 0 26px;
  border-radius: 3px;
  background: #ededed;
}

.sell-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.sell-step-heading {
  margin-bottom: 20px;
}

.sell-step-heading h1 {
  color: #222;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.sell-step-heading p {
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

.sell-photo-upload {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed #cfcfcf;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
}

.sell-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.sell-photo-plus {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 23px;
}

.sell-photo-upload > strong {
  color: #444;
  font-size: 12px;
}

.sell-photo-upload > span:last-of-type {
  margin-top: 3px;
  color: #999;
  font-size: 10px;
}

.sell-photo-upload.has-photo {
  position: relative;
  min-height: 210px;
  padding: 0;
  border-style: solid;
  background: #fff;
}

.sell-photo-upload.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sell-photo-upload.has-photo strong {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 20px;
  background: #fff;
}

.sell-photo-upload.has-photo > span {
  display: none;
}

.sell-field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.sell-label {
  color: #444;
  font-size: 12px;
  font-weight: 650;
}

.sell-field > input,
.sell-field select,
.sell-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
  outline-color: var(--accent);
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 12px;
}

.sell-field textarea {
  min-height: 100px;
  resize: vertical;
}

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

.sell-category {
  min-height: 42px;
  padding: 8px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.sell-category.is-selected {
  border-color: var(--accent);
  background: #f4f4ff;
  color: #111;
}

.sell-field-error {
  color: #b42318;
  font-size: 11px;
}

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

.sell-field-hint {
  justify-self: end;
  color: #999;
  font-size: 10px;
}

.sell-price-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
}

.sell-price-input > span {
  color: #666;
  font-size: 18px;
}

.sell-price-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding-left: 8px;
  border: 0;
  outline: 0;
  color: #222;
  font: inherit;
  font-size: 19px;
}

.sell-fee-note {
  display: flex;
  gap: 10px;
  padding: 14px;
  margin-top: 18px;
  border-radius: 5px;
  background: #f5f5f5;
}

.sell-fee-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.sell-fee-note strong,
.sell-shipping-note strong {
  color: #444;
  font-size: 12px;
}

.sell-fee-note p,
.sell-shipping-note p {
  margin-top: 4px;
  color: #888;
  font-size: 11px;
}

.sell-fee-note p strong {
  margin-left: 4px;
  color: #333;
}

.sell-shipping-note {
  padding: 14px 0;
  margin-top: 12px;
  border-bottom: 1px solid #eee;
}

.sell-form-footer {
  display: grid;
  gap: 9px;
  padding: 20px 0 8px;
}

.sell-form-footer .primary-button,
.sell-submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.sell-form-footer > span {
  color: #999;
  font-size: 10px;
  text-align: center;
}

.sell-review {
  display: grid;
  gap: 14px;
}

.sell-review .sell-step-heading {
  margin-bottom: 0;
}

.sell-preview-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
}

.sell-preview-photo {
  display: grid;
  min-height: 130px;
  place-items: center;
  overflow: hidden;
  background: #f4f4f4;
  color: #999;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.sell-preview-photo img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: contain;
}

.sell-preview-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 3px 0;
}

.sell-preview-brand {
  color: #888;
  font-size: 9px;
  text-transform: uppercase;
}

.sell-preview-info h2 {
  color: #333;
  font-size: 14px;
  line-height: 1.3;
}

.sell-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sell-preview-meta span {
  padding: 3px 6px;
  border-radius: 2px;
  background: #f2f2f2;
  color: #777;
  font-size: 9px;
}

.sell-preview-info > strong {
  margin-top: auto;
  color: #222;
  font-size: 16px;
}

.sell-review-description {
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.sell-review-description h3 {
  margin-bottom: 5px;
  color: #444;
  font-size: 12px;
}

.sell-review-description p,
.sell-preview-note {
  color: #888;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.sell-preview-note {
  color: #999;
  font-size: 10px;
}

.sell-success {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  text-align: center;
}

.sell-success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
}

.sell-success h1 {
  font-size: 32px;
}

.sell-success .primary-button {
  width: min(100%, 280px);
  margin-top: 22px;
}

.sell-text-button {
  padding: 10px;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

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

.messages-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-heading > span {
  padding: 4px 9px;
  border-radius: 20px;
  background: #f3f3f3;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid #ededed;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.conversation-card:hover {
  background: #fafafa;
}

.conversation-avatar,
.message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.conversation-summary {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.conversation-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-topline strong {
  color: #222;
  font-size: 14px;
}

.conversation-topline time,
.message-bubble-wrap time {
  color: #999;
  font-size: 10px;
}

.conversation-preview,
.conversation-product {
  overflow: hidden;
  color: #777;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-product {
  color: #999;
  font-size: 11px;
}

.conversation-thumbnail {
  width: 48px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid #eee;
  border-radius: 3px;
  background: #fff;
  object-fit: contain;
}

.inbox-note {
  padding-top: 12px;
  border-top: 1px solid #ededed;
  color: #999;
  font-size: 11px;
}

.conversation-empty {
  display: none;
}

.conversation-panel {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  border: 1px solid #ededed;
  border-radius: 8px;
  background: #fff;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #ededed;
}

.conversation-back {
  display: none;
}

.conversation-header .conversation-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.conversation-header div {
  display: grid;
  gap: 2px;
}

.conversation-header strong {
  color: #222;
  font-size: 13px;
}

.conversation-header div span {
  color: #888;
  font-size: 10px;
}

.message-listing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #ededed;
  color: inherit;
  text-decoration: none;
}

.message-listing > img {
  width: 42px;
  height: 48px;
  border: 1px solid #eee;
  border-radius: 3px;
  background: #fff;
  object-fit: contain;
}

.message-listing > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.message-listing strong {
  overflow: hidden;
  color: #333;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-listing > span:nth-child(2) > span {
  color: #888;
  font-size: 10px;
}

.listing-link {
  color: #888;
  font-size: 16px;
}

.message-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 220px;
  max-height: 420px;
  padding: 18px 12px;
  background: #fcfcfc;
}

.thread-date {
  align-self: center;
  color: #aaa;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 88%;
}

.message-row-you {
  align-self: flex-end;
}

.message-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.message-bubble-wrap {
  display: grid;
  gap: 4px;
}

.message-row-you .message-bubble-wrap {
  justify-items: end;
}

.message-bubble {
  padding: 9px 11px;
  border-radius: 12px 12px 12px 3px;
  background: #f0f0f0;
  color: #444;
  font-size: 12px;
  line-height: 1.45;
}

.message-row-you .message-bubble {
  border-radius: 12px 12px 3px 12px;
  background: var(--accent);
  color: #fff;
}

.message-bubble-wrap time {
  padding: 0 3px;
}

.message-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ededed;
}

.message-compose input {
  width: 100%;
  min-width: 0;
  height: 40px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  outline-color: var(--accent);
  font: inherit;
  font-size: 12px;
}

.message-compose button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.message-compose svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 700px) {
  .app-header {
    height: 76px;
    padding: 0 32px;
  }

  .app-view {
    padding: 30px 32px 44px;
  }

  .product-rail {
    grid-auto-columns: minmax(180px, 24%);
    margin-right: -32px;
    margin-left: -32px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .category-strip,
  .brand-row {
    margin-right: -32px;
    margin-left: -32px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .detail-gallery img {
    flex-basis: 42%;
    width: 42%;
    max-height: 620px;
  }

  .detail-screen {
    max-width: 760px;
  }

  .profile-summary {
    grid-template-columns: 120px 1fr;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    font-size: 22px;
  }

  .messages-screen {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .basket-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
    align-items: start;
    gap: 32px;
  }

  .basket-summary,
  .checkout-order-summary {
    position: sticky;
    top: 96px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
    align-items: start;
    gap: 36px;
  }

  .checkout-order-summary {
    grid-column: 2;
    grid-row: 1;
  }

  .sell-welcome {
    padding: 48px;
  }

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

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

  .conversation-panel {
    min-height: 540px;
  }

  .message-thread {
    max-height: 420px;
  }

  .conversation-empty {
    display: flex;
    min-height: 400px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid #ededed;
    border-radius: 8px;
    color: #888;
    text-align: center;
  }

  .conversation-empty > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #f3f3f3;
    color: var(--accent);
    font-size: 22px;
  }

  .conversation-empty h2 {
    margin-bottom: 5px;
    color: #333;
    font-size: 15px;
  }

  .conversation-empty p {
    max-width: 240px;
    font-size: 12px;
  }
}

@media (max-width: 699px) {
  .messages-screen.conversation-open .inbox-panel {
    display: none;
  }

  .messages-screen.conversation-open .conversation-panel {
    min-height: calc(100vh - 190px);
  }

  .conversation-back {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    background: transparent;
    color: #333;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Highstreet marketplace: compact, curated, and mobile-first. */
.app-header {
  height: 64px;
  padding: 0 20px;
}

.app-header .back-button {
  display: inline-grid;
}

.site-content.is-home-screen .back-button {
  visibility: hidden;
}

.app-header .logo {
  color: #111;
  font-family: var(--logo-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.6px;
}

.basket-count {
  background: var(--accent);
}

.app-view {
  width: min(100%, 1120px);
  min-height: calc(100vh - 120px);
  padding: 24px 20px 36px;
}

.app-view.home-marketplace {
  max-width: 760px;
  padding-top: 18px;
}

.marketplace-intro {
  padding: 20px 20px 18px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
  background: #f5f5f5;
}

.marketplace-kicker,
.marketplace-section-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.marketplace-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.marketplace-intro h1 {
  margin-top: 10px;
  color: #171717;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.marketplace-intro h1 em {
  color: #606060;
  font-style: normal;
  font-weight: 400;
}

.marketplace-intro > p:not(.marketplace-kicker) {
  max-width: 440px;
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.55;
}

.marketplace-intro > button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 3px;
  margin-top: 7px;
  border: 0;
  border-bottom: 1px solid #222;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.marketplace-intro > button span {
  color: var(--accent);
  font-size: 15px;
}

.shop-content-wrap {
  width: 100%;
  padding: 0;
}

.category-strip {
  gap: 8px;
  margin: 0 -20px 20px;
  padding: 0 20px 8px;
  border: 0;
}

.category-chip,
.brand-chip {
  padding: 7px 11px;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  color: #444;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.category-chip:hover,
.brand-chip:hover {
  border-color: var(--accent);
  background: #f5f7ff;
  color: #111;
}

.content-section {
  margin-bottom: 26px;
}

.marketplace-section-kicker {
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 8px;
}

.section-heading {
  align-items: center;
  margin-bottom: 12px;
}

.section-heading h1,
.section-heading h2 {
  color: #222;
  font-family: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.section-heading button {
  color: #666;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.product-grid.home-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.home-product-grid .product-card {
  text-align: left;
}

.home-product-grid .product-photo {
  aspect-ratio: 0.84;
  border-radius: 3px;
  background: #f3f3f3;
}

.home-product-grid .product-photo img {
  padding: 5%;
}

.product-brand {
  overflow: hidden;
  margin-top: 8px;
  color: #777;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-product-grid .product-title {
  margin: 2px 0 5px;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.home-product-grid .product-price {
  color: #222;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
}

.home-product-grid .product-size {
  padding: 0;
  background: transparent;
  color: #777;
  font-size: 9px;
  letter-spacing: 0;
}

.marketplace-seller-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.marketplace-seller-note > span {
  color: #666;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.marketplace-seller-note button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.marketplace-seller-note button span {
  color: var(--accent);
  font-size: 14px;
}

@media (min-width: 700px) {
  .app-view {
    padding: 30px 32px 44px;
  }

  .app-view.home-marketplace {
    padding-top: 26px;
  }

  .product-grid.home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .category-strip {
    margin-right: -32px;
    margin-left: -32px;
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 699px) {
  .app-header {
    height: 60px;
    padding: 0 17px;
  }

  .bottom-nav {
    display: grid;
  }

  .site-content.is-unlocked {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-view {
    padding: 20px 20px 30px;
  }

  .app-view.home-marketplace {
    padding-top: 14px;
  }

  .marketplace-intro {
    padding: 17px 15px;
    margin-bottom: 16px;
  }

  .marketplace-intro h1 {
    font-size: clamp(23px, 7vw, 29px);
  }

  .marketplace-intro > p:not(.marketplace-kicker) {
    font-size: 11px;
  }

  .category-strip {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 17px;
  }

  .product-grid.home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 11px;
  }

  .marketplace-seller-note > span,
  .marketplace-seller-note button {
    font-size: 8px;
  }
}
