/* Homepage styling is scoped so account, checkout and listing forms keep their layout. */
.home-page {
  --terracotta: var(--brand-accent);
  --terracotta-hover: var(--brand-accent-hover);
  color: var(--ink);
  background: #fff;
}
.home-page::before { display: none; }
.home-page .category-nav { max-width: 1480px; margin: auto; padding: 6px 48px 13px 294px; display: flex; align-items: center; gap: 27px; overflow-x: auto; scrollbar-width: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.home-page .category-nav::-webkit-scrollbar { display: none; }
.home-page .category-nav a[aria-current="page"], .home-page .category-nav a:hover { color: var(--terracotta); }
.home-main { max-width: none; padding: 0; }
.home-page .hero { position: relative; min-height: 410px; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: #f4f0ec; isolation: isolate; }
.home-page .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.home-page .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fcfaf8 0%, #fcfaf8f2 30%, #fcfaf800 49%); pointer-events: none; }
.hero-inner { position: relative; width: 100%; max-width: 1480px; margin: auto; padding: 26px 34px 26px 66px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.home-page .hero-copy { width: 44%; padding: 0; position: relative; }
.home-page .hero h1 { margin: 0 0 13px; font-size: clamp(35px, 3.25vw, 49px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 800; text-wrap: balance; }
.hero-line { display: block; }
.hero h1 em { color: var(--terracotta); font-style: normal; }
.home-page .hero-copy > p { max-width: 510px; margin: 0 0 20px; color: #343535; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.4; }
.home-page .button { min-height: 46px; padding: 13px 20px; border-radius: 9px; align-items: center; gap: 10px; background: var(--terracotta); color: white; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.35; transition: background .18s ease; }
.home-page .button:hover { background: var(--terracotta-hover); }
.home-page .button .wt-icon { width: 18px; height: 18px; }
.home-page .button.secondary { background: #ffffff65; border: 1px solid #d3cfcb; color: var(--ink); }
.home-page .button.secondary:hover { background: #fff; }
.hero-actions { display: flex; gap: 14px; }
.hero-actions .button { flex: 1 1 auto; }
.trust-points { display: flex; justify-content: space-between; gap: 20px; list-style: none; padding: 0; margin: 32px 0 0; }
.trust-points li { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.35; }
.trust-points .wt-icon { width: 26px; height: 26px; }
.hero-note, .closet-note { font-family: 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive; font-style: italic; font-size: 27px; line-height: 1.3; transform: rotate(-10deg); max-width: 170px; text-align: center; }
.hero-note { position: absolute; inset-inline-start: 65%; top: 43px; }
.selling-guide { position: relative; flex: 0 0 262px; padding: 23px 21px 20px; background: #fff5f2f5; border: 1px solid #fff8; border-radius: 21px; }
.selling-guide h2 { margin: 0 0 21px; font-size: 21px; line-height: 1.18; letter-spacing: -.5px; }
.selling-guide ol { position: relative; list-style: none; padding: 0; margin: 0 0 21px; display: grid; gap: 24px; }
.selling-guide ol::before { content: ''; position: absolute; inset-inline-start: 15px; width: 1px; top: 16px; bottom: 20px; background: #edd6cf; }
.selling-guide li { position: relative; display: grid; grid-template-columns: 32px 30px 1fr; align-items: start; gap: 12px; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; background: #f2d3c7; color: #a44026; border-radius: 50%; font-size: 16px; font-weight: 750; }
.selling-guide .wt-icon { width: 29px; height: 29px; margin-top: 2px; }
.selling-guide h3 { margin: 1px 0 5px; font-size: 12px; letter-spacing: -.15px; line-height: 1.3; }
.home-page .selling-guide p { margin: 0; color: #4f4b49; font-size: 11px; line-height: 1.4; }
.selling-guide > .button { width: 100%; }
.home-content { max-width: 1480px; margin: auto; padding: 0 48px 28px; }
.home-page .section-heading { margin: 20px 0 16px; align-items: center; scroll-margin-top: 140px; gap: 16px; }
.home-page .section-heading h2 { font-size: 23px; margin: 0; font-weight: 750; }
.home-page .section-heading > a { color: var(--muted); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; flex: none; }
.home-page .section-heading .wt-icon { width: 14px; height: 14px; }
.home-page .product-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px; }
.home-page .product-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transition: none; }
.home-page .product-card:hover { transform: none; box-shadow: none; }
.home-page .product-image { height: auto; aspect-ratio: 1 / 1; border-radius: 7px; background: #f0ede9; }
.home-page .product-image img { transition: transform .25s ease; }
.home-page .product-card:hover .product-image img { transform: scale(1.035); }
.home-page .heart { inset-inline-end: 7px; top: 7px; padding: 2px; background: transparent; border-radius: 0; color: var(--ink); filter: drop-shadow(0 1px 2px #fff); }
.home-page .heart .wt-icon { width: 20px; height: 20px; }
.home-page .heart.is-favorite { color: var(--terracotta); }
.home-page .heart.is-favorite svg { fill: #f6ddd5; }
.home-page .sold { font-size: 10px; padding: 5px 7px; inset-inline-start: 7px; top: 7px; }
.home-page .product-meta { margin: 7px 0 3px; color: var(--ink); font-size: 12px; font-weight: 750; }
.home-page .product-card h3 { margin: 0 0 6px; font-size: 11px; line-height: 1.35; font-weight: 450; letter-spacing: 0; }
.home-page .product-card > strong { margin: 0; font-size: 12px; }
.home-page .price-with-fees { font-size: 9px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.product-location { display: flex; align-items: center; gap: 3px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.product-location .wt-icon { width: 12px; height: 12px; }
.home-page .seller-type-badge { display: inline-block; margin-top: 5px; font-size: 9px; padding: 3px 5px; background: #f5ede8; color: #805442; font-weight: 550; }
.category-selections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 33px 0 24px; }
.category-tile { position: relative; min-height: 110px; overflow: hidden; border-radius: 8px; background: #eee7e1; }
.category-tile > img { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; width: 55%; object-fit: cover; object-position: center 42%; transition: transform .25s ease; }
.category-tile::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #eee7e1 0%, #eee7e1fa 38%, #eee7e100 72%); }
.category-tile > div { position: relative; z-index: 1; max-width: 63%; padding: 25px 24px; }
.category-tile h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.06; letter-spacing: -.6px; }
.category-tile span { font-size: 12px; }
.category-tile > div > span { display: flex; align-items: center; gap: 6px; }
.category-tile .wt-icon { width: 15px; height: 15px; }
.category-tile:hover > img { transform: scale(1.045); }
.closet-banner { display: flex; align-items: center; justify-content: center; gap: 40px; min-height: 120px; padding: 22px 13% 22px 20%; border-radius: 8px; background: #f2eeea url('images/branding/wetroc-resale.webp') center / cover no-repeat; }
.closet-banner h2 { margin: 0 0 8px; font-size: 23px; font-weight: 750; }
.closet-banner p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.closet-banner .button { flex: none; }
.closet-note { flex: 0 0 130px; font-size: 19px; }
.home-page footer { border-color: #eeeae7; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page select:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
[dir='rtl'] .home-page .hero-image, .home-page[dir='rtl'] .hero-image { transform: scaleX(-1); }
[dir='rtl'] .hero::after { background: linear-gradient(270deg, #fcfaf8 0%, #fcfaf8f2 30%, #fcfaf800 49%); }
[dir='rtl'] .category-tile::after { background: linear-gradient(270deg, #eee7e1 0%, #eee7e1fa 38%, #eee7e100 72%); }
[dir='rtl'] .home-page .category-nav { padding: 6px 294px 13px 48px; }
[dir='rtl'] .home-page .hero-inner { padding: 26px 66px 26px 34px; }
@media (min-width: 1700px) { .home-page .hero-image { object-fit: contain; background: #f3efea; } }
@media (max-width: 1250px) {
  .home-page .category-nav { padding-inline: 211px 28px; }
  .hero-inner { padding-inline: 40px 28px; }
  .hero-note { display: none; }
  .home-page .hero-copy { width: 49%; }
  .home-content { padding-inline: 28px; }
  .home-page .product-grid { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-tile > div { padding: 22px 17px; max-width: 73%; }
  .category-tile h2 { font-size: 20px; }
  .closet-banner { gap: 25px; padding-inline: 15%; }
  .closet-note { display: none; }
  [dir='rtl'] .home-page .category-nav { padding-inline: 211px 28px; }
  [dir='rtl'] .home-page .hero-inner { padding-inline: 40px 28px; }
}
@media (max-width: 900px) {
  .home-page .category-nav { padding: 0 24px 12px; gap: 25px; }
  .home-page .hero { min-height: 400px; }
  .home-page .hero-copy { width: 58%; }
  .home-page .hero h1 { font-size: 36px; }
  .selling-guide { flex-basis: 230px; padding: 20px 16px; }
  .selling-guide h2 { font-size: 19px; }
  .selling-guide li { grid-template-columns: 28px 25px 1fr; gap: 9px; }
  .selling-guide .wt-icon { width: 25px; height: 25px; }
  .step-number { width: 28px; height: 28px; }
  .selling-guide ol::before { inset-inline-start: 13px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .trust-points { gap: 12px; margin-top: 24px; }
  .trust-points li { gap: 6px; font-size: 10px; }
  .trust-points .wt-icon { width: 22px; height: 22px; }
  .category-selections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closet-banner { padding-inline: 8%; }
  .closet-banner h2 { font-size: 21px; }
  [dir='rtl'] .home-page .category-nav { padding: 0 24px 12px; }
}
@media (max-width: 650px) {
  .home-page .category-nav { padding-inline: 16px; gap: 23px; }
  .home-page .hero { display: block; }
  .home-page .hero-image { height: 285px; object-position: 62% center; }
  .home-page .hero::after { height: 290px; background: linear-gradient(90deg, #faf7f5f5, #faf7f5cf 52%, #faf7f540); }
  .hero-inner { padding: 27px 16px 20px; display: block; }
  .home-page .hero-copy { width: 100%; }
  .home-page .hero h1 { max-width: 420px; font-size: clamp(30px, 7.5vw, 40px); letter-spacing: -1.2px; }
  .home-page .hero-copy > p { max-width: 350px; margin-bottom: 18px; font-size: 15px; }
  .hero-actions { gap: 9px; flex-wrap: nowrap; }
  .home-page .hero-actions .button { padding: 12px 10px; font-size: 11px; flex: 1; }
  .hero-actions .wt-icon { display: none; }
  .trust-points { margin: 21px 0 25px; gap: 12px; }
  .trust-points li { flex: 1; font-size: 10px; }
  .selling-guide { width: 100%; padding: 20px; border-radius: 14px; }
  .selling-guide h2 { font-size: 19px; margin-bottom: 18px; }
  .selling-guide ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
  .selling-guide ol::before { display: none; }
  .selling-guide li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .selling-guide li > div { flex-basis: 100%; }
  .selling-guide h3 { font-size: 11px; }
  .home-page .selling-guide p { font-size: 10px; }
  .home-content { padding: 0 16px 22px; }
  .home-page .section-heading { margin: 22px 0 14px; scroll-margin-top: 170px; }
  .home-page .section-heading h2 { font-size: 22px; }
  .home-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 13px; }
  .home-page .product-meta { font-size: 13px; }
  .home-page .product-card h3, .home-page .product-card > strong { font-size: 12px; }
  .category-selections { margin: 27px 0 20px; gap: 12px; }
  .category-tile { min-height: 112px; }
  .category-tile > div { padding: 21px 13px; max-width: 90%; }
  .category-tile h2 { font-size: 19px; }
  .category-tile span { font-size: 10px; }
  .closet-banner { display: block; padding: 24px; background-position: center; }
  .closet-banner > div { padding: 12px; background: #f7f3eef0; border-radius: 7px; }
  .closet-banner h2 { font-size: 21px; }
  .closet-banner p { font-size: 12px; }
  .closet-banner .button { margin-top: 17px; width: 100%; }
  [dir='rtl'] .home-page .category-nav { padding-inline: 16px; }
  [dir='rtl'] .home-page .hero-inner { padding: 27px 16px 20px; }
  [dir='rtl'] .home-page .hero::after { background: linear-gradient(270deg, #faf7f5f5, #faf7f5cf 52%, #faf7f540); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .button, .home-page .product-image img, .category-tile > img { transition: none; }
  .home-page .product-card:hover .product-image img, .category-tile:hover > img { transform: none; }
}

.home-page .cookie-banner { color: var(--ink); border-color: var(--line); }
.home-page .cookie-banner button { background: var(--terracotta); border-color: var(--terracotta); }
.home-page .cookie-banner a { color: var(--terracotta); }
.home-page[dir="rtl"] .wt-icon, [dir="rtl"] .home-page .hero-actions .wt-icon, [dir="rtl"] .home-page .section-heading .wt-icon, [dir="rtl"] .home-page .category-tile .wt-icon { transform: scaleX(-1); }


.home-page .category-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; }
.home-page .category-filter select { width: auto; max-width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
