:root {
  --ham-ink: #111111;
  --ham-paper: #f6f1eb;
  --ham-surface: #ffffff;
  --ham-line: rgba(17, 17, 17, 0.12);
  --ham-muted: #756b62;
  --ham-wood: #b8783e;
  --ham-green: #26724b;
  --ham-blue: #2456a6;
  --ham-danger: #b42318;
  --ham-shadow: 0 18px 48px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.ham-page {
  margin: 0;
  background: var(--ham-paper);
  color: var(--ham-ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ham-maintenance {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  min-height: 42px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #111 0%, #24170f 55%, #111 100%);
  color: #fff;
  border-bottom: 1px solid rgba(216, 160, 107, 0.28);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.16);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ham-maintenance-track {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  min-width: max-content;
  padding-left: 100%;
  animation: hamTicker 24s linear infinite;
}

.ham-maintenance-track span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
}

.ham-maintenance-track span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ham-wood);
  box-shadow: 0 0 0 5px rgba(184, 120, 62, 0.16);
}

@keyframes hamTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.ham-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.ham-topbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ham-line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 42px;
  z-index: 40;
}

.ham-main-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 0;
}

.ham-main-nav a {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--ham-line);
  background: #fff;
  color: var(--ham-ink);
  text-decoration: none;
  font-weight: 900;
}

.ham-main-nav svg {
  width: 17px;
  height: 17px;
}

.ham-brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
}

.ham-brand img {
  width: 190px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.ham-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #f8f8f8;
  border: 1px solid var(--ham-line);
}

.ham-search svg,
.ham-search i {
  width: 20px;
  height: 20px;
  color: var(--ham-muted);
}

.ham-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ham-ink);
}

.ham-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.ham-primary-button,
.ham-ghost-button,
.ham-icon-button,
.ham-account-button {
  min-height: 42px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.ham-primary-button {
  background: var(--ham-ink);
  color: #fff;
  border-color: var(--ham-ink);
}

.ham-ghost-button,
.ham-account-button {
  background: #fff;
  color: var(--ham-ink);
}

.ham-icon-button {
  width: 42px;
  padding: 0;
  background: #fff;
  color: var(--ham-ink);
}

.ham-primary-button svg,
.ham-ghost-button svg,
.ham-icon-button svg,
.ham-account-button svg {
  width: 18px;
  height: 18px;
}

.ham-account {
  position: relative;
}

.ham-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: var(--ham-wood);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ham-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ham-avatar-large {
  width: 92px;
  height: 92px;
  font-size: 24px;
}

.ham-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ham-line);
  box-shadow: var(--ham-shadow);
  z-index: 70;
}

.ham-account-menu button,
.ham-account-menu a {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
  border-radius: 6px;
  color: var(--ham-ink);
  font-weight: 800;
  text-decoration: none;
}

.ham-account-menu button:hover,
.ham-account-menu a:hover {
  background: #f3eee8;
}

.ham-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 34px 2px 20px;
}

.ham-eyebrow {
  color: var(--ham-wood);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ham-intro h1 {
  margin: 8px 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.ham-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--ham-muted);
  font-size: 18px;
  line-height: 1.65;
}

.ham-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ham-intro-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 120px));
  gap: 10px;
}

.ham-intro-metrics div {
  background: #fff;
  border: 1px solid var(--ham-line);
  padding: 14px;
}

.ham-intro-metrics strong,
.ham-intro-metrics span {
  display: block;
}

.ham-intro-metrics strong {
  font-size: 26px;
}

.ham-intro-metrics span {
  color: var(--ham-muted);
  font-size: 13px;
}

.ham-discovery {
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ham-line);
}

.ham-seo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--ham-line);
  background: #fff;
}

.ham-seo-panel h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.ham-seo-panel p {
  margin: 0;
  color: var(--ham-muted);
  line-height: 1.65;
}

