/* Homepage only. Loaded from index.html after the shared sheets. */

body.page-home {
  --home-pink: #ff3d86;
  --home-pink-deep: #e4236f;
  --home-ink: #4a2140;
  --home-muted: #8a6d7c;
  --home-line: #f0e4ea;
  --home-cream: #fff8f4;
  --home-card: #ffffff;
  background: var(--home-cream);
  color: var(--home-ink);
  font-family: var(--sans);
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4 {
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

body.page-home .home-fold {
  display: none;
}

/* Top bar */
body.page-home .announcement {
  background: #6d2448;
  color: #fff;
  font-size: 13px;
}

body.page-home .announcement__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 38px;
}

body.page-home .announcement__item--center {
  justify-self: stretch;
  width: 100%;
  text-align: left;
}

body.page-home .announcement__item--end {
  justify-self: end;
  display: flex;
  gap: 18px;
}

body.page-home .announcement a {
  color: #fff;
  text-decoration: none;
}

body.page-home .announcement a:hover {
  text-decoration: underline;
}

/* Header */
body.page-home .site-header {
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
}

body.page-home .header-main {
  min-height: 78px;
  gap: 28px;
}

body.page-home .brand img {
  height: 56px;
  width: auto;
  max-width: min(240px, 48vw);
  object-fit: contain;
}

body.page-home .header-search {
  height: 48px;
  border: 1px solid #f3d5e2;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

body.page-home .header-search input {
  height: 46px;
  padding-left: 20px;
  border: 0;
  background: transparent;
  font-size: 15px;
}

body.page-home .header-search > button {
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--home-pink);
  color: #fff;
}

body.page-home .header-search > button:hover {
  background: var(--home-pink-deep);
}

body.page-home .header-actions {
  gap: 8px;
}

body.page-home .header-action,
body.page-home .account-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
  color: #7a1542;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(12, 5, 9, 0.04);
}

body.page-home .header-action--logo {
  color: #7a1542;
}

body.page-home .header-action--logo svg {
  width: 18px;
  height: 18px;
  color: var(--home-pink);
}

body.page-home .header-actions .header-action > span:not(.cart-count):not(.note-count),
body.page-home .header-actions .account-btn > span:not(.cart-count):not(.note-count) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html[data-ui-role="seller"] body.page-home .header-actions [data-seller-home],
html[data-ui-role="seller"] body.page-home .header-actions [data-seller-logout] {
  width: 44px;
  min-width: 44px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

html[data-ui-role="seller"] body.page-home .header-actions [data-seller-home] > span,
html[data-ui-role="seller"] body.page-home .header-actions [data-seller-logout] > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.page-home .header-action svg {
  width: 18px;
  height: 18px;
}

body.page-home .header-action--logo svg {
  width: 18px;
  height: 18px;
  color: var(--home-pink);
}

body.page-home .header-action--cart {
  position: relative;
}

body.page-home .header-action .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--home-pink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

body.page-home .header-nav {
  background: #fff;
  border-top: 1px solid #f6eef2;
  border-bottom: 1px solid #f6eef2;
}

body.page-home .header-nav__inner {
  min-height: 58px;
}

body.page-home .categories-btn {
  border: 0;
  border-radius: 999px;
  background: var(--home-pink);
  color: #fff;
  box-shadow: none;
}

body.page-home .categories-btn:hover {
  background: var(--home-pink-deep);
}

body.page-home .primary-nav a {
  color: var(--home-ink);
  font-weight: 600;
}

body.page-home .primary-nav a[aria-current="page"] {
  color: var(--home-pink);
}

body.page-home .header-offer {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff4c8;
  color: #8a6414;
  font-weight: 700;
  text-decoration: none;
}

/* Hero */
body.page-home .home-stage {
  position: relative;
  margin: 18px 0 8px;
  padding: 28px 0 54px;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 182, 210, 0.45), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff6f1 100%);
}

body.page-home .home-stage__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: center;
  min-height: 460px;
}

body.page-home .home-stage__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #7a1542;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.page-home .home-stage__kicker .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aaa3f;
  box-shadow: none;
}

body.page-home .home-stage h1 {
  margin: 0;
  color: #2c1230;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
}

body.page-home .home-stage h1 span {
  color: var(--home-pink);
}

body.page-home .home-stage__lead {
  max-width: 38ch;
  margin: 18px 0 0;
  color: #6d5564;
  font-size: 1.05rem;
  line-height: 1.55;
}

body.page-home .home-stage__social {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  max-width: 38ch;
  margin: 14px 0 0;
  color: #8a6f7c;
  font-size: 0.92rem;
  line-height: 1.4;
}

body.page-home .home-stage__social a {
  color: #7a1542;
  font-weight: 600;
  text-decoration: none;
}

body.page-home .home-stage__social a:hover,
body.page-home .home-stage__social a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-home .home-stage__handle {
  margin-left: 2px;
  letter-spacing: 0.01em;
}

body.page-home .home-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

