/* ============================
   HOMEPAGE ONLY STYLES
   ============================ */

/* outer max-width wrapper, same for all homepage sections */
.home-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ---------- HERO ---------- */

.home-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* centre the white text card */
  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding: 80px 0 60px;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-hero-inner {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.home-hero-card {
  background: #ffffff;
  max-width: 480px;
  padding: 32px 40px;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.home-hero-title {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.home-hero-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #000;
}

.home-hero-btn {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  color: #000;
  margin-left: 0;
  padding-left: 0;
}

/* ---------- ART FILTER CARD (Art types / styles / movements) ---------- */


.home-filters {
  background: #ffffff;
  padding: 60px 0 40px;
}

.home-filters .home-container {
  max-width: 1300px;   /* WIDER LIKE DESIGN */
  margin: 0 auto;
  padding: 0 0;     /* SIDE WHITESPACE */
}

.home-filters-group {
  margin-bottom: 40px; /* MUCH MORE SPACE */
}

.home-filters-label {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
}

/* Chip row: one line, horizontal scroll */
.home-filters-chips {
  display: flex;
  flex-wrap: nowrap;              /* prevent wrapping to 2nd line */
  gap: 20px;                      /* keep same spacing as design (20px) */

  overflow-x: auto;               /* horizontal scroll if too many */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */

  max-width: 100%;
  padding-bottom: 6px;            /* tiny padding so chips don't touch edge */
}

/* Each chip: don’t shrink, keep text on one line */
.home-chip {
  flex: 0 0 auto;                 /* stay full width, don't shrink */
  white-space: nowrap;            /* no line-break inside the chip */

  /* keep your existing styling */
  padding: 14px 26px;
  font-size: 16px;
  background: #f7f7f7;
  border-radius: 12px;
  border: 1px solid #ececec;
  display: inline-block;
  text-decoration: none;
  color: #000;
}

/* Optional: hide scrollbar but keep scrolling */
.home-filters-chips::-webkit-scrollbar {
  display: none;
}
.home-filters-chips {
  scrollbar-width: none;          /* Firefox */
}

/* ---------- Section titles (“Check out the latest Art”, etc.) ---------- */

.home-section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  margin: 56px 0 32px;
}

/* ---------- Product white card wrapper ---------- */

.products-wrap {
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  margin-top: 32px;
  margin-bottom: 48px;
  padding-top: 32px;
  padding-bottom: 48px;
}

/* ---------- Homepage product cards ---------- */

.home-product-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* soft contrast */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.home-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.home-product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* image area: 4:3 ratio */
.home-product-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;          /* 4:3 aspect ratio */
  overflow: hidden;
  background: #f4f4f4;
}

.home-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* grey band with type text */
.home-product-type {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

/* text section */
.home-product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.home-product-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}

/* NEW: row for "by testuserX" + "Remaining time: ..." */
.home-product-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 4px;
}

.home-product-creator {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.home-product-footer {
  margin-top: auto;              /* pushes this row to the bottom */
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.home-product-meta--open {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: underline;
}

.home-product-remaining {
  font-size: 14px;
  font-weight: 500;
  color: #c62828;
  white-space: nowrap;
}

.home-product-meta {
  font-size: 14px;
}

/* OPEN ART – its own line, pinned to bottom of card body */
.home-product-meta--open {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: underline;
  margin-top: auto;   /* pushes this line to bottom */
}

.home-product-meta--auction {
  color: #d12f2f;
  font-weight: 500;
}

/* ---------- BLUE CTA (“Need a hand…”) ---------- */

.home-help-cta {
  background: #003B8B;
  color: #fff;
  padding: 64px 0 60px;
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 60px;
}

.home-help-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-cta-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

.home-cta-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-cta-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 2px;
  background: #ffffff;
  color: #003B8B;
  font-size: 14px;
  text-decoration: none;
  border: none;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 768px) {
  .home-hero {
    padding: 40px 0 30px;
  }

  .home-hero-card {
    margin: 0 16px;
    padding: 24px;
  }

  .home-section-title {
    margin: 40px 0 24px;
  }

  .products-wrap {
    border-radius: 12px;
    margin-top: 24px;
    margin-bottom: 32px;
  }

  .home-help-cta {
    padding: 36px 0 40px;
  }
}