.ham-seo-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.ham-seo-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 0 11px;
  background: #faf8f5;
  color: var(--ham-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.ham-seo-rich {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.ham-seo-rich section {
  min-width: 0;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 14px;
  background: #faf8f5;
}

.ham-seo-rich h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.ham-seo-rich p,
.ham-seo-rich li {
  color: var(--ham-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ham-seo-rich ul {
  margin: 0;
  padding-left: 18px;
}

.ham-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ham-seo-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(184, 120, 62, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(184, 120, 62, 0.09);
  color: #8b5426;
  font-size: 12px;
  font-weight: 900;
}

.ham-section-head,
.ham-rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ham-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.ham-discovery-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ham-discovery-categories button {
  min-height: 92px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #faf8f5;
  color: var(--ham-ink);
  padding: 12px;
  text-align: left;
}

.ham-discovery-categories button.is-active {
  background: #111;
  color: #fff;
}

.ham-discovery-categories strong,
.ham-discovery-categories span {
  display: block;
}

.ham-discovery-categories strong {
  font-size: 15px;
  line-height: 1.2;
}

.ham-discovery-categories span {
  margin-top: 8px;
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 800;
}

.ham-discovery-categories button.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.ham-showcase-rails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ham-showcase-rails section {
  min-width: 0;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.ham-rail-head {
  align-items: baseline;
  margin-bottom: 10px;
}

.ham-rail-head strong {
  font-size: 16px;
}

.ham-rail-head span,
.ham-rail-empty {
  color: var(--ham-muted);
  font-size: 13px;
}

.ham-mini-rail {
  display: grid;
  gap: 8px;
}

.ham-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 14px;
}

.ham-city-chips button {
  border: 1px solid var(--ham-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ham-ink);
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.ham-city-chips button.is-active {
  background: var(--ham-ink);
  color: #fff;
}

.ham-market {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.ham-filters,
.ham-content {
  background: #fff;
  border: 1px solid var(--ham-line);
}

.ham-filters {
  position: sticky;
  top: 120px;
  padding: 16px;
}

.ham-panel-title h2 {
  margin: 4px 0 14px;
  font-size: 22px;
}

.ham-category-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ham-category-list button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--ham-line);
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--ham-ink);
}

.ham-category-list button.is-active {
  border-color: var(--ham-ink);
  background: #111;
  color: #fff;
}

.ham-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.ham-field span,
.ham-toggle span,
.ham-toolbar label span,
.ham-file span {
  color: var(--ham-muted);
  font-size: 13px;
  font-weight: 800;
}

.ham-field input,
.ham-field select,
.ham-form-grid input,
.ham-form-grid select,
.ham-form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ham-ink);
  padding: 0 12px;
  outline: none;
}

.ham-form-grid textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

.ham-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ham-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.ham-wide {
  width: 100%;
}

.ham-content {
  min-height: 560px;
  padding: 16px;
}

.ham-video-ad {
  position: sticky;
  top: 120px;
  min-width: 0;
}

.ham-video-ad-card {
  overflow: hidden;
  border: 1px solid rgba(184, 120, 62, 0.32);
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: var(--ham-shadow);
}

.ham-video-ad-head {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: linear-gradient(135deg, #17110d, #2a1d14);
}

.ham-video-ad-head span {
  color: #d8a06b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ham-video-ad-head strong {
  font-size: 15px;
  line-height: 1.15;
}

.ham-video-ad video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  background: #050403;
  object-fit: cover;
}

.ham-video-ad-cta {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--ham-wood);
  color: #111;
  text-decoration: none;
  font-weight: 950;
}

.ham-video-ad-cta svg {
  width: 17px;
  height: 17px;
}

.ham-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ham-toolbar strong,
.ham-toolbar span {
  display: block;
}

.ham-toolbar strong {
  font-size: 22px;
}

.ham-toolbar div span {
  color: var(--ham-muted);
  margin-top: 2px;
}

.ham-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ham-toolbar select {
  min-height: 38px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.ham-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.ham-card {
  background: #fff;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ham-card:hover {
  border-color: rgba(184, 120, 62, 0.35);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.1);
  transform: translateY(-1px);
}

.ham-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #ebe7df;
  overflow: hidden;
}

.ham-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ham-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover !important;
  filter: blur(14px);
  opacity: 0.36;
  transform: scale(1.12);
}

.ham-card-photo {
  position: relative;
  z-index: 1;
  object-fit: contain !important;
}

.ham-card-open-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
}

.ham-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: #ffd21f;
  color: #111;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.ham-status-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ham-status-pill.is-passive {
  background: rgba(180, 35, 24, 0.9);
}

.ham-video-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ham-video-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ham-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}

.ham-favorite.is-active {
  color: var(--ham-danger);
}

.ham-assurance {
  margin: 10px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  background: rgba(38, 114, 75, 0.11);
  color: var(--ham-green);
  font-size: 13px;
  font-weight: 900;
}

.ham-card-body {
  padding: 0 12px 12px;
}

.ham-card-price-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.ham-price {
  font-size: 22px;
  font-weight: 900;
}

.ham-small-pill {
  border-radius: 999px;
  background: rgba(36, 86, 166, 0.12);
  color: var(--ham-blue);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ham-card h3 {
  margin: 8px 0 7px;
  font-size: 17px;
  line-height: 1.25;
}

.ham-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ham-card-meta {
  display: grid;
  gap: 6px;
  color: var(--ham-muted);
  font-size: 13px;
}

.ham-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ham-card-seller {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #faf8f5;
  min-height: 42px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.ham-card-seller strong,
.ham-card-seller small {
  display: block;
}

.ham-card-seller small {
  color: var(--ham-muted);
}

.ham-owner-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.ham-owner-actions .ham-ghost-button {
  min-height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

.ham-owner-actions .ham-ghost-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ham-danger-button {
  color: var(--ham-danger);
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.06);
}

.ham-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--ham-muted);
}

.ham-empty svg {
  width: 44px;
  height: 44px;
  color: var(--ham-wood);
}

.ham-empty h2 {
  margin: 0;
  color: var(--ham-ink);
  font-size: 28px;
}

.ham-empty p {
  margin: 0;
  max-width: 420px;
  line-height: 1.6;
}

.ham-about {
  margin-top: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ham-line);
}