body.page-home .home-stage__primary,
body.page-home .home-stage__secondary,
body.page-home .home-offer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

body.page-home .home-stage__primary,
body.page-home .home-offer__btn {
  background: var(--home-pink);
  color: #fff;
}

body.page-home .home-stage__primary:hover,
body.page-home .home-offer__btn:hover {
  background: var(--home-pink-deep);
}

body.page-home .home-stage__secondary {
  border: 1.5px solid #f3c3d6;
  background: #fff;
  color: var(--home-ink);
}

body.page-home .home-stage__secondary:hover {
  border-color: var(--home-pink);
  color: var(--home-pink);
}

body.page-home .home-stage__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

body.page-home .home-stage__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 700;
}

body.page-home .home-stage__trust svg {
  width: 22px;
  height: 22px;
  color: #7a8f72;
}

body.page-home .home-stage__trust small {
  display: block;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 500;
}

body.page-home .home-stage__visual {
  position: relative;
  height: 400px;
  margin-top: 16px;
  margin-right: 16px;
  overflow: visible;
}

body.page-home .home-stage__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 450ms ease;
}

body.page-home .home-stage__slide.is-active {
  z-index: 1;
  opacity: 1;
}

body.page-home .home-stage__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
}

body.page-home .home-stage__badge {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  transform: translate(25%, -25%);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  width: 96px;
  height: 96px;
  padding: 8px;
  border-radius: 50%;
  background: #ffe14a;
  color: #3b0a1e;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(92, 59, 8, 0.18);
}

body.page-home .home-stage__badge strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

body.page-home .home-stage__badge[data-kind="off"] strong {
  font-size: 20px;
}

body.page-home .home-stage__badge span {
  display: block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-home .home-stage__badge:focus-visible {
  outline: 2px solid #24141b;
  outline-offset: 3px;
}

body.page-home .home-stage__edge {
  position: absolute;
  top: 46%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f3d5e2;
  border-radius: 50%;
  background: #fff;
  color: var(--home-ink);
  cursor: pointer;
}

body.page-home .home-stage__edge--prev { left: 16px; }
body.page-home .home-stage__edge--next { right: 16px; }

body.page-home .home-stage__edge svg {
  width: 18px;
  height: 18px;
}

body.page-home .home-stage__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

body.page-home .home-stage__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3c3d6;
  cursor: pointer;
}

body.page-home .home-stage__dots button[aria-selected="true"] {
  background: var(--home-pink);
}

/* Categories */
body.page-home .category-strip {
  padding: 36px 0 12px;
  background: transparent;
}

body.page-home .category-strip__head h2,
body.page-home .section-title {
  margin: 0;
  color: #6b2148;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 500;
}

body.page-home .category-strip__head p,
body.page-home .section-lead {
  margin: 4px 0 0;
  color: var(--home-muted);
}

body.page-home .category-strip .text-link,
body.page-home .showcase__label .text-link {
  color: var(--home-pink);
  font-weight: 700;
}

body.page-home .category-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

body.page-home .category-tile {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 8px;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
  color: var(--home-ink);
  text-align: center;
  text-decoration: none;
}

body.page-home .category-tile:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.page-home .category-tile__meta {
  display: none;
}

body.page-home .category-tile__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff8f4;
  color: #c43b74;
}

