.stock {
  width: 100vw;
  margin-top: 96px;
  color: #3e3a39;
}

.stock > .container {
  width: calc(100% - 32px);
  max-width: 1216px;
  padding: 0;
}

.stock h2 {
  margin: 0 0 48px;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}

.stock__list {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: calc(100% + max(16px, (100vw - 1216px) / 2));
  padding-right: max(16px, (100vw - 1216px) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.stock__list::-webkit-scrollbar {
  display: none;
}

.stock__list:focus-visible {
  outline: 2px solid #b3292c;
  outline-offset: 4px;
}

.stock-card {
  display: flex;
  flex: 0 0 414px;
  flex-direction: column;
  min-width: 0;
  width: 414px;
  overflow: hidden;
  border-radius: 40px;
  background: #3e3a39;
  color: #f6f0ec;
  scroll-snap-align: start;
}

.stock-card__photo {
  position: relative;
  flex: 0 0 246px;
  height: 246px;
  overflow: hidden;
}

.stock-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-card__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #00b522;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.stock-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 546px;
  padding: 24px;
}

.stock-card h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.stock-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.stock-card li::before {
  content: '\2713';
  flex: 0 0 14px;
  color: #00b522;
  font-size: 20px;
}

.stock-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.stock-card .btn {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 16px;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}

.stock-card .stock-card__primary {
  border-color: #b3292c;
  background: #b3292c;
  color: #f6f0ec;
}

.stock-card .stock-card__cash {
  border-color: #f6f0ec;
  background: transparent;
  color: #f6f0ec;
}

.stock-card .btn:hover {
  border-color: #f6f0ec;
  background: #f6f0ec;
  color: #3e3a39;
}

.stock-card .btn svg {
  flex: 0 0 16px;
}

.stock-card__note {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .stock {
    margin-top: 48px;
  }

  .stock h2 {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 32px;
  }

  .stock-card {
    flex: 0 0 auto;
    width: 100%;
    border-radius: 24px;
  }

  .stock__list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .stock-card__photo {
    flex: 0 0 246px;
    height: 246px;
    aspect-ratio: auto;
  }

  .stock-card__body {
    min-height: 514px;
    padding: 16px;
  }

  .stock-card h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .stock-card__badge {
    top: 16px;
    left: 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .stock-card .btn {
    min-height: 56px;
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 18px;
  }

  .stock-card__note {
    font-size: 14px;
    line-height: 20px;
  }
}