.ham-about h2 {
  margin: 8px 0 12px;
  max-width: 860px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.ham-about p {
  margin: 0;
  max-width: 980px;
  color: var(--ham-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ham-about-link {
  width: max-content;
  margin-top: 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--ham-ink);
  color: #fff;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 900;
}

.ham-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.ham-site-footer-brand {
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
}

.ham-site-footer strong,
.ham-site-footer p {
  display: block;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.ham-site-footer strong {
  font-size: 14px;
  line-height: 1.15;
}

.ham-site-footer p {
  max-width: none;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.ham-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 12px;
  padding-top: 0;
}

.ham-site-footer a {
  min-height: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ham-site-footer a:hover {
  color: #fff;
}

/* Eski footer çıktısı cache'te kalırsa kategori kalabalığını yine de sakla. */
.ham-site-footer nav:has(a:nth-child(9)) a:nth-child(-n + 8) {
  display: none;
}

.ham-site-footer-copy {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ham-about-topbar {
  grid-template-columns: auto 1fr;
}

.ham-about-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ham-about-page {
  padding: 24px 0 42px;
}

.ham-about-hero {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--ham-line);
}

.ham-about-hero h1 {
  max-width: 1040px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.ham-about-hero p,
.ham-about-story p {
  max-width: 960px;
  color: var(--ham-muted);
  font-size: 18px;
  line-height: 1.75;
}

.ham-about-story {
  padding: 28px 0;
  border-bottom: 1px solid var(--ham-line);
}

.ham-about-story h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.ham-about-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ham-line);
}

.ham-about-blocks article {
  min-height: 220px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
}

.ham-about-blocks svg {
  width: 30px;
  height: 30px;
  color: var(--ham-wood);
}

.ham-about-blocks h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.ham-about-blocks p {
  margin: 0;
  color: var(--ham-muted);
  line-height: 1.65;
}

.ham-legal-page {
  padding: 24px 0 42px;
}

.ham-legal-hero {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--ham-line);
}

.ham-legal-hero h1 {
  max-width: 1060px;
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.ham-legal-hero p {
  max-width: 920px;
  margin: 0;
  color: var(--ham-muted);
  font-size: 18px;
  line-height: 1.72;
}

.ham-legal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
}

.ham-legal-card {
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.ham-legal-card h2,
.ham-contact-grid h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.ham-legal-card p,
.ham-contact-grid p {
  margin: 0;
  color: var(--ham-muted);
  line-height: 1.7;
}

.ham-legal-card p + p {
  margin-top: 10px;
}

.ham-legal-card a,
.ham-contact-grid a {
  color: var(--ham-ink);
  font-weight: 900;
}

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

.ham-contact-grid article {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.ham-contact-grid svg {
  width: 34px;
  height: 34px;
  color: var(--ham-wood);
}

.ham-contact-grid a {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.ham-contact-note {
  max-width: 960px;
}

.ham-dialog,
.ham-detail {
  border: 0;
  border-radius: 10px;
  padding: 0;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background: #fff;
  color: var(--ham-ink);
  box-shadow: var(--ham-shadow);
}

.ham-listing-dialog {
  width: min(900px, calc(100vw - 24px));
}

.ham-profile-dialog,
.ham-profile-view-dialog {
  width: min(940px, calc(100vw - 24px));
}

.ham-detail {
  width: min(1040px, calc(100vw - 24px));
}

.ham-dialog::backdrop,
.ham-detail::backdrop {
  background: rgba(17, 17, 17, 0.62);
}

.ham-dialog form,
.ham-profile-view-dialog > div {
  padding: 18px;
}

.ham-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.ham-dialog h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.ham-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ham-tabs button {
  min-height: 40px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.ham-tabs button.is-active {
  background: var(--ham-ink);
  color: #fff;
  border-color: var(--ham-ink);
}

.ham-form-message {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ham-danger);
  background: rgba(180, 35, 24, 0.08);
}

.ham-form-message.is-success {
  color: var(--ham-green);
  background: rgba(38, 114, 75, 0.11);
}

.ham-auth-lead {
  margin: 0 0 12px;
  color: var(--ham-muted);
  line-height: 1.55;
}

.ham-link-button {
  min-height: 34px;
  border: 0;
  padding: 0;
  margin: 4px 0 2px;
  background: transparent;
  color: var(--ham-blue);
  font-weight: 900;
  text-align: left;
}

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

.ham-form-grid label,
.ham-file {
  display: grid;
  gap: 7px;
}

.ham-full {
  grid-column: 1 / -1;
}

.ham-password-strength {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #faf8f5;
}

.ham-password-strength-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ham-muted);
}

.ham-password-strength-top strong {
  color: var(--ham-ink);
}

.ham-password-strength-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ham-password-strength-bars span {
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.13);
}

.ham-password-strength small {
  color: var(--ham-muted);
  line-height: 1.45;
}

.ham-password-strength[data-level="weak"] .ham-password-strength-top strong {
  color: var(--ham-danger);
}

.ham-password-strength[data-level="medium"] .ham-password-strength-top strong {
  color: #9a6500;
}

.ham-password-strength[data-level="strong"] .ham-password-strength-top strong {
  color: var(--ham-green);
}

.ham-password-strength[data-level="weak"] .ham-password-strength-bars span:nth-child(1) {
  background: var(--ham-danger);
}

.ham-password-strength[data-level="medium"] .ham-password-strength-bars span:nth-child(-n + 2) {
  background: #d99618;
}

.ham-password-strength[data-level="strong"] .ham-password-strength-bars span {
  background: var(--ham-green);
}

.ham-file input {
  width: 100%;
  border: 1px dashed rgba(17, 17, 17, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: #faf8f5;
}

.ham-file small {
  color: var(--ham-muted);
}

.ham-profile-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #faf8f5;
}

.ham-profile-dashboard {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.ham-profile-instagram .ham-profile-editor {
  align-items: flex-start;
  gap: 22px;
  padding: 16px;
}

.ham-profile-editor-copy {
  flex: 1;
  min-width: 0;
}

.ham-profile-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ham-profile-title-line h2,
.ham-profile-title-line h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.ham-verify-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ham-verify-badge svg {
  width: 16px;
  height: 16px;
}

.ham-verify-badge.is-verified {
  color: #0d6b43;
  background: rgba(38, 114, 75, 0.12);
}

.ham-verify-badge.is-pending {
  color: #9a6500;
  background: rgba(217, 150, 24, 0.15);
}

.ham-profile-pill {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 900;
}

.ham-profile-ig-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 10px;
}

.ham-profile-ig-stats div {
  display: grid;
  gap: 2px;
}

.ham-profile-ig-stats strong {
  font-size: 20px;
  line-height: 1;
}

.ham-profile-ig-stats span {
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 800;
}

.ham-profile-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 12px;
}

.ham-profile-trust-grid div {
  min-width: 0;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-align: center;
}

.ham-profile-trust-grid strong,
.ham-profile-trust-grid span {
  display: block;
}

.ham-profile-trust-grid strong {
  font-size: 20px;
  line-height: 1;
}

.ham-profile-trust-grid span {
  margin-top: 6px;
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 900;
}

.ham-profile-bio {
  margin: 8px 0 0;
  color: var(--ham-ink);
  line-height: 1.55;
}

.ham-profile-file {
  width: min(240px, 100%);
}

.ham-profile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ham-profile-action-row a,
.ham-profile-action-row button {
  width: 100%;
}

.ham-profile-highlights {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 10px;
}

.ham-profile-highlights div {
  width: 92px;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.ham-profile-highlights span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(17, 17, 17, 0.2);
  background: #fff;
}

.ham-profile-highlights svg {
  width: 24px;
  height: 24px;
}

.ham-profile-highlights strong,
.ham-profile-highlights small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ham-profile-highlights strong {
  font-size: 12px;
}

.ham-profile-highlights small {
  color: var(--ham-muted);
  font-size: 11px;
  font-weight: 800;
}

.ham-profile-tabs-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ham-line);
}