body.page-home .category-tile:nth-child(2n) .category-tile__icon { background: #e7f6df; color: #3d8a46; }
body.page-home .category-tile:nth-child(3n) .category-tile__icon { background: #e7f3ea; color: #3f7a55; }
body.page-home .category-tile:nth-child(4n) .category-tile__icon { background: #fff0d8; color: #c47a22; }
body.page-home .category-tile:nth-child(5n) .category-tile__icon { background: #fde7e3; color: #d15a4a; }

body.page-home .category-tile__icon svg {
  width: 40px;
  height: 40px;
}

body.page-home .category-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-home .category-tile__name {
  max-width: 96px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

body.page-home .category-tile:hover .category-tile__icon {
  transform: translateY(-2px);
}

/* Featured + auctions */
body.page-home .section--sand {
  background: transparent;
  padding-top: 28px;
}

body.page-home .section--sand > .container > .section-head {
  display: none;
}

body.page-home .showcase__label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.page-home .showcase__label p,
body.page-home .section-head {
  margin-bottom: 8px;
}

body.page-home .showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

body.page-home .showcase__label h3 {
  color: #6b2148;
  font-size: 1.35rem;
  font-weight: 500;
}

body.page-home .finds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.page-home .finds-grid > .product-card {
  grid-column: auto;
  width: auto;
  min-width: 0;
}

body.page-home .product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

body.page-home .product-card:hover {
  transform: translateY(-2px);
}

body.page-home .finds-grid .product-card__frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: #fff;
}

body.page-home .finds-grid a.product-card__quick {
  z-index: 4;
  border: 1px solid rgba(122, 21, 66, 0.14);
  background: #fff;
  color: #3b0a1e;
  pointer-events: auto;
}

body.page-home .finds-grid .product-card__media {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 12px;
  background: #fff8f4;
  overflow: hidden;
}

body.page-home .finds-grid .product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

body.page-home .product-card__badge {
  border-radius: 999px;
  background: var(--home-pink);
  color: #fff;
}

body.page-home .product-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 14px 14px 16px;
}

body.page-home .product-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.page-home .product-card__title a {
  display: inline-block;
  min-height: 44px;
  padding-block: 8px;
  box-sizing: border-box;
  color: var(--home-ink);
  text-decoration: none;
}

body.page-home .product-card__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #5e4a53;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

body.page-home .product-card__meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .product-card__meta .verified {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}

body.page-home .product-card__facts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #5e4a53;
  font-size: 14px;
  line-height: 1.4;
}

body.page-home .product-card__counts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.page-home .product-card__reviews {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  box-sizing: border-box;
  color: #5e4a53;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

body.page-home .seller-badge {
  font-size: 12px;
  line-height: 1.3;
  padding: 3px 8px;
}

body.page-home .product-card__price {
  margin: 2px 0 0;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

body.page-home .product-card__price strong {
  font-size: 18px;
  font-weight: 500;
}

body.page-home .product-card__price s {
  color: #b9a3ae;
  font-weight: 500;
}

body.page-home .product-card__actions {
  display: grid;
  gap: 8px;
}

body.page-home .product-card__actions .btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--home-pink);
  color: #fff;
}

body.page-home .product-card__actions .btn--outline {
  border: 1.5px solid #f3c3d6;
  background: #fff;
  color: var(--home-ink);
}

body.page-home .card-wish {
  border: 0;
  background: #fff;
  color: var(--home-pink);
  box-shadow: 0 4px 12px rgba(74, 33, 64, 0.08);
}

body.page-home .live-panel {
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

body.page-home .live-panel__head h3 {
  margin: 0;
  color: #6b2148;
  font-size: 1.35rem;
  font-weight: 500;
}

body.page-home .live-panel__note {
  margin: 4px 0 0;
  color: var(--home-muted);
  font-size: 13px;
}

body.page-home .live-panel__media img {
  border-radius: 14px;
  background: #fff8f4;
  object-fit: contain;
}

body.page-home .live-panel .btn--dark,
body.page-home .live-panel .btn {
  border: 0;
  border-radius: 999px;
  background: var(--home-pink);
  color: #fff;
}

body.page-home .live-panel .empty-state {
  border: 0;
  background: transparent;
}

/* Closing band */
body.page-home .home-offer {
  padding: 12px 0 56px;
}

body.page-home .home-offer__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  border: 1px solid rgba(44, 18, 48, 0.08);
  border-radius: 16px;
  background: #fff8f4;
}

body.page-home .home-offer h2 {
  margin: 0;
  color: #6b2148;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 500;
}

body.page-home .home-offer p {
  margin: 6px 0 0;
  color: #5d6b58;
}

body.page-home .home-after {
  padding: 8px 0 64px;
}

body.page-home .home-proof h2,
body.page-home .home-story h2 {
  margin: 0;
  color: #6b2148;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

body.page-home .home-proof {
  margin-bottom: 28px;
}

body.page-home .home-proof p,
body.page-home .home-story p {
  margin: 8px 0 0;
  color: #5e4a53;
  font-size: 16px;
  line-height: 1.5;
}

body.page-home .home-proof__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body.page-home .home-proof blockquote {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
}

body.page-home .home-proof blockquote p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

body.page-home .home-proof footer {
  margin-top: 10px;
  color: #5e4a53;
  font-size: 14px;
  line-height: 1.4;
}

body.page-home .home-proof footer a {
  color: #7a1542;
  font-weight: 700;
}

body.page-home .home-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: 24px;
}

body.page-home .home-story > div {
  padding: 28px 32px;
  border-radius: 0;
  background: #fdf2f6;
}

body.page-home .home-story img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

body.page-home .home-story a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: #e4236f;
  font-weight: 700;
  text-decoration: none;
}

body.page-home .home-story a:focus-visible {
  outline: 2px solid #ff3d86;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  body.page-home .announcement__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    padding: 8px 0;
    text-align: left;
  }

  body.page-home .announcement__item--end {
    justify-self: center;
  }

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

  body.page-home .home-stage__inner,
  body.page-home .showcase,
  body.page-home .home-offer__card {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.page-home .home-stage__visual {
    height: 260px;
  }

  body.page-home .home-story,
  body.page-home .home-proof__list {
    grid-template-columns: 1fr;
  }

  body.page-home .home-stage__edge {
    display: none;
  }

  body.page-home .finds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  body.page-home .finds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.page-home .home-stage h1 {
    font-size: 2.4rem;
  }

  body.page-home .home-stage__actions a,
  body.page-home .home-offer__btn {
    width: 100%;
  }

  body.page-home .showcase {
    grid-template-columns: 1fr;
  }

  body.page-home .finds-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .home-stage__slide {
    transition: none;
  }
}
