/* ==========================================================================
   Valor homepage responsive layer
   Loaded last, after home.css, so it can fit the shared shell and the
   homepage sections to every width without editing the legacy sheets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page frame, rhythm, focus
   -------------------------------------------------------------------------- */
body.page-home {
  overflow-x: clip;
}

body.page-home .container {
  width: min(100% - clamp(32px, 5vw, 64px), 1320px);
}

body.page-home main {
  padding-bottom: 0;
}

body.page-home .section {
  padding-block: clamp(28px, 3.6vw, 48px);
}

body.page-home [data-shelf-home] {
  padding-block: clamp(16px, 2.4vw, 28px);
}

body.page-home .section--sand {
  padding-top: clamp(20px, 3vw, 36px);
}

body.page-home a:focus-visible,
body.page-home button:focus-visible,
body.page-home [tabindex]:focus-visible {
  outline: 2px solid #e4236f;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Announcement bar
   -------------------------------------------------------------------------- */
body.page-home .announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  padding: 7px 0;
  text-align: center;
}

body.page-home .announcement__item--center {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

body.page-home .announcement__marquee {
  width: max-content;
  justify-content: flex-start;
  --marquee-duration: 16s;
  animation: announcement-marquee var(--marquee-duration) linear infinite;
}

body.page-home .announcement__marquee > span {
  padding-right: 48px;
}

body.page-home .announcement__marquee > span[aria-hidden="true"] {
  display: inline;
}

/* The shared sheet hides the first item below 760px. On the homepage the
   centre marquee is the only item, so keep it visible. */
@media (max-width: 760px) {
  body.page-home .announcement {
    line-height: 1.2;
  }

  body.page-home .announcement__inner {
    container-type: inline-size;
    min-height: 32px;
    padding: 6px 0;
  }

  body.page-home .announcement__item:first-child {
    display: block;
  }

  body.page-home .announcement__marquee {
    width: max-content;
    justify-content: flex-start;
    --marquee-duration: 14s;
    animation: announcement-marquee var(--marquee-duration) linear infinite;
    white-space: nowrap;
  }

  /* The shared sheet caps announcement spans at 28ch, which forces a wrap
     even where the bar has room for one line. */
  body.page-home .announcement__inner span {
    max-width: none;
  }

  body.page-home .announcement__marquee > span {
    padding-right: 40px;
    font-size: clamp(12px, 3.05cqi, 13px);
    white-space: nowrap;
    text-wrap: nowrap;
  }

  body.page-home .announcement__marquee > span[aria-hidden="true"] {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
body.page-home .header-main {
  gap: clamp(14px, 2.2vw, 32px);
}

body.page-home .header-actions {
  flex: none;
  flex-wrap: nowrap;
  gap: 4px;
}

body.page-home .header-action,
body.page-home .menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

body.page-home .header-search-toggle {
  display: none;
}

/* Laptop widths: icon-only actions and no third-level "live room" chip so
   the primary navigation never wraps. */
@media (min-width: 981px) and (max-width: 1180px) {
  body.page-home .header-main {
    gap: 16px;
  }

  body.page-home .header-search {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

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

  body.page-home .header-offer {
    display: none;
  }

  body.page-home .header-nav__inner {
    gap: 10px;
  }

  body.page-home .primary-nav {
    gap: 15px;
    margin-inline: auto;
  }
}

/* Tablet and mobile: brand + actions on row one, full-width search on row two. */
@media (max-width: 980px) {
  body.page-home .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    align-items: center;
    gap: 8px 12px;
    min-height: 0;
    padding-block: 10px;
  }

  body.page-home .brand {
    grid-area: brand;
    min-width: 0;
  }

  body.page-home .header-actions {
    grid-area: actions;
    justify-self: end;
    margin-left: 0;
  }

  body.page-home .header-search {
    grid-area: search;
    display: flex;
    width: 100%;
    max-width: none;
    height: 46px;
  }

  body.page-home .header-search input {
    height: 44px;
    padding-left: 16px;
    font-size: 16px;
  }

  body.page-home .header-search > button {
    width: 50px;
    flex: none;
  }

  body.page-home .header-search-toggle {
    display: none;
  }

  body.page-home .menu-toggle {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  body.page-home .header-main {
    padding-block: 8px;
    gap: 7px 8px;
  }

  body.page-home .brand img {
    height: 28px;
  }

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

  body.page-home .header-actions .header-action {
    min-width: 44px;
    min-height: 44px;
  }

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

  body.page-home .header-search {
    height: 44px;
  }

  body.page-home .header-search input {
    height: 42px;
    font-size: 16px;
  }
}

/* iPad and tablet home: search stays in the header row. Phones still use the stacked row from the rule above. */
@media (min-width: 700px) and (max-width: 980px) {
  body.page-home .header-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  body.page-home .header-search {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 44px;
    margin: 0;
  }

  body.page-home .header-actions {
    margin-left: 0;
  }
}

@media (min-width: 981px) {
  body.page-home .header-search {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  body.page-home .header-search input {
    font-size: 16px;
  }
}

@media (max-width: 359px) {
  body.page-home .brand img {
    height: 24px;
  }

  body.page-home .header-actions .header-action {
    min-width: 42px;
    min-height: 42px;
  }

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

/* --------------------------------------------------------------------------
   4. Mobile shopper dock (guests + signed-in shoppers)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Clearance for the floating dock comes from extra.css site-footer rules. */
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
body.page-home .home-stage {
  margin: 0;
  padding: clamp(18px, 2.6vw, 32px) 0 clamp(34px, 4vw, 54px);
}

body.page-home .home-stage__inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: 0;
  padding-block: clamp(4px, 1.4vw, 16px);
}

body.page-home .home-stage h1 {
  font-size: clamp(2.45rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

body.page-home .home-stage__lead {
  max-width: 46ch;
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.6;
}

body.page-home .home-stage__actions {
  gap: 12px;
  margin-top: 24px;
}

body.page-home .home-stage__primary,
body.page-home .home-stage__secondary {
  min-height: 50px;
  padding: 0 clamp(20px, 2vw, 26px);
  font-size: 0.95rem;
}

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

body.page-home .home-stage__trust li {
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.25;
}

body.page-home .home-stage__trust svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

body.page-home .home-stage__trust small {
  margin-top: 2px;
  font-size: 11.5px;
}

body.page-home .home-stage__visual {
  height: auto;
  min-height: 0;
  margin: 24px 24px 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
}

body.page-home .home-stage__slide,
body.page-home .home-stage__slide img {
  border-radius: 28px;
}

body.page-home .home-stage__badge {
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  transform: translate(25%, -25%);
}

body.page-home .home-stage__badge strong {
  font-size: 15px;
}

body.page-home .home-stage__badge span {
  font-size: 10px;
}

/* Keep the edge arrows clear of the hero copy on laptops and tablets; the
   dots remain the carousel control at those widths. On very wide screens,
   pull the arrows back toward the content column instead of the viewport
   edge so they do not float a screen away from the hero. */
@media (max-width: 1500px) {
  body.page-home .home-stage__edge {
    display: none;
  }
}

@media (min-width: 1501px) {
  body.page-home .home-stage__edge--prev {
    left: max(16px, calc((100vw - 1440px) / 2 - 56px));
  }

  body.page-home .home-stage__edge--next {
    right: max(16px, calc((100vw - 1440px) / 2 - 56px));
  }
}

/* Comfortable 40px targets for the carousel indicators. */
body.page-home .home-stage__dots {
  bottom: 0;
  gap: 2px;
}

body.page-home .home-stage__dots button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

body.page-home .home-stage__dots button::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: auto;
  border-radius: 999px;
  background: #f3c3d6;
  transition: width 180ms ease, background-color 180ms ease;
}

body.page-home .home-stage__dots button[aria-selected="true"] {
  background: transparent;
}

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

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

@media (max-width: 980px) {
  body.page-home .home-stage {
    padding: 18px 0 42px;
  }

  body.page-home .home-stage__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  body.page-home .home-stage h1 {
    font-size: clamp(2.1rem, 5.4vw, 2.8rem);
  }

  body.page-home .home-stage__visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 360px;
    margin-top: 22px;
    margin-right: 22px;
    border-radius: 24px;
  }

  body.page-home .home-stage__slide,
  body.page-home .home-stage__slide img {
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  body.page-home .home-stage h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.55rem);
    letter-spacing: -0.025em;
  }

  body.page-home .home-stage__kicker {
    margin-bottom: 12px;
    padding: 5px 10px;
    font-size: 10.5px;
  }

  body.page-home .home-stage__lead {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  body.page-home .home-stage__trust {
    gap: 10px 12px;
    margin-top: 20px;
  }

  body.page-home .home-stage__trust li {
    font-size: 12px;
  }

  body.page-home .home-stage__trust li:last-child {
    grid-column: 1 / -1;
  }

  body.page-home .home-stage__visual {
    aspect-ratio: 4 / 3;
    max-height: 300px;
    margin-top: 19px;
    margin-right: 19px;
    border-radius: 20px;
  }

  body.page-home .home-stage__slide,
  body.page-home .home-stage__slide img {
    border-radius: 20px;
  }

  body.page-home .home-stage__badge {
    width: 74px;
    height: 74px;
    padding: 6px;
  }

  body.page-home .home-stage__badge strong {
    font-size: 13px;
  }

  body.page-home .home-stage__badge span {
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  body.page-home .home-stage__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.page-home .home-stage__primary,
  body.page-home .home-stage__secondary {
    width: 100%;
    min-height: 48px;
  }

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

/* --------------------------------------------------------------------------
   6. Categories
   -------------------------------------------------------------------------- */
body.page-home .category-strip {
  padding: clamp(24px, 3vw, 38px) 0 clamp(8px, 1.4vw, 16px);
}

body.page-home .category-strip__head {
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(14px, 2vw, 22px);
}

body.page-home .category-strip__head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

body.page-home .category-strip .text-link {
  flex: none;
  min-height: 44px;
  white-space: nowrap;
}

/* Tiles stretch to the tallest in the row; keep every icon and label on the
   same baseline instead of redistributing the extra space per tile. */
body.page-home .category-tile {
  align-content: start;
}

/* One scrolling row at every width. */
@media (min-width: 1024px) {
  body.page-home .category-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 22px;
    padding: 0 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  body.page-home .category-tile {
    flex: 0 0 92px;
    width: 92px;
    min-width: 92px;
  }
}

/* Tablet and mobile: a touch scroller with a soft edge affordance. */
@media (max-width: 1023px) {
  body.page-home .category-row {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    padding: 0 2px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-home .category-row::-webkit-scrollbar {
    display: none;
  }

  body.page-home .category-row__status {
    flex: 0 0 100%;
  }

  body.page-home .category-tile {
    flex: 0 0 80px;
    width: 80px;
    min-width: 80px;
    gap: 8px;
    scroll-snap-align: start;
  }

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

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

  body.page-home .category-tile__name {
    max-width: 100%;
    min-height: 2.4em;
    font-size: 12px;
    line-height: 1.2;
  }
}

@media (max-width: 430px) {
  body.page-home .category-strip__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }

  body.page-home .category-strip__head p {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  body.page-home .category-strip .text-link {
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
  }

  body.page-home .category-row {
    gap: 10px;
  }

  body.page-home .category-tile {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
  }

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

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

  body.page-home .category-tile__name {
    font-size: 12px;
  }
}

@media (max-width: 359px) {
  body.page-home .category-tile {
    flex-basis: 68px;
    width: 68px;
    min-width: 68px;
  }

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

  body.page-home .category-tile__name {
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   7. Product shelves and cards
   -------------------------------------------------------------------------- */
body.page-home .section-head {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

body.page-home .section-title {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.16;
}

body.page-home .section-lead {
  max-width: 58ch;
  margin-top: 8px;
  font-size: 14px;
}

body.page-home .showcase {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(16px, 2vw, 24px);
}

body.page-home .finds-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  align-items: stretch;
}

body.page-home .finds-grid > .product-card,
body.page-home .finds-grid > .skeleton-card {
  height: 100%;
  min-width: 0;
}

body.page-home .product-card {
  border-radius: 16px;
}

body.page-home .product-card__body {
  flex: 1;
  gap: 6px;
  padding: 14px 14px 16px;
}

body.page-home .finds-grid .product-card__frame {
  padding: clamp(8px, 1vw, 14px);
}

body.page-home .product-card__title {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-home .product-card__meta {
  font-size: 11px;
}

body.page-home .product-card__facts {
  font-size: 12.5px;
  line-height: 1.35;
}

body.page-home .product-card__counts {
  flex-wrap: wrap;
  gap: 4px 8px;
  white-space: normal;
}

body.page-home .product-card__reviews {
  font-size: 12px;
}

body.page-home .seller-badge {
  font-size: 10.5px;
  padding: 2px 7px;
}

body.page-home .product-card__price {
  font-size: 14px;
}

body.page-home .product-card__price strong {
  font-size: 17px;
}

body.page-home .product-card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

body.page-home .product-card__actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

body.page-home .product-card__social {
  margin-top: 2px;
  font-size: 11px;
}

body.page-home .finds-grid .skeleton--media {
  aspect-ratio: 1 / 1;
}

/* Laptops keep the auction aside, so two product columns read best. */
@media (min-width: 981px) and (max-width: 1200px) {
  body.page-home .finds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Stacked showcase on tablets: three columns only when cards stay usable. */
@media (min-width: 821px) and (max-width: 980px) {
  body.page-home .finds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

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

  body.page-home .finds-grid .product-card {
    position: relative;
  }

  body.page-home .finds-grid .product-card__frame {
    padding: 7px;
  }

  body.page-home .product-card__body {
    gap: 5px;
    padding: 10px 10px 12px;
  }

  body.page-home .product-card__title {
    min-height: 2.5em;
    font-size: 13px;
    line-height: 1.28;
  }

  body.page-home .product-card__meta {
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0;
  }

  body.page-home .product-card__meta .verified {
    font-size: 12px;
  }

  body.page-home .product-card__meta .verified svg {
    width: 11px;
    height: 11px;
  }

  body.page-home .product-card__facts {
    font-size: 13px;
  }

  body.page-home .product-card__counts {
    gap: 3px 6px;
  }

  body.page-home .product-card__reviews {
    font-size: 13px;
  }

  body.page-home .seller-badge {
    font-size: 12px;
    padding: 2px 6px;
  }

  body.page-home .product-card__price {
    font-size: 12px;
  }

  body.page-home .product-card__price strong {
    font-size: 15px;
  }

  body.page-home .product-card__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-top: 6px;
  }

  body.page-home .product-card__actions .btn {
    min-height: 44px;
    font-size: 14px;
  }

  /* Move the save button over the photo so the title keeps the full width. */
  body.page-home .finds-grid .card-wish--title {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(74, 33, 64, 0.14);
  }

  body.page-home .finds-grid .card-wish--title svg {
    width: 17px;
    height: 17px;
  }

  body.page-home .product-card__social {
    display: none;
  }

  /* The message shortcut is a hover affordance on desktop; on two-column
     phones it would sit on top of the product photo. */
  body.page-home .finds-grid a.product-card__quick {
    display: none;
  }

  body.page-home .product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1px 6px;
  }

  body.page-home .showcase__label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  body.page-home .showcase__label h3 {
    font-size: 1.15rem;
  }

  body.page-home .showcase__label p {
    font-size: 12.5px;
  }
}

@media (max-width: 359px) {
  body.page-home .finds-grid {
    gap: 8px;
  }

  body.page-home .product-card__title {
    font-size: 12.5px;
  }

  body.page-home .product-card__actions .btn {
    padding: 0 6px;
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   8. Live auction room
   -------------------------------------------------------------------------- */
body.page-home .live-panel {
  position: sticky;
  top: 150px;
  overflow: hidden;
  border: 1px solid #7a1542;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 61, 134, 0.28), transparent 42%),
    linear-gradient(160deg, #5a1030 0%, #7a1542 64%, #8a1d4e 100%);
  color: #fff8f4;
  box-shadow: 0 18px 44px rgba(90, 16, 48, 0.16);
}

body.page-home .live-panel__head {
  padding: 22px 22px 16px;
}

body.page-home .live-panel__head h3 {
  color: #fff8f4;
  font-size: 1.5rem;
  line-height: 1.05;
}

body.page-home .live-panel__head h3::after {
  content: "20-second lots";
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 248, 240, 0.28);
  border-radius: 999px;
  color: #ffe14a;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-home .live-panel__head .eyebrow {
  color: #ffe14a;
}

body.page-home .live-panel .live-badge {
  border-color: rgba(255, 248, 240, 0.35);
  background: rgba(255, 248, 240, 0.1);
  color: #fff8f4;
}

body.page-home .live-panel .live-dot {
  background: #ffe14a;
  box-shadow: 0 0 0 4px rgba(255, 225, 74, 0.18);
}

body.page-home .live-panel__body h4,
body.page-home .live-panel__body h4 a {
  color: #fff8f4;
}

body.page-home .live-panel__seller,
body.page-home .live-panel__meta {
  color: rgba(255, 248, 240, 0.68);
}

body.page-home .live-panel__meta a {
  color: #fff8f4;
}

body.page-home .live-panel__timer .countdown__unit {
  border-color: rgba(255, 248, 240, 0.18);
  background: rgba(255, 248, 240, 0.08);
}

body.page-home .live-panel__timer .countdown__value {
  color: #ffe14a;
}

body.page-home .live-panel__timer .countdown__label {
  color: rgba(255, 248, 240, 0.66);
}

body.page-home .live-panel__prices {
  border-color: rgba(255, 248, 240, 0.18);
}

body.page-home .live-panel__prices span {
  color: rgba(255, 248, 240, 0.64);
}

body.page-home .live-panel__prices strong {
  color: #fff8f4;
}

body.page-home .live-panel .btn--dark {
  border-color: #ff3d86;
  background: #ff3d86;
  color: #fff;
}

body.page-home .live-panel .btn--dark:hover {
  border-color: #e4236f;
  background: #e4236f;
  color: #fff;
}

body.page-home .live-panel .empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 4px 4px;
  border: 0;
  background: transparent;
  color: #fff8f4;
}

body.page-home .live-panel .empty-state h2,
body.page-home .live-panel .empty-state h3 {
  margin: 0;
  color: #fff8f4;
  font-size: 1.25rem;
}

body.page-home .live-panel .empty-state p {
  margin: 0;
  color: rgba(255, 248, 240, 0.72);
}

body.page-home .live-panel .empty-state .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(255, 248, 240, 0.5);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
  color: #fff8f4;
}

body.page-home .live-panel .empty-state .btn:hover {
  background: #fff8f4;
  color: #7a1542;
}

/* Tablet: run the auction card horizontally so it does not become a wall. */
@media (min-width: 641px) and (max-width: 980px) {
  body.page-home .live-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "media body";
    align-items: stretch;
  }

  body.page-home .live-panel__head {
    grid-area: head;
  }

  body.page-home .live-panel__media {
    grid-area: media;
    aspect-ratio: auto;
    min-height: 280px;
    height: 100%;
  }

  body.page-home .live-panel__body {
    grid-area: body;
    align-self: center;
  }
}

@media (max-width: 640px) {
  body.page-home .live-panel {
    position: static;
    border-radius: 18px;
  }

  body.page-home .live-panel__head {
    padding: 18px 18px 12px;
  }

  body.page-home .live-panel__head h3 {
    font-size: 1.35rem;
  }

  body.page-home .live-panel__media {
    aspect-ratio: 16 / 10;
  }

  body.page-home .live-panel__body {
    padding: 16px 18px 20px;
  }

  body.page-home .live-panel__timer {
    margin: 14px 0;
  }

  body.page-home .live-panel__prices {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   9. Closing band, proof, story, split sections
   -------------------------------------------------------------------------- */
body.page-home .home-offer {
  padding: clamp(20px, 2.6vw, 34px) 0 clamp(30px, 4vw, 54px);
}

body.page-home .home-offer__card {
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 40px);
  border: 1px solid #dcebd4;
  border-radius: 22px;
}

body.page-home .home-offer h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
}

body.page-home .home-offer p {
  margin-top: 8px;
  font-size: 14.5px;
}

body.page-home .home-offer__btn {
  flex: none;
  min-height: 48px;
  padding: 0 24px;
  white-space: nowrap;
}

body.page-home .home-after {
  padding: 0 0 clamp(30px, 4vw, 56px);
}

body.page-home .home-proof {
  margin-bottom: clamp(22px, 3vw, 32px);
}

body.page-home .home-proof h2,
body.page-home .home-story h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

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

body.page-home .home-proof blockquote {
  padding: 18px;
  border-radius: 16px;
}

body.page-home .home-proof blockquote p {
  font-size: 14.5px;
  line-height: 1.55;
}

body.page-home .home-proof footer {
  font-size: 13px;
}

body.page-home .home-story {
  border-radius: 22px;
}

body.page-home .home-story > div {
  padding: clamp(22px, 3vw, 34px);
}

body.page-home .home-story img {
  min-height: 100%;
}

/* When the story image sits beside the copy, centre the copy in the card so
   the panel does not look top-heavy. */
@media (min-width: 981px) {
  body.page-home .home-story > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

/* Text before the supporting image on narrow screens. */
@media (max-width: 980px) {
  body.page-home .split {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vw, 30px);
  }

  body.page-home .split__copy {
    order: 1;
  }

  body.page-home .split__media {
    order: 2;
  }

  body.page-home .split__media img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 410px;
    border-radius: 18px;
    object-fit: cover;
  }

  body.page-home .split__copy .section-title {
    max-width: none;
  }

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

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

@media (max-width: 640px) {
  body.page-home .home-offer__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px 20px;
  }

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

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

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

  body.page-home .feature {
    gap: 10px;
    padding: 12px 0;
  }

  body.page-home .feature p {
    font-size: 13px;
    line-height: 1.35;
  }

  body.page-home .split__copy p {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.68;
  }

  body.page-home .home-story img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Keep the "searches that found pieces" shelf compact. */
body.page-home .shelf-related .section-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

body.page-home .shelf-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.page-home .shelf-related__list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #f0e4ea;
  border-radius: 999px;
  background: #fff;
  color: #7a1542;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
body.page-home .site-footer {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid #f0e4ea;
}

@media (min-width: 768px) {
  body.page-home .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
    padding-bottom: 28px;
  }
}

body.page-home .footer-col h3 {
  margin-bottom: 10px;
  color: #4a2140;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.page-home .footer-col a {
  min-height: 40px;
  color: #5e4a53;
  font-size: 13.5px;
}

body.page-home .footer-brand p {
  max-width: 42ch;
  margin-top: 14px;
  color: #6d4458;
  font-size: 13.5px;
}

body.page-home .footer-contact {
  margin-top: 12px;
  color: #4a2140;
}

body.page-home .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 16px 0 4px;
  color: #5e4a53;
  font-size: 11.5px;
}

body.page-home .footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

body.page-home .footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #5e4a53;
}

body.page-home .footer-payments {
  display: flex;
  gap: 6px;
}

body.page-home .footer-payments span {
  border-color: #f0e4ea;
  color: #4a2140;
}

@media (max-width: 1023px) and (min-width: 761px) {
  body.page-home .site-footer {
    padding-top: 22px;
    padding-bottom: 16px;
  }

  body.page-home .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 8px 20px;
    padding-bottom: 8px;
  }

  body.page-home .footer-brand {
    grid-column: auto;
  }

  body.page-home .footer-col a {
    min-height: 26px;
    font-size: 13px;
  }
}

/* Dock clearance — restated here so it wins over earlier footer padding. */
@media (max-width: 767px) {
  body.page-home .site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

/* Phones: shorter first screen, swipeable products, less stacked copy. */
@media (max-width: 767px) {
  body.page-home .home-stage {
    position: relative;
    padding: 8px 0 16px;
  }

  body.page-home .home-stage__inner {
    gap: 14px;
  }

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

  body.page-home .home-stage__actions .btn {
    width: 100%;
    min-height: 46px;
    padding-inline: 10px;
    font-size: 13.5px;
  }

  body.page-home .home-stage__trust {
    margin-top: 14px;
  }

  body.page-home .home-stage__trust li:last-child {
    grid-column: auto;
  }

  body.page-home .home-stage__visual {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  body.page-home .home-stage__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 2;
    margin: 0;
  }

  body.page-home .section {
    padding-block: 22px;
  }

  body.page-home .split__media img {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }

  body.page-home .finds-grid {
    display: flex;
    gap: 12px;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.page-home .finds-grid > .product-card,
  body.page-home .finds-grid > .skeleton-card {
    flex: 0 0 78%;
    width: 78%;
    scroll-snap-align: start;
  }

  body.page-home .live-panel__media img {
    max-height: 180px;
    object-fit: cover;
  }
}
@media (max-width: 767px) {
  body.page-home .agent {
    left: auto;
    right: max(6px, env(safe-area-inset-right));
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 70;
    width: auto;
    max-width: calc(100vw - 16px);
    gap: 10px;
  }

  body.page-home .agent:has(.agent__panel:not([hidden])) {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.page-home .agent__toggle {
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  body.page-home .agent__panel {
    max-height: min(62dvh, 440px);
    border-radius: 14px;
  }
}

/* The two-up action row above is too narrow for these labels. One full-width
   button each, so both read on a single line. */
@media (max-width: 520px) {
  body.page-home .home-stage__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-home .home-stage__primary,
  body.page-home .home-stage__secondary {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
}


/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.page-home .home-stage__slide,
  body.page-home .mobile-dock__item,
  body.page-home .home-stage__dots button::before {
    transition: none;
  }

  body.page-home .announcement__marquee {
    animation: none;
  }
}