.ham-profile-tabs-mini button,
.ham-profile-tabs-mini a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ham-muted);
  font-weight: 900;
  text-decoration: none;
}

.ham-profile-tabs-mini button.is-active,
.ham-profile-tabs-mini a.is-active {
  color: var(--ham-ink);
  border-bottom-color: var(--ham-ink);
}

.ham-profile-tabs-mini button:disabled {
  opacity: 0.55;
}

.ham-profile-metrics {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ham-profile-metrics div {
  display: flex;
  gap: 6px;
  color: var(--ham-muted);
  font-size: 13px;
  font-weight: 900;
}

.ham-profile-metrics strong {
  color: var(--ham-ink);
}

.ham-profile-completion {
  height: 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.11);
  overflow: hidden;
}

.ham-profile-completion span {
  width: var(--profile-score);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #d99618;
}

.ham-profile-completion[data-level="strong"] span {
  background: var(--ham-green);
}

.ham-profile-completion[data-level="weak"] span {
  background: var(--ham-danger);
}

.ham-profile-form-sections {
  display: grid;
  gap: 12px;
}

.ham-form-section {
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.ham-account-danger {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fffafa;
}

.ham-account-danger .ham-section-title > svg {
  background: rgba(180, 35, 24, 0.08);
  color: var(--ham-danger);
}

.ham-delete-account-box {
  display: grid;
  gap: 12px;
}

.ham-delete-account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ham-delete-account-summary > div {
  display: grid;
  gap: 4px;
}

.ham-delete-account-box strong {
  color: var(--ham-ink);
}

.ham-delete-account-box p {
  max-width: 720px;
  margin: 0;
  color: var(--ham-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ham-delete-account-panel {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(180, 35, 24, 0.16);
}

.ham-delete-account-panel[hidden] {
  display: none !important;
}

.ham-delete-account-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ham-delete-account-button {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 900;
}

.ham-delete-account-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ham-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ham-section-title > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: #faf8f5;
}

.ham-section-title strong,
.ham-section-title span {
  display: block;
}

.ham-section-title span {
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 800;
}

.ham-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ham-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--ham-ink);
  color: #fff;
  box-shadow: var(--ham-shadow);
  font-weight: 800;
}

.ham-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.ham-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 640px;
}

.ham-gallery {
  background: #282828;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.ham-gallery-stage {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.ham-gallery-stage img,
.ham-gallery-stage video {
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

.ham-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ham-ink);
}

.ham-gallery-arrow.prev {
  left: 14px;
}

.ham-gallery-arrow.next {
  right: 14px;
}

.ham-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ham-thumbs button {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.ham-thumbs button.is-active {
  border-color: #ff244f;
}

.ham-thumbs img,
.ham-thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ham-video-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
}

.ham-video-thumb svg {
  width: 28px;
  height: 28px;
}

