body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: #f2f4f7;
  color: #172233;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero-copy {
  margin: 0;
  max-width: 900px;
  line-height: 1.4;
}

.hero-intro {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

.hero-points {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.35;
}

.hero-points li {
  margin: 2px 0;
}

.timer-wrap {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
  background: #e8eefb;
  border-radius: 10px;
  padding: 8px 10px;
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.deal-card {
  background: #fff;
  border: 1px solid #d8ddea;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(26, 36, 58, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.badge {
  display: inline-block;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-savings {
  background: #ff5757;
  color: #fff;
}

.badge-unlocked {
  background: #0a8f69;
  color: #fff;
}

.image-wrap {
  margin-top: 8px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7fb;
  border: 1px solid #e1e6f0;
}

.image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: #fff;
}

.join-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-wrap:hover .join-overlay {
  opacity: 1;
}

.join-cta {
  border: none;
  border-radius: 10px;
  background: #0d7c66;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.join-cta:disabled {
  background: #75a89d;
}

.deal-card h2 {
  margin: 12px 0 2px;
  font-size: 1.35rem;
  min-height: 0;
  line-height: 1.15;
}

.qty {
  margin: 2px 0 0;
  color: #5a677f;
  min-height: 0;
  line-height: 1.25;
}

.price {
  margin: 8px 0 0;
  color: #da3f3f;
  font-size: 2rem;
  font-weight: 800;
  min-height: 0;
  display: block;
}

.eta {
  margin: 6px 0 8px;
  color: #0a6d88;
  font-weight: 600;
  min-height: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.92rem;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border: 1px solid #e1e6f0;
  padding: 6px 8px;
  text-align: left;
}

.progress-head {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.deal-card progress,
.deal-card .progress-foot {
  flex-shrink: 0;
}

progress {
  margin-top: 6px;
  width: 100%;
  height: 12px;
}

.progress-foot {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: #5a677f;
  font-size: 0.9rem;
}

.qty-picker {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  background: #f8fafd;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.qty-picker select {
  padding: 6px;
}

.confirm-join {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  background: #1f66d1;
  color: #fff;
  font-weight: 700;
}


.qty-popover {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(260px, 90%);
  margin-top: 0;
}

.qty-picker[hidden] {
  display: none !important;
}


@media (max-width: 768px) {
  .container { padding: 10px 10px 20px; }

  .hero h1 {
    font-size: 0.98rem;
    margin-bottom: 6px;
    line-height: 1.18;
    letter-spacing: 0;
  }

  .hero-copy {
    font-size: 0.84rem;
    line-height: 1.28;
    margin: 0;
  }

  .hero-intro {
    font-size: 0.84rem;
    line-height: 1.28;
    margin: 0;
  }

  .hero-points {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .timer-wrap {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .deal-card {
    display: grid;
    grid-template-columns: 146px 1fr;
    grid-template-areas:
      "top top"
      "img title"
      "img qty"
      "img price"
      "img eta"
      "img compare"
      "phead phead"
      "pbar pbar"
      "pfoot pfoot";
    column-gap: 12px;
    row-gap: 4px;
    padding: 10px;
    border-radius: 14px;
    align-items: start;
    height: auto;
  }

  .card-top {
    grid-area: top;
    min-height: 24px;
    margin-bottom: 2px;
  }

  .badge {
    font-size: 0.78rem;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .image-wrap {
    grid-area: img;
    margin-top: 0;
    border-radius: 10px;
    overflow: visible;
    display: block;
    height: auto;
    min-height: 0;
    border: 0;
    background: transparent;
  }

  .image-wrap img {
    width: 100%;
    height: 174px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e6f0;
    display: block;
  }

  .join-overlay {
    opacity: 1;
    position: static;
    margin-top: 6px;
    padding-top: 0;
  }

  .join-cta {
    width: 100%;
    max-width: none;
    padding: 9px 10px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .deal-card h2 {
    grid-area: title;
    min-height: 0;
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.18;
  }

  .qty {
    grid-area: qty;
    min-height: 0;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .price {
    grid-area: price;
    min-height: 0;
    margin: 2px 0 0;
    font-size: 1.75rem;
    line-height: 1;
  }

  .eta {
    grid-area: eta;
    min-height: 0;
    margin: 2px 0 0;
    font-size: 0.8rem;
  }

  .compare-table {
    grid-area: compare;
    font-size: 0.8rem;
    margin-top: 4px;
    table-layout: fixed;
  }

  .compare-table th,
  .compare-table td {
    padding: 5px;
  }

  .progress-head {
    grid-area: phead;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #e1e6f0;
    font-size: 0.82rem;
    grid-column: 1 / -1;
  }

  .deal-card progress {
    grid-area: pbar;
    margin-top: 0;
    height: 10px;
    width: 100%;
    grid-column: 1 / -1;
  }

  .progress-foot {
    grid-area: pfoot;
    margin-top: 3px;
    font-size: 0.8rem;
    grid-column: 1 / -1;
  }

  .qty-popover {
    position: absolute;
    left: 50%;
    right: auto;
    width: min(240px, 90%);
    max-width: none;
    transform: translateX(-50%);
    bottom: 56px;
    z-index: 8;
    margin-top: 0;
  }

  .qty-picker {
    padding: 8px;
    gap: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .qty-picker label {
    width: 100%;
    font-size: 0.75rem;
    line-height: 1.1;
    margin: 0;
  }

  .qty-picker select,
  .confirm-join {
    font-size: 0.88rem;
  }

  .qty-picker select {
    min-height: 36px;
  }

  .confirm-join {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 9px;
  }
}





/* mobile-layout-v20260319b */
