:root {
  --page-bg: #f7f7f8;
  --surface: #fff;
  --surface-soft: #f1f2f4;
  --ink: #18191c;
  --muted: #70747d;
  --line: #e3e5e8;
  --pink: #ff4568;
  --orange: #ff7d3d;
  --green: #18a957;
  --blue: #3487f5;
  --shadow: 0 8px 28px rgba(24,25,28,.07);
}

body { background: var(--page-bg); color: var(--ink); }

body:has(.home-discovery) { background: #fff; }
body:has(.home-discovery) .hero,
body:has(.home-discovery) .features-section,
body:has(.home-discovery) .numbers-section,
body:has(.home-discovery) .how-section { display: none; }
body:has(.home-discovery) .site-footer { color: var(--ink); background: #f5f6f7; }
body:has(.home-discovery) .site-footer p,
body:has(.home-discovery) .site-footer small,
body:has(.home-discovery) .site-footer a { color: var(--muted); }
body:has(.home-discovery) .site-header { grid-template-columns: auto auto 1fr auto; }
body:has(.home-discovery) .site-header .shell-search { display: none; }
body:has(.home-discovery) .site-header .shell-post-button { justify-self: end; }
body:has(.home-discovery) .site-header { padding-inline: max(32px,calc((100% - 1680px) / 2)); }
body:has(.home-discovery) .site-header { position: relative; top: auto; }
body:has(.home-discovery) .site-header.is-scrolled { color: var(--ink); border-bottom-color: var(--line); background: #fff; box-shadow: none; }

.site-header,
.catalog-header,
.seller-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 10px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.97);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.shell-brand { font-size: 19px; white-space: nowrap; }
.shell-category-button,
.shell-post-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.shell-category-menu { position: relative; }
.shell-category-button { border: 0; color: #fff; background: #202124; cursor: pointer; font-family: inherit; }
.shell-category-button span { font-size: 18px; }
.shell-category-dropdown { position: absolute; z-index: 90; top: calc(100% + 10px); left: 0; display: none; width: 230px; overflow: hidden; padding: 6px; border: 1px solid #e2e4e7; border-radius: 14px; background: #fff; box-shadow: 0 18px 46px rgba(24,25,28,.14); }
.shell-category-menu.is-open .shell-category-dropdown { display: grid; }
.shell-category-dropdown a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 11px; border-radius: 10px; color: var(--ink); }
.shell-category-dropdown a:hover { background: #f2f3f4; }
.shell-category-dropdown strong { font-size: 13px; }
.shell-category-dropdown a > span { color: #ff4568; font-size: 14px; white-space: nowrap; }
.seller-topbar .shell-category-dropdown { display: none; align-items: stretch; justify-content: stretch; gap: 0; }
.seller-topbar .shell-category-menu.is-open .shell-category-dropdown { display: grid; }
.seller-topbar .shell-category-dropdown a { min-height: 44px; justify-content: space-between; padding: 0 11px; border-radius: 10px; color: var(--ink); background: transparent; }
.seller-topbar .shell-category-dropdown a:hover { background: #f2f3f4; }
.shell-post-button { color: #fff; background: var(--green); }
.shell-post-button b { font-size: 20px; font-weight: 500; }
.shell-search { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; height: 46px; overflow: hidden; border: 2px solid #2da5f5; border-radius: 12px; background: #fff; }
.shell-search > span { display: grid; place-items: center; color: #707681; font-size: 22px; }
.shell-search input { min-width: 0; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 14px; }
.shell-search button { height: 100%; padding: 0 23px; border: 0; color: #fff; background: #2da5f5; cursor: pointer; font: inherit; font-size: 13px; font-weight: 850; }
.shell-actions { display: flex; min-width: 0; align-items: center; gap: 12px; margin-left: 8px; }
.shell-actions > .ghost-button,
.shell-actions > .solid-button,
.shell-actions .account-actions > .ghost-button,
.shell-actions .account-actions > .solid-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.shell-actions > .ghost-button,
.shell-actions .account-actions > .ghost-button { color: var(--ink); background: #f1f2f4; }
.shell-actions > .solid-button,
.shell-actions .account-actions > .solid-button { color: #fff; border-color: #202124; background: #202124; }
.shell-actions .account-actions { gap: 12px; }
.shell-actions .nav-icon-link { min-height: 40px; padding: 0 13px; border-color: var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-size: 12px; }
.shell-actions .nav-icon-link:hover { border-color: #cfd3d8; background: #f3f4f5; }
.shell-actions .listing-nav-link { display: none; }
.shell-actions .account-trigger { width: 42px; height: 42px; }

.catalog-header .catalog-nav,
.seller-topbar > nav,
.seller-topbar > .seller-account-actions { display: none; }

.home-discovery {
  padding: 58px 32px 68px;
  color: var(--ink);
  background: #fff;
}
.home-discovery::before { display: none; }
.home-discovery-head,.home-focus-copy,.home-directions-zone,.home-promos,.home-ad-grid,.home-category-strip,.home-listings { width: 100%; }
.home-discovery-head { grid-template-columns: minmax(0,1.55fr) minmax(320px,.45fr); gap: 28px; }
.home-discovery-copy .eyebrow { color: #797d86; }
.home-discovery-copy h1 { max-width: 780px; margin: 10px 0 12px; color: var(--ink); font-size: clamp(42px,5vw,68px); }
.home-discovery-copy > p:last-of-type { color: var(--muted); }
.home-discovery-note { color: #2a2234; border-color: #e2d7f3; background: linear-gradient(135deg,#f3e9ff,#f7f2ff); box-shadow: none; }
.home-discovery-note > span { color: #806d95; }
.home-discovery-note > strong { font-size: 29px; }
.home-discovery-note > p { color: #73677f; }
.home-discovery-note > a { display: inline-flex; margin-top: 6px; color: #5d4775; font-size: 12px; font-weight: 900; }
.home-discovery-note ul { display: none; }

.home-focus-copy { max-width: 1120px; margin: 0 auto; text-align: center; }
.home-focus-copy > span { color: #ff4568; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.home-focus-copy h1 { margin: 8px 0 6px; font-size: clamp(34px,3.3vw,52px); line-height: 1.04; letter-spacing: -.045em; }
.home-focus-copy > p { margin: 0; color: var(--muted); font-size: 14px; }
.home-main-search { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; width: min(840px,100%); height: 72px; margin: 25px auto 0; overflow: hidden; border: 0; border-radius: 22px; background: #f0f1f2; }
.home-main-search > span { display: grid; place-items: center; color: #656b73; font-size: 26px; }
.home-main-search input { min-width: 0; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.home-main-search input::placeholder { color: #a0a4aa; }
.home-main-search button { height: 48px; margin-right: 12px; padding: 0 24px; border: 0; border-radius: 14px; color: #fff; background: #202124; cursor: pointer; font-size: 13px; font-weight: 850; }

.home-directions-zone { max-width: 1120px; margin: 56px auto 0; padding: 0; background: transparent; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 0 2px 10px; }
.home-section-head span,.home-listings-head > div:first-child > span { color: #ff4568; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-section-head h1 { margin: 1px 0 0; font-size: 22px; line-height: 1.08; letter-spacing: -.025em; }
.home-section-head p { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 12px; text-align: right; }

.home-promos { max-width: 1320px; margin: 23px auto 0; }
.home-promo-head { margin: 0 2px 9px; }
.home-promo-head > span { color: #8a8f96; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.home-ad-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-image-ad { position: relative; display: block; height: 104px; overflow: hidden; border-radius: 16px; background: #16131b; box-shadow: none; }
.home-image-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-image-ad::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,8,14,.34),transparent 62%); content: ""; pointer-events: none; }
.home-image-ad:nth-child(2)::after { background: linear-gradient(90deg,#eef7f6 0 39%,rgba(238,247,246,.94) 49%,rgba(238,247,246,.18) 70%,transparent 82%); }
.home-image-ad:nth-child(2) .home-ad-copy { color: #182321; text-shadow: none; }
.home-image-ad:nth-child(2) .home-ad-copy small { color: #137a6a; }
.home-image-ad > .home-ad-label { position: absolute; z-index: 3; top: 10px; right: 10px; padding: 4px 7px; border-radius: 7px; color: rgba(255,255,255,.9); background: rgba(12,12,16,.62); backdrop-filter: blur(7px); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.home-ad-copy { position: absolute; z-index: 2; top: 50%; left: clamp(18px,2vw,34px); display: flex; flex-direction: column; color: #fff; transform: translateY(-50%); text-shadow: 0 2px 16px rgba(0,0,0,.28); }
.home-ad-copy small { font-size: clamp(8px,.62vw,12px); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-ad-copy strong { margin-top: 2px; font-size: clamp(17px,1.1vw,22px); line-height: .9; letter-spacing: -.025em; text-transform: uppercase; }
.home-ad-copy em { margin-top: 5px; font-size: 9px; font-style: normal; font-weight: 800; }
.home-image-ad:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(24,25,28,.14); }

.home-category-strip { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; margin-top: 0; border: 0; }
.home-category-strip a { display: flex; min-width: 0; min-height: 118px; align-items: center; flex-direction: column; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; }
.home-category-strip a:hover { background: transparent; filter: none; transform: translateY(-2px); }
.home-category-strip a > span { display: block; order: 2; width: 100%; min-height: 0; padding: 0; color: var(--ink); background: transparent; text-align: center; }
.home-category-strip a > span strong { display: block; max-width: none; margin-top: 7px; font-size: 13px; line-height: 1.15; }
.home-category-strip a > span em { display: none; }
.home-category-strip a > span small { display: none; }
.home-category-strip a > img { position: static; order: 1; width: 84px; height: 74px; padding: 7px; border-radius: 20px; background: #f1f2f3; object-fit: contain; pointer-events: none; }
.home-category-strip a:nth-child(2) > img { background: #fff3e7; }
.home-category-strip a:nth-child(3) > img { background: #eaf4ff; }
.home-category-strip a:nth-child(4) > img { background: #f1edff; }
.home-category-strip a:nth-child(5) > img { background: #eaf8f2; }
.home-category-strip a:nth-child(6) > img { background: #fff0f4; }
.home-ad-slot { width: 100%; margin: 24px auto 0; }
.home-listings { width: min(1680px,100%); max-width: 1680px; margin: 54px auto 0; padding-top: 0; border-top: 0; }
.home-listings-head { display: block; }
.home-listings-head h2 { margin: 0 0 22px; color: var(--ink); font-size: clamp(26px,1.8vw,32px); letter-spacing: -.035em; }
.home-listings-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.home-listings-actions { display: flex; align-items: center; gap: 8px; }
.home-listings-actions a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border-radius: 11px; color: #4c515a; background: #f1f2f4; font-size: 11px; font-weight: 850; }
.home-listings-actions #home-feed-create { color: #fff; background: #202124; }
.home-feed-filters button { color: #555a63; border-color: var(--line); background: #f1f2f4; }
.home-feed-filters button.is-active { color: #fff; border-color: #202124; background: #202124; }
.home-feed-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.home-feed-card { display: flex; overflow: hidden; height: 100%; flex-direction: column; border: 1px solid #e4e6e9; border-radius: 13px; background: #fff; box-shadow: none; }
.home-feed-image { min-height: 0; aspect-ratio: 4 / 3; border-radius: 12px 12px 0 0; }
.home-feed-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 13px 14px 15px; }
.home-feed-body p { display: none; }
.home-feed-body footer { margin-top: auto; padding-top: 11px; border-top: 1px solid #eceef0; }
.home-feed-empty { color: var(--muted); border-color: var(--line); }

.catalog-page,
.detail-page,
.seller-dashboard,
.seller-editor-page,
.creation-page,
.market-home-page,
.booking-page,
.messages-page,
.profile-page { background: var(--page-bg); }

.catalog-page { width: min(1680px,calc(100% - 64px)); max-width: 1680px; margin: 0 auto; padding: 28px 0 58px; }
.catalog-intro { margin-bottom: 18px; padding: 6px 0 16px; }
.catalog-intro h1 { font-size: 34px; }
.catalog-layout { grid-template-columns: 260px minmax(0,1fr); gap: 20px; }
.filter-panel { position: sticky; top: 92px; display: block; padding: 20px; border-radius: 16px; }
.filter-panel h2 { display: block; }
.filter-group { min-width: 0; margin-bottom: 20px; }
.filter-group label { margin-bottom: 7px; font-size: 12px; }
.filter-group input,.filter-group select { height: 43px; border-color: #dfe2e6; background: #f4f5f6; }
.filter-actions { display: grid; gap: 7px; }
.filter-actions .solid-button,.filter-actions .filter-reset { min-height: 43px; padding-inline: 14px; }
.listing-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.listing-card { display: flex; overflow: hidden; min-height: 0; height: 100%; flex-direction: column; border: 1px solid #e4e6e9 !important; border-radius: 13px; background: #fff !important; }
.listing-media { aspect-ratio: 4 / 3; border-radius: 12px 12px 0 0; }
.listing-body { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.listing-card h3 { font-size: 17px; }
.listing-card p { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.listing-topline { margin-bottom: 7px; font-size: 10px; }
.listing-footer { margin-top: auto; padding-top: 11px; border-top: 1px solid #eceef0; }
.premium-slot:empty { display: none; }
.premium-slot .featured-listing { border: 1px solid #dfe2e6; border-radius: 16px; background: #fff; }
.pagination-bar { border-color: var(--line); background: #fff; }

.marketplace-home .market-home-page { width: min(1680px,calc(100% - 64px)); max-width: 1680px; }
.marketplace-home .market-home-hero { grid-template-columns: minmax(0,1fr) 300px; gap: 18px; padding: 28px 32px; border-radius: 20px; color: var(--ink); border-color: var(--line); background: #fff; box-shadow: none; }
.market-home-hero > div > span { color: #777c85; }
.market-home-hero h1 { max-width: 720px; color: var(--ink); font-size: clamp(34px,3vw,46px); line-height: 1.02; }
.market-home-hero > div > p { color: var(--muted); }
.market-home-search { min-height: 52px; margin-top: 20px; box-shadow: none; }
.market-home-search input,.market-home-search button { height: 42px; }
.market-home-actions { margin-top: 14px; }
.market-home-hero aside { padding: 20px; color: #30283a; border-color: #e3d9f2; background: #f5effc; box-shadow: none; }
.market-home-hero aside > strong { font-size: 34px; }
.market-home-hero aside > span,.market-home-hero aside > p { color: #776a84; }
.market-home-hero aside li { color: #4f4559; }
.market-home-actions .ghost-button { color: var(--ink); border-color: var(--line); background: #fff; }
.market-home-category,.mixed-feed-card { box-shadow: none; }
.market-home-category-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.market-home-category { position: relative; grid-template-columns: minmax(0,1fr) 48%; min-height: 118px; padding: 0 0 0 14px; overflow: hidden; }
.market-home-category > span { position: relative; z-index: 2; }
.market-home-category > span strong,.market-home-category > span small { display: block; }
.market-home-category > span small { margin-top: 7px; color: var(--muted); line-height: 1.35; }
.market-home-category > img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.market-home-category > b { position: absolute; z-index: 3; right: 12px; bottom: 10px; }
.mixed-feed-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.mixed-feed-card { display: flex; height: 100%; flex-direction: column; border-radius: 13px; }
.mixed-feed-image { min-height: 0; aspect-ratio: 4 / 3; }
.mixed-feed-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 13px; }
.mixed-feed-body p { display: none; }
.mixed-feed-body footer { margin-top: auto; }
.market-home-filters button { background: #f1f2f4; }
.market-home-categories > div:first-child { display: block; }
.market-home-categories > div:first-child h2 { margin-top: 5px; }
.market-home-categories + .classified-ad-slot { margin-top: 24px; }
.creation-category-card { grid-template-columns: 150px minmax(0,1fr); overflow: hidden; padding-left: 0; }
.creation-category-image { width: 150px; height: 112px; padding: 9px; object-fit: contain; align-self: stretch; background: #f3f5f7; }

.filter-panel,
.listing-card,
.featured-listing,
.author-listing,
.seller-card-panel,
.seller-preview,
.seller-inbox,
.owner-section,
.detail-main-card,
.detail-sidebar > section,
.booking-card,
.messages-shell,
.profile-card {
  border-color: var(--line) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.solid-button,
.purchase-button,
.card-button { background: linear-gradient(135deg,var(--pink),var(--orange)); }

.classified-ad-slot {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 22px 26px;
  border: 1px solid #e1d9f4;
  border-radius: 18px;
  color: #282034;
  background: linear-gradient(115deg,#f4ebff,#f7f2ff 58%,#e8f4ff);
}
.catalog-ad-slot { margin: 0 0 20px; }
.classified-ad-slot > div > span { color: #816e96; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.classified-ad-slot strong { display: block; margin-top: 5px; font-size: 21px; }
.classified-ad-slot p { margin: 4px 0 0; color: #746982; font-size: 12px; }
.classified-ad-slot a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 17px; border-radius: 11px; color: #fff; background: #272133; font-size: 12px; font-weight: 850; white-space: nowrap; }

@media (max-width: 1050px) {
  .site-header,.catalog-header,.seller-topbar { grid-template-columns: auto auto minmax(180px,1fr) auto; }
  .shell-actions { display: none; }
  .home-category-strip { grid-template-columns: repeat(6,minmax(110px,1fr)); gap: 10px; }
  .home-feed-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .market-home-category-grid,.mixed-feed-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1450px) and (min-width: 1051px) {
  .home-feed-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  html,body,body main { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header,.catalog-header,.seller-topbar { grid-template-columns: auto 1fr auto; padding: 9px 14px; }
  body:has(.home-discovery) .site-header { grid-template-columns: auto 1fr auto; padding: 9px 14px; }
  .site-header > *,.catalog-header > *,.seller-topbar > * { min-width: 0; }
  .shell-category-button { grid-column: 2; grid-row: 1; justify-self: end; width: 44px; padding: 0; font-size: 0; }
  .shell-category-button span { font-size: 18px; }
  .shell-search { display: none; }
  .shell-post-button span { display: none; }
  .shell-post-button { width: 44px; padding: 0; }
  .shell-search button { padding: 0 13px; }
  .classified-ad-slot { grid-template-columns: 1fr; }
  .home-ad-grid { grid-template-columns: 1fr; }
  .home-image-ad { height: 104px; }
  .home-discovery { width: 100%; max-width: 100%; padding: 28px 14px 48px; overflow: hidden; }
  .home-discovery-head,.home-discovery-copy { grid-template-columns: 1fr; width: 100%; min-width: 0; }
  .home-discovery-copy h1 { width: 100%; max-width: 100%; font-size: 34px; overflow-wrap: anywhere; }
  .home-discovery-copy > p:last-of-type { font-size: 14px; }
  .home-discovery-copy > p,.home-discovery-note > p { max-width: 100%; overflow-wrap: anywhere; }
  .home-focus-copy { text-align: left; }
  .home-focus-copy h1 { font-size: 34px; }
  .home-main-search { grid-template-columns: 46px minmax(0,1fr) auto; height: 62px; border-radius: 18px; }
  .home-main-search button { height: 42px; margin-right: 8px; padding: 0 16px; }
  .home-directions-zone { padding: 0; border-radius: 0; }
  .home-category-strip { display: flex; gap: 15px; padding-right: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .home-category-strip a { flex: 0 0 105px; min-height: 112px; scroll-snap-align: start; }
  .home-promo-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .home-listings-head { align-items: flex-start; flex-direction: column; }
  .home-listings-actions { width: 100%; }
  .home-feed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-home-category-grid,.mixed-feed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; grid-template-columns: 1fr; }
  .filter-actions { display: grid; grid-template-columns: 1fr; }
  .filter-actions > * { width: 100%; }
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creation-category-card { grid-template-columns: 110px minmax(0,1fr); }
  .creation-category-image { width: 110px; height: 100%; }
}

@media (max-width: 480px) {
  .home-feed-grid { grid-template-columns: 1fr; }
  .market-home-category-grid,.mixed-feed-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
}