.ham-detail-copy {
  padding: 28px;
  overflow: auto;
}

.ham-detail-copy h1,
.ham-detail-copy h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.ham-detail-price {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
}

.ham-detail-actions,
.ham-seller-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ham-detail-actions a,
.ham-detail-actions button {
  flex: 1 1 150px;
}

.ham-seller-contact {
  margin: 10px 0 0;
}

.ham-seller-contact a,
.ham-seller-contact span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ham-line);
  padding: 0 10px;
  color: var(--ham-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.ham-seller-contact a {
  background: rgba(31, 140, 73, 0.1);
  color: var(--ham-green);
  border-color: rgba(31, 140, 73, 0.22);
}

.ham-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.ham-detail-grid div {
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 11px;
}

.ham-detail-grid span,
.ham-detail-grid strong {
  display: block;
}

.ham-detail-grid span {
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 900;
}

.ham-detail-text {
  color: var(--ham-muted);
  line-height: 1.65;
}

.ham-detail-owner {
  margin: 0 0 14px;
}

.ham-safety-box {
  border: 1px solid rgba(31, 140, 73, 0.18);
  border-radius: 8px;
  background: rgba(31, 140, 73, 0.07);
  padding: 12px;
  margin: 14px 0;
}

.ham-safety-box strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ham-green);
}

.ham-safety-box ul {
  margin: 9px 0 0 18px;
  padding: 0;
  color: var(--ham-muted);
  line-height: 1.5;
  font-size: 13px;
}

.ham-seller-panel {
  margin-top: 16px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 12px;
  background: #faf8f5;
}

.ham-seller-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ham-seller-panel-title span {
  color: var(--ham-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ham-seller-panel-title strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(38, 114, 75, 0.12);
  color: var(--ham-green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ham-seller-panel .ham-card-seller {
  margin-top: 0;
  background: #fff;
}

.ham-seller-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ham-seller-proof div {
  min-width: 0;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 10px 8px;
  background: #fff;
  text-align: center;
}

.ham-seller-proof strong,
.ham-seller-proof span {
  display: block;
}

.ham-seller-proof strong {
  font-size: 18px;
  line-height: 1;
}

.ham-seller-proof span {
  margin-top: 5px;
  color: var(--ham-muted);
  font-size: 11px;
  font-weight: 900;
}

.ham-single-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.ham-single-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
}

.ham-single-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ham-single-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ham-ink);
  text-decoration: none;
  font-weight: 900;
}

.ham-single-nav svg {
  width: 17px;
  height: 17px;
}

.ham-single-card {
  overflow: hidden;
  border: 1px solid var(--ham-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--ham-shadow);
}

.ham-single-detail {
  min-height: 0;
}

.ham-single-stage {
  min-height: 520px;
}

.ham-single-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ham-single-empty-media {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
  text-align: center;
}

.ham-single-empty-media svg {
  width: 42px;
  height: 42px;
}

.ham-single-seller-link {
  color: inherit;
  text-decoration: none;
}

.ham-single-missing {
  padding: 24px;
}

.ham-seller-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ham-seller-head strong,
.ham-seller-head span {
  display: block;
}

.ham-rating {
  color: #c47d1b;
  font-weight: 900;
}

.ham-profile-view {
  padding: 18px;
}

.ham-profile-view-dialog .ham-profile-view {
  padding: 0;
}

.ham-public-profile .ham-profile-editor {
  align-items: flex-start;
  border: 0;
  padding: 0 0 16px;
  background: transparent;
}

.ham-profile-view-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ham-line);
}

.ham-profile-view h2 {
  margin: 0;
}

.ham-profile-view p {
  color: var(--ham-muted);
  line-height: 1.6;
}

.ham-rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ham-profile-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.ham-profile-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 4px;
  padding: 8px;
  overflow: hidden;
  background: #262626;
  color: #fff;
  text-align: left;
}

.ham-profile-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.7));
}

.ham-profile-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ham-profile-tile > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  font-weight: 900;
}

.ham-profile-tile strong,
.ham-profile-tile small {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ham-profile-tile strong {
  font-size: 14px;
}

.ham-profile-tile small {
  font-size: 12px;
  opacity: 0.9;
}

.ham-profile-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  text-align: center;
}

.ham-profile-page {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.ham-profile-page-head {
  display: grid;
  gap: 8px;
  padding: 18px 0 4px;
}

.ham-profile-page-head h1,
.ham-profile-login-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
}

.ham-profile-page-head p,
.ham-profile-login-card p {
  max-width: 760px;
  margin: 0;
  color: var(--ham-muted);
  line-height: 1.65;
}

.ham-profile-page-card,
.ham-profile-login-card {
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.ham-profile-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ham-profile-page-actions .ham-primary-button,
.ham-profile-page-actions .ham-ghost-button {
  min-height: 42px;
}

.ham-profile-edit-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ham-line);
}

.ham-profile-edit-panel[hidden] {
  display: none !important;
}

.ham-profile-login-card {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.ham-mini-listings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ham-mini-listing {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--ham-line);
  border-radius: 8px;
  padding: 8px;
  background: #faf8f5;
  color: var(--ham-ink);
  text-align: left;
  width: 100%;
}

