/* Home module: flagship product rail + reusable product card. */

.bjs-rail {
  padding: 30px clamp(24px, 7vw, 112px) 96px;
  border-bottom: 1px solid var(--home-line);
}

.bjs-rail__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.bjs-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--home-line);
  background: var(--home-panel);
  transition: border-color .2s ease;
}

.bjs-card:hover { border-color: #3d4854; }

.bjs-card__media { display: block; overflow: hidden; background: #11161c; }
.bjs-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .4s ease; }
.bjs-card:hover .bjs-card__media img { transform: scale(1.04); }

.bjs-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px; }

.bjs-card__name { font-size: 19px; line-height: 1.1; }
.bjs-card__name a { color: var(--home-copy); text-decoration: none; }

.bjs-card__price { margin: 10px 0 14px; color: var(--home-muted) !important; font: 600 15px/1 Inter, sans-serif; }

.bjs-card__add {
  margin-top: auto;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: var(--home-copy);
  font: 700 11px/1 Inter, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}

.bjs-card__add:hover { border-color: var(--home-red); background: rgba(221,49,57,.12); }
.bjs-card__add.is-added { border-color: var(--home-cyan); color: var(--home-cyan); }

@media (max-width: 1100px) {
  .bjs-rail__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .bjs-rail { padding-inline: 18px; }
  .bjs-rail__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .bjs-card { flex: 0 0 74%; scroll-snap-align: start; }
}