.ham-mini-listing img {
  width: 64px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

.ham-mini-listing .ham-avatar {
  width: 64px;
  height: 58px;
  border-radius: 6px;
  display: inline-grid;
  flex: 0 0 64px;
  color: #fff;
  font-size: 13px;
}

.ham-mini-seller .ham-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.ham-mini-listing strong,
.ham-mini-listing > span {
  display: block;
}

.ham-mini-listing > span,
.ham-mini-listing > span span {
  color: var(--ham-muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .ham-market {
    grid-template-columns: 270px minmax(0, 1fr) 190px;
  }

  .ham-video-ad-head {
    padding: 10px;
  }
}

@media (max-width: 980px) {
  .ham-shell {
    display: flex;
    flex-direction: column;
  }

  .ham-topbar {
    grid-template-columns: 1fr;
    position: static;
    order: 1;
  }

  .ham-main-nav {
    order: 2;
  }

  .ham-intro {
    order: 3;
  }

  .ham-market {
    order: 4;
  }

  .ham-discovery {
    order: 6;
  }

  .ham-seo-panel {
    grid-template-columns: 1fr;
    order: 5;
  }

  .ham-seo-rich {
    grid-template-columns: 1fr;
  }

  .ham-about {
    order: 7;
  }

  .ham-site-footer {
    order: 8;
    flex-wrap: wrap;
  }

  .ham-video-ad {
    display: none;
  }

  .ham-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .ham-single-shell {
    padding: 10px;
  }

  .ham-single-top {
    align-items: stretch;
    flex-direction: column;
  }

  .ham-single-nav {
    justify-content: stretch;
  }

  .ham-single-nav a {
    flex: 1 1 150px;
  }

  .ham-single-stage {
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: min(78vw, 420px);
  }

  .ham-actions .ham-primary-button,
  .ham-actions .ham-ghost-button {
    flex: 1 1 auto;
  }

  .ham-intro,
  .ham-market,
  .ham-detail-layout,
  .ham-about-blocks,
  .ham-legal-layout,
  .ham-contact-grid,
  .ham-site-footer {
    grid-template-columns: 1fr;
  }

  .ham-filters {
    position: static;
    order: 2;
  }

  .ham-content {
    order: 1;
  }

  .ham-intro-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .ham-discovery-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ham-showcase-rails {
    grid-template-columns: 1fr;
  }

  .ham-gallery-stage {
    min-height: 360px;
  }

  .ham-about-actions {
    justify-self: stretch;
    flex-wrap: wrap;
  }

  .ham-site-footer nav {
    justify-content: flex-start;
  }

  .ham-site-footer p {
    max-width: none;
  }

  .ham-profile-instagram .ham-profile-editor {
    flex-wrap: wrap;
  }

  .ham-profile-file {
    width: 100%;
  }
}

@media (max-width: 640px) {
  html,
  body.ham-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .ham-maintenance,
  .ham-shell,
  .ham-topbar,
  .ham-main-nav,
  .ham-intro,
  .ham-market,
  .ham-content,
  .ham-filters,
  .ham-seo-panel,
  .ham-discovery,
  .ham-about,
  .ham-site-footer {
    width: 100%;
    max-width: 100%;
  }

  .ham-shell {
    align-items: stretch;
    padding: 8px;
  }

  .ham-shell > * {
    align-self: stretch;
  }

  .ham-maintenance {
    padding: 7px 10px;
    font-size: 11px;
  }

  .ham-brand img {
    width: 134px;
    max-width: 100%;
  }

  .ham-site-footer {
    align-items: flex-start;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .ham-site-footer-brand {
    flex: 1 1 150px;
  }

  .ham-site-footer nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px 12px;
  }

  .ham-site-footer-copy {
    margin-left: auto;
  }

  .ham-delete-account-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .ham-delete-account-toggle,
  .ham-delete-account-button {
    width: 100%;
  }

  .ham-brand {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .ham-single-shell {
    padding: 8px;
  }

  .ham-single-top {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .ham-single-card {
    border-radius: 12px;
  }

  .ham-single-stage {
    aspect-ratio: 1 / 1;
    max-height: min(88vw, 360px);
  }

  .ham-detail-copy h1 {
    font-size: 28px;
    line-height: 1.05;
  }

  .ham-topbar {
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
  }

  .ham-search {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
  }

  .ham-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .ham-actions .ham-ghost-button,
  .ham-actions .ham-primary-button,
  .ham-account {
    width: 100%;
  }

  .ham-actions .ham-primary-button {
    grid-column: 1 / -1;
  }

  .ham-account {
    grid-column: 2 / -1;
  }

  .ham-account-button {
    width: 100%;
    justify-content: center;
  }

  .ham-main-nav {
    gap: 7px;
    padding: 8px 0 2px;
    scroll-snap-type: x proximity;
  }

  .ham-main-nav a {
    min-height: 38px;
    padding: 0 11px;
    scroll-snap-align: start;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
  }

  .ham-main-nav a:first-child {
    background: #111;
    color: #fff;
    border-color: #111;
  }

  .ham-intro {
    margin-top: 8px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111;
    color: #fff;
    text-align: center;
  }

  .ham-intro .ham-eyebrow {
    color: #d8a06b;
  }

  .ham-intro h1 {
    margin: 5px 0 8px;
    font-size: 31px;
    line-height: 1;
  }

  .ham-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.45;
  }

  .ham-intro-actions {
    margin-top: 12px;
    justify-content: center;
  }

  .ham-intro-actions .ham-primary-button,
  .ham-intro-actions .ham-ghost-button {
    flex: 1 1 132px;
    min-height: 40px;
  }

  .ham-intro-actions .ham-ghost-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
  }

  .ham-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ham-intro-metrics,
  .ham-form-grid,
  .ham-detail-grid,
  .ham-price-row {
    grid-template-columns: 1fr 1fr;
  }

  .ham-intro-metrics {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .ham-intro-metrics div {
    min-height: 66px;
    padding: 11px 10px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .ham-intro-metrics strong {
    font-size: 22px;
    line-height: 1;
  }

  .ham-intro-metrics span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.2;
  }

  .ham-form-grid,
  .ham-detail-grid,
  .ham-price-row {
    grid-template-columns: 1fr;
  }

  .ham-content {
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
  }

  .ham-seo-panel,
  .ham-discovery,
  .ham-about {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .ham-seo-panel h2,
  .ham-about h2,
  .ham-section-head h2 {
    font-size: 21px;
    line-height: 1.08;
  }

  .ham-seo-panel p,
  .ham-about p {
    font-size: 14px;
    line-height: 1.45;
  }

  .ham-seo-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ham-seo-rich {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .ham-seo-rich section {
    flex: 0 0 270px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .ham-seo-rich h3 {
    font-size: 15px;
  }

  .ham-seo-rich p,
  .ham-seo-rich li {
    font-size: 12px;
    line-height: 1.45;
  }

  .ham-seo-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .ham-seo-tags::-webkit-scrollbar {
    display: none;
  }

  .ham-seo-links a {
    flex: 0 0 auto;
  }

  .ham-discovery-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 2px;
  }

  .ham-discovery-categories button {
    flex: 0 0 150px;
    min-height: 74px;
    padding: 10px;
  }

  .ham-discovery-categories strong {
    font-size: 14px;
  }

  .ham-discovery-categories span {
    margin-top: 5px;
    font-size: 11px;
  }

  .ham-showcase-rails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 2px;
  }

  .ham-showcase-rails section {
    flex: 0 0 248px;
    padding: 10px;
  }

  .ham-empty {
    min-height: 210px;
    padding: 18px 8px;
  }

  .ham-empty h2 {
    font-size: 22px;
  }

  .ham-empty p {
    font-size: 14px;
    line-height: 1.45;
  }

  .ham-filters {
    padding: 12px;
    border-radius: 12px;
  }

  .ham-filters .ham-panel-title h2 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .ham-category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 2px;
  }

  .ham-category-list button {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    gap: 8px;
    padding: 0 12px;
  }

  .ham-main-nav,
  .ham-seo-links,
  .ham-seo-rich,
  .ham-discovery-categories,
  .ham-showcase-rails,
  .ham-category-list {
    scrollbar-width: none;
  }

  .ham-main-nav::-webkit-scrollbar,
  .ham-seo-links::-webkit-scrollbar,
  .ham-seo-rich::-webkit-scrollbar,
  .ham-discovery-categories::-webkit-scrollbar,
  .ham-showcase-rails::-webkit-scrollbar,
  .ham-category-list::-webkit-scrollbar {
    display: none;
  }

  .ham-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ham-listings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ham-card {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.07);
  }

  .ham-card-media {
    aspect-ratio: auto !important;
    height: clamp(145px, 44vw, 190px) !important;
    background: #f2f0ed;
    min-height: 0 !important;
    max-height: 190px !important;
  }

  .ham-card-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .ham-card-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .ham-badge,
  .ham-status-pill,
  .ham-video-pill {
    padding: 5px 7px;
    font-size: 10px;
  }

  .ham-favorite {
    width: 30px;
    height: 30px;
    top: 7px;
    right: 7px;
  }

  .ham-assurance {
    min-height: 22px;
    margin: 7px;
    font-size: 10px;
  }

  .ham-card-body {
    padding: 0 8px 8px;
  }

  .ham-card-price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .ham-price {
    font-size: 17px;
    line-height: 1.05;
  }

  .ham-small-pill {
    width: max-content;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 10px;
  }

  .ham-card h3 {
    min-height: 36px;
    margin: 7px 0 6px;
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ham-card-meta {
    gap: 4px;
    font-size: 11px;
  }

  .ham-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ham-card-meta span:first-child {
    display: none;
  }

  .ham-card-seller {
    min-height: 34px;
    margin-top: 8px;
    padding: 5px 6px;
    gap: 6px;
  }

  .ham-card-seller .ham-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .ham-card-seller strong {
    font-size: 11px;
  }

  .ham-card-seller small {
    font-size: 10px;
  }

  .ham-toolbar {
    margin-bottom: 10px;
  }

  .ham-toolbar strong {
    font-size: 18px;
  }

  .ham-owner-actions {
    grid-template-columns: 1fr;
  }

  .ham-dialog-actions {
    flex-direction: column-reverse;
  }

  .ham-dialog-actions button {
    width: 100%;
  }

  .ham-gallery {
    padding: 12px;
    background: #181818;
  }

  .ham-gallery-stage {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: min(72vw, 330px);
    overflow: hidden;
    border-radius: 10px;
    background: #111;
  }

  .ham-gallery-stage img,
  .ham-gallery-stage video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .ham-detail-copy {
    padding: 18px;
  }

  .ham-detail {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 14px;
  }

  .ham-detail-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.18);
  }

  .ham-detail-layout {
    min-height: 0;
  }

  .ham-gallery {
    gap: 10px;
    padding: 52px 12px 12px;
  }

  .ham-gallery-stage {
    max-height: min(62vw, 280px);
  }

  .ham-gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .ham-thumbs {
    gap: 8px;
    padding-bottom: 0;
  }

  .ham-thumbs button {
    width: 64px;
    height: 64px;
    border-radius: 7px;
  }

  .ham-detail-copy {
    padding: 18px 16px 20px;
  }

  .ham-detail-copy .ham-eyebrow {
    font-size: 12px;
  }

  .ham-detail-copy h2 {
    margin: 7px 0 8px;
    font-size: 26px;
    line-height: 1.05;
  }

  .ham-detail-price {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .ham-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ham-detail-actions .ham-ghost-button:last-child {
    grid-column: 1 / -1;
  }

  .ham-detail-actions a,
  .ham-detail-actions button {
    min-height: 48px;
    flex: initial;
  }

  .ham-detail-grid {
    gap: 8px;
  }

  .ham-detail-grid div {
    padding: 12px;
  }

  .ham-seller-panel {
    padding: 10px;
  }

  .ham-seller-panel-title {
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .ham-seller-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ham-seller-proof div {
    padding: 9px 6px;
  }

  .ham-seller-proof strong {
    font-size: 16px;
  }

  .ham-seller-proof span {
    font-size: 10px;
  }

  .ham-seller-contact {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .ham-seller-contact a,
  .ham-seller-contact span {
    width: 100%;
    justify-content: center;
  }

  .ham-profile-view {
    padding: 12px;
  }

  .ham-profile-view-dialog > div {
    padding: 12px;
  }

  .ham-profile-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .ham-profile-trust-grid div {
    padding: 10px 6px;
  }

  .ham-profile-trust-grid strong {
    font-size: 16px;
  }

  .ham-profile-trust-grid span {
    font-size: 10px;
    line-height: 1.2;
  }

  .ham-rating-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .ham-rating-actions::-webkit-scrollbar {
    display: none;
  }

  .ham-profile-instagram .ham-profile-editor,
  .ham-public-profile .ham-profile-editor {
    gap: 14px;
  }

  .ham-profile-title-line h2,
  .ham-profile-title-line h3 {
    font-size: 22px;
  }

  .ham-profile-action-row,
  .ham-profile-listing-grid {
    grid-template-columns: 1fr;
  }

  .ham-public-profile .ham-profile-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ham-rating-actions .ham-ghost-button {
    flex: 0 0 78px;
  }

  .ham-compact-mobile .ham-intro,
  body.ham-page .ham-intro {
    padding: 12px;
  }

  body.ham-page .ham-intro h1 {
    font-size: 28px;
  }

  body.ham-page .ham-intro p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.ham-page .ham-intro-actions {
    margin-top: 10px;
  }

  body.ham-page .ham-intro-metrics {
    gap: 6px;
    margin-top: 10px;
  }

  body.ham-page .ham-intro-metrics div {
    min-height: 54px;
    padding: 8px 6px;
  }

  body.ham-page .ham-intro-metrics strong {
    font-size: 19px;
  }

  body.ham-page .ham-intro-metrics span {
    margin-top: 4px;
    font-size: 10px;
  }

  body.ham-page .ham-discovery,
  body.ham-page .ham-seo-panel,
  body.ham-page .ham-filters {
    padding: 10px;
  }

  body.ham-page .ham-section-head h2,
  body.ham-page .ham-filters .ham-panel-title h2 {
    font-size: 18px;
    line-height: 1.1;
  }

  body.ham-page .ham-discovery-categories button {
    flex-basis: 132px;
    min-height: 62px;
  }

  body.ham-page .ham-showcase-rails section {
    flex-basis: 218px;
  }

  body.ham-page .ham-mini-listing {
    padding: 6px;
  }

  body.ham-page .ham-mini-listing img,
  body.ham-page .ham-mini-listing .ham-avatar {
    width: 48px;
    height: 44px;
    flex-basis: 48px;
  }

  body.ham-page .ham-filters .ham-panel-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
  }

  body.ham-page .ham-filters .ham-panel-title h2 {
    margin-bottom: 8px;
  }

  body.ham-page .ham-filters .ham-field {
    margin-bottom: 8px;
  }

  body.ham-page .ham-filters .ham-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.ham-page .ham-city-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 8px;
    scrollbar-width: none;
  }

  body.ham-page .ham-city-chips::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  body.ham-page .ham-content .ham-listings {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.ham-page .ham-content .ham-card-media {
    aspect-ratio: auto !important;
    height: clamp(145px, 44vw, 190px) !important;
    min-height: 0 !important;
    max-height: 190px !important;
  }

  body.ham-page .ham-content .ham-card-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  body.ham-page .ham-content .ham-card-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
